Get the destination field from a message.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun message->destination$inline (x) (declare (xargs :guard (messagep x))) (declare (xargs :guard t)) (let ((__function__ 'message->destination)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (address-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm addressp-of-message->destination (b* ((destination (message->destination$inline x))) (addressp destination)) :rule-classes :rewrite)
Theorem:
(defthm message->destination$inline-of-message-fix-x (equal (message->destination$inline (message-fix x)) (message->destination$inline x)))
Theorem:
(defthm message->destination$inline-message-equiv-congruence-on-x (implies (message-equiv x x-equiv) (equal (message->destination$inline x) (message->destination$inline x-equiv))) :rule-classes :congruence)