Recognizer for vl-interface structures.
(vl-interface-p x) → *
Function:
(defun vl-interface-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-interface-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-interface) (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 (std::prod-car (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-car (cdr x)))) (std::prod-consp (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (std::prod-consp (std::prod-cdr (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-car (std::prod-car (std::prod-cdr (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (std::prod-consp (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (std::prod-consp (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))) (b* ((name (std::prod-car (std::prod-car (std::prod-car (cdr x))))) (ports (std::prod-car (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (portdecls (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-car (cdr x)))))) (paramdecls (std::prod-car (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))) (vardecls (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-car (cdr x)))))) (modports (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (generates (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (imports (std::prod-car (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))) (warnings (std::prod-cdr (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))))) (minloc (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (maxloc (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (atts (std::prod-car (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (origname (std::prod-cdr (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x)))))) (comments (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (loaditems (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-portlist-p ports) (vl-portdecllist-p portdecls) (vl-paramdecllist-p paramdecls) (vl-vardecllist-p vardecls) (vl-modportlist-p modports) (vl-genelementlist-p generates) (vl-importlist-p imports) (vl-warninglist-p warnings) (vl-location-p minloc) (vl-location-p maxloc) (vl-atts-p atts) (stringp origname) (vl-commentmap-p comments) (vl-genelementlist-p loaditems))))))
Theorem:
(defthm consp-when-vl-interface-p (implies (vl-interface-p x) (consp x)) :rule-classes :compound-recognizer)