• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
            • Deftrans
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Copy-fn
            • Specialize
            • Split-all-gso
            • 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
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Call-graphs

    Call-graph-transunit

    Build a call graph corresponding to a translation unit.

    Signature
    (call-graph-transunit filepath transunit call-graph) 
      → 
    call-graph$
    Arguments
    filepath — Guard (filepathp filepath).
    transunit — Guard (transunitp transunit).
    call-graph — Guard (call-graphp call-graph).
    Returns
    call-graph$ — Type (call-graphp call-graph$).

    Definitions and Theorems

    Function: call-graph-transunit

    (defun call-graph-transunit (filepath transunit call-graph)
     (declare (xargs :guard (and (filepathp filepath)
                                 (transunitp transunit)
                                 (call-graphp call-graph))))
     (declare (xargs :guard (c$::transunit-annop transunit)))
     (let ((__function__ 'call-graph-transunit))
       (declare (ignorable __function__))
       (b*
        (((transunit transunit) transunit)
         (info (c$::transunit-info-fix (c$::transunit->info transunit)))
         (valid-table (c$::transunit-info->table info)))
        (call-graph-extdecl-list transunit.decls
                                 filepath valid-table call-graph))))

    Theorem: call-graphp-of-call-graph-transunit

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