Recognizer for vl-weirdint structures.
(vl-weirdint-p x) → *
Function:
(defun vl-weirdint-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-weirdint-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-weirdint) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-car (cdr x))) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((origwidth (std::prod-car (std::prod-car (cdr x)))) (bits (std::prod-cdr (std::prod-car (cdr x)))) (origtype (std::prod-car (std::prod-cdr (cdr x)))) (wasunsized (std::prod-cdr (std::prod-cdr (cdr x))))) (and (posp origwidth) (vl-bitlist-p bits) (vl-exprtype-p origtype) (booleanp wasunsized) (equal (len bits) origwidth))))))
Theorem:
(defthm consp-when-vl-weirdint-p (implies (vl-weirdint-p x) (consp x)) :rule-classes :compound-recognizer)