• 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-print-certain-warnings
          • Duperhs-check
            • Vl-duperhs-alistp
            • Vl-modulelist-duperhs-check
            • Vl-duperhs-too-trivial-p
            • Vl-maybe-warn-duperhs
            • Vl-warnings-for-duperhs-alist
            • Vl-module-duperhs-check
            • Vl-make-duperhs-alist-aux
              • Vl-make-duperhs-alist
              • Vl-design-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
    • 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-alistp alist).
    Returns
    new-alist — Type (vl-duperhs-alistp new-alist), given the guard.

    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-alistp alist))))
      (let ((__function__ 'vl-make-duperhs-alist-aux))
        (declare (ignorable __function__))
        (b* (((when (atom x)) alist)
             (x1 (car x))
             ((vl-assign x1) x1)
             (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-alistp-of-vl-make-duperhs-alist-aux

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