(vl-rhs-immdeps x ans &key (ss 'ss) (ctx 'ctx)) → ans1
Function:
(defun vl-rhs-immdeps-fn (x ans ss ctx) (declare (xargs :guard (and (vl-rhs-p x) (vl-immdeps-p ans) (vl-scopestack-p ss) (any-p ctx)))) (let ((__function__ 'vl-rhs-immdeps)) (declare (ignorable __function__)) (vl-rhs-case x :vl-rhsexpr (b* ((ans (vl-expr-immdeps-fn x.guts ans ss ctx))) ans) :vl-rhsnew (b* ((ans (vl-maybe-expr-immdeps-fn x.arrsize ans ss ctx)) (ans (vl-exprlist-immdeps-fn x.args ans ss ctx))) ans))))
Theorem:
(defthm vl-immdeps-p-of-vl-rhs-immdeps (b* ((ans1 (vl-rhs-immdeps-fn x ans ss ctx))) (vl-immdeps-p ans1)) :rule-classes :rewrite)
Theorem:
(defthm vl-rhs-immdeps-fn-of-vl-rhs-fix-x (equal (vl-rhs-immdeps-fn (vl-rhs-fix x) ans ss ctx) (vl-rhs-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-rhs-immdeps-fn-vl-rhs-equiv-congruence-on-x (implies (vl-rhs-equiv x x-equiv) (equal (vl-rhs-immdeps-fn x ans ss ctx) (vl-rhs-immdeps-fn x-equiv ans ss ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-rhs-immdeps-fn-of-vl-immdeps-fix-ans (equal (vl-rhs-immdeps-fn x (vl-immdeps-fix ans) ss ctx) (vl-rhs-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-rhs-immdeps-fn-vl-immdeps-equiv-congruence-on-ans (implies (vl-immdeps-equiv ans ans-equiv) (equal (vl-rhs-immdeps-fn x ans ss ctx) (vl-rhs-immdeps-fn x ans-equiv ss ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-rhs-immdeps-fn-of-vl-scopestack-fix-ss (equal (vl-rhs-immdeps-fn x ans (vl-scopestack-fix ss) ctx) (vl-rhs-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-rhs-immdeps-fn-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-rhs-immdeps-fn x ans ss ctx) (vl-rhs-immdeps-fn x ans ss-equiv ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-rhs-immdeps-fn-of-identity-ctx (equal (vl-rhs-immdeps-fn x ans ss (identity ctx)) (vl-rhs-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-rhs-immdeps-fn-equal-congruence-on-ctx (implies (equal ctx ctx-equiv) (equal (vl-rhs-immdeps-fn x ans ss ctx) (vl-rhs-immdeps-fn x ans ss ctx-equiv))) :rule-classes :congruence)