Recognizer for vl-distitem structures.
(vl-distitem-p x) → *
Function:
(defun vl-distitem-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-distitem-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-distitem) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((left (std::prod-car (std::prod-car (cdr x)))) (right (std::prod-cdr (std::prod-car (cdr x)))) (type (std::prod-car (std::prod-cdr (cdr x)))) (weight (std::prod-cdr (std::prod-cdr (cdr x))))) (and (vl-expr-p left) (vl-maybe-expr-p right) (vl-distweighttype-p type) (vl-expr-p weight))))))
Theorem:
(defthm consp-when-vl-distitem-p (implies (vl-distitem-p x) (consp x)) :rule-classes :compound-recognizer)