Approximation of
(vl-parse-list-of-port-identifiers &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-list-of-port-identifiers-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-list-of-port-identifiers)) (declare (ignorable __function__)) (seq tokstream (id := (vl-match-token :vl-idtoken)) (udims := (vl-parse-0+-variable-dimensions)) (when (and (vl-is-token? :vl-comma) (vl-lookahead-is-token? :vl-idtoken (cdr (vl-tokstream->tokens)))) (:= (vl-match)) (rest := (vl-parse-list-of-port-identifiers))) (return (cons (make-vl-parsed-port-identifier :name id :udims udims) rest)))))
Theorem:
(defthm vl-parse-list-of-port-identifiers-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-port-identifiers)) (not (mv-nth 1 (vl-parse-list-of-port-identifiers)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-port-identifiers (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-port-identifiers))) (mv-nth 0 (vl-parse-list-of-port-identifiers))))
Theorem:
(defthm vl-parse-list-of-port-identifiers-result (implies (and t) (vl-parsed-port-identifier-list-p (mv-nth 1 (vl-parse-list-of-port-identifiers)))))
Theorem:
(defthm vl-parse-list-of-port-identifiers-true-listp (true-listp (mv-nth 1 (vl-parse-list-of-port-identifiers))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-list-of-port-identifiers-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-port-identifiers))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-port-identifiers))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-port-identifiers))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))