Recognizer for vl-assign structures.
(vl-assign-p x) → *
Function:
(defun vl-assign-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-assign-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-assign) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (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* ((lvalue (std::prod-car (std::prod-car (cdr x)))) (expr (std::prod-car (std::prod-cdr (std::prod-car (cdr x))))) (strength (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))) (delay (std::prod-car (std::prod-cdr (cdr x)))) (atts (std::prod-car (std::prod-cdr (std::prod-cdr (cdr x))))) (loc (std::prod-cdr (std::prod-cdr (std::prod-cdr (cdr x)))))) (and (vl-expr-p lvalue) (vl-expr-p expr) (vl-maybe-gatestrength-p strength) (vl-maybe-gatedelay-p delay) (vl-atts-p atts) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-assign-p (implies (vl-assign-p x) (consp x)) :rule-classes :compound-recognizer)