Parse a
(vl-parse-system-task-enable atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Verilog-2005 Syntax:
system_task_enable ::= system_identifier [ '(' [expression] { ',' [expression] } ')' ] ';'
In SystemVerilog-2012 this goes away and gets folded into a
Function:
(defun vl-parse-system-task-enable-fn (atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (and (vl-atts-p atts) (vl-is-token? :vl-sysidtoken)))) (let ((__function__ 'vl-parse-system-task-enable)) (declare (ignorable __function__)) (seq tokstream (loc := (vl-current-loc)) (id := (vl-match)) (when (vl-is-token? :vl-lparen) (:= (vl-match)) (unless (vl-is-token? :vl-rparen) (args := (vl-parse-sysfuncall-args))) (:= (vl-match-token :vl-rparen))) (:= (vl-match-token :vl-semi)) (return (make-vl-callstmt :id (make-vl-scopeexpr-end :hid (make-vl-hidexpr-end :name (vl-sysidtoken->name id))) :voidp nil :typearg nil :systemp t :args args :atts atts :loc loc)))))
Theorem:
(defthm vl-parse-system-task-enable-fails-gracefully (implies (mv-nth 0 (vl-parse-system-task-enable atts)) (not (mv-nth 1 (vl-parse-system-task-enable atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-system-task-enable (iff (vl-warning-p (mv-nth 0 (vl-parse-system-task-enable atts))) (mv-nth 0 (vl-parse-system-task-enable atts))))
Theorem:
(defthm vl-parse-system-task-enable-result (implies (and (and (force (vl-atts-p atts)) (force (vl-is-token? :vl-sysidtoken)))) (equal (vl-stmt-p (mv-nth 1 (vl-parse-system-task-enable atts))) (not (mv-nth 0 (vl-parse-system-task-enable atts))))))
Theorem:
(defthm vl-parse-system-task-enable-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-system-task-enable atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-system-task-enable atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-system-task-enable atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))