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