(vl-indexexpr->indices x) → indices
Function:
(defun vl-indexexpr->indices$inline (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (vl-indexexpr-p x))) (let ((__function__ 'vl-indexexpr->indices)) (declare (ignorable __function__)) (mbe :logic (b* (((when (vl-atom-p x)) nil) ((vl-nonatom x)) ((when (or (vl-op-equiv x.op :vl-index) (vl-op-equiv x.op :vl-bitselect))) (append (vl-indexexpr->indices (first x.args)) (list (second x.args))))) nil) :exec (vl-indexexpr->indices-exec x nil))))
Theorem:
(defthm vl-exprlist-p-of-vl-indexexpr->indices (b* ((indices (vl-indexexpr->indices$inline x))) (vl-exprlist-p indices)) :rule-classes :rewrite)
Theorem:
(defthm vl-indexexpr->indices-exec-removal (equal (vl-indexexpr->indices-exec x acc) (append (vl-indexexpr->indices x) (vl-exprlist-fix acc))))
Theorem:
(defthm vl-indexexpr->indices$inline-of-vl-expr-fix-x (equal (vl-indexexpr->indices$inline (vl-expr-fix x)) (vl-indexexpr->indices$inline x)))
Theorem:
(defthm vl-indexexpr->indices$inline-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-indexexpr->indices$inline x) (vl-indexexpr->indices$inline x-equiv))) :rule-classes :congruence)