Apply
This always returns an
Function:
(defun lognot-pointer-value (val) (declare (xargs :guard (valuep val))) (declare (xargs :guard (value-case val :pointer))) (let ((__function__ 'lognot-pointer-value)) (declare (ignorable __function__)) (if (value-pointer-nullp val) (value-sint 1) (value-sint 0))))
Theorem:
(defthm valuep-of-lognot-pointer-value (b* ((resval (lognot-pointer-value val))) (valuep resval)) :rule-classes :rewrite)
Theorem:
(defthm lognot-pointer-value-of-value-fix-val (equal (lognot-pointer-value (value-fix val)) (lognot-pointer-value val)))
Theorem:
(defthm lognot-pointer-value-value-equiv-congruence-on-val (implies (value-equiv val val-equiv) (equal (lognot-pointer-value val) (lognot-pointer-value val-equiv))) :rule-classes :congruence)