Get the get field from a value-ushort.
(value-ushort->get x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun value-ushort->get$inline (x) (declare (xargs :guard (valuep x))) (declare (xargs :guard (equal (value-kind x) :ushort))) (let ((__function__ 'value-ushort->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (value-kind x) :ushort) x))) (ushort-integer-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm ushort-integerp-of-value-ushort->get (b* ((get (value-ushort->get$inline x))) (ushort-integerp get)) :rule-classes :rewrite)
Theorem:
(defthm value-ushort->get$inline-of-value-fix-x (equal (value-ushort->get$inline (value-fix x)) (value-ushort->get$inline x)))
Theorem:
(defthm value-ushort->get$inline-value-equiv-congruence-on-x (implies (value-equiv x x-equiv) (equal (value-ushort->get$inline x) (value-ushort->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm value-ushort->get-when-wrong-kind (implies (not (equal (value-kind x) :ushort)) (equal (value-ushort->get x) (ushort-integer-fix nil))))