Recognizer for tmp-occ structures.
(tmp-occ-p x) → *
Function:
(defun tmp-occ-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'tmp-occ-p)) (declare (ignorable acl2::__function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :assign)) (and (true-listp (cdr x)) (eql (len (cdr x)) 4) (b* ((inputs (std::da-nth 0 (cdr x))) (delayed-inputs (std::da-nth 1 (cdr x))) (outputs (std::da-nth 2 (cdr x))) (svex (std::da-nth 3 (cdr x)))) (and (wire-list-p inputs) (sv::svarlist-p delayed-inputs) (wire-list-p outputs) (svex-p svex))))) (t (and (eq (car x) :module) (and (true-listp (cdr x)) (eql (len (cdr x)) 3)) (b* ((inputs (std::da-nth 0 (cdr x))) (outputs (std::da-nth 1 (cdr x))) (name (std::da-nth 2 (cdr x)))) (and (module-occ-wire-list-p inputs) (module-occ-wire-list-p outputs) (sv::modname-p name)))))))))
Theorem:
(defthm consp-when-tmp-occ-p (implies (tmp-occ-p x) (consp x)) :rule-classes :compound-recognizer)