Barbaric fault tolerance routine. Find
(vl-skip-through-endtask &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-skip-through-endtask-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-skip-through-endtask)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-kwd-endtask) (end := (vl-match)) (return end)) (:s= (vl-match-any)) (end := (vl-skip-through-endtask)) (return end))))
Theorem:
(defthm vl-skip-through-endtask-fails-gracefully (implies (mv-nth 0 (vl-skip-through-endtask)) (not (mv-nth 1 (vl-skip-through-endtask)))))
Theorem:
(defthm vl-warning-p-of-vl-skip-through-endtask (iff (vl-warning-p (mv-nth 0 (vl-skip-through-endtask))) (mv-nth 0 (vl-skip-through-endtask))))
Theorem:
(defthm vl-skip-through-endtask-result (implies (and t) (equal (vl-token-p (mv-nth 1 (vl-skip-through-endtask))) (not (mv-nth 0 (vl-skip-through-endtask))))))
Theorem:
(defthm vl-skip-through-endtask-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-skip-through-endtask))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-skip-through-endtask))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-skip-through-endtask))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))