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