Get the kind (tag) of a cinteger structure.
(cinteger-kind acl2::x) → kind
Function:
(defun cinteger-kind$inline (acl2::x) (declare (xargs :guard (cintegerp acl2::x))) (let ((__function__ 'cinteger-kind)) (declare (ignorable __function__)) (cond ((scharp acl2::x) :schar) ((ucharp acl2::x) :uchar) ((sshortp acl2::x) :sshort) ((ushortp acl2::x) :ushort) ((sintp acl2::x) :sint) ((uintp acl2::x) :uint) ((slongp acl2::x) :slong) ((ulongp acl2::x) :ulong) ((sllongp acl2::x) :sllong) (t :ullong))))
Theorem:
(defthm cinteger-kind-possibilities (or (equal (cinteger-kind acl2::x) :schar) (equal (cinteger-kind acl2::x) :uchar) (equal (cinteger-kind acl2::x) :sshort) (equal (cinteger-kind acl2::x) :ushort) (equal (cinteger-kind acl2::x) :sint) (equal (cinteger-kind acl2::x) :uint) (equal (cinteger-kind acl2::x) :slong) (equal (cinteger-kind acl2::x) :ulong) (equal (cinteger-kind acl2::x) :sllong) (equal (cinteger-kind acl2::x) :ullong)) :rule-classes ((:forward-chaining :trigger-terms ((cinteger-kind acl2::x)))))