• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • 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-duperhs-alistp
            • Vl-modulelist-duperhs-check
            • Vl-duperhs-too-trivial-p
            • Vl-maybe-warn-duperhs
            • Vl-warnings-for-duperhs-alist
            • Vl-module-duperhs-check
              • Vl-make-duperhs-alist-aux
              • Vl-make-duperhs-alist
              • Vl-design-duperhs-check
            • *vl-lint-help*
            • 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
    • Duperhs-check

    Vl-module-duperhs-check

    Look for duplicated rhses in a module, and add warnings about them.

    Signature
    (vl-module-duperhs-check x) → new-x
    Arguments
    x — Guard (vl-module-p x).
    Returns
    new-x — A copy of X, perhaps extended with new warnings.
        Type (vl-module-p new-x), given the guard.

    Definitions and Theorems

    Function: vl-module-duperhs-check

    (defun vl-module-duperhs-check (x)
     (declare (xargs :guard (vl-module-p x)))
     (let ((__function__ 'vl-module-duperhs-check))
       (declare (ignorable __function__))
       (b* (((vl-module x) x)
            (alist (vl-make-duperhs-alist x.assigns))
            (warnings (vl-warnings-for-duperhs-alist alist x.warnings)))
         (change-vl-module x
                           :warnings warnings))))

    Theorem: vl-module-p-of-vl-module-duperhs-check

    (defthm vl-module-p-of-vl-module-duperhs-check
      (implies (and (force (vl-module-p x)))
               (b* ((new-x (vl-module-duperhs-check x)))
                 (vl-module-p new-x)))
      :rule-classes :rewrite)