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