Get the error field from a stat32.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stat32->error$inline (x) (declare (xargs :guard (stat32p x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (acl2::bool-fix (cdr (std::da-nth 3 x)))) :exec (cdr (std::da-nth 3 x))))
Theorem:
(defthm booleanp-of-stat32->error (b* ((error (stat32->error$inline x))) (booleanp error)) :rule-classes :rewrite)
Theorem:
(defthm stat32->error$inline-of-stat32-fix-x (equal (stat32->error$inline (stat32-fix x)) (stat32->error$inline x)))
Theorem:
(defthm stat32->error$inline-stat32-equiv-congruence-on-x (implies (stat32-equiv x x-equiv) (equal (stat32->error$inline x) (stat32->error$inline x-equiv))) :rule-classes :congruence)