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