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