(vl-parse-param-or-localparam-declaration atts types &key (tokstream 'tokstream) (config 'config)) → (mv errmsg? value new-tokstream)
Function:
(defun vl-parse-param-or-localparam-declaration-fn (atts types tokstream config) (declare (xargs :stobjs (tokstream))) (declare (xargs :guard (vl-loadconfig-p config))) (declare (ignorable config)) (declare (xargs :guard (and (vl-atts-p atts) (true-listp types) (subsetp types '(:vl-kwd-parameter :vl-kwd-localparam))))) (let ((__function__ 'vl-parse-param-or-localparam-declaration)) (declare (ignorable __function__)) (if (equal (vl-loadconfig->edition config) :verilog-2005) (vl-parse-param-or-localparam-declaration-2005 atts types) (vl-parse-param-or-localparam-declaration-2012 atts types))))
Theorem:
(defthm vl-parse-param-or-localparam-declaration-fails-gracefully (implies (mv-nth 0 (vl-parse-param-or-localparam-declaration atts types)) (not (mv-nth 1 (vl-parse-param-or-localparam-declaration atts types)))))
Theorem:
(defthm vl-warning-p-of-vl-parse-param-or-localparam-declaration (iff (vl-warning-p (mv-nth 0 (vl-parse-param-or-localparam-declaration atts types))) (mv-nth 0 (vl-parse-param-or-localparam-declaration atts types))))
Theorem:
(defthm vl-parse-param-or-localparam-declaration-result (implies (and (and (force (vl-atts-p atts)) (force (true-listp types)) (force (subsetp types '(:vl-kwd-parameter :vl-kwd-localparam))))) (vl-paramdecllist-p (mv-nth 1 (vl-parse-param-or-localparam-declaration atts types)))))
Theorem:
(defthm vl-parse-param-or-localparam-declaration-true-listp (true-listp (mv-nth 1 (vl-parse-param-or-localparam-declaration atts types))) :rule-classes :type-prescription)
Theorem:
(defthm vl-parse-param-or-localparam-declaration-count-strong (and (<= (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-param-or-localparam-declaration atts types))) (vl-tokstream-measure)) (implies (not (mv-nth 0 (vl-parse-param-or-localparam-declaration atts types))) (< (vl-tokstream-measure :tokstream (mv-nth 2 (vl-parse-param-or-localparam-declaration atts types))) (vl-tokstream-measure)))) :rule-classes ((:rewrite) (:linear)))