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