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