Matches
(vl-parse-impl-prop-expr-op &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-impl-prop-expr-op-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-impl-prop-expr-op)) (declare (ignorable __function__)) (seq tokstream (tok := (vl-match-some-token '(:vl-bararrow :vl-bareqarrow :vl-pounddash :vl-poundequal))) (return (case (vl-token->type tok) (:vl-bararrow :vl-prop-thin-implies) (:vl-bareqarrow :vl-prop-fat-implies) (:vl-pounddash :vl-prop-thin-follows) (:vl-poundequal :vl-prop-fat-follows) (otherwise (progn$ (impossible) :vl-prop-thin-implies)))))))
Theorem:
(defthm vl-parse-impl-prop-expr-op-fails-gracefully (implies (mv-nth 0 (vl-parse-impl-prop-expr-op)) (not (mv-nth 1 (vl-parse-impl-prop-expr-op)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-impl-prop-expr-op (iff (vl-warning-p (mv-nth 0 (vl-parse-impl-prop-expr-op))) (mv-nth 0 (vl-parse-impl-prop-expr-op))))
Theorem:
(defthm vl-parse-impl-prop-expr-op-result (implies (and t) (equal (vl-property-binaryop-p (mv-nth 1 (vl-parse-impl-prop-expr-op))) (not (mv-nth 0 (vl-parse-impl-prop-expr-op))))))
Theorem:
(defthm vl-parse-impl-prop-expr-op-count-strong-on-value (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-impl-prop-expr-op))) (vl-tokstream-measure)) (implies (mv-nth 1 (vl-parse-impl-prop-expr-op)) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-impl-prop-expr-op))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))