(vl-vardecl-immdeps x ans &key (ss 'ss)) → new-ans
Function:
(defun vl-vardecl-immdeps-fn (x ans ss) (declare (xargs :guard (and (vl-vardecl-p x) (vl-immdeps-p ans) (vl-scopestack-p ss)))) (let ((__function__ 'vl-vardecl-immdeps)) (declare (ignorable __function__)) (b* ((x (vl-vardecl-fix x)) (ans (vl-immdeps-fix ans)) (ss (vl-scopestack-fix ss))) (b* (((vl-vardecl x)) (ctx x) (ans (vl-datatype-immdeps x.type ans)) (ans (vl-maybe-rhs-immdeps x.initval ans)) (ans (vl-maybe-gatedelay-immdeps x.delay ans))) ans))))
Theorem:
(defthm vl-immdeps-p-of-vl-vardecl-immdeps (b* ((new-ans (vl-vardecl-immdeps-fn x ans ss))) (vl-immdeps-p new-ans)) :rule-classes :rewrite)
Theorem:
(defthm vl-vardecl-immdeps-fn-of-vl-vardecl-fix-x (equal (vl-vardecl-immdeps-fn (vl-vardecl-fix x) ans ss) (vl-vardecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-vardecl-immdeps-fn-vl-vardecl-equiv-congruence-on-x (implies (vl-vardecl-equiv x x-equiv) (equal (vl-vardecl-immdeps-fn x ans ss) (vl-vardecl-immdeps-fn x-equiv ans ss))) :rule-classes :congruence)
Theorem:
(defthm vl-vardecl-immdeps-fn-of-vl-immdeps-fix-ans (equal (vl-vardecl-immdeps-fn x (vl-immdeps-fix ans) ss) (vl-vardecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-vardecl-immdeps-fn-vl-immdeps-equiv-congruence-on-ans (implies (vl-immdeps-equiv ans ans-equiv) (equal (vl-vardecl-immdeps-fn x ans ss) (vl-vardecl-immdeps-fn x ans-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-vardecl-immdeps-fn-of-vl-scopestack-fix-ss (equal (vl-vardecl-immdeps-fn x ans (vl-scopestack-fix ss)) (vl-vardecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-vardecl-immdeps-fn-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-vardecl-immdeps-fn x ans ss) (vl-vardecl-immdeps-fn x ans ss-equiv))) :rule-classes :congruence)