Recognizer for vl-immdepgraph structures.
(vl-immdepgraph-p x) → *
Function:
(defun vl-immdepgraph-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-immdepgraph-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-immdepgraph) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((all-okp (std::prod-car (cdr x))) (deps (std::prod-car (std::prod-cdr (cdr x)))) (reportcard (std::prod-cdr (std::prod-cdr (cdr x))))) (and (booleanp all-okp) (vl-depgraph-p deps) (vl-reportcard-p reportcard))))))
Theorem:
(defthm consp-when-vl-immdepgraph-p (implies (vl-immdepgraph-p x) (consp x)) :rule-classes :compound-recognizer)