From 39a390185a8f4dec9552139909e3769990ff033f Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 8 Jul 2020 00:34:33 -0400 Subject: [PATCH] Assume that cast truncates more pervasively This should fix the issue with `None` in the output bounds in #833 --- src/BoundsPipeline.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BoundsPipeline.v b/src/BoundsPipeline.v index 72a0da0cf6..5b6f13a279 100644 --- a/src/BoundsPipeline.v +++ b/src/BoundsPipeline.v @@ -485,7 +485,7 @@ Module Pipeline. out_bounds : ErrorT (Expr t) := (*let E := expr.Uncurry E in*) - let assume_cast_truncates := false in + let assume_cast_truncates := true in let opts := opts_of_method in dlet E := PreBoundsPipeline (* with_dead_code_elimination *) with_subst01 with_let_bind_return translate_to_fancy E arg_bounds in (** We first do bounds analysis with no relaxation so that we