Matches
(vl-parse-tf-variable-identifier &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-tf-variable-identifier-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-tf-variable-identifier)) (declare (ignorable __function__)) (seq tokstream (name := (vl-match-token :vl-idtoken)) (udims := (vl-parse-0+-ranges)) (when (vl-is-token? :vl-equalsign) (:= (vl-match)) (default := (vl-parse-expression))) (return (make-vl-tf-parsed-var-id :name name :udims (vl-ranges->dimensions udims) :default default)))))
Theorem:
(defthm vl-parse-tf-variable-identifier-fails-gracefully (implies (mv-nth 0 (vl-parse-tf-variable-identifier)) (not (mv-nth 1 (vl-parse-tf-variable-identifier)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-tf-variable-identifier (iff (vl-warning-p (mv-nth 0 (vl-parse-tf-variable-identifier))) (mv-nth 0 (vl-parse-tf-variable-identifier))))
Theorem:
(defthm vl-parse-tf-variable-identifier-result (implies (and t) (equal (vl-tf-parsed-var-id-p (mv-nth 1 (vl-parse-tf-variable-identifier))) (not (mv-nth 0 (vl-parse-tf-variable-identifier))))))
Theorem:
(defthm vl-parse-tf-variable-identifier-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-tf-variable-identifier))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-tf-variable-identifier))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-tf-variable-identifier))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))