(vl-fundecl-immdeps x ans &key (ss 'ss)) → new-ans
Function:
(defun vl-fundecl-immdeps-fn (x ans ss) (declare (xargs :guard (and (vl-fundecl-p x) (vl-immdeps-p ans) (vl-scopestack-p ss)))) (let ((__function__ 'vl-fundecl-immdeps)) (declare (ignorable __function__)) (b* ((x (vl-fundecl-fix x)) (ans (vl-immdeps-fix ans)) (ss (vl-scopestack-fix ss))) (b* (((vl-fundecl x)) (ctx x) (ans (vl-datatype-immdeps x.rettype ans)) (ans (vl-portdecllist-immdeps x.portdecls ans)) (ss (vl-scopestack-push (vl-fundecl->blockscope x) ss)) (ans (vl-importlist-immdeps x.imports ans)) (ans (vl-paramdecllist-immdeps x.paramdecls ans)) (ans (vl-vardecllist-immdeps x.vardecls ans))) (vl-stmt-immdeps x.body ans :ctx x)))))
Theorem:
(defthm vl-immdeps-p-of-vl-fundecl-immdeps (b* ((new-ans (vl-fundecl-immdeps-fn x ans ss))) (vl-immdeps-p new-ans)) :rule-classes :rewrite)
Theorem:
(defthm vl-fundecl-immdeps-fn-of-vl-fundecl-fix-x (equal (vl-fundecl-immdeps-fn (vl-fundecl-fix x) ans ss) (vl-fundecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-fundecl-immdeps-fn-vl-fundecl-equiv-congruence-on-x (implies (vl-fundecl-equiv x x-equiv) (equal (vl-fundecl-immdeps-fn x ans ss) (vl-fundecl-immdeps-fn x-equiv ans ss))) :rule-classes :congruence)
Theorem:
(defthm vl-fundecl-immdeps-fn-of-vl-immdeps-fix-ans (equal (vl-fundecl-immdeps-fn x (vl-immdeps-fix ans) ss) (vl-fundecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-fundecl-immdeps-fn-vl-immdeps-equiv-congruence-on-ans (implies (vl-immdeps-equiv ans ans-equiv) (equal (vl-fundecl-immdeps-fn x ans ss) (vl-fundecl-immdeps-fn x ans-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-fundecl-immdeps-fn-of-vl-scopestack-fix-ss (equal (vl-fundecl-immdeps-fn x ans (vl-scopestack-fix ss)) (vl-fundecl-immdeps-fn x ans ss)))
Theorem:
(defthm vl-fundecl-immdeps-fn-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-fundecl-immdeps-fn x ans ss) (vl-fundecl-immdeps-fn x ans ss-equiv))) :rule-classes :congruence)