Recognizer for vl-gateinst structures.
(vl-gateinst-p x) → *
Function:
(defun vl-gateinst-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-gateinst-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-gateinst) (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* ((type (std::prod-car (std::prod-car (std::prod-car (cdr x))))) (args (std::prod-cdr (std::prod-car (std::prod-car (cdr x))))) (loc (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (name (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (atts (std::prod-car (std::prod-car (std::prod-cdr (cdr x))))) (range (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (strength (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (delay (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (vl-gatetype-p type) (vl-plainarglist-p args) (vl-location-p loc) (maybe-stringp name) (vl-atts-p atts) (vl-maybe-range-p range) (vl-maybe-gatestrength-p strength) (vl-maybe-gatedelay-p delay))))))
Theorem:
(defthm consp-when-vl-gateinst-p (implies (vl-gateinst-p x) (consp x)) :rule-classes :compound-recognizer)