Recognize plain identifier expressions.
(vl-idexpr-p x) → *
This recognizes simple non-hierarchical identifier expressions
like
Function:
(defun vl-idexpr-p$inline (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-idexpr-p)) (declare (ignorable __function__)) (vl-expr-case x :vl-index (and (atom x.indices) (vl-partselect-case x.part :none) (vl-idscope-p x.scope)) :otherwise nil)))
Theorem:
(defthm vl-idexpr-p$inline-of-vl-expr-fix-x (equal (vl-idexpr-p$inline (vl-expr-fix x)) (vl-idexpr-p$inline x)))
Theorem:
(defthm vl-idexpr-p$inline-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-idexpr-p$inline x) (vl-idexpr-p$inline x-equiv))) :rule-classes :congruence)