(vl-parse-level-input-list &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-level-input-list-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-level-input-list)) (declare (ignorable __function__)) (seq tokstream (first :s= (vl-parse-level-symbol)) (when (and (consp (vl-tokstream->tokens)) (vl-udp-level-symbol-token-p (car (vl-tokstream->tokens)))) (rest := (vl-parse-level-input-list))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-level-input-list-fails-gracefully (implies (mv-nth 0 (vl-parse-level-input-list)) (not (mv-nth 1 (vl-parse-level-input-list)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-level-input-list (iff (vl-warning-p (mv-nth 0 (vl-parse-level-input-list))) (mv-nth 0 (vl-parse-level-input-list))))
Theorem:
(defthm vl-parse-level-input-list-result (implies (and t) (vl-udpentrylist-p (mv-nth 1 (vl-parse-level-input-list)))))
Theorem:
(defthm vl-parse-level-input-list-true-listp (true-listp (mv-nth 1 (vl-parse-level-input-list))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-level-input-list-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-level-input-list))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-level-input-list))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-level-input-list))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))