• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
          • Finding-by-name
          • Expr-tools
            • Vl-expr-widthsfixed-p
            • Vl-make-idexpr-list
            • Vl-exprlist-resolved->vals
            • Vl-idexprlist->names
            • Vl-expr-names
            • Vl-expr-count
            • Vl-idexpr
            • Vl-exprlist-to-plainarglist
            • Vl-expr-atoms
            • Vl-expr-ops
            • Vl-expr-count-noatts
            • Vl-make-index
            • Vl-expr-selects
            • Vl-bitlist-from-nat
            • Vl-pps-expr
            • Vl-expr-add-atts
            • Vl-idexprlist-p
            • Vl-expr-resolved-p
            • Vl-pps-origexpr
            • Vl-expr-funnames
              • Vl-atomlist-collect-funnames
            • Vl-idexpr->name
            • Vl-idexpr-p
            • Vl-exprlist-funnames
            • Vl-resolved->val
            • Vl-exprlist-resolved-p
            • Vl-expr->atts
            • Vl-obviously-true-expr-p
            • Vl-obviously-false-expr-p
            • Vl-exprlist-has-funcalls
            • Vl-expr-has-funcalls
            • Vl-zbitlist-p
            • Vl-zatom-p
            • Vl-exprlist-has-ops
            • Vl-expr-has-ops
            • Vl-expr-varnames
            • Vl-one-bit-constants
          • Expr-slicing
          • Stripping-functions
          • Stmt-tools
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
          • Flat-warnings
          • Genblob
          • Expr-building
          • Datatype-tools
          • Syscalls
          • Relocate
          • Expr-cleaning
          • Namemangle
          • Caremask
          • Port-tools
          • Lvalues
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Expr-tools

Vl-expr-funnames

Collect the names of all functions that occur in a vl-expr-p and return them as a string list.

Signature
(vl-expr-funnames x) → ans
Arguments
x — Guard (vl-expr-p x).
Returns
ans — Type (string-listp ans).

Definitions and Theorems

Function: vl-expr-funnames

(defun vl-expr-funnames (x)
  (declare (xargs :guard (vl-expr-p x)))
  (let ((__function__ 'vl-expr-funnames))
    (declare (ignorable __function__))
    (vl-atomlist-collect-funnames (vl-expr-atoms x))))

Theorem: string-listp-of-vl-expr-funnames

(defthm string-listp-of-vl-expr-funnames
  (b* ((ans (vl-expr-funnames x)))
    (string-listp ans))
  :rule-classes :rewrite)

Theorem: vl-expr-funnames-of-vl-expr-fix-x

(defthm vl-expr-funnames-of-vl-expr-fix-x
  (equal (vl-expr-funnames (vl-expr-fix x))
         (vl-expr-funnames x)))

Theorem: vl-expr-funnames-vl-expr-equiv-congruence-on-x

(defthm vl-expr-funnames-vl-expr-equiv-congruence-on-x
  (implies (vl-expr-equiv x x-equiv)
           (equal (vl-expr-funnames x)
                  (vl-expr-funnames x-equiv)))
  :rule-classes :congruence)

Subtopics

Vl-atomlist-collect-funnames
Collect all the function names that occur in an vl-atomlist-p and return them as a string list.