Matches
(vl-parse-1+-ports-separated-by-commas &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-1+-ports-separated-by-commas-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-1+-ports-separated-by-commas)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-rparen) (loc := (vl-current-loc)) (return (list (make-vl-regularport :name nil :expr nil :loc loc)))) (when (vl-is-token? :vl-comma) (loc := (vl-current-loc)) (:= (vl-match)) (rest := (vl-parse-1+-ports-separated-by-commas)) (return (cons (make-vl-regularport :name nil :expr nil :loc loc) rest))) (first := (vl-parse-nonnull-port)) (when (vl-is-token? :vl-comma) (:= (vl-match)) (rest := (vl-parse-1+-ports-separated-by-commas))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-1+-ports-separated-by-commas-fails-gracefully (implies (mv-nth 0 (vl-parse-1+-ports-separated-by-commas)) (not (mv-nth 1 (vl-parse-1+-ports-separated-by-commas)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-1+-ports-separated-by-commas (iff (vl-warning-p (mv-nth 0 (vl-parse-1+-ports-separated-by-commas))) (mv-nth 0 (vl-parse-1+-ports-separated-by-commas))))
Theorem:
(defthm vl-parse-1+-ports-separated-by-commas-result (implies (and t) (vl-portlist-p (mv-nth 1 (vl-parse-1+-ports-separated-by-commas)))))
Theorem:
(defthm vl-parse-1+-ports-separated-by-commas-true-listp (true-listp (mv-nth 1 (vl-parse-1+-ports-separated-by-commas))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-1+-ports-separated-by-commas-count-weak (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-ports-separated-by-commas))) (vl-tokstream-measure)) :rule-classes ((:rewrite) (:linear)))