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