• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
          • Typo-detection
          • Vl-wireinfo-alistp
          • Vl-annotate-vardecllist-with-wireinfo
          • Vl-useset-report-entry-p
          • Vl-print-useset-report-entry
          • Vl-mark-wires-for-module
          • Vl-split-useset-report
          • Vl-annotate-vardecl-with-wireinfo
          • Vl-mark-wires-for-modinstlist
          • Vl-mark-wires-for-modinst
          • Vl-mark-wires-for-gateinstlist
          • Vl-mark-wires-for-gateinst
          • Vl-mark-wires-for-plainarg
          • Vl-wireinfo-p
          • Vl-mark-wires-for-modulelist
          • Vl-vardecllist-impexp-names
            • Vl-report-totals
            • Vl-mark-wires-for-plainarglist
            • Vl-collect-unused-or-unset-wires
            • Vl-clean-up-warning-wires
            • Vl-print-useset-report-top
            • Vl-mark-wires-for-arguments
            • Vl-useset-report-p
            • Vl-star-names-of-warning-wires
            • Vl-design-use-set-report
            • Vl-module-impexp-names
            • Vl-make-initial-wireinfo-alist
            • Vl-mark-wire-used
            • Vl-mark-wire-set
            • Vl-mark-wires-used
            • Vl-mark-wires-for-assignment
            • Vl-mark-wires-for-assignlist
            • Vl-mark-wires-set
            • Vl-print-useset-report-full-aux
            • Vl-print-typo-alist
            • Vl-print-typo-possibilities
          • Syntax
          • Getting-started
          • Utilities
          • Loader
          • Transforms
          • Lint
          • Mlib
          • Server
          • Kit
          • Printer
          • Esim-vl
          • Well-formedness
        • Sv
        • Vwsim
        • Fgl
        • Vl
        • Svl
        • X86isa
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Use-set

    Vl-vardecllist-impexp-names

    Split a list of net declarations into those which are implicit and those which are explicit. Note that this only works if vl-modulelist-make-implicit-wires has been run!

    Signature
    (vl-vardecllist-impexp-names decls implicit explicit) 
      → 
    (mv implicit explicit)
    Arguments
    decls — Guard (vl-vardecllist-p decls).
    Returns
    implicit — Type (string-listp implicit), given (force (string-listp implicit)).
    explicit — Type (string-listp explicit), given (force (string-listp explicit)).

    Definitions and Theorems

    Function: vl-vardecllist-impexp-names

    (defun vl-vardecllist-impexp-names (decls implicit explicit)
     (declare (xargs :guard (vl-vardecllist-p decls)))
     (let ((__function__ 'vl-vardecllist-impexp-names))
      (declare (ignorable __function__))
      (b* (((when (atom decls))
            (mv implicit explicit))
           ((vl-vardecl x1)
            (vl-vardecl-fix (car decls)))
           ((when (assoc-equal "VL_IMPLICIT" x1.atts))
            (vl-vardecllist-impexp-names (cdr decls)
                                         (cons x1.name implicit)
                                         explicit)))
       (vl-vardecllist-impexp-names (cdr decls)
                                    implicit (cons x1.name explicit)))))

    Theorem: string-listp-of-vl-vardecllist-impexp-names.implicit

    (defthm string-listp-of-vl-vardecllist-impexp-names.implicit
      (implies
           (force (string-listp implicit))
           (b* (((mv ?implicit ?explicit)
                 (vl-vardecllist-impexp-names decls implicit explicit)))
             (string-listp implicit)))
      :rule-classes :rewrite)

    Theorem: string-listp-of-vl-vardecllist-impexp-names.explicit

    (defthm string-listp-of-vl-vardecllist-impexp-names.explicit
      (implies
           (force (string-listp explicit))
           (b* (((mv ?implicit ?explicit)
                 (vl-vardecllist-impexp-names decls implicit explicit)))
             (string-listp explicit)))
      :rule-classes :rewrite)