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