Fixing function for vl-location structures.
(vl-location-fix x) → loc
Function:
(defun vl-location-fix$inline (x) (declare (xargs :guard (vl-location-p x))) (let ((__function__ 'vl-location-fix)) (declare (ignorable __function__)) (mbe :logic (if (vl-location-p x) x (vl-location "" 1 0)) :exec x)))
Theorem:
(defthm vl-location-p-of-vl-location-fix (b* ((loc (vl-location-fix$inline x))) (vl-location-p loc)) :rule-classes :rewrite)
Theorem:
(defthm vl-location-fix-when-vl-location-p (implies (vl-location-p x) (equal (vl-location-fix x) x)))