• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
            • Vl-modulelist-remove-toohard
            • Vl-modinstlist-remove-toohard
            • Vl-initiallist-remove-toohard
            • Vl-gateinstlist-remove-toohard
            • Vl-assignlist-remove-toohard
            • Vl-alwayslist-remove-toohard
            • Vl-module-remove-toohard
              • Vl-atom-toohard
              • Vl-design-remove-toohard
              • Vl-op-toohard-p
              • *toohard-ops*
              • *not-toohard-ops*
            • 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
    • Remove-toohard

    Vl-module-remove-toohard

    Signature
    (vl-module-remove-toohard 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-remove-toohard

    (defun vl-module-remove-toohard (x)
      (declare (xargs :guard (vl-module-p x)))
      (let ((__function__ 'vl-module-remove-toohard))
        (declare (ignorable __function__))
        (b* (((vl-module x) x)
             (warnings x.warnings)
             ((mv warnings assigns)
              (vl-assignlist-remove-toohard x.assigns warnings))
             ((mv warnings modinsts)
              (vl-modinstlist-remove-toohard x.modinsts warnings))
             ((mv warnings gateinsts)
              (vl-gateinstlist-remove-toohard x.gateinsts warnings))
             ((mv warnings initials)
              (vl-initiallist-remove-toohard x.initials warnings))
             ((mv warnings alwayses)
              (vl-alwayslist-remove-toohard x.alwayses warnings)))
          (change-vl-module x
                            :warnings warnings
                            :assigns assigns
                            :modinsts modinsts
                            :gateinsts gateinsts
                            :initials initials
                            :alwayses alwayses))))

    Theorem: vl-module-p-of-vl-module-remove-toohard

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

    Theorem: vl-module-remove-toohard-of-vl-module-fix-x

    (defthm vl-module-remove-toohard-of-vl-module-fix-x
      (equal (vl-module-remove-toohard (vl-module-fix x))
             (vl-module-remove-toohard x)))

    Theorem: vl-module-remove-toohard-vl-module-equiv-congruence-on-x

    (defthm vl-module-remove-toohard-vl-module-equiv-congruence-on-x
      (implies (vl-module-equiv x x-equiv)
               (equal (vl-module-remove-toohard x)
                      (vl-module-remove-toohard x-equiv)))
      :rule-classes :congruence)