(vl-scopestack-nesting-level x) → level
Function:
(defun vl-scopestack-nesting-level (x) (declare (xargs :guard (vl-scopestack-p x))) (let ((__function__ 'vl-scopestack-nesting-level)) (declare (ignorable __function__)) (vl-scopestack-case x :null 0 :global 1 :local (+ 1 (vl-scopestack-nesting-level x.super)))))
Theorem:
(defthm natp-of-vl-scopestack-nesting-level (b* ((level (vl-scopestack-nesting-level x))) (natp level)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-nesting-level-of-vl-scopestack-fix-x (equal (vl-scopestack-nesting-level (vl-scopestack-fix x)) (vl-scopestack-nesting-level x)))
Theorem:
(defthm vl-scopestack-nesting-level-vl-scopestack-equiv-congruence-on-x (implies (vl-scopestack-equiv x x-equiv) (equal (vl-scopestack-nesting-level x) (vl-scopestack-nesting-level x-equiv))) :rule-classes :congruence)