(vl-parse-1+-udp-instances loc modname str delay atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-1+-udp-instances-fn (loc modname str delay atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (and (vl-location-p loc) (stringp modname) (vl-maybe-gatestrength-p str) (vl-maybe-gatedelay-p delay) (vl-atts-p atts)))) (let ((__function__ 'vl-parse-1+-udp-instances)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-udp-instance loc modname str delay atts)) (when (vl-is-token? :vl-comma) (:= (vl-match-token :vl-comma)) (rest := (vl-parse-1+-udp-instances loc modname str delay atts))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-1+-udp-instances-fails-gracefully (implies (mv-nth 0 (vl-parse-1+-udp-instances loc modname str delay atts)) (not (mv-nth 1 (vl-parse-1+-udp-instances loc modname str delay atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-1+-udp-instances (iff (vl-warning-p (mv-nth 0 (vl-parse-1+-udp-instances loc modname str delay atts))) (mv-nth 0 (vl-parse-1+-udp-instances loc modname str delay atts))))
Theorem:
(defthm vl-parse-1+-udp-instances-result (implies (and (and (force (vl-location-p loc)) (force (stringp modname)) (force (vl-maybe-gatestrength-p str)) (force (vl-maybe-gatedelay-p delay)) (force (vl-atts-p atts)))) (vl-modinstlist-p (mv-nth 1 (vl-parse-1+-udp-instances loc modname str delay atts)))))
Theorem:
(defthm vl-parse-1+-udp-instances-true-listp (true-listp (mv-nth 1 (vl-parse-1+-udp-instances loc modname str delay atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-1+-udp-instances-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-udp-instances loc modname str delay atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-1+-udp-instances loc modname str delay atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-udp-instances loc modname str delay atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))