Recognizer for vl-modinst structures.
(vl-modinst-p x) → *
Function:
(defun vl-modinst-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-modinst-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-modinst) (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)))) (std::prod-consp (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))) (b* ((instname (std::prod-car (std::prod-car (std::prod-car (cdr x))))) (modname (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))) (portargs (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (paramargs (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (loc (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (range (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (str (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (delay (std::prod-cdr (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x))))))) (and (maybe-stringp instname) (stringp modname) (vl-arguments-p portargs) (vl-paramargs-p paramargs) (vl-location-p loc) (vl-maybe-range-p range) (vl-atts-p atts) (vl-maybe-gatestrength-p str) (vl-maybe-gatedelay-p delay))))))
Theorem:
(defthm consp-when-vl-modinst-p (implies (vl-modinst-p x) (consp x)) :rule-classes :compound-recognizer)