(vl-2012-parse-block-item-declaration-noatts atts &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-2012-parse-block-item-declaration-noatts-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-2012-parse-block-item-declaration-noatts)) (declare (ignorable __function__)) (seq tokstream (when (vl-is-token? :vl-kwd-bind) (return-raw (vl-parse-error "overload declarations (\"bind ...\") are not yet supported"))) (when (vl-is-token? :vl-kwd-let) (return-raw (vl-parse-error "let declarations are not yet supported"))) (when (vl-is-some-token? '(:vl-kwd-localparam :vl-kwd-parameter)) (elems := (vl-parse-param-or-localparam-declaration atts '(:vl-kwd-localparam :vl-kwd-parameter))) (:= (vl-match-token :vl-semi)) (return elems)) (when (vl-is-token? :vl-kwd-import) (return-raw (vl-parse-package-import-declaration atts))) (elems := (vl-parse-main-data-declaration atts)) (return elems))))
Theorem:
(defthm vl-2012-parse-block-item-declaration-noatts-fails-gracefully (implies (mv-nth 0 (vl-2012-parse-block-item-declaration-noatts atts)) (not (mv-nth 1 (vl-2012-parse-block-item-declaration-noatts atts)))))
Theorem:
(defthm vl-warning-p-of-vl-2012-parse-block-item-declaration-noatts (iff (vl-warning-p (mv-nth 0 (vl-2012-parse-block-item-declaration-noatts atts))) (mv-nth 0 (vl-2012-parse-block-item-declaration-noatts atts))))
Theorem:
(defthm vl-2012-parse-block-item-declaration-noatts-result (implies (and (force (vl-atts-p atts))) (vl-blockitemlist-p (mv-nth 1 (vl-2012-parse-block-item-declaration-noatts atts)))))
Theorem:
(defthm vl-2012-parse-block-item-declaration-noatts-true-listp (true-listp (mv-nth 1 (vl-2012-parse-block-item-declaration-noatts atts))) :rule-classes :type-prescription)
Theorem:
(defthm vl-2012-parse-block-item-declaration-noatts-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-2012-parse-block-item-declaration-noatts atts))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-2012-parse-block-item-declaration-noatts atts))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-2012-parse-block-item-declaration-noatts atts))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))