• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
            • Vl-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
            • Vl-lint-report
            • Vl-lintresult
              • Vl-lintresult-fix
                • Make-vl-lintresult
                • Vl-lintresult-equiv
                • Vl-lintresult-p
                • Vl-lintresult->sv-modalist
                • Vl-lintresult->sd-probs
                • Vl-lintresult->reportcard
                • Vl-lintresult->design-orig
                • Change-vl-lintresult
                • Vl-lintresult->design0
                • Vl-lintresult->design
              • Vl::vl-design-sv-use-set
              • Oddexpr-check
              • Leftright-check
              • Duplicate-detect
              • Selfassigns
              • *vl-lint-help*
              • Arith-compare-check
              • Dupeinst-check
              • Qmarksize-check
              • Lint-whole-file-suppression
              • Run-vl-lint-main
              • Logicassign
              • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-lintresult

    Vl-lintresult-fix

    Fixing function for vl-lintresult structures.

    Signature
    (vl-lintresult-fix x) → new-x
    Arguments
    x — Guard (vl-lintresult-p x).
    Returns
    new-x — Type (vl-lintresult-p new-x).

    Definitions and Theorems

    Function: vl-lintresult-fix$inline

    (defun vl-lintresult-fix$inline (x)
     (declare (xargs :guard (vl-lintresult-p x)))
     (let ((__function__ 'vl-lintresult-fix))
      (declare (ignorable __function__))
      (mbe
        :logic
        (b*
         ((design (vl-design-fix (cdr (std::da-nth 0 (cdr x)))))
          (design0 (vl-design-fix (cdr (std::da-nth 1 (cdr x)))))
          (design-orig (vl-design-fix (cdr (std::da-nth 2 (cdr x)))))
          (sv-modalist (sv::modalist-fix (cdr (std::da-nth 3 (cdr x)))))
          (reportcard (vl-reportcard-fix (cdr (std::da-nth 4 (cdr x)))))
          (sd-probs (sd-problemlist-fix (cdr (std::da-nth 5 (cdr x))))))
         (cons :vl-lintresult (list (cons 'design design)
                                    (cons 'design0 design0)
                                    (cons 'design-orig design-orig)
                                    (cons 'sv-modalist sv-modalist)
                                    (cons 'reportcard reportcard)
                                    (cons 'sd-probs sd-probs))))
        :exec x)))

    Theorem: vl-lintresult-p-of-vl-lintresult-fix

    (defthm vl-lintresult-p-of-vl-lintresult-fix
      (b* ((new-x (vl-lintresult-fix$inline x)))
        (vl-lintresult-p new-x))
      :rule-classes :rewrite)

    Theorem: vl-lintresult-fix-when-vl-lintresult-p

    (defthm vl-lintresult-fix-when-vl-lintresult-p
      (implies (vl-lintresult-p x)
               (equal (vl-lintresult-fix x) x)))

    Function: vl-lintresult-equiv$inline

    (defun vl-lintresult-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (vl-lintresult-p acl2::x)
                                  (vl-lintresult-p acl2::y))))
      (equal (vl-lintresult-fix acl2::x)
             (vl-lintresult-fix acl2::y)))

    Theorem: vl-lintresult-equiv-is-an-equivalence

    (defthm vl-lintresult-equiv-is-an-equivalence
      (and (booleanp (vl-lintresult-equiv x y))
           (vl-lintresult-equiv x x)
           (implies (vl-lintresult-equiv x y)
                    (vl-lintresult-equiv y x))
           (implies (and (vl-lintresult-equiv x y)
                         (vl-lintresult-equiv y z))
                    (vl-lintresult-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: vl-lintresult-equiv-implies-equal-vl-lintresult-fix-1

    (defthm vl-lintresult-equiv-implies-equal-vl-lintresult-fix-1
      (implies (vl-lintresult-equiv acl2::x x-equiv)
               (equal (vl-lintresult-fix acl2::x)
                      (vl-lintresult-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: vl-lintresult-fix-under-vl-lintresult-equiv

    (defthm vl-lintresult-fix-under-vl-lintresult-equiv
      (vl-lintresult-equiv (vl-lintresult-fix acl2::x)
                           acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-vl-lintresult-fix-1-forward-to-vl-lintresult-equiv

    (defthm equal-of-vl-lintresult-fix-1-forward-to-vl-lintresult-equiv
      (implies (equal (vl-lintresult-fix acl2::x)
                      acl2::y)
               (vl-lintresult-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-vl-lintresult-fix-2-forward-to-vl-lintresult-equiv

    (defthm equal-of-vl-lintresult-fix-2-forward-to-vl-lintresult-equiv
      (implies (equal acl2::x (vl-lintresult-fix acl2::y))
               (vl-lintresult-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: vl-lintresult-equiv-of-vl-lintresult-fix-1-forward

    (defthm vl-lintresult-equiv-of-vl-lintresult-fix-1-forward
      (implies (vl-lintresult-equiv (vl-lintresult-fix acl2::x)
                                    acl2::y)
               (vl-lintresult-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)

    Theorem: vl-lintresult-equiv-of-vl-lintresult-fix-2-forward

    (defthm vl-lintresult-equiv-of-vl-lintresult-fix-2-forward
      (implies (vl-lintresult-equiv acl2::x (vl-lintresult-fix acl2::y))
               (vl-lintresult-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)