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