(vl-range-immdeps x ans &key (ss 'ss) (ctx 'ctx)) → new-ans
Function:
(defun vl-range-immdeps-fn (x ans ss ctx) (declare (xargs :guard (and (vl-range-p x) (vl-immdeps-p ans) (vl-scopestack-p ss) (acl2::any-p ctx)))) (let ((__function__ 'vl-range-immdeps)) (declare (ignorable __function__)) (b* ((x (vl-range-fix x)) (ans (vl-immdeps-fix ans)) (ss (vl-scopestack-fix ss))) (b* (((vl-range x) x) (ans (vl-expr-immdeps x.msb ans)) (ans (vl-expr-immdeps x.lsb ans))) ans))))
Theorem:
(defthm vl-immdeps-p-of-vl-range-immdeps (b* ((new-ans (vl-range-immdeps-fn x ans ss ctx))) (vl-immdeps-p new-ans)) :rule-classes :rewrite)
Theorem:
(defthm vl-range-immdeps-fn-of-vl-range-fix-x (equal (vl-range-immdeps-fn (vl-range-fix x) ans ss ctx) (vl-range-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-range-immdeps-fn-vl-range-equiv-congruence-on-x (implies (vl-range-equiv x x-equiv) (equal (vl-range-immdeps-fn x ans ss ctx) (vl-range-immdeps-fn x-equiv ans ss ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-range-immdeps-fn-of-vl-immdeps-fix-ans (equal (vl-range-immdeps-fn x (vl-immdeps-fix ans) ss ctx) (vl-range-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-range-immdeps-fn-vl-immdeps-equiv-congruence-on-ans (implies (vl-immdeps-equiv ans ans-equiv) (equal (vl-range-immdeps-fn x ans ss ctx) (vl-range-immdeps-fn x ans-equiv ss ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-range-immdeps-fn-of-vl-scopestack-fix-ss (equal (vl-range-immdeps-fn x ans (vl-scopestack-fix ss) ctx) (vl-range-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-range-immdeps-fn-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-range-immdeps-fn x ans ss ctx) (vl-range-immdeps-fn x ans ss-equiv ctx))) :rule-classes :congruence)
Theorem:
(defthm vl-range-immdeps-fn-of-identity-ctx (equal (vl-range-immdeps-fn x ans ss (identity ctx)) (vl-range-immdeps-fn x ans ss ctx)))
Theorem:
(defthm vl-range-immdeps-fn-equal-congruence-on-ctx (implies (equal ctx ctx-equiv) (equal (vl-range-immdeps-fn x ans ss ctx) (vl-range-immdeps-fn x ans ss ctx-equiv))) :rule-classes :congruence)