(vl-parse-module-instantiation atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-module-instantiation-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-module-instantiation)) (declare (ignorable __function__)) (seq tokstream (modid := (vl-match-token :vl-idtoken)) (when (vl-is-token? :vl-pound) (paramargs := (vl-parse-parameter-value-assignment))) (insts := (vl-parse-1+-module-instances (vl-idtoken->name modid) (or paramargs (make-vl-paramargs-plain :args nil)) atts)) (:= (vl-match-token :vl-semi)) (return insts))))
Theorem:
(defthm vl-parse-module-instantiation-fails-gracefully (implies (mv-nth 0 (vl-parse-module-instantiation atts)) (not (mv-nth 1 (vl-parse-module-instantiation atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-module-instantiation (iff (vl-warning-p (mv-nth 0 (vl-parse-module-instantiation atts))) (mv-nth 0 (vl-parse-module-instantiation atts))))
Theorem:
(defthm vl-parse-module-instantiation-result (implies (and (force (vl-atts-p atts))) (vl-modinstlist-p (mv-nth 1 (vl-parse-module-instantiation atts)))))
Theorem:
(defthm vl-parse-module-instantiation-true-listp (true-listp (mv-nth 1 (vl-parse-module-instantiation atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-module-instantiation-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-module-instantiation atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-module-instantiation atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-module-instantiation atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))