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