Convert from type
Function:
(defun uint-from-sshort (x) (declare (xargs :guard (sshortp x))) (let ((__function__ 'uint-from-sshort)) (declare (ignorable __function__)) (uint-from-integer-mod (integer-from-sshort x))))
Theorem:
(defthm uintp-of-uint-from-sshort (b* ((result (uint-from-sshort x))) (uintp result)) :rule-classes :rewrite)
Theorem:
(defthm uint-from-sshort-of-sshort-fix-x (equal (uint-from-sshort (sshort-fix x)) (uint-from-sshort x)))
Theorem:
(defthm uint-from-sshort-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (uint-from-sshort x) (uint-from-sshort x-equiv))) :rule-classes :congruence)