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