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

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

    Definitions and Theorems

    Function: vl-modinst-strip

    (defun vl-modinst-strip (x)
      (declare (xargs :guard (vl-modinst-p x)))
      (let ((__function__ 'vl-modinst-strip))
        (declare (ignorable __function__))
        (b* (((vl-modinst x) (vl-modinst-fix x)))
          (b* ((portargs (vl-arguments-strip x.portargs))
               (paramargs (vl-paramargs-strip x.paramargs))
               (loc ((lambda (x)
                       (declare (ignore x))
                       *vl-fakeloc*)
                     x.loc))
               (range (vl-maybe-range-strip x.range))
               (atts ((lambda (x) (declare (ignore x)) nil)
                      x.atts))
               (delay (vl-maybe-gatedelay-strip x.delay)))
            (change-vl-modinst x
                               :portargs portargs
                               :paramargs paramargs
                               :loc loc
                               :range range
                               :atts atts
                               :delay delay)))))

    Theorem: vl-modinst-p-of-vl-modinst-strip

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

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

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

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

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