(vl-parse-list-of-event-identifiers atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-list-of-event-identifiers-fn (atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (vl-atts-p atts))) (let ((__function__ 'vl-parse-list-of-event-identifiers)) (declare (ignorable __function__)) (seq tokstream (id := (vl-match-token :vl-idtoken)) (arrdims := (vl-parse-0+-ranges)) (when (vl-is-token? :vl-comma) (:= (vl-match)) (rest := (vl-parse-list-of-event-identifiers atts))) (return (cons (make-vl-vardecl :type (make-vl-coretype :name :vl-event :udims arrdims) :name (vl-idtoken->name id) :loc (vl-token->loc id) :atts atts) rest)))))
Theorem:
(defthm vl-parse-list-of-event-identifiers-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-event-identifiers atts)) (not (mv-nth 1 (vl-parse-list-of-event-identifiers atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-event-identifiers (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-event-identifiers atts))) (mv-nth 0 (vl-parse-list-of-event-identifiers atts))))
Theorem:
(defthm vl-parse-list-of-event-identifiers-result (implies (and (force (vl-atts-p atts))) (vl-vardecllist-p (mv-nth 1 (vl-parse-list-of-event-identifiers atts)))))
Theorem:
(defthm vl-parse-list-of-event-identifiers-true-listp (true-listp (mv-nth 1 (vl-parse-list-of-event-identifiers atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-list-of-event-identifiers-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-event-identifiers atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-event-identifiers atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-event-identifiers atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))