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