(vl-parse-1+-module-instances modname paramargs atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-1+-module-instances-fn (modname paramargs atts tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (and (stringp modname) (vl-paramargs-p paramargs) (vl-atts-p atts)))) (let ((__function__ 'vl-parse-1+-module-instances)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-module-instance modname paramargs atts)) (when (vl-is-token? :vl-comma) (:= (vl-match-token :vl-comma)) (rest := (vl-parse-1+-module-instances modname paramargs atts))) (return (cons first rest)))))
Theorem:
(defthm vl-parse-1+-module-instances-fails-gracefully (implies (mv-nth 0 (vl-parse-1+-module-instances modname paramargs atts)) (not (mv-nth 1 (vl-parse-1+-module-instances modname paramargs atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-1+-module-instances (iff (vl-warning-p (mv-nth 0 (vl-parse-1+-module-instances modname paramargs atts))) (mv-nth 0 (vl-parse-1+-module-instances modname paramargs atts))))
Theorem:
(defthm vl-parse-1+-module-instances-result (implies (and (and (force (stringp modname)) (force (vl-paramargs-p paramargs)) (force (vl-atts-p atts)))) (vl-modinstlist-p (mv-nth 1 (vl-parse-1+-module-instances modname paramargs atts)))))
Theorem:
(defthm vl-parse-1+-module-instances-true-listp (true-listp (mv-nth 1 (vl-parse-1+-module-instances modname paramargs atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-1+-module-instances-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-module-instances modname paramargs atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-1+-module-instances modname paramargs atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-1+-module-instances modname paramargs atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))