• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • 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
          • 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-transitive-closure0

    Signature
    (call-graph-transitive-closure0 ident?s call-graph called steps) 
      → 
    called$
    Arguments
    ident?s — Guard (qualified-ident-option-setp ident?s).
    call-graph — Guard (call-graphp call-graph).
    called — Guard (qualified-ident-option-setp called).
    Returns
    called$ — Type (qualified-ident-option-setp called$).

    Definitions and Theorems

    Function: call-graph-transitive-closure0

    (defun call-graph-transitive-closure0
           (ident?s call-graph called steps)
     (declare (type (unsigned-byte 60) steps))
     (declare (xargs :guard (and (qualified-ident-option-setp ident?s)
                                 (call-graphp call-graph)
                                 (qualified-ident-option-setp called))))
     (let ((__function__ 'call-graph-transitive-closure0))
      (declare (ignorable __function__))
      (b*
       (((when (or (int= 0
                         (mbe :logic
                              (if (natp (acl2::the-fixnat steps))
                                  (acl2::the-fixnat steps)
                                0)
                              :exec (acl2::the-fixnat steps)))
                   (emptyp ident?s)))
         (qualified-ident-option-set-fix called))
        (ident? (head ident?s))
        ((when (not ident?))
         (call-graph-transitive-closure0 (tail ident?s)
                                         call-graph (insert nil called)
                                         (- steps 1)))
        (lookup (omap::assoc ident? call-graph))
        (ident?s (if lookup (union (difference (cdr lookup) called)
                                   (tail ident?s))
                   (tail ident?s)))
        (called (if lookup (union (cdr lookup) called)
                  called)))
       (call-graph-transitive-closure0 ident?s
                                       call-graph called (- steps 1)))))

    Theorem: qualified-ident-option-setp-of-call-graph-transitive-closure0

    (defthm
          qualified-ident-option-setp-of-call-graph-transitive-closure0
      (b* ((called$ (call-graph-transitive-closure0
                         ident?s call-graph called steps)))
        (qualified-ident-option-setp called$))
      :rule-classes :rewrite)