Get the line number from a vl-location.
(vl-location->line x) → line
Function:
(defun vl-location->line$inline (x) (declare (xargs :guard (vl-location-p x))) (let ((__function__ 'vl-location->line)) (declare (ignorable __function__)) (vl-linecol->line (car (vl-location-fix 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-of-vl-location (equal (vl-location->line (vl-location filename line col)) (pos-fix line)))