• 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
            • Vl-dupeinst-alistp
            • Vl-modulelist-dupeinst-check
            • Vl-dupeinst-key-p
            • Vl-maybe-warn-dupeinst
            • Vl-warnings-for-dupeinst-alist
            • Vl-make-dupeinst-alist
            • Vl-module-dupeinst-check
              • Vl-dupeinst-trivial-p
              • Vl-design-dupeinst-check
              • Vl-pp-dupeinst-key
              • Vl-pp-dupeinst-alist
            • Oddexpr-check
            • Remove-toohard
            • Qmarksize-check
            • Portcheck
            • Duplicate-detect
            • Vl-print-certain-warnings
            • 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
    • Dupeinst-check

    Vl-module-dupeinst-check

    Signature
    (vl-module-dupeinst-check x ss) → new-x
    Arguments
    x — Guard (vl-module-p x).
    ss — Guard (vl-scopestack-p ss).
    Returns
    new-x — Type (vl-module-p new-x).

    Definitions and Theorems

    Function: vl-module-dupeinst-check

    (defun vl-module-dupeinst-check (x ss)
     (declare (xargs :guard (and (vl-module-p x)
                                 (vl-scopestack-p ss))))
     (let ((__function__ 'vl-module-dupeinst-check))
      (declare (ignorable __function__))
      (b*
       (((vl-module x) x)
        (- (and *dupeinst-check-debug*
                (cw "Dupeinst checking ~s0~%" x.name)))
        (ss (vl-scopestack-push x ss))
        (modinsts (vl-module->flatten-modinsts x))
        (alist (vl-make-dupeinst-alist modinsts))
        (warnings (vl-warnings-for-dupeinst-alist alist ss x.warnings)))
       (change-vl-module x
                         :warnings warnings))))

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

    (defthm vl-module-p-of-vl-module-dupeinst-check
      (b* ((new-x (vl-module-dupeinst-check x ss)))
        (vl-module-p new-x))
      :rule-classes :rewrite)