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