• 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-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-assign-strip

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

    Definitions and Theorems

    Function: vl-assign-strip

    (defun vl-assign-strip (x)
      (declare (xargs :guard (vl-assign-p x)))
      (let ((__function__ 'vl-assign-strip))
        (declare (ignorable __function__))
        (b* (((vl-assign x) x))
          (change-vl-assign x
                            :lvalue (vl-expr-strip x.lvalue)
                            :expr (vl-expr-strip x.expr)
                            :delay nil
                            :strength nil
                            :loc *vl-fakeloc*
                            :atts nil))))

    Theorem: vl-assign-p-of-vl-assign-strip

    (defthm vl-assign-p-of-vl-assign-strip
      (b* ((x-strip (vl-assign-strip x)))
        (vl-assign-p x-strip))
      :rule-classes :rewrite)

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

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

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

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