(vl-parse-tf-port-list-aux prev &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-tf-port-list-aux-fn (prev tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (or (not prev) (vl-portdecl-p prev)))) (let ((__function__ 'vl-parse-tf-port-list-aux)) (declare (ignorable __function__)) (seq tokstream (first := (vl-parse-tf-port-item prev)) (unless (vl-is-token? :vl-comma) (return (list first))) (:= (vl-match)) (rest := (vl-parse-tf-port-list-aux first)) (return (cons first rest)))))
Theorem:
(defthm vl-parse-tf-port-list-aux-fails-gracefully (implies (mv-nth 0 (vl-parse-tf-port-list-aux prev)) (not (mv-nth 1 (vl-parse-tf-port-list-aux prev)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-tf-port-list-aux (iff (vl-warning-p (mv-nth 0 (vl-parse-tf-port-list-aux prev))) (mv-nth 0 (vl-parse-tf-port-list-aux prev))))
Theorem:
(defthm vl-parse-tf-port-list-aux-result (implies (and (force (or (not prev) (vl-portdecl-p prev)))) (vl-portdecllist-p (mv-nth 1 (vl-parse-tf-port-list-aux prev)))))
Theorem:
(defthm vl-parse-tf-port-list-aux-true-listp (true-listp (mv-nth 1 (vl-parse-tf-port-list-aux prev))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-tf-port-list-aux-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-tf-port-list-aux prev))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-tf-port-list-aux prev))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-tf-port-list-aux prev))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))