Recognizer for vl-property structures.
(vl-property-p x) → *
Function:
(defun vl-property-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-property-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-property) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(name ports decls spec loc))) :exec (fty::alist-with-carsp (cdr x) '(name ports decls spec loc))) (b* ((name (cdr (std::da-nth 0 (cdr x)))) (ports (cdr (std::da-nth 1 (cdr x)))) (decls (cdr (std::da-nth 2 (cdr x)))) (spec (cdr (std::da-nth 3 (cdr x)))) (loc (cdr (std::da-nth 4 (cdr x))))) (and (stringp name) (vl-propportlist-p ports) (vl-vardecllist-p decls) (vl-propspec-p spec) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-property-p (implies (vl-property-p x) (consp x)) :rule-classes :compound-recognizer)