• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
          • Expr-slicing
          • Stripping-functions
          • Stmt-tools
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
          • Flat-warnings
          • Genblob
          • Expr-building
          • Datatype-tools
          • Syscalls
            • Vl-syscall->returninfo
            • Vl-*ary-syscall-p
            • Vl-unary-syscall-p
            • Vl-0ary-syscall-p
            • Vl-sysfun-should-size-args-p
            • Vl-$random-expr-p
            • Vl-sysfunexpr->name
              • Vl-sysfunexpr-p
              • Vl-unary-syscall->arg
            • 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
    • Syscalls

    Vl-sysfunexpr->name

    Get the name from a vl-sysfunexpr-p as a string, e.g., "$bits".

    Signature
    (vl-sysfunexpr->name x) → name
    Arguments
    x — Guard (vl-expr-p x).
    Returns
    name — Type (stringp name).

    Definitions and Theorems

    Function: vl-sysfunexpr->name$inline

    (defun vl-sysfunexpr->name$inline (x)
      (declare (xargs :guard (vl-expr-p x)))
      (declare (xargs :guard (vl-sysfunexpr-p x)))
      (let ((__function__ 'vl-sysfunexpr->name))
        (declare (ignorable __function__))
        (vl-sysfunname->name (vl-atom->guts x))))

    Theorem: stringp-of-vl-sysfunexpr->name

    (defthm stringp-of-vl-sysfunexpr->name
      (b* ((name (vl-sysfunexpr->name$inline x)))
        (stringp name))
      :rule-classes :type-prescription)

    Theorem: vl-sysfunexpr->name$inline-of-vl-expr-fix-x

    (defthm vl-sysfunexpr->name$inline-of-vl-expr-fix-x
      (equal (vl-sysfunexpr->name$inline (vl-expr-fix x))
             (vl-sysfunexpr->name$inline x)))

    Theorem: vl-sysfunexpr->name$inline-vl-expr-equiv-congruence-on-x

    (defthm vl-sysfunexpr->name$inline-vl-expr-equiv-congruence-on-x
      (implies (vl-expr-equiv x x-equiv)
               (equal (vl-sysfunexpr->name$inline x)
                      (vl-sysfunexpr->name$inline x-equiv)))
      :rule-classes :congruence)