Matches
(vl-parse-property-acceptop &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-property-acceptop-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-property-acceptop)) (declare (ignorable __function__)) (seq tokstream (tok := (vl-match-some-token '(:vl-kwd-accept_on :vl-kwd-reject_on :vl-kwd-sync_accept_on :vl-kwd-sync_reject_on))) (return (case (vl-token->type tok) (:vl-kwd-accept_on :vl-prop-accepton) (:vl-kwd-reject_on :vl-prop-rejecton) (:vl-kwd-sync_accept_on :vl-prop-syncaccepton) (:vl-kwd-sync_reject_on :vl-prop-syncrejecton) (otherwise (progn$ (impossible) :vl-prop-accepton)))))))
Theorem:
(defthm vl-parse-property-acceptop-fails-gracefully (implies (mv-nth 0 (vl-parse-property-acceptop)) (not (mv-nth 1 (vl-parse-property-acceptop)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-property-acceptop (iff (vl-warning-p (mv-nth 0 (vl-parse-property-acceptop))) (mv-nth 0 (vl-parse-property-acceptop))))
Theorem:
(defthm vl-parse-property-acceptop-result (implies (and t) (equal (vl-property-acceptop-p (mv-nth 1 (vl-parse-property-acceptop))) (not (mv-nth 0 (vl-parse-property-acceptop))))))
Theorem:
(defthm vl-parse-property-acceptop-count-strong-on-value (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-property-acceptop))) (vl-tokstream-measure)) (implies (mv-nth 1 (vl-parse-property-acceptop)) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-property-acceptop))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))