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