Recognizer for vl-timeliteral structures.
(vl-timeliteral-p x) → *
Function:
(defun vl-timeliteral-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-timeliteral-p)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :vl-timeliteral) (consp (cdr x)) (b* ((quantity (car (cdr x))) (units (cdr (cdr x)))) (and (stringp quantity) (vl-timeunit-p units))))))
Theorem:
(defthm consp-when-vl-timeliteral-p (implies (vl-timeliteral-p x) (consp x)) :rule-classes :compound-recognizer)