• 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-modulelist-duplicate-detect
            • Vl-duplicate-assign-warnings
            • Vl-duplicate-modinst-warnings
            • Vl-duplicate-gateinst-warnings
            • Vl-duplicate-modinst-locations
            • Vl-duplicate-gateinst-locations
            • Vl-duplicate-assign-locations
            • Vl-module-duplicate-detect
            • Vl-make-duplicate-warning
            • Vl-design-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
    • Duplicate-detect

    Vl-design-duplicate-detect

    Top-level duplicate-detect check.

    Signature
    (vl-design-duplicate-detect x) → new-x
    Arguments
    x — Guard (vl-design-p x).
    Returns
    new-x — Type (vl-design-p new-x).

    Definitions and Theorems

    Function: vl-design-duplicate-detect

    (defun vl-design-duplicate-detect (x)
      (declare (xargs :guard (vl-design-p x)))
      (let ((__function__ 'vl-design-duplicate-detect))
        (declare (ignorable __function__))
        (b* ((x (vl-design-fix x))
             ((vl-design x) x))
          (change-vl-design
               x
               :mods (vl-modulelist-duplicate-detect x.mods)))))

    Theorem: vl-design-p-of-vl-design-duplicate-detect

    (defthm vl-design-p-of-vl-design-duplicate-detect
      (b* ((new-x (vl-design-duplicate-detect x)))
        (vl-design-p new-x))
      :rule-classes :rewrite)