Initialize variables for a scope.
(vl-scope-luciddb-init x ss db) → new-db
The scopeinfo for
Function:
(defun vl-scope-luciddb-init (x ss db) (declare (xargs :guard (and (vl-scope-p x) (vl-scopestack-p ss) (vl-luciddb-p db)))) (let ((__function__ 'vl-scope-luciddb-init)) (declare (ignorable __function__)) (b* ((x (vl-scope-fix x)) (info (vl-scope->scopeinfo x (vl-scopestack->design ss))) (locals (vl-scopeinfo->locals info))) (vl-scope-luciddb-init-aux locals ss db))))
Theorem:
(defthm vl-luciddb-p-of-vl-scope-luciddb-init (b* ((new-db (vl-scope-luciddb-init x ss db))) (vl-luciddb-p new-db)) :rule-classes :rewrite)
Theorem:
(defthm vl-scope-luciddb-init-of-vl-scope-fix-x (equal (vl-scope-luciddb-init (vl-scope-fix x) ss db) (vl-scope-luciddb-init x ss db)))
Theorem:
(defthm vl-scope-luciddb-init-vl-scope-equiv-congruence-on-x (implies (vl-scope-equiv x x-equiv) (equal (vl-scope-luciddb-init x ss db) (vl-scope-luciddb-init x-equiv ss db))) :rule-classes :congruence)
Theorem:
(defthm vl-scope-luciddb-init-of-vl-scopestack-fix-ss (equal (vl-scope-luciddb-init x (vl-scopestack-fix ss) db) (vl-scope-luciddb-init x ss db)))
Theorem:
(defthm vl-scope-luciddb-init-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-scope-luciddb-init x ss db) (vl-scope-luciddb-init x ss-equiv db))) :rule-classes :congruence)
Theorem:
(defthm vl-scope-luciddb-init-of-vl-luciddb-fix-db (equal (vl-scope-luciddb-init x ss (vl-luciddb-fix db)) (vl-scope-luciddb-init x ss db)))
Theorem:
(defthm vl-scope-luciddb-init-vl-luciddb-equiv-congruence-on-db (implies (vl-luciddb-equiv db db-equiv) (equal (vl-scope-luciddb-init x ss db) (vl-scope-luciddb-init x ss db-equiv))) :rule-classes :congruence)