• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
        • Language
        • Representation
        • Transformation-tools
          • Simpadd0
          • Splitgso
          • Constant-propagation
          • Split-fn
          • Specialize
          • Split-all-gso
          • Copy-fn
          • Rename
          • Utilities
            • Free-vars
            • Call-graphs
              • Qualified-ident
              • Call-graph-transitive-closure
              • Qualified-ident-option
              • Call-graph-transitive-closure0
              • Call-graph-initdeclor-list
              • Call-graph-fundef
                • Call-graph-statassert
                • Call-graph-initdeclor
                • Call-graph-decl
                • Call-graph-const-expr
                • Call-graph-transunit
                • Call-graph-extdecl-list
                • Call-graph-extdecl
                • Call-graph-update
                • Qualify-ident
                • Exists-call-pathp
                • Call-graph-filepath-transunit-map
                • Uncertain-call-pathp
                • Recursivep
                • Direct-recursivep
                • Call-graph-transunit-ensemble
                • Call-graph
                • Qualified-ident-option-set
                • Direct-fun-refp
              • Fresh-ident-utility
              • Collect-idents
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Community
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Call-graphs

    Call-graph-fundef

    Signature
    (call-graph-fundef fundef filepath valid-table call-graph) 
      → 
    call-graph$
    Arguments
    fundef — Guard (fundefp fundef).
    filepath — Guard (filepathp filepath).
    valid-table — Guard (c$::valid-tablep valid-table).
    call-graph — Guard (call-graphp call-graph).
    Returns
    call-graph$ — Type (call-graphp call-graph$).

    Definitions and Theorems

    Function: call-graph-fundef

    (defun call-graph-fundef (fundef filepath valid-table call-graph)
     (declare (xargs :guard (and (fundefp fundef)
                                 (filepathp filepath)
                                 (c$::valid-tablep valid-table)
                                 (call-graphp call-graph))))
     (let ((__function__ 'call-graph-fundef))
      (declare (ignorable __function__))
      (b* (((fundef fundef) fundef)
           ((declor fundef.declor) fundef.declor))
       (dirdeclor-case
         fundef.declor.direct :function-params
         (b*
           ((fn-name (c$::dirdeclor->ident fundef.declor.direct.declor))
            (qualified-fn-name
                 (qualify-ident filepath valid-table fn-name)))
           (call-graph-stmt fundef.body qualified-fn-name
                            filepath valid-table call-graph))
         :function-names
         (b*
           ((fn-name (c$::dirdeclor->ident fundef.declor.direct.declor))
            (qualified-fn-name
                 (qualify-ident filepath valid-table fn-name)))
           (call-graph-stmt fundef.body qualified-fn-name
                            filepath valid-table call-graph))
         :otherwise (call-graph-fix call-graph)))))

    Theorem: call-graphp-of-call-graph-fundef

    (defthm call-graphp-of-call-graph-fundef
      (b* ((call-graph$
                (call-graph-fundef fundef
                                   filepath valid-table call-graph)))
        (call-graphp call-graph$))
      :rule-classes :rewrite)