Match a single
(vl-parse-defaultdisable atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
SystemVerilog-2012 Grammar:
module_or_generate_item_declaration ::= ... | 'default' 'disable' 'iff' expression_or_dist ';'
Function:
(defun vl-parse-defaultdisable-fn (atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (vl-atts-p atts))) (let ((__function__ 'vl-parse-defaultdisable)) (declare (ignorable __function__)) (seq tokstream (disable := (vl-match-token :vl-kwd-default)) (:= (vl-match-token :vl-kwd-disable)) (:= (vl-match-token :vl-kwd-iff)) (exprdist := (vl-parse-expression-or-dist)) (:= (vl-match-token :vl-semi)) (return (make-vl-defaultdisable :exprdist exprdist :loc (vl-token->loc disable) :atts atts)))))
Theorem:
(defthm vl-parse-defaultdisable-fails-gracefully (implies (mv-nth 0 (vl-parse-defaultdisable atts)) (not (mv-nth 1 (vl-parse-defaultdisable atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-defaultdisable (iff (vl-warning-p (mv-nth 0 (vl-parse-defaultdisable atts))) (mv-nth 0 (vl-parse-defaultdisable atts))))
Theorem:
(defthm vl-parse-defaultdisable-result (implies (and (force (vl-atts-p atts))) (equal (vl-defaultdisable-p (mv-nth 1 (vl-parse-defaultdisable atts))) (not (mv-nth 0 (vl-parse-defaultdisable atts))))))
Theorem:
(defthm vl-parse-defaultdisable-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-defaultdisable atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-defaultdisable atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-defaultdisable atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))