• 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
          • 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-p

    Recognize atomic expressions that are system function names.

    Signature
    (vl-sysfunexpr-p x) → bool
    Arguments
    x — Guard (vl-expr-p x).

    Definitions and Theorems

    Function: vl-sysfunexpr-p$inline

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

    Theorem: vl-sysfunexpr-p$inline-of-vl-expr-fix-x

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

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

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