diff options
author | Jason Gross <jgross@mit.edu> | 2017-04-09 16:11:31 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-04-09 16:11:31 -0400 |
commit | 2411beb5a789169a20d4ee348cc960911a0d2a0e (patch) | |
tree | 3c6f3ef6cf8b4406853c6e261726297539851078 /src/Compilers/Z/Bounds | |
parent | 6d273401fcf24a7be8beb08e5cc96a9619bcfa41 (diff) |
Take more abs in Bounds.Interpretation
Diffstat (limited to 'src/Compilers/Z/Bounds')
-rw-r--r-- | src/Compilers/Z/Bounds/Interpretation.v | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilers/Z/Bounds/Interpretation.v b/src/Compilers/Z/Bounds/Interpretation.v index ab2a8ef43..2fd5c619e 100644 --- a/src/Compilers/Z/Bounds/Interpretation.v +++ b/src/Compilers/Z/Bounds/Interpretation.v @@ -56,7 +56,7 @@ Module Import Bounds. Definition max_abs_bound (x : t) : Z := Z.max (Z.abs (lower x)) (Z.abs (upper x)). Definition upper_lor_and_bounds (x y : Z) : Z - := 2^(1 + Z.log2_up (Z.max x y)). + := 2^(1 + Z.log2_up (Z.max (Z.abs x) (Z.abs y))). Definition extreme_lor_land_bounds (x y : t) : t := let mx := max_abs_bound x in let my := max_abs_bound y in |