Bitwise exclusive disjunction of a value of type
Function:
(defun bitxor-sshort-schar (x y) (declare (xargs :guard (and (sshortp x) (scharp y)))) (bitxor-sint-sint (sint-from-sshort x) (sint-from-schar y)))
Theorem:
(defthm sintp-of-bitxor-sshort-schar (sintp (bitxor-sshort-schar x y)))
Theorem:
(defthm bitxor-sshort-schar-of-sshort-fix-x (equal (bitxor-sshort-schar (sshort-fix x) y) (bitxor-sshort-schar x y)))
Theorem:
(defthm bitxor-sshort-schar-sshort-equiv-congruence-on-x (implies (sshort-equiv x x-equiv) (equal (bitxor-sshort-schar x y) (bitxor-sshort-schar x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm bitxor-sshort-schar-of-schar-fix-y (equal (bitxor-sshort-schar x (schar-fix y)) (bitxor-sshort-schar x y)))
Theorem:
(defthm bitxor-sshort-schar-schar-equiv-congruence-on-y (implies (schar-equiv y y-equiv) (equal (bitxor-sshort-schar x y) (bitxor-sshort-schar x y-equiv))) :rule-classes :congruence)