Fixer for memory64.
(memory64-fix x) → *
Function:
(defun memory64-fix (x) (declare (xargs :guard (memory64p x))) (mbe :logic (if (memory64p x) x (acl2::ubyte8-list-fix (take 18446744073709551616 x))) :exec x))
Theorem:
(defthm memory64p-of-memory64-fix (memory64p (memory64-fix x)))
Theorem:
(defthm memory64-fix-when-memory64p (implies (memory64p x) (equal (memory64-fix x) x)))