Get the int field from a char+short+int+long+llong+bool-format.
(char+short+int+long+llong+bool-format->int x) → int
This is an ordinary field accessor created by fty::defprod.
Function:
(defun char+short+int+long+llong+bool-format->int$inline (x) (declare (xargs :guard (char+short+int+long+llong+bool-formatp x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (integer-format-fix (cdr (std::da-nth 4 x)))) :exec (cdr (std::da-nth 4 x))))
Theorem:
(defthm integer-formatp-of-char+short+int+long+llong+bool-format->int (b* ((int (char+short+int+long+llong+bool-format->int$inline x))) (integer-formatp int)) :rule-classes :rewrite)
Theorem:
(defthm char+short+int+long+llong+bool-format->int$inline-of-char+short+int+long+llong+bool-format-fix-x (equal (char+short+int+long+llong+bool-format->int$inline (char+short+int+long+llong+bool-format-fix x)) (char+short+int+long+llong+bool-format->int$inline x)))
Theorem:
(defthm char+short+int+long+llong+bool-format->int$inline-char+short+int+long+llong+bool-format-equiv-congruence-on-x (implies (char+short+int+long+llong+bool-format-equiv x x-equiv) (equal (char+short+int+long+llong+bool-format->int$inline x) (char+short+int+long+llong+bool-format->int$inline x-equiv))) :rule-classes :congruence)