• 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
            • Vl-plainarglist-strip
            • Vl-namedarglist-strip
            • Vl-gateinstlist-strip
            • Vl-modinstlist-strip
            • Vl-assignlist-strip
            • Vl-rangelist-strip
            • Vl-expr-strip
              • Vl-exprlist-strip
            • Vl-atom-strip
            • Vl-gateinst-strip
            • Vl-plainarg-strip
            • Vl-namedarg-strip
            • Vl-modinst-strip
            • Vl-assign-strip
            • Vl-arguments-strip
            • Vl-range-strip
            • Vl-maybe-range-strip
          • 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
  • Stripping-functions

Vl-expr-strip

Throw away attributes and widths, keeping just the core of an expression. (memoized)

Signature
(vl-expr-strip x) → new-x
Arguments
x — Guard (vl-expr-p x).
Returns
new-x — Type (vl-expr-p new-x).

Note that we gain significant performance in leftright-check by memoizing this function.

Theorem: return-type-of-vl-expr-strip.new-x

(defthm return-type-of-vl-expr-strip.new-x
  (b* ((?new-x (vl-expr-strip x)))
    (vl-expr-p new-x))
  :rule-classes :rewrite)

Theorem: return-type-of-vl-exprlist-strip.new-x

(defthm return-type-of-vl-exprlist-strip.new-x
  (b* ((?new-x (vl-exprlist-strip x)))
    (and (vl-exprlist-p new-x)
         (equal (len new-x) (len x))))
  :rule-classes :rewrite)

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

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

Theorem: vl-exprlist-strip-of-vl-exprlist-fix-x

(defthm vl-exprlist-strip-of-vl-exprlist-fix-x
  (equal (vl-exprlist-strip (vl-exprlist-fix x))
         (vl-exprlist-strip x)))

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

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

Theorem: vl-exprlist-strip-vl-exprlist-equiv-congruence-on-x

(defthm vl-exprlist-strip-vl-exprlist-equiv-congruence-on-x
  (implies (vl-exprlist-equiv x x-equiv)
           (equal (vl-exprlist-strip x)
                  (vl-exprlist-strip x-equiv)))
  :rule-classes :congruence)

Subtopics

Vl-exprlist-strip