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