(vl-parse-udp-instantiation atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-udp-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-udp-instantiation)) (declare (ignorable __function__)) (seq tokstream (modname := (vl-match-token :vl-idtoken)) (when (and (vl-is-token? :vl-lparen) (vl-lookahead-is-some-token? *vl-all-drivestr-kwds* (cdr (vl-tokstream->tokens)))) (str := (vl-parse-drive-strength))) (when (vl-is-token? :vl-pound) (delay := (vl-parse-delay2))) (insts := (vl-parse-1+-udp-instances (vl-token->loc modname) (vl-idtoken->name modname) str delay atts)) (:= (vl-match-token :vl-semi)) (return insts))))
Theorem:
(defthm vl-parse-udp-instantiation-fails-gracefully (implies (mv-nth 0 (vl-parse-udp-instantiation atts)) (not (mv-nth 1 (vl-parse-udp-instantiation atts)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-udp-instantiation (iff (vl-warning-p (mv-nth 0 (vl-parse-udp-instantiation atts))) (mv-nth 0 (vl-parse-udp-instantiation atts))))
Theorem:
(defthm vl-parse-udp-instantiation-result (implies (and (force (vl-atts-p atts))) (vl-modinstlist-p (mv-nth 1 (vl-parse-udp-instantiation atts)))))
Theorem:
(defthm vl-parse-udp-instantiation-true-listp (true-listp (mv-nth 1 (vl-parse-udp-instantiation atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-udp-instantiation-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-udp-instantiation atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-udp-instantiation atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-udp-instantiation atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))