Recognizer for vl-loadresult structures.
(vl-loadresult-p x) → *
Function:
(defun vl-loadresult-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-loadresult-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-loadresult) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(design filemap defines ifdefmap defmap))) :exec (fty::alist-with-carsp (cdr x) '(design filemap defines ifdefmap defmap))) (b* ((design (cdr (std::da-nth 0 (cdr x)))) (filemap (cdr (std::da-nth 1 (cdr x)))) (defines (cdr (std::da-nth 2 (cdr x)))) (ifdefmap (cdr (std::da-nth 3 (cdr x)))) (defmap (cdr (std::da-nth 4 (cdr x))))) (and (vl-design-p design) (vl-filemap-p filemap) (vl-defines-p defines) (vl-ifdef-use-map-p ifdefmap) (vl-def-use-map-p defmap))))))
Theorem:
(defthm consp-when-vl-loadresult-p (implies (vl-loadresult-p x) (consp x)) :rule-classes :compound-recognizer)