• 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
          • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • 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
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Call-graphs

    Qualify-ident

    Signature
    (qualify-ident filepath valid-table ident) → qualified-ident
    Arguments
    filepath — Guard (filepathp filepath).
    valid-table — Guard (c$::valid-tablep valid-table).
    ident — Guard (identp ident).
    Returns
    qualified-ident — Type (qualified-identp qualified-ident).

    Definitions and Theorems

    Function: qualify-ident

    (defun qualify-ident (filepath valid-table ident)
     (declare (xargs :guard (and (filepathp filepath)
                                 (c$::valid-tablep valid-table)
                                 (identp ident))))
     (let ((__function__ 'qualify-ident))
      (declare (ignorable __function__))
      (b*
       ((info? (c$::valid-lookup-ord-file-scope ident valid-table))
        (is-internal
         (and
          info?
          (c$::valid-ord-info-case
               info?
               :objfun (equal (c$::valid-ord-info-objfun->linkage info?)
                              (c$::linkage-internal))
               :otherwise nil))))
       (if is-internal (internal-ident filepath ident)
         (external-ident ident)))))

    Theorem: qualified-identp-of-qualify-ident

    (defthm qualified-identp-of-qualify-ident
      (b* ((qualified-ident (qualify-ident filepath valid-table ident)))
        (qualified-identp qualified-ident))
      :rule-classes :rewrite)