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