(vl-parse-list-of-named-port-connections-2012 &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-list-of-named-port-connections-2012-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-list-of-named-port-connections-2012)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-dotstar) (dotstar := (vl-match))) (unless dotstar (first := (vl-parse-named-port-connection))) (when (vl-is-token? :vl-comma) (:= (vl-match)) ((rest . saw-dot-star-in-tail) := (vl-parse-list-of-named-port-connections-2012))) (when (and dotstar saw-dot-star-in-tail) (return-raw (vl-parse-error "Multiple occurrences of .* in port list."))) (when dotstar (return (cons rest t))) (return (cons (cons first rest) saw-dot-star-in-tail)))))
Theorem:
(defthm vl-parse-list-of-named-port-connections-2012-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-named-port-connections-2012)) (not (mv-nth 1 (vl-parse-list-of-named-port-connections-2012)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-named-port-connections-2012 (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-named-port-connections-2012))) (mv-nth 0 (vl-parse-list-of-named-port-connections-2012))))
Theorem:
(defthm vl-parse-list-of-named-port-connections-2012-result (implies (and t) (equal (consp (mv-nth 1 (vl-parse-list-of-named-port-connections-2012))) (not (mv-nth 0 (vl-parse-list-of-named-port-connections-2012))))))
Theorem:
(defthm vl-parse-list-of-named-port-connections-2012-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-named-port-connections-2012))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-named-port-connections-2012))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-named-port-connections-2012))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm vl-namedarglist-p-of-vl-parse-list-of-named-port-connections-2012 (vl-namedarglist-p (car (mv-nth 1 (vl-parse-list-of-named-port-connections-2012)))))