(vl-parse-edge-indicator &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-edge-indicator-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-edge-indicator)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-kwd-lparen) (:= (vl-match)) (prev := (vl-parse-level-symbol)) (next := (vl-parse-level-symbol)) (:= (vl-match-token :vl-kwd-rparen)) (return (make-vl-udpedge :prev prev :next next))) (sym := (vl-parse-edge-symbol)) (return sym))))
Theorem:
(defthm vl-parse-edge-indicator-fails-gracefully (implies (mv-nth 0 (vl-parse-edge-indicator)) (not (mv-nth 1 (vl-parse-edge-indicator)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-edge-indicator (iff (vl-warning-p (mv-nth 0 (vl-parse-edge-indicator))) (mv-nth 0 (vl-parse-edge-indicator))))
Theorem:
(defthm vl-parse-edge-indicator-result (implies (and t) (equal (vl-udpentry-p (mv-nth 1 (vl-parse-edge-indicator))) (not (mv-nth 0 (vl-parse-edge-indicator))))))
Theorem:
(defthm vl-parse-edge-indicator-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-edge-indicator))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-edge-indicator))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-edge-indicator))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))