diff options
author | 2018-04-18 20:51:41 -0400 | |
---|---|---|
committer | 2018-04-18 20:51:41 -0400 | |
commit | 4326f7a49a41a8635d73f5bf00f3e8d9bc95cec6 (patch) | |
tree | 1c9e3cd2b3c7e2e10101fe7655bc429732861bd4 /src | |
parent | 7bdab68b6e531e0260d199eb96af243b085bdc1a (diff) |
Also include argument bounds in bounds-analysis-failure message
This will be required to correctly stringify the syntax tree for the error message
Diffstat (limited to 'src')
-rw-r--r-- | src/Experiments/SimplyTypedArithmetic.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Experiments/SimplyTypedArithmetic.v b/src/Experiments/SimplyTypedArithmetic.v index 457838787..002fbd198 100644 --- a/src/Experiments/SimplyTypedArithmetic.v +++ b/src/Experiments/SimplyTypedArithmetic.v @@ -6543,7 +6543,7 @@ Module Pipeline. Inductive ErrorMessage := | Computed_bounds_are_not_tight_enough {t} (computed_bounds expected_bounds : ZRange.type.option.interp t) - {t'} (syntax_tree : Expr t') + {s} (syntax_tree : Expr (s -> t)) (arg_bounds : ZRange.type.option.interp s) | Bounds_analysis_failed | Type_too_complicated_for_cps (t : type) | Value_not_le (descr : string) {T'} (lhs rhs : T') @@ -6602,7 +6602,7 @@ Module Pipeline. match E with | inl E => Success E | inr (b, E) - => Error (Computed_bounds_are_not_tight_enough b out_bounds E) + => Error (Computed_bounds_are_not_tight_enough b out_bounds E arg_bounds) end) | None => Error (Type_too_complicated_for_cps t) end. |