(vl-parse-list-of-net-identifiers &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-list-of-net-identifiers-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-list-of-net-identifiers)) (declare (ignorable __function__)) (seq tokstream (id := (vl-match-token :vl-idtoken)) (ranges := (vl-parse-0+-ranges)) (when (vl-is-token? :vl-comma) (:= (vl-match)) (rest := (vl-parse-list-of-net-identifiers))) (return (cons (cons id ranges) rest)))))
Theorem:
(defthm vl-parse-list-of-net-identifiers-fails-gracefully (implies (mv-nth 0 (vl-parse-list-of-net-identifiers)) (not (mv-nth 1 (vl-parse-list-of-net-identifiers)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-list-of-net-identifiers (iff (vl-warning-p (mv-nth 0 (vl-parse-list-of-net-identifiers))) (mv-nth 0 (vl-parse-list-of-net-identifiers))))
Theorem:
(defthm vl-parse-list-of-net-identifiers-result (implies (and t) (and (alistp (mv-nth 1 (vl-parse-list-of-net-identifiers))) (vl-idtoken-list-p (strip-cars (mv-nth 1 (vl-parse-list-of-net-identifiers)))) (vl-rangelist-list-p (strip-cdrs (mv-nth 1 (vl-parse-list-of-net-identifiers)))))))
Theorem:
(defthm vl-parse-list-of-net-identifiers-true-listp (true-listp (mv-nth 1 (vl-parse-list-of-net-identifiers))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-list-of-net-identifiers-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-net-identifiers))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-list-of-net-identifiers))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-list-of-net-identifiers))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))