• 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
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
          • Expr-simp
          • Trunc
          • Always-top
          • Gatesplit
          • Gate-elim
          • Expression-optimization
          • Elim-supplies
          • Wildelim
            • Vl-design-wildelim
              • Vl-modulelist-wildelim
              • Vl-packeddimensionlist-wildelim
              • Vl-namedparamvaluelist-wildelim
              • Vl-paramvaluelist-wildelim
              • Vl-plainarglist-wildelim
              • Vl-namedarglist-wildelim
              • Vl-maybe-delayoreventcontrol-wildelim
              • Vl-enumitemlist-wildelim
              • Vl-evatomlist-wildelim
              • Vl-rangelist-wildelim
              • Vl-maybe-packeddimension-wildelim
              • Vl-repeateventcontrol-wildelim
              • Vl-paramtype-wildelim
              • Vl-delayoreventcontrol-wildelim
              • Vl-packeddimension-wildelim
              • Vl-maybe-paramvalue-wildelim
              • Vl-namedparamvalue-wildelim
              • Vl-maybe-gatedelay-wildelim
              • Vl-maybe-datatype-wildelim
              • Vl-paramdecllist-wildelim
              • Vl-portdecllist-wildelim
              • Vl-paramargs-wildelim
              • Vl-maybe-range-wildelim
              • Vl-maybe-expr-wildelim
              • Vl-gateinstlist-wildelim
              • Vl-gatedelay-wildelim
              • Vl-eventcontrol-wildelim
              • Vl-enumbasetype-wildelim
              • Vl-delaycontrol-wildelim
              • Vl-arguments-wildelim
              • Vl-vardecllist-wildelim
              • Vl-plainarg-wildelim
              • Vl-paramvalue-wildelim
              • Vl-namedarg-wildelim
              • Vl-modinstlist-wildelim
              • Vl-initiallist-wildelim
              • Vl-enumitem-wildelim
              • Vl-assignlist-wildelim
              • Vl-alwayslist-wildelim
              • Vl-portlist-wildelim
              • Vl-exprlist-wildelim
              • Vl-range-wildelim
              • Vl-evatom-wildelim
              • Vl-modinst-wildelim
              • Vl-gateinst-wildelim
              • Vl-vardecl-wildelim
              • Vl-assign-wildelim
              • Vl-portdecl-wildelim
              • Vl-port-wildelim
              • Vl-paramdecl-wildelim
              • Vl-initial-wildelim
              • Vl-always-wildelim
              • Vl-module-wildelim
              • Vl-expr-wildelim
            • Drop-blankports
            • Clean-warnings
            • Addinstnames
            • Custom-transform-hooks
            • Annotate
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-design-wildelim

    Vl-module-wildelim

    Signature
    (vl-module-wildelim x) → new-x
    Arguments
    x — Guard (vl-module-p x).
    Returns
    new-x — Type (vl-module-p new-x).

    Definitions and Theorems

    Function: vl-module-wildelim

    (defun vl-module-wildelim (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-module-wildelim))
        (declare (ignorable __function__))
        (b* ((x (vl-module-fix x))
             ((when (vl-module->hands-offp x)) x)
             ((vl-module x) x)
             (warnings x.warnings)
             (genblob (vl-module->genblob x))
             ((mv warnings new-genblob)
              (vl-genblob-wildelim genblob warnings))
             (mod (change-vl-module x
                                    :warnings warnings)))
          (vl-genblob->module new-genblob mod))))

    Theorem: vl-module-p-of-vl-module-wildelim

    (defthm vl-module-p-of-vl-module-wildelim
      (b* ((new-x (vl-module-wildelim x)))
        (vl-module-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-module-wildelim-of-vl-module-fix-x

    (defthm vl-module-wildelim-of-vl-module-fix-x
      (equal (vl-module-wildelim (vl-module-fix x))
             (vl-module-wildelim x)))

    Theorem: vl-module-wildelim-vl-module-equiv-congruence-on-x

    (defthm vl-module-wildelim-vl-module-equiv-congruence-on-x
      (implies (vl-module-equiv x x-equiv)
               (equal (vl-module-wildelim x)
                      (vl-module-wildelim x-equiv)))
      :rule-classes :congruence)