• 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
        • Lint
          • Vl-lintconfig-p
          • Lucid
          • Skip-detection
          • Vl-lintresult-p
          • Lint-warning-suppression
          • Condcheck
          • Selfassigns
          • Leftright-check
          • Dupeinst-check
          • Oddexpr-check
          • Remove-toohard
          • Qmarksize-check
          • Portcheck
          • Duplicate-detect
          • Vl-print-certain-warnings
          • Duperhs-check
          • *vl-lint-help*
          • Lint-stmt-rewrite
            • Vl-initiallist-lint-stmt-rewrite
            • Vl-modulelist-lint-stmt-rewrite
            • Vl-alwayslist-lint-stmt-rewrite
            • Vl-module-lint-stmt-rewrite
              • Vl-lint-throwaway-fn-p
              • Vl-initial-lint-stmt-rewrite
              • Vl-always-lint-stmt-rewrite
              • Vl-design-lint-stmt-rewrite
              • Vl-lint-stmt-rewrite
            • Drop-missing-submodules
            • Check-case
            • Drop-user-submodules
            • Check-namespace
            • Vl-lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Lint-stmt-rewrite

    Vl-module-lint-stmt-rewrite

    Signature
    (vl-module-lint-stmt-rewrite 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-lint-stmt-rewrite

    (defun vl-module-lint-stmt-rewrite (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-module-lint-stmt-rewrite))
        (declare (ignorable __function__))
        (b* ((x (vl-module-fix x))
             ((vl-module x) x)
             ((unless (or x.alwayses x.initials)) x)
             (alwayses (vl-alwayslist-lint-stmt-rewrite x.alwayses))
             (initials (vl-initiallist-lint-stmt-rewrite x.initials)))
          (change-vl-module x
                            :alwayses alwayses
                            :initials initials))))

    Theorem: vl-module-p-of-vl-module-lint-stmt-rewrite

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

    Theorem: vl-module-lint-stmt-rewrite-of-vl-module-fix-x

    (defthm vl-module-lint-stmt-rewrite-of-vl-module-fix-x
      (equal (vl-module-lint-stmt-rewrite (vl-module-fix x))
             (vl-module-lint-stmt-rewrite x)))

    Theorem: vl-module-lint-stmt-rewrite-vl-module-equiv-congruence-on-x

    (defthm vl-module-lint-stmt-rewrite-vl-module-equiv-congruence-on-x
      (implies (vl-module-equiv x x-equiv)
               (equal (vl-module-lint-stmt-rewrite x)
                      (vl-module-lint-stmt-rewrite x-equiv)))
      :rule-classes :congruence)