Verilog-2005 Only. Matches
(vl-parse-1+-port-declarations-separated-by-commas-2005 &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-1+-port-declarations-separated-by-commas-2005-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-1+-port-declarations-separated-by-commas-2005)) (declare (ignorable __function__)) (seq tokstream (portdecls1 := (vl-parse-ansi-port-declaration-2005 nil)) (when (vl-is-token? :vl-comma) (:= (vl-match)) (portdecls2 := (vl-parse-1+-port-declarations-separated-by-commas-2005))) (return (append-without-guard portdecls1 portdecls2)))))
Theorem:
(defthm vl-parse-1+-port-declarations-separated-by-commas-2005-fails-gracefully (implies (mv-nth 0 (vl-parse-1+-port-declarations-separated-by-commas-2005)) (not (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-1+-port-declarations-separated-by-commas-2005 (iff (vl-warning-p (mv-nth 0 (vl-parse-1+-port-declarations-separated-by-commas-2005))) (mv-nth 0 (vl-parse-1+-port-declarations-separated-by-commas-2005))))
Theorem:
(defthm vl-parse-1+-port-declarations-separated-by-commas-2005-result (implies (and t) (vl-ansi-portdecllist-p (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005)))))
Theorem:
(defthm vl-parse-1+-port-declarations-separated-by-commas-2005-true-listp (true-listp (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-1+-port-declarations-separated-by-commas-2005-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-port-declarations-separated-by-commas-2005))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-1+-port-declarations-separated-by-commas-2005))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-port-declarations-separated-by-commas-2005))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))