(vl-vardecl-lucidcheck x ss st) → new-st
Function:
(defun vl-vardecl-lucidcheck (x ss st) (declare (xargs :guard (and (vl-vardecl-p x) (vl-scopestack-p ss) (vl-lucidstate-p st)))) (declare (xargs :guard t)) (let ((__function__ 'vl-vardecl-lucidcheck)) (declare (ignorable __function__)) (b* ((x (vl-vardecl-fix x)) (ss (vl-scopestack-fix ss)) (st (vl-lucidstate-fix st))) (b* (((vl-vardecl x)) (ctx (vl-basic-lucidctx ss x)) (st (vl-maybe-gatedelay-lucidcheck x.delay ss st ctx)) (st (vl-datatype-lucidcheck x.type ss st ctx)) (st (if x.initval (b* ((st (vl-rhs-lucidcheck x.initval ss st ctx)) (st (vl-lucid-mark-simple :set x.name ss st ctx))) st) st))) st))))
Theorem:
(defthm vl-lucidstate-p-of-vl-vardecl-lucidcheck (b* ((new-st (vl-vardecl-lucidcheck x ss st))) (vl-lucidstate-p new-st)) :rule-classes :rewrite)
Theorem:
(defthm vl-vardecl-lucidcheck-of-vl-vardecl-fix-x (equal (vl-vardecl-lucidcheck (vl-vardecl-fix x) ss st) (vl-vardecl-lucidcheck x ss st)))
Theorem:
(defthm vl-vardecl-lucidcheck-vl-vardecl-equiv-congruence-on-x (implies (vl-vardecl-equiv x x-equiv) (equal (vl-vardecl-lucidcheck x ss st) (vl-vardecl-lucidcheck x-equiv ss st))) :rule-classes :congruence)
Theorem:
(defthm vl-vardecl-lucidcheck-of-vl-scopestack-fix-ss (equal (vl-vardecl-lucidcheck x (vl-scopestack-fix ss) st) (vl-vardecl-lucidcheck x ss st)))
Theorem:
(defthm vl-vardecl-lucidcheck-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-vardecl-lucidcheck x ss st) (vl-vardecl-lucidcheck x ss-equiv st))) :rule-classes :congruence)
Theorem:
(defthm vl-vardecl-lucidcheck-of-vl-lucidstate-fix-st (equal (vl-vardecl-lucidcheck x ss (vl-lucidstate-fix st)) (vl-vardecl-lucidcheck x ss st)))
Theorem:
(defthm vl-vardecl-lucidcheck-vl-lucidstate-equiv-congruence-on-st (implies (vl-lucidstate-equiv st st-equiv) (equal (vl-vardecl-lucidcheck x ss st) (vl-vardecl-lucidcheck x ss st-equiv))) :rule-classes :congruence)