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