(vl-parse-bind-directive-scoped atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-bind-directive-scoped-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-bind-directive-scoped)) (declare (ignorable __function__)) (seq tokstream (:= (vl-match-token :vl-kwd-bind)) (target := (vl-match-token :vl-idtoken)) (when (vl-is-token? :vl-colon) (:= (vl-match)) (addto := (vl-parse-1+-expressions-separated-by-commas))) (modinsts := (vl-parse-module-instantiation nil)) (return (make-vl-bind :scope (vl-idtoken->name target) :addto addto :modinsts modinsts :loc (vl-token->loc target) :atts atts)))))
Theorem:
(defthm vl-parse-bind-directive-scoped-fails-gracefully (implies (mv-nth 0 (vl-parse-bind-directive-scoped atts)) (not (mv-nth 1 (vl-parse-bind-directive-scoped atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-bind-directive-scoped (iff (vl-warning-p (mv-nth 0 (vl-parse-bind-directive-scoped atts))) (mv-nth 0 (vl-parse-bind-directive-scoped atts))))
Theorem:
(defthm vl-parse-bind-directive-scoped-result (implies (and (not (mv-nth 0 (vl-parse-bind-directive-scoped atts))) (and (force (vl-atts-p atts)))) (vl-bind-p (mv-nth 1 (vl-parse-bind-directive-scoped atts)))))
Theorem:
(defthm vl-parse-bind-directive-scoped-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-bind-directive-scoped atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-bind-directive-scoped atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-bind-directive-scoped atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))