Recognizer for svex-override structures.
(svex-override-p x) → *
Function:
(defun svex-override-p (x) (declare (xargs :guard t)) (let ((__function__ 'svex-override-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(wire test val))) :exec (fty::alist-with-carsp x '(wire test val))) (b* ((wire (cdr (std::da-nth 0 x))) (test (cdr (std::da-nth 1 x))) (val (cdr (std::da-nth 2 x)))) (and (svex-p wire) (svex-p test) (svex-p val))))))
Theorem:
(defthm consp-when-svex-override-p (implies (svex-override-p x) (consp x)) :rule-classes :compound-recognizer)