(vl-assign-lucidcheck x ss st) → new-st
Function:
(defun vl-assign-lucidcheck (x ss st) (declare (xargs :guard (and (vl-assign-p x) (vl-scopestack-p ss) (vl-lucidstate-p st)))) (declare (xargs :guard t)) (let ((__function__ 'vl-assign-lucidcheck)) (declare (ignorable __function__)) (b* ((x (vl-assign-fix x)) (ss (vl-scopestack-fix ss)) (st (vl-lucidstate-fix st))) (b* (((vl-assign x)) (ctx (vl-lucid-ctx ss x)) (st (vl-lhsexpr-lucidcheck x.lvalue ss st ctx)) (st (vl-rhsexpr-lucidcheck x.expr ss st ctx)) (st (vl-maybe-gatedelay-lucidcheck x.delay ss st ctx))) st))))
Theorem:
(defthm vl-lucidstate-p-of-vl-assign-lucidcheck (b* ((new-st (vl-assign-lucidcheck x ss st))) (vl-lucidstate-p new-st)) :rule-classes :rewrite)
Theorem:
(defthm vl-assign-lucidcheck-of-vl-assign-fix-x (equal (vl-assign-lucidcheck (vl-assign-fix x) ss st) (vl-assign-lucidcheck x ss st)))
Theorem:
(defthm vl-assign-lucidcheck-vl-assign-equiv-congruence-on-x (implies (vl-assign-equiv x x-equiv) (equal (vl-assign-lucidcheck x ss st) (vl-assign-lucidcheck x-equiv ss st))) :rule-classes :congruence)
Theorem:
(defthm vl-assign-lucidcheck-of-vl-scopestack-fix-ss (equal (vl-assign-lucidcheck x (vl-scopestack-fix ss) st) (vl-assign-lucidcheck x ss st)))
Theorem:
(defthm vl-assign-lucidcheck-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-assign-lucidcheck x ss st) (vl-assign-lucidcheck x ss-equiv st))) :rule-classes :congruence)
Theorem:
(defthm vl-assign-lucidcheck-of-vl-lucidstate-fix-st (equal (vl-assign-lucidcheck x ss (vl-lucidstate-fix st)) (vl-assign-lucidcheck x ss st)))
Theorem:
(defthm vl-assign-lucidcheck-vl-lucidstate-equiv-congruence-on-st (implies (vl-lucidstate-equiv st st-equiv) (equal (vl-assign-lucidcheck x ss st) (vl-assign-lucidcheck x ss st-equiv))) :rule-classes :congruence)