Recognizes simple name expression: either a hidpiece or an id.
(vl-hidname-p x) → bool
Function:
(defun vl-hidname-p (x) (declare (xargs :guard (vl-expr-p x))) (let ((__function__ 'vl-hidname-p)) (declare (ignorable __function__)) (and (vl-atom-p x) (b* (((vl-atom x) x)) (or (vl-fast-hidpiece-p x.guts) (vl-fast-id-p x.guts))))))
Theorem:
(defthm vl-hidname-p-when-vl-idexpr-p (implies (vl-idexpr-p x) (vl-hidname-p x)))
Theorem:
(defthm vl-hidname-p-when-vl-atom (implies (and (vl-atom-p x) (or (vl-hidpiece-p (vl-atom->guts x)) (vl-id-p (vl-atom->guts x)))) (vl-hidname-p x)))
Theorem:
(defthm vl-hidname-p-of-vl-expr-fix-x (equal (vl-hidname-p (vl-expr-fix x)) (vl-hidname-p x)))
Theorem:
(defthm vl-hidname-p-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-hidname-p x) (vl-hidname-p x-equiv))) :rule-classes :congruence)