• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
        • Mlib
          • Scopestack
          • Hid-tools
          • Filtering-by-name
          • Vl-interface-mocktype
          • Stripping-functions
            • Vl-function-specialization-map-strip
            • Vl-portdecl-or-blockitem-list-strip
            • Vl-maybe-delayoreventcontrol-strip
            • Vl-portdecl-or-blockitem-strip
            • Vl-fundecl-strip
            • Vl-function-specialization-strip
            • Vl-taskdecl-strip
            • Vl-repeateventcontrol-strip
            • Vl-delayoreventcontrol-strip
            • Vl-sequence-strip
            • Vl-property-strip
            • Vl-paramtype-strip
            • Vl-modinst-strip
            • Vl-maybe-gatedelay-strip
            • Vl-gateinst-strip
            • Vl-assign-strip
            • Vl-vardecl-strip
            • Vl-propspec-strip
            • Vl-propport-strip
            • Vl-portdecl-strip
            • Vl-paramdecl-strip
            • Vl-maybe-exprdist-strip
            • Vl-letdecl-strip
            • Vl-initial-strip
            • Vl-blockitem-strip
            • Vl-arguments-strip
            • Vl-always-strip
              • Vl-alias-strip
              • Vl-vardecllist-strip
              • Vl-typedeflist-strip
              • Vl-repetition-strip
              • Vl-propportlist-strip
              • Vl-portdecllist-strip
              • Vl-plainarglist-strip
              • Vl-paramdecllist-strip
              • Vl-namedarglist-strip
              • Vl-modinstlist-strip
              • Vl-maybe-rhs-strip
              • Vl-gateinstlist-strip
              • Vl-gatedelay-strip
              • Vl-final-strip
              • Vl-exprdistlist-strip
              • Vl-eventcontrol-strip
              • Vl-distitem-strip
              • Vl-delaycontrol-strip
              • Vl-blockitemlist-strip
              • Vl-typedef-strip
              • Vl-rhs-strip
              • Vl-plainarg-strip
              • Vl-namedarg-strip
              • Vl-importlist-strip
              • Vl-import-strip
              • Vl-exprdist-strip
              • Vl-distlist-strip
              • Vl-assignlist-strip
              • Vl-expr-strip
            • Genblob
            • Expr-tools
            • Extract-vl-types
            • Hierarchy
            • Range-tools
            • Finding-by-name
            • Stmt-tools
            • Modnamespace
            • Flat-warnings
            • Reordering-by-name
            • Datatype-tools
            • Syscalls
            • Allexprs
            • Lvalues
            • Port-tools
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Stripping-functions

    Vl-always-strip

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

    Definitions and Theorems

    Function: vl-always-strip

    (defun vl-always-strip (x)
      (declare (xargs :guard (vl-always-p x)))
      (let ((__function__ 'vl-always-strip))
        (declare (ignorable __function__))
        (b* (((vl-always x) (vl-always-fix x)))
          (b* ((stmt (vl-stmt-strip x.stmt))
               (atts ((lambda (x) (declare (ignore x)) nil)
                      x.atts))
               (loc ((lambda (x)
                       (declare (ignore x))
                       *vl-fakeloc*)
                     x.loc)))
            (change-vl-always x
                              :stmt stmt
                              :atts atts
                              :loc loc)))))

    Theorem: vl-always-p-of-vl-always-strip

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

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

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

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

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