• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • Vl-plainarglist-clean-selects
            • Vl-namedarglist-clean-selects
            • Vl-gateinstlist-clean-selects
            • Vl-modinstlist-clean-selects
            • Vl-initiallist-clean-selects
            • Vl-modulelist-clean-selects
            • Vl-assignlist-clean-selects
            • Vl-alwayslist-clean-selects
            • Vl-portlist-clean-selects
            • Vl-stmt-clean-selects
            • Vl-module-clean-selects
            • Vl-plainarg-clean-selects
            • Vl-namedarg-clean-selects
            • Vl-gateinst-clean-selects
              • Vl-arguments-clean-selects
              • Vl-port-clean-selects
              • Vl-modinst-clean-selects
              • Vl-maybe-expr-clean-selects
              • Vl-initial-clean-selects
              • Vl-assign-clean-selects
              • Vl-always-clean-selects
              • Vl-design-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
    • Clean-selects

    Vl-gateinst-clean-selects

    Signature
    (vl-gateinst-clean-selects x ss) → new-x
    Arguments
    x — Guard (vl-gateinst-p x).
    ss — Guard (vl-scopestack-p ss).
    Returns
    new-x — Type (vl-gateinst-p new-x).

    Definitions and Theorems

    Function: vl-gateinst-clean-selects

    (defun vl-gateinst-clean-selects (x ss)
      (declare (xargs :guard (and (vl-gateinst-p x)
                                  (vl-scopestack-p ss))))
      (declare (ignorable x ss))
      (let ((__function__ 'vl-gateinst-clean-selects))
        (declare (ignorable __function__))
        (b* (((vl-gateinst x) x))
          (change-vl-gateinst
               x
               :args (vl-plainarglist-clean-selects x.args ss)))))

    Theorem: vl-gateinst-p-of-vl-gateinst-clean-selects

    (defthm vl-gateinst-p-of-vl-gateinst-clean-selects
      (b* ((new-x (vl-gateinst-clean-selects x ss)))
        (vl-gateinst-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-gateinst-clean-selects-of-vl-gateinst-fix-x

    (defthm vl-gateinst-clean-selects-of-vl-gateinst-fix-x
      (equal (vl-gateinst-clean-selects (vl-gateinst-fix x)
                                        ss)
             (vl-gateinst-clean-selects x ss)))

    Theorem: vl-gateinst-clean-selects-vl-gateinst-equiv-congruence-on-x

    (defthm vl-gateinst-clean-selects-vl-gateinst-equiv-congruence-on-x
      (implies (vl-gateinst-equiv x x-equiv)
               (equal (vl-gateinst-clean-selects x ss)
                      (vl-gateinst-clean-selects x-equiv ss)))
      :rule-classes :congruence)

    Theorem: vl-gateinst-clean-selects-of-vl-scopestack-fix-ss

    (defthm vl-gateinst-clean-selects-of-vl-scopestack-fix-ss
      (equal (vl-gateinst-clean-selects x (vl-scopestack-fix ss))
             (vl-gateinst-clean-selects x ss)))

    Theorem: vl-gateinst-clean-selects-vl-scopestack-equiv-congruence-on-ss

    (defthm
         vl-gateinst-clean-selects-vl-scopestack-equiv-congruence-on-ss
      (implies (vl-scopestack-equiv ss ss-equiv)
               (equal (vl-gateinst-clean-selects x ss)
                      (vl-gateinst-clean-selects x ss-equiv)))
      :rule-classes :congruence)