• 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
                  • Call-graphp
                    • Call-graph-fix
                    • Call-graph-equiv
                  • 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-graph

    Call-graphp

    Recognizer for call-graph.

    Signature
    (call-graphp x) → *

    Definitions and Theorems

    Function: call-graphp

    (defun call-graphp (x)
      (declare (xargs :guard t))
      (if (atom x)
          (null x)
        (and (consp (car x))
             (qualified-identp (caar x))
             (qualified-ident-option-setp (cdar x))
             (or (null (cdr x))
                 (and (consp (cdr x))
                      (consp (cadr x))
                      (acl2::fast-<< (caar x) (caadr x))
                      (call-graphp (cdr x)))))))

    Theorem: booleanp-of-call-graphp

    (defthm booleanp-of-call-graphp
      (booleanp (call-graphp x)))

    Theorem: mapp-when-call-graphp

    (defthm mapp-when-call-graphp
      (implies (call-graphp x) (omap::mapp x))
      :rule-classes (:rewrite :forward-chaining))

    Theorem: call-graphp-of-tail

    (defthm call-graphp-of-tail
      (implies (call-graphp x)
               (call-graphp (omap::tail x))))

    Theorem: qualified-identp-of-head-key-when-call-graphp

    (defthm qualified-identp-of-head-key-when-call-graphp
      (implies (and (call-graphp x)
                    (not (omap::emptyp x)))
               (qualified-identp (mv-nth 0 (omap::head x)))))

    Theorem: qualified-ident-option-setp-of-head-val-when-call-graphp

    (defthm qualified-ident-option-setp-of-head-val-when-call-graphp
      (implies (and (call-graphp x)
                    (not (omap::emptyp x)))
               (qualified-ident-option-setp (mv-nth 1 (omap::head x)))))

    Theorem: call-graphp-of-update

    (defthm call-graphp-of-update
      (implies (and (call-graphp x)
                    (qualified-identp k)
                    (qualified-ident-option-setp v))
               (call-graphp (omap::update k v x))))

    Theorem: call-graphp-of-update*

    (defthm call-graphp-of-update*
      (implies (and (call-graphp x) (call-graphp y))
               (call-graphp (omap::update* x y))))

    Theorem: call-graphp-of-delete

    (defthm call-graphp-of-delete
      (implies (call-graphp x)
               (call-graphp (omap::delete k x))))

    Theorem: call-graphp-of-delete*

    (defthm call-graphp-of-delete*
      (implies (call-graphp x)
               (call-graphp (omap::delete* k x))))

    Theorem: qualified-identp-when-assoc-call-graphp-binds-free-x

    (defthm qualified-identp-when-assoc-call-graphp-binds-free-x
      (implies (and (omap::assoc k x) (call-graphp x))
               (qualified-identp k)))

    Theorem: qualified-identp-of-car-of-assoc-call-graphp

    (defthm qualified-identp-of-car-of-assoc-call-graphp
      (implies (and (call-graphp x) (omap::assoc k x))
               (qualified-identp (car (omap::assoc k x)))))

    Theorem: qualified-ident-option-setp-of-cdr-of-assoc-call-graphp

    (defthm qualified-ident-option-setp-of-cdr-of-assoc-call-graphp
      (implies (and (call-graphp x) (omap::assoc k x))
               (qualified-ident-option-setp (cdr (omap::assoc k x)))))

    Theorem: qualified-ident-option-setp-of-lookup-when-call-graphp

    (defthm qualified-ident-option-setp-of-lookup-when-call-graphp
      (implies (and (call-graphp x) (omap::assoc k x))
               (qualified-ident-option-setp (omap::lookup k x))))