Recognizer for vl-funtemplate structures.
(vl-funtemplate-p x) → *
Function:
(defun vl-funtemplate-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-funtemplate-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-funtemplate) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (std::prod-consp (std::prod-cdr (std::prod-cdr (cdr x)))) (b* ((name (std::prod-car (std::prod-car (cdr x)))) (inputs (std::prod-cdr (std::prod-car (cdr x)))) (locals (std::prod-car (std::prod-cdr (cdr x)))) (out (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (assigns (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (stringp name) (vl-vardecllist-p inputs) (vl-vardecllist-p locals) (vl-vardecl-p out) (vl-assignlist-p assigns))))))
Theorem:
(defthm consp-when-vl-funtemplate-p (implies (vl-funtemplate-p x) (consp x)) :rule-classes :compound-recognizer)