Recognizer for vl-paramargs structures.
(vl-paramargs-p x) → *
Function:
(defun vl-paramargs-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-paramargs-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :vl-paramargs-named)) (and (true-listp (cdr x)) (eql (len (cdr x)) 1) (b* ((args (std::da-nth 0 (cdr x)))) (vl-namedparamvaluelist-p args)))) (t (and (eq (car x) :vl-paramargs-plain) (and (true-listp (cdr x)) (eql (len (cdr x)) 1)) (b* ((args (std::da-nth 0 (cdr x)))) (vl-paramvaluelist-p args))))))))
Theorem:
(defthm consp-when-vl-paramargs-p (implies (vl-paramargs-p x) (consp x)) :rule-classes :compound-recognizer)