• 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
          • Drop-blankports
          • Clean-warnings
          • Addinstnames
          • Custom-transform-hooks
          • Annotate
            • Make-implicit-wires
            • Resolve-indexing
            • Origexprs
              • Vl-namedparamvaluelist-origexprs
              • Vl-paramvaluelist-origexprs
              • Vl-plainarglist-origexprs
              • Vl-namedarglist-origexprs
              • Vl-gateinstlist-origexprs
              • Vl-modinstlist-origexprs
              • Vl-initiallist-origexprs
              • Vl-modulelist-origexprs
              • Vl-evatomlist-origexprs
              • Vl-assignlist-origexprs
              • Vl-alwayslist-origexprs
              • Vl-rangelist-origexprs
              • Vl-expr-origexprs
              • Vl-pp-origexpr
              • Vl-maybe-delayoreventcontrol-origexprs
              • Vl-repeateventcontrol-origexprs
              • Vl-delayoreventcontrol-origexprs
              • Vl-namedparamvalue-origexprs
              • Vl-module-origexprs
              • Vl-maybe-paramvalue-origexprs
              • Vl-maybe-gatedelay-origexprs
              • Vl-eventcontrol-origexprs
                • Vl-paramvalue-origexprs
                • Vl-paramargs-origexprs
                • Vl-nonatom->original-operator
                • Vl-modinst-origexprs
                • Vl-maybe-range-origexprs
                • Vl-gateinst-origexprs
                • Vl-gatedelay-origexprs
                • Vl-delaycontrol-origexprs
                • Vl-arguments-origexprs
                • Vl-plainarg-origexprs
                • Vl-namedarg-origexprs
                • Vl-maybe-expr-origexprs
                • Vl-initial-origexprs
                • Vl-assign-origexprs
                • Vl-range-origexprs
                • Vl-evatom-origexprs
                • Vl-design-origexprs
                • Vl-always-origexprs
              • Argresolve
              • Portdecl-sign
              • Designwires
              • Udp-elim
              • Vl-annotate-design
            • 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
    • Origexprs

    Vl-eventcontrol-origexprs

    Add VL_ORIG_EXPR annotations throughout a vl-eventcontrol-p

    Signature
    (vl-eventcontrol-origexprs x) → new-x
    Arguments
    x — Guard (vl-eventcontrol-p x).
    Returns
    new-x — Type (vl-eventcontrol-p new-x).

    Definitions and Theorems

    Function: vl-eventcontrol-origexprs

    (defun vl-eventcontrol-origexprs (x)
      (declare (xargs :guard (vl-eventcontrol-p x)))
      (let ((__function__ 'vl-eventcontrol-origexprs))
        (declare (ignorable __function__))
        (let ((x (vl-eventcontrol-fix x)))
          (b* (((vl-eventcontrol x)))
            (change-vl-eventcontrol
                 x
                 :atoms (vl-evatomlist-origexprs x.atoms))))))

    Theorem: vl-eventcontrol-p-of-vl-eventcontrol-origexprs

    (defthm vl-eventcontrol-p-of-vl-eventcontrol-origexprs
      (b* ((new-x (vl-eventcontrol-origexprs x)))
        (vl-eventcontrol-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-eventcontrol-origexprs-of-vl-eventcontrol-fix-x

    (defthm vl-eventcontrol-origexprs-of-vl-eventcontrol-fix-x
      (equal (vl-eventcontrol-origexprs (vl-eventcontrol-fix x))
             (vl-eventcontrol-origexprs x)))

    Theorem: vl-eventcontrol-origexprs-vl-eventcontrol-equiv-congruence-on-x

    (defthm
        vl-eventcontrol-origexprs-vl-eventcontrol-equiv-congruence-on-x
      (implies (vl-eventcontrol-equiv x x-equiv)
               (equal (vl-eventcontrol-origexprs x)
                      (vl-eventcontrol-origexprs x-equiv)))
      :rule-classes :congruence)