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