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