Recognizer for vl-location structures.
(vl-location-p x) → *
Function:
(defun vl-location-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-location-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-location) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((filename (std::prod-car (cdr x))) (line (std::prod-car (std::prod-cdr (cdr x)))) (col (std::prod-cdr (std::prod-cdr (cdr x))))) (and (stringp filename) (posp line) (natp col))))))
Theorem:
(defthm consp-when-vl-location-p (implies (vl-location-p x) (consp x)) :rule-classes :compound-recognizer)