(vl-parse-optional-edge-identifier &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-optional-edge-identifier-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-optional-edge-identifier)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-some-token? '(:vl-kwd-posedge :vl-kwd-negedge :vl-kwd-edge)) (edge := (vl-match))) (return (if (not edge) :vl-noedge (case (vl-token->type edge) (:vl-kwd-posedge :vl-posedge) (:vl-kwd-negedge :vl-negedge) (:vl-kwd-edge :vl-edge) (t (impossible))))))))
Theorem:
(defthm vl-parse-optional-edge-identifier-never-fails (not (mv-nth 0 (vl-parse-optional-edge-identifier))))
Theorem:
(defthm vl-parse-optional-edge-identifier-result (implies (and (not (mv-nth 0 (vl-parse-optional-edge-identifier))) (and t)) (vl-evatomtype-p (mv-nth 1 (vl-parse-optional-edge-identifier)))))
Theorem:
(defthm vl-parse-optional-edge-identifier-count-weak (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-optional-edge-identifier))) (vl-tokstream-measure)) :rule-classes ((:rewrite) (:linear)))