Get the context field from a stmt-gout.
(stmt-gout->context x) → context
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stmt-gout->context$inline (x) (declare (xargs :guard (stmt-goutp x))) (declare (xargs :guard t)) (let ((__function__ 'stmt-gout->context)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (atc-context-fix (cdr (std::da-nth 3 x)))) :exec (cdr (std::da-nth 3 x)))))
Theorem:
(defthm atc-contextp-of-stmt-gout->context (b* ((context (stmt-gout->context$inline x))) (atc-contextp context)) :rule-classes :rewrite)
Theorem:
(defthm stmt-gout->context$inline-of-stmt-gout-fix-x (equal (stmt-gout->context$inline (stmt-gout-fix x)) (stmt-gout->context$inline x)))
Theorem:
(defthm stmt-gout->context$inline-stmt-gout-equiv-congruence-on-x (implies (stmt-gout-equiv x x-equiv) (equal (stmt-gout->context$inline x) (stmt-gout->context$inline x-equiv))) :rule-classes :congruence)