(vl-parse-netdecltype &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-netdecltype-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-netdecltype)) (declare (ignorable __function__)) (seq tokstream (ret := (vl-match-some-token *vl-netdecltype-kwd-types*)) (return (cons (cdr (assoc-eq (vl-token->type ret) *vl-netdecltypes-kwd-alist*)) (vl-token->loc ret))))))
Theorem:
(defthm vl-parse-netdecltype-fails-gracefully (implies (mv-nth 0 (vl-parse-netdecltype)) (not (mv-nth 1 (vl-parse-netdecltype)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-netdecltype (iff (vl-warning-p (mv-nth 0 (vl-parse-netdecltype))) (mv-nth 0 (vl-parse-netdecltype))))
Theorem:
(defthm vl-parse-netdecltype-result (implies (and t) (equal (consp (mv-nth 1 (vl-parse-netdecltype))) (not (mv-nth 0 (vl-parse-netdecltype))))))
Theorem:
(defthm vl-parse-netdecltype-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-netdecltype))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-netdecltype))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-netdecltype))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))