Recognizer for vl-loadstate structures.
(vl-loadstate-p x) → *
Function:
(defun vl-loadstate-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-loadstate-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-loadstate) (std::prod-consp (cdr x)) (std::prod-consp (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* ((config (std::prod-car (std::prod-car (cdr x)))) (descs (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (?descalist (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (defines (std::prod-car (std::prod-car (std::prod-cdr (cdr x)))) ) (reportcard (std::prod-cdr (std::prod-car (std::prod-cdr (cdr x))))) (pstate (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (filemap (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (vl-loadconfig-p config) (vl-descriptionlist-p descs) (vl-defines-p defines) (vl-reportcard-p reportcard) (vl-parsestate-p pstate) (vl-filemap-p filemap) (equal descalist (vl-make-descalist descs)))))))
Theorem:
(defthm consp-when-vl-loadstate-p (implies (vl-loadstate-p x) (consp x)) :rule-classes :compound-recognizer)