(vl-parse-udp-reg-declaration atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-udp-reg-declaration-fn (atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (vl-atts-p atts))) (let ((__function__ 'vl-parse-udp-reg-declaration)) (declare (ignorable __function__)) (seq tokstream (:= (vl-match-token :vl-kwd-reg)) (id := (vl-match-token :vl-idtoken)) (return (make-vl-vardecl :type *vl-plain-old-reg-type* :name (vl-idtoken->name id) :loc (vl-token->loc id) :atts atts)))))
Theorem:
(defthm vl-parse-udp-reg-declaration-fails-gracefully (implies (mv-nth 0 (vl-parse-udp-reg-declaration atts)) (not (mv-nth 1 (vl-parse-udp-reg-declaration atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-udp-reg-declaration (iff (vl-warning-p (mv-nth 0 (vl-parse-udp-reg-declaration atts))) (mv-nth 0 (vl-parse-udp-reg-declaration atts))))
Theorem:
(defthm vl-parse-udp-reg-declaration-result (implies (and (force (vl-atts-p atts))) (equal (vl-vardecl-p (mv-nth 1 (vl-parse-udp-reg-declaration atts))) (not (mv-nth 0 (vl-parse-udp-reg-declaration atts))))))
Theorem:
(defthm vl-parse-udp-reg-declaration-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-udp-reg-declaration atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-udp-reg-declaration atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-udp-reg-declaration atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))