Extend the parse state with a new warning.
(vl-parsestate-add-warning warning pstate) → new-pstate
Function:
(defun vl-parsestate-add-warning (warning pstate) (declare (xargs :guard (and (vl-warning-p warning) (vl-parsestate-p pstate)))) (let ((__function__ 'vl-parsestate-add-warning)) (declare (ignorable __function__)) (b* (((vl-parsestate pstate) pstate)) (change-vl-parsestate pstate :warnings (cons warning pstate.warnings)))))
Theorem:
(defthm vl-parsestate-p-of-vl-parsestate-add-warning (b* ((new-pstate (vl-parsestate-add-warning warning pstate))) (vl-parsestate-p new-pstate)) :rule-classes :rewrite)