Matches
(vl-parse-timeprecisiondecl &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-timeprecisiondecl-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-timeprecisiondecl)) (declare (ignorable __function__)) (seq tokstream (kwd := (vl-match-token :vl-kwd-timeprecision)) (precision := (vl-parse-timeliteral)) (:= (vl-match-token :vl-semi)) (return (make-vl-timeprecisiondecl :loc (vl-token->loc kwd) :precision precision)))))
Theorem:
(defthm vl-parse-timeprecisiondecl-fails-gracefully (implies (mv-nth 0 (vl-parse-timeprecisiondecl)) (not (mv-nth 1 (vl-parse-timeprecisiondecl)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-timeprecisiondecl (iff (vl-warning-p (mv-nth 0 (vl-parse-timeprecisiondecl))) (mv-nth 0 (vl-parse-timeprecisiondecl))))
Theorem:
(defthm vl-parse-timeprecisiondecl-result (implies (and t) (equal (vl-timeprecisiondecl-p (mv-nth 1 (vl-parse-timeprecisiondecl))) (not (mv-nth 0 (vl-parse-timeprecisiondecl))))))
Theorem:
(defthm vl-parse-timeprecisiondecl-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-timeprecisiondecl))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-timeprecisiondecl))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-timeprecisiondecl))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))