Recognizer for vl-dpiimport structures.
(vl-dpiimport-p x) → *
Function:
(defun vl-dpiimport-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-dpiimport-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-dpiimport) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-car (std::prod-car (cdr x)))) (std::prod-consp (std::prod-cdr (std::prod-car (cdr x)))) (std::prod-consp (std::prod-cdr (cdr x))) (std::prod-consp (std::prod-car (std::prod-cdr (cdr x)))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (b* ((name (std::prod-car (std::prod-car (std::prod-car (cdr x))))) (c-name (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))) (spec (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (prop (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (rettype (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (portdecls (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (loc (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (stringp name) (stringp c-name) (vl-dpispec-p spec) (vl-dpiprop-p prop) (vl-maybe-datatype-p rettype) (vl-portdecllist-p portdecls) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-dpiimport-p (implies (vl-dpiimport-p x) (consp x)) :rule-classes :compound-recognizer)