Get the varp field from a vl-vardecl.
(vl-vardecl->varp x) → varp
This is an ordinary field accessor created by defprod.
Function:
(defun vl-vardecl->varp$inline (x) (declare (xargs :guard (vl-vardecl-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-vardecl->varp)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::bool-fix (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))) :exec (std::prod-car (std::prod-cdr (std::prod-cdr (std::prod-car (cdr x))))))))
Theorem:
(defthm booleanp-of-vl-vardecl->varp (b* ((varp (vl-vardecl->varp$inline x))) (booleanp varp)) :rule-classes :type-prescription)
Theorem:
(defthm vl-vardecl->varp$inline-of-vl-vardecl-fix-x (equal (vl-vardecl->varp$inline (vl-vardecl-fix x)) (vl-vardecl->varp$inline x)))
Theorem:
(defthm vl-vardecl->varp$inline-vl-vardecl-equiv-congruence-on-x (implies (vl-vardecl-equiv x x-equiv) (equal (vl-vardecl->varp$inline x) (vl-vardecl->varp$inline x-equiv))) :rule-classes :congruence)