Recognizer for vl-udp structures.
(vl-udp-p x) → *
Function:
(defun vl-udp-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-udp-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-udp) (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 (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-car (std::prod-cdr (cdr x))))) (std::prod-consp (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))))) (output (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))) (inputs (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (sequentialp (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x)))))) (table (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) ) (initval (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (warnings (std::prod-car (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (minloc (std::prod-cdr (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x)))))) (maxloc (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (comments (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (stringp name) (vl-portdecl-p output) (vl-portdecllist-p inputs) (booleanp sequentialp) (vl-udptable-p table) (vl-maybe-expr-p initval) (vl-warninglist-p warnings) (vl-location-p minloc) (vl-location-p maxloc) (vl-atts-p atts) (vl-commentmap-p comments))))))
Theorem:
(defthm consp-when-vl-udp-p (implies (vl-udp-p x) (consp x)) :rule-classes :compound-recognizer)