• 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
            • Vl-modulelist-split
            • Vl-plainarg-split
            • Vl-assign-split
            • Vl-expr-split
            • Vl-arguments-split
            • Vl-plainarglist-split
            • Vl-gateinstlist-split
            • Vl-modinstlist-split
            • Vl-assignlist-split
            • Vl-module-split
            • Vl-modinst-split
              • Vl-gateinst-split
              • Vl-nosplitlist-p
              • Vl-nosplit-p
              • Vl-design-split
              • *vl-tmp-wire-atts*
            • 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
            • 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
    • Split

    Vl-modinst-split

    Signature
    (vl-modinst-split x delta) → (mv new-x delta)
    Arguments
    x — Guard (vl-modinst-p x).
    delta — Guard (vl-delta-p delta).
    Returns
    new-x — Type (vl-modinst-p new-x), given the guard.
    delta — Type (vl-delta-p delta), given the guard.

    Definitions and Theorems

    Function: vl-modinst-split

    (defun vl-modinst-split (x delta)
      (declare (xargs :guard (and (vl-modinst-p x)
                                  (vl-delta-p delta))))
      (let ((__function__ 'vl-modinst-split))
        (declare (ignorable __function__))
        (b* (((vl-modinst x) x)
             ((mv new-args delta)
              (vl-arguments-split x.portargs x delta))
             (x-prime (change-vl-modinst x
                                         :portargs new-args)))
          (mv x-prime delta))))

    Theorem: vl-modinst-p-of-vl-modinst-split.new-x

    (defthm vl-modinst-p-of-vl-modinst-split.new-x
      (implies (and (force (vl-modinst-p x))
                    (force (vl-delta-p delta)))
               (b* (((mv ?new-x ?delta)
                     (vl-modinst-split x delta)))
                 (vl-modinst-p new-x)))
      :rule-classes :rewrite)

    Theorem: vl-delta-p-of-vl-modinst-split.delta

    (defthm vl-delta-p-of-vl-modinst-split.delta
      (implies (and (force (vl-modinst-p x))
                    (force (vl-delta-p delta)))
               (b* (((mv ?new-x ?delta)
                     (vl-modinst-split x delta)))
                 (vl-delta-p delta)))
      :rule-classes :rewrite)