(vl-parse-foreach-loop-variables &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-foreach-loop-variables-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-foreach-loop-variables)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-idtoken) (first := (vl-match))) (unless (vl-is-token? :vl-comma) (return (list (and first (vl-idtoken->name first))))) (:= (vl-match)) (rest := (vl-parse-foreach-loop-variables)) (return (cons (and first (vl-idtoken->name first)) rest)))))
Theorem:
(defthm vl-parse-foreach-loop-variables-fails-gracefully (implies (mv-nth 0 (vl-parse-foreach-loop-variables)) (not (mv-nth 1 (vl-parse-foreach-loop-variables)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-foreach-loop-variables (iff (vl-warning-p (mv-nth 0 (vl-parse-foreach-loop-variables))) (mv-nth 0 (vl-parse-foreach-loop-variables))))
Theorem:
(defthm vl-parse-foreach-loop-variables-result (implies (and t) (vl-maybe-string-list-p (mv-nth 1 (vl-parse-foreach-loop-variables)))))
Theorem:
(defthm vl-parse-foreach-loop-variables-count-weak (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-foreach-loop-variables))) (vl-tokstream-measure)) :rule-classes ((:rewrite) (:linear)))