• 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
            • Edgesynth
            • Stmtrewrite
            • Cblock
            • Vl-always-convert-regports
            • Vl-always-convert-regs
            • Stmttemps
            • Edgesplit
            • Vl-always-check-reg
            • Vl-convert-regs
            • Latchsynth
            • Vl-always-check-regs
            • Vl-match-always-at-some-edges
            • Unelse
            • Vl-always-convert-reg
            • Vl-design-always-backend
            • Vl-stmt-guts
            • Vl-always-convert-regport
            • Vl-always-scary-regs
            • Eliminitial
            • Ifmerge
              • Vl-modulelist-ifmerge
              • Vl-stmt-ifmerge
              • Vl-alwayslist-ifmerge
              • Vl-always-ifmerge
              • Vl-module-ifmerge
                • Vl-design-ifmerge
              • Vl-edge-control-p
              • Elimalways
            • Gatesplit
            • Gate-elim
            • Expression-optimization
            • Elim-supplies
            • 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
    • Ifmerge

    Vl-module-ifmerge

    Signature
    (vl-module-ifmerge 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-ifmerge

    (defun vl-module-ifmerge (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-module-ifmerge))
        (declare (ignorable __function__))
        (b* (((vl-module x) x)
             ((when (vl-module->hands-offp x))
              (vl-module-fix x))
             ((unless x.alwayses) (vl-module-fix x))
             ((mv warnings alwayses)
              (vl-alwayslist-ifmerge x.alwayses x.warnings)))
          (change-vl-module x
                            :warnings warnings
                            :alwayses alwayses))))

    Theorem: vl-module-p-of-vl-module-ifmerge

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