Recognizer for comp-db-entry structures.
(comp-db-entryp x) → *
Function:
(defun comp-db-entryp (x) (declare (xargs :guard t)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(exec directory output arguments))) :exec (fty::alist-with-carsp x '(exec directory output arguments))) (b* ((exec (cdr (std::da-nth 0 x))) (directory (cdr (std::da-nth 1 x))) (output (cdr (std::da-nth 2 x))) (arguments (cdr (std::da-nth 3 x)))) (and (stringp exec) (stringp directory) (string-optionp output) (comp-db-arg-listp arguments)))))
Theorem:
(defthm consp-when-comp-db-entryp (implies (comp-db-entryp x) (consp x)) :rule-classes :compound-recognizer)