Recognizer for vl-tname structures.
(vl-tname-p x) → *
Function:
(defun vl-tname-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-tname-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-tname) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(base model))) :exec (fty::alist-with-carsp (cdr x) '(base model))) (b* ((base (cdr (std::da-nth 0 (cdr x)))) (model (cdr (std::da-nth 1 (cdr x))))) (and (stringp base) (stringp model))))))
Theorem:
(defthm consp-when-vl-tname-p (implies (vl-tname-p x) (consp x)) :rule-classes :compound-recognizer)