(vl-exprlist-args-to-4vec-consts x) → consts
Function:
(defun vl-exprlist-args-to-4vec-consts (x) (declare (xargs :guard (vl-exprlist-p x))) (let ((__function__ 'vl-exprlist-args-to-4vec-consts)) (declare (ignorable __function__)) (if (atom x) nil (cons (b* ((x1 (car x))) (vl-expr-case x1 :vl-literal (b* (((mv err val) (vl-value-to-4vec x1.val))) (and (not err) val)) :otherwise nil)) (vl-exprlist-args-to-4vec-consts (cdr x))))))
Theorem:
(defthm maybe-4veclist-p-of-vl-exprlist-args-to-4vec-consts (b* ((consts (vl-exprlist-args-to-4vec-consts x))) (sv::maybe-4veclist-p consts)) :rule-classes :rewrite)
Theorem:
(defthm vl-exprlist-args-to-4vec-consts-of-vl-exprlist-fix-x (equal (vl-exprlist-args-to-4vec-consts (vl-exprlist-fix x)) (vl-exprlist-args-to-4vec-consts x)))
Theorem:
(defthm vl-exprlist-args-to-4vec-consts-vl-exprlist-equiv-congruence-on-x (implies (vl-exprlist-equiv x x-equiv) (equal (vl-exprlist-args-to-4vec-consts x) (vl-exprlist-args-to-4vec-consts x-equiv))) :rule-classes :congruence)