The ACL2 integer value of
Function:
(defun ienv->sshort-max (ienv) (declare (xargs :guard (ienvp ienv))) (integer-format->signed-max (char+short+int+long+llong+bool-format->short (ienv->char+short+int+long+llong+bool-format ienv))))
Theorem:
(defthm posp-of-ienv->sshort-max (b* ((max (ienv->sshort-max ienv))) (posp max)) :rule-classes :rewrite)
Theorem:
(defthm ienv->sshort-max-of-ienv-fix-ienv (equal (ienv->sshort-max (ienv-fix ienv)) (ienv->sshort-max ienv)))
Theorem:
(defthm ienv->sshort-max-ienv-equiv-congruence-on-ienv (implies (ienv-equiv ienv ienv-equiv) (equal (ienv->sshort-max ienv) (ienv->sshort-max ienv-equiv))) :rule-classes :congruence)