• 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
          • Expression-sizing
          • Occform
          • Oprewrite
          • Expand-functions
          • Delayredux
          • Unparameterization
          • Caseelim
          • Split
          • Selresolve
          • Weirdint-elim
          • Vl-delta
          • Replicate-insts
          • Rangeresolve
          • Propagate
          • Clean-selects
          • Clean-params
          • Blankargs
          • Inline-mods
          • Expr-simp
          • Trunc
          • Always-top
          • Gatesplit
          • Gate-elim
          • Expression-optimization
          • Elim-supplies
          • Wildelim
          • Drop-blankports
          • Clean-warnings
          • Addinstnames
          • Custom-transform-hooks
          • Annotate
            • Make-implicit-wires
              • Vl-modulelist-make-implicit-wires
              • Vl-make-implicit-wires-aux
              • Shadowcheck
              • Vl-stmt-check-undeclared
              • Vl-make-implicit-wires-main
              • Vl-fundecl-check-undeclared
              • Vl-warn-about-undeclared-wires
              • Vl-implicitst
              • Vl-blockitem-check-undeclared
              • Vl-taskdecl-check-undeclared
              • Vl-modinst-exprs-for-implicit-wires
                • Vl-collect-exprs-for-implicit-wires-from-namedargs
                  • Vl-collect-exprs-for-implicit-wires-from-portargs
                  • Vl-collect-exprs-for-implicit-wires-from-namedarg
                • Vl-blockitemlist-check-undeclared
                • Vl-import-check-undeclared
                • Vl-make-ordinary-implicit-wires
                • Vl-gateinst-exprs-for-implicit-wires
                • Vl-remove-declared-wires
                • Vl-make-port-implicit-wires
                • Vl-module-make-implicit-wires
                • Vl-vardecl-exprs-for-implicit-wires
                • Vl-design-make-implicit-wires
              • Resolve-indexing
              • Origexprs
              • Argresolve
              • Portdecl-sign
              • Designwires
              • Udp-elim
              • Vl-annotate-design
            • Latchcode
            • Elim-unused-vars
            • Problem-modules
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-modinst-exprs-for-implicit-wires

    Vl-collect-exprs-for-implicit-wires-from-namedargs

    Signature
    (vl-collect-exprs-for-implicit-wires-from-namedargs x) 
      → 
    (mv main other)
    Arguments
    x — Guard (vl-namedarglist-p x).
    Returns
    main — Expressions where implicit wires are allowed.
        Type (vl-exprlist-p main).
    other — Expressions where implicit wires are not allowed.
        Type (vl-exprlist-p other).

    Definitions and Theorems

    Function: vl-collect-exprs-for-implicit-wires-from-namedargs

    (defun vl-collect-exprs-for-implicit-wires-from-namedargs (x)
     (declare (xargs :guard (vl-namedarglist-p x)))
     (let ((__function__
                'vl-collect-exprs-for-implicit-wires-from-namedargs))
       (declare (ignorable __function__))
       (b*
        (((when (atom x)) (mv nil nil))
         ((mv main1 other1)
          (vl-collect-exprs-for-implicit-wires-from-namedarg (car x)))
         ((mv main2 other2)
          (vl-collect-exprs-for-implicit-wires-from-namedargs (cdr x))))
        (mv (append main1 main2)
            (append other1 other2)))))

    Theorem: vl-exprlist-p-of-vl-collect-exprs-for-implicit-wires-from-namedargs.main

    (defthm
     vl-exprlist-p-of-vl-collect-exprs-for-implicit-wires-from-namedargs.main
     (b* (((mv ?main ?other)
           (vl-collect-exprs-for-implicit-wires-from-namedargs x)))
       (vl-exprlist-p main))
     :rule-classes :rewrite)

    Theorem: vl-exprlist-p-of-vl-collect-exprs-for-implicit-wires-from-namedargs.other

    (defthm
     vl-exprlist-p-of-vl-collect-exprs-for-implicit-wires-from-namedargs.other
     (b* (((mv ?main ?other)
           (vl-collect-exprs-for-implicit-wires-from-namedargs x)))
       (vl-exprlist-p other))
     :rule-classes :rewrite)

    Theorem: vl-collect-exprs-for-implicit-wires-from-namedargs-mvtypes-0

    (defthm vl-collect-exprs-for-implicit-wires-from-namedargs-mvtypes-0
     (true-listp
        (mv-nth 0
                (vl-collect-exprs-for-implicit-wires-from-namedargs x)))
     :rule-classes :type-prescription)

    Theorem: vl-collect-exprs-for-implicit-wires-from-namedargs-mvtypes-1

    (defthm vl-collect-exprs-for-implicit-wires-from-namedargs-mvtypes-1
     (true-listp
        (mv-nth 1
                (vl-collect-exprs-for-implicit-wires-from-namedargs x)))
     :rule-classes :type-prescription)

    Theorem: vl-collect-exprs-for-implicit-wires-from-namedargs-complete

    (defthm vl-collect-exprs-for-implicit-wires-from-namedargs-complete
      (b* (((mv main other)
            (vl-collect-exprs-for-implicit-wires-from-namedargs x)))
        (set-equiv (append main other)
                   (vl-namedarglist-allexprs x))))

    Theorem: vl-collect-exprs-for-implicit-wires-from-namedargs-of-vl-namedarglist-fix-x

    (defthm
     vl-collect-exprs-for-implicit-wires-from-namedargs-of-vl-namedarglist-fix-x
     (equal (vl-collect-exprs-for-implicit-wires-from-namedargs
                 (vl-namedarglist-fix x))
            (vl-collect-exprs-for-implicit-wires-from-namedargs x)))

    Theorem: vl-collect-exprs-for-implicit-wires-from-namedargs-vl-namedarglist-equiv-congruence-on-x

    (defthm
     vl-collect-exprs-for-implicit-wires-from-namedargs-vl-namedarglist-equiv-congruence-on-x
     (implies
      (vl-namedarglist-equiv x x-equiv)
      (equal
          (vl-collect-exprs-for-implicit-wires-from-namedargs x)
          (vl-collect-exprs-for-implicit-wires-from-namedargs x-equiv)))
     :rule-classes :congruence)