Get the label field from a stmt-gotoe.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stmt-gotoe->label$inline (x) (declare (xargs :guard (stmtp x))) (declare (xargs :guard (equal (stmt-kind x) :gotoe))) (mbe :logic (b* ((x (and (equal (stmt-kind x) :gotoe) x))) (expr-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm exprp-of-stmt-gotoe->label (b* ((label (stmt-gotoe->label$inline x))) (exprp label)) :rule-classes :rewrite)
Theorem:
(defthm stmt-gotoe->label$inline-of-stmt-fix-x (equal (stmt-gotoe->label$inline (stmt-fix x)) (stmt-gotoe->label$inline x)))
Theorem:
(defthm stmt-gotoe->label$inline-stmt-equiv-congruence-on-x (implies (stmt-equiv x x-equiv) (equal (stmt-gotoe->label$inline x) (stmt-gotoe->label$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm stmt-gotoe->label-when-wrong-kind (implies (not (equal (stmt-kind x) :gotoe)) (equal (stmt-gotoe->label x) (expr-fix nil))))