Matches
(vl-parse-combinational-entries-until-endtable &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Assumes we should read until
Function:
(defun vl-parse-combinational-entries-until-endtable-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-combinational-entries-until-endtable)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-combinational-entry)) (unless (vl-is-token? :vl-kwd-endtable) (rest := (vl-parse-combinational-entries-until-endtable))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-combinational-entries-until-endtable-fails-gracefully (implies (mv-nth 0 (vl-parse-combinational-entries-until-endtable)) (not (mv-nth 1 (vl-parse-combinational-entries-until-endtable)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-combinational-entries-until-endtable (iff (vl-warning-p (mv-nth 0 (vl-parse-combinational-entries-until-endtable))) (mv-nth 0 (vl-parse-combinational-entries-until-endtable))))
Theorem:
(defthm vl-parse-combinational-entries-until-endtable-result (implies (and t) (vl-udptable-p (mv-nth 1 (vl-parse-combinational-entries-until-endtable)))))
Theorem:
(defthm vl-parse-combinational-entries-until-endtable-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-combinational-entries-until-endtable))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-combinational-entries-until-endtable))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-combinational-entries-until-endtable))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))