(vl-parse-list-of-type-assignments atts localp &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-list-of-type-assignments-fn (atts localp tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (and (vl-atts-p atts) (booleanp localp)))) (let ((__function__ 'vl-parse-list-of-type-assignments)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-type-assignment atts localp)) (when (and (vl-is-token? :vl-comma) (vl-lookahead-is-token? :vl-idtoken (cdr (vl-tokstream->tokens)))) (:= (vl-match)) (rest := (vl-parse-list-of-type-assignments atts localp))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-list-of-type-assignments-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-type-assignments atts localp)) (not (mv-nth 1 (vl-parse-list-of-type-assignments atts localp)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-type-assignments (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-type-assignments atts localp))) (mv-nth 0 (vl-parse-list-of-type-assignments atts localp))))
Theorem:
(defthm vl-parse-list-of-type-assignments-result (implies (and (and (force (vl-atts-p atts)) (force (booleanp localp)))) (vl-paramdecllist-p (mv-nth 1 (vl-parse-list-of-type-assignments atts localp)))))
Theorem:
(defthm vl-parse-list-of-type-assignments-true-listp (true-listp (mv-nth 1 (vl-parse-list-of-type-assignments atts localp))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-list-of-type-assignments-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-type-assignments atts localp))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-type-assignments atts localp))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-type-assignments atts localp))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))