Recognizer for vl-regularport structures.
(vl-regularport-p x) → *
Function:
(defun vl-regularport-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-regularport-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-regularport) (std::prod-consp (cdr x)) (std::prod-consp (std::prod-cdr (cdr x))) (b* ((name (std::prod-car (cdr x))) (expr (std::prod-car (std::prod-cdr (cdr x)))) (loc (std::prod-cdr (std::prod-cdr (cdr x))))) (and (maybe-stringp name) (vl-maybe-expr-p expr) (vl-location-p loc))))))
Theorem:
(defthm consp-when-vl-regularport-p (implies (vl-regularport-p x) (consp x)) :rule-classes :compound-recognizer)