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