Get the memory field from a stat.
(stat->memory x) → memory
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stat->memory$inline (x) (declare (xargs :guard (statp x))) (declare (xargs :guard t)) (let ((__function__ 'stat->memory)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::ubyte8-list-fix (cdr (std::da-nth 2 x)))) :exec (cdr (std::da-nth 2 x)))))
Theorem:
(defthm ubyte8-listp-of-stat->memory (b* ((memory (stat->memory$inline x))) (ubyte8-listp memory)) :rule-classes :rewrite)
Theorem:
(defthm stat->memory$inline-of-stat-fix-x (equal (stat->memory$inline (stat-fix x)) (stat->memory$inline x)))
Theorem:
(defthm stat->memory$inline-stat-equiv-congruence-on-x (implies (stat-equiv x x-equiv) (equal (stat->memory$inline x) (stat->memory$inline x-equiv))) :rule-classes :congruence)