Get the msg field from a vl-warning.
(vl-warning->msg x) → msg
This is an ordinary field accessor created by defprod.
Function:
(defun vl-warning->msg$inline (x) (declare (xargs :guard (vl-warning-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-warning->msg)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (str-fix (cdr (std::da-nth 1 (cdr x))))) :exec (cdr (std::da-nth 1 (cdr x))))))
Theorem:
(defthm stringp-of-vl-warning->msg (b* ((msg (vl-warning->msg$inline x))) (stringp msg)) :rule-classes :type-prescription)
Theorem:
(defthm vl-warning->msg$inline-of-vl-warning-fix-x (equal (vl-warning->msg$inline (vl-warning-fix x)) (vl-warning->msg$inline x)))
Theorem:
(defthm vl-warning->msg$inline-vl-warning-equiv-congruence-on-x (implies (vl-warning-equiv x x-equiv) (equal (vl-warning->msg$inline x) (vl-warning->msg$inline x-equiv))) :rule-classes :congruence)