Get the parts field from a vl-concat.
(vl-concat->parts x) → parts
This is an ordinary field accessor created by defprod.
Function:
(defun vl-concat->parts$inline (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (equal (vl-expr-kind x) :vl-concat))) (let ((__function__ 'vl-concat->parts)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vl-expr-kind x) :vl-concat) x))) (vl-exprlist-fix (std::prod-car (cdr x)))) :exec (std::prod-car (cdr x)))))
Theorem:
(defthm vl-exprlist-p-of-vl-concat->parts (b* ((parts (vl-concat->parts$inline x))) (vl-exprlist-p parts)) :rule-classes :rewrite)
Theorem:
(defthm vl-concat->parts$inline-of-vl-expr-fix-x (equal (vl-concat->parts$inline (vl-expr-fix x)) (vl-concat->parts$inline x)))
Theorem:
(defthm vl-concat->parts$inline-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-concat->parts$inline x) (vl-concat->parts$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-concat->parts-when-wrong-kind (implies (not (equal (vl-expr-kind x) :vl-concat)) (equal (vl-concat->parts x) (vl-exprlist-fix nil))))