Recognizer for vl-simpconfig structures.
(vl-simpconfig-p x) → *
Function:
(defun vl-simpconfig-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-simpconfig-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-simpconfig) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(compress-p problem-mods clean-params-p unroll-limit))) :exec (fty::alist-with-carsp (cdr x) '(compress-p problem-mods clean-params-p unroll-limit))) (b* ((compress-p (cdr (std::da-nth 0 (cdr x)))) (problem-mods (cdr (std::da-nth 1 (cdr x)))) (clean-params-p (cdr (std::da-nth 2 (cdr x)))) (unroll-limit (cdr (std::da-nth 3 (cdr x))))) (and (booleanp compress-p) (string-listp problem-mods) (booleanp clean-params-p) (natp unroll-limit))))))
Theorem:
(defthm consp-when-vl-simpconfig-p (implies (vl-simpconfig-p x) (consp x)) :rule-classes :compound-recognizer)