Parse a
(vl-parse-subroutine-call &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Grammar rule:
subroutine_call ::= tf_call | system_tf_call | method_call | 'std::' randomize_call
The
Function:
(defun vl-parse-subroutine-call-fn (tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (let ((__function__ 'vl-parse-subroutine-call)) (declare (ignorable __function__)) (if (vl-is-token? :vl-sysidtoken) (vl-parse-system-tf-call) (vl-parse-tf-call))))
Theorem:
(defthm vl-parse-subroutine-call-fails-gracefully (implies (mv-nth 0 (vl-parse-subroutine-call)) (not (mv-nth 1 (vl-parse-subroutine-call)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-subroutine-call (iff (vl-warning-p (mv-nth 0 (vl-parse-subroutine-call))) (mv-nth 0 (vl-parse-subroutine-call))))
Theorem:
(defthm vl-parse-subroutine-call-result (implies (and t) (equal (vl-stmt-p (mv-nth 1 (vl-parse-subroutine-call))) (not (mv-nth 0 (vl-parse-subroutine-call))))))
Theorem:
(defthm vl-parse-subroutine-call-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-subroutine-call))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-subroutine-call))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-subroutine-call))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))
Theorem:
(defthm vl-stmt-kind-of-vl-parse-subroutine-call (b* (((mv err stmt ?tokstream) (vl-parse-subroutine-call))) (implies (not err) (equal (vl-stmt-kind stmt) :vl-callstmt))))