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