• 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
              • Vl-dupeinst-alistp
              • Vl-modulelist-dupeinst-check
              • Vl-dupeinst-key-p
              • Vl-maybe-warn-dupeinst
              • Vl-warnings-for-dupeinst-alist
              • Vl-make-dupeinst-alist
                • Vl-make-dupeinst-alist-aux
                • Vl-module-dupeinst-check
                • Vl-dupeinst-trivial-p
                • Vl-design-dupeinst-check
                • Vl-pp-dupeinst-key
                • Vl-pp-dupeinst-alist
              • 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-make-dupeinst-alist

    Vl-make-dupeinst-alist-aux

    Signature
    (vl-make-dupeinst-alist-aux x alist) → new-alist
    Arguments
    x — Guard (vl-modinstlist-p x).
    alist — Guard (vl-dupeinst-alistp alist).
    Returns
    new-alist — Type (vl-dupeinst-alistp new-alist), given the guard.

    Definitions and Theorems

    Function: vl-make-dupeinst-alist-aux

    (defun vl-make-dupeinst-alist-aux (x alist)
     (declare (xargs :guard (and (vl-modinstlist-p x)
                                 (vl-dupeinst-alistp alist))))
     (let ((__function__ 'vl-make-dupeinst-alist-aux))
      (declare (ignorable __function__))
      (b*
       (((when (atom x)) alist)
        (x1 (car x))
        ((vl-modinst x1) x1)
        ((when (eq (vl-arguments-kind x1.portargs)
                   :vl-arguments-named))
         (and *dupeinst-check-debug*
              (vl-cw-ps-seq
                   (vl-cw "~a0: Arguments not resolved, skipping!~%"
                          x1)))
         (vl-make-dupeinst-alist-aux (cdr x)
                                     alist))
        ((mv inputs ?outputs inouts unknowns)
         (vl-partition-plainargs (vl-arguments-plain->args x1.portargs)
                                 nil nil nil nil))
        ((unless (and (atom inouts) (atom unknowns)))
         (and
           *dupeinst-check-debug*
           (vl-cw-ps-seq
                (vl-cw "~a0: Arguments too hard (inouts or unknowns).~%"
                       x1)))
         (vl-make-dupeinst-alist-aux (cdr x)
                                     alist))
        (ins (vl-plainarglist->exprs inputs))
        ((when (member nil ins))
         (and
            *dupeinst-check-debug*
            (vl-cw-ps-seq (vl-cw "~a0: Blanks in argument list.~%" x1)))
         (vl-make-dupeinst-alist-aux (cdr x)
                                     alist))
        (ins (vl-exprlist-strip ins))
        (key (make-vl-dupeinst-key :modname x1.modname
                                   :inputs ins))
        (look (hons-get key alist))
        (alist (hons-acons key (cons x1 (cdr look))
                           alist)))
       (vl-make-dupeinst-alist-aux (cdr x)
                                   alist))))

    Theorem: vl-dupeinst-alistp-of-vl-make-dupeinst-alist-aux

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