Get the writes field from a svstmt-assign.
(svstmt-assign->writes x) → writes
This is an ordinary field accessor created by defprod.
Function:
(defun svstmt-assign->writes$inline (x) (declare (xargs :guard (svstmt-p x))) (declare (xargs :guard (equal (svstmt-kind x) :assign))) (let ((__function__ 'svstmt-assign->writes)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (svstmt-kind x) :assign) x))) (svstmt-writelist-fix (std::prod-car (cdr x)))) :exec (std::prod-car (cdr x)))))
Theorem:
(defthm svstmt-writelist-p-of-svstmt-assign->writes (b* ((writes (svstmt-assign->writes$inline x))) (svstmt-writelist-p writes)) :rule-classes :rewrite)
Theorem:
(defthm svstmt-assign->writes$inline-of-svstmt-fix-x (equal (svstmt-assign->writes$inline (svstmt-fix x)) (svstmt-assign->writes$inline x)))
Theorem:
(defthm svstmt-assign->writes$inline-svstmt-equiv-congruence-on-x (implies (svstmt-equiv x x-equiv) (equal (svstmt-assign->writes$inline x) (svstmt-assign->writes$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm svstmt-assign->writes-when-wrong-kind (implies (not (equal (svstmt-kind x) :assign)) (equal (svstmt-assign->writes x) (svstmt-writelist-fix nil))))