• 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-namedarg

    Signature
    (vl-collect-exprs-for-implicit-wires-from-namedarg x) 
      → 
    (mv main other)
    Arguments
    x — Guard (vl-namedarg-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-namedarg

    (defun vl-collect-exprs-for-implicit-wires-from-namedarg (x)
      (declare (xargs :guard (vl-namedarg-p x)))
      (let ((__function__
                 'vl-collect-exprs-for-implicit-wires-from-namedarg))
        (declare (ignorable __function__))
        (b* (((vl-namedarg x))
             ((when x.nameonly-p)
              (mv nil (vl-maybe-expr-allexprs x.expr))))
          (mv (vl-maybe-expr-allexprs x.expr)
              nil))))

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

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

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

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

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

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

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

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

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

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

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

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

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

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