(vl-parse-current-state &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-current-state-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-current-state)) (declare (ignorable __function__)) (seq tokstream (ans := (vl-parse-level-symbol)) (return ans))))
Theorem:
(defthm vl-parse-current-state-fails-gracefully (implies (mv-nth 0 (vl-parse-current-state)) (not (mv-nth 1 (vl-parse-current-state)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-current-state (iff (vl-warning-p (mv-nth 0 (vl-parse-current-state))) (mv-nth 0 (vl-parse-current-state))))
Theorem:
(defthm vl-parse-current-state-result (implies (and t) (equal (vl-udpsymbol-p (mv-nth 1 (vl-parse-current-state))) (not (mv-nth 0 (vl-parse-current-state))))))
Theorem:
(defthm vl-parse-current-state-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-current-state))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-current-state))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-current-state))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))