(vl-indexexpr-p x) → bool
Function:
(defun vl-indexexpr-p (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-indexexpr-p)) (declare (ignorable __function__)) (b* (((when (vl-atom-p x)) (mbe :logic (vl-scopeexpr-p x) :exec (vl-hidname-p x))) ((vl-nonatom x)) ((when (or (vl-op-equiv x.op :vl-index) (vl-op-equiv x.op :vl-bitselect))) (vl-indexexpr-p (first x.args)))) (vl-scopeexpr-p x))))
Theorem:
(defthm vl-indexexpr-p-of-vl-expr-fix-x (equal (vl-indexexpr-p (vl-expr-fix x)) (vl-indexexpr-p x)))
Theorem:
(defthm vl-indexexpr-p-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-indexexpr-p x) (vl-indexexpr-p x-equiv))) :rule-classes :congruence)