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

    Vl-make-duperhs-alist-aux

    Signature
    (vl-make-duperhs-alist-aux x alist) → new-alist
    Arguments
    x — Guard (vl-assignlist-p x).
    alist — Guard (vl-duperhs-alist-p alist).
    Returns
    new-alist — Type (vl-duperhs-alist-p new-alist).

    Definitions and Theorems

    Function: vl-make-duperhs-alist-aux

    (defun vl-make-duperhs-alist-aux (x alist)
      (declare (xargs :guard (and (vl-assignlist-p x)
                                  (vl-duperhs-alist-p alist))))
      (let ((__function__ 'vl-make-duperhs-alist-aux))
        (declare (ignorable __function__))
        (b* ((alist (vl-duperhs-alist-fix alist))
             ((when (atom x)) alist)
             ((vl-assign x1) (vl-assign-fix (car x)))
             (rhs1 (hons-copy (vl-expr-strip x1.expr)))
             (look (hons-get rhs1 alist))
             (alist (hons-acons rhs1 (cons x1 (cdr look))
                                alist)))
          (vl-make-duperhs-alist-aux (cdr x)
                                     alist))))

    Theorem: vl-duperhs-alist-p-of-vl-make-duperhs-alist-aux

    (defthm vl-duperhs-alist-p-of-vl-make-duperhs-alist-aux
      (b* ((new-alist (vl-make-duperhs-alist-aux x alist)))
        (vl-duperhs-alist-p new-alist))
      :rule-classes :rewrite)

    Theorem: vl-make-duperhs-alist-aux-of-vl-assignlist-fix-x

    (defthm vl-make-duperhs-alist-aux-of-vl-assignlist-fix-x
      (equal (vl-make-duperhs-alist-aux (vl-assignlist-fix x)
                                        alist)
             (vl-make-duperhs-alist-aux x alist)))

    Theorem: vl-make-duperhs-alist-aux-vl-assignlist-equiv-congruence-on-x

    (defthm
          vl-make-duperhs-alist-aux-vl-assignlist-equiv-congruence-on-x
      (implies (vl-assignlist-equiv x x-equiv)
               (equal (vl-make-duperhs-alist-aux x alist)
                      (vl-make-duperhs-alist-aux x-equiv alist)))
      :rule-classes :congruence)

    Theorem: vl-make-duperhs-alist-aux-of-vl-duperhs-alist-fix-alist

    (defthm vl-make-duperhs-alist-aux-of-vl-duperhs-alist-fix-alist
      (equal (vl-make-duperhs-alist-aux x (vl-duperhs-alist-fix alist))
             (vl-make-duperhs-alist-aux x alist)))

    Theorem: vl-make-duperhs-alist-aux-vl-duperhs-alist-equiv-congruence-on-alist

    (defthm
     vl-make-duperhs-alist-aux-vl-duperhs-alist-equiv-congruence-on-alist
     (implies (vl-duperhs-alist-equiv alist alist-equiv)
              (equal (vl-make-duperhs-alist-aux x alist)
                     (vl-make-duperhs-alist-aux x alist-equiv)))
     :rule-classes :congruence)