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 . vardecls1) := (vl-parse-port-declaration-atts-2005)) (when (vl-is-token? :vl-comma) (:= (vl-match)) ((portdecls2 . vardecls2) := (vl-parse-1+-port-declarations-separated-by-commas-2005))) (return (cons (append portdecls1 portdecls2) (append vardecls1 vardecls2))))))
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) (equal (consp (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005))) (not (mv-nth 0 (vl-parse-1+-port-declarations-separated-by-commas-2005))))))
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)))
Theorem:
(defthm true-listp-of-vl-parse-1+-port-declarations-separated-by-commas-2005-1 (true-listp (car (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005)))) :rule-classes :type-prescription)
Theorem:
(defthm true-listp-of-vl-parse-1+-port-declarations-separated-by-commas-2005-2 (true-listp (cdr (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-basics (and (vl-portdecllist-p (car (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005)))) (vl-vardecllist-p (cdr (mv-nth 1 (vl-parse-1+-port-declarations-separated-by-commas-2005))))))