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