diff options
author | Checkmate50 <dgeisler50@gmail.com> | 2016-07-19 16:39:54 -0600 |
---|---|---|
committer | Checkmate50 <dgeisler50@gmail.com> | 2016-07-19 16:39:54 -0600 |
commit | 86c78db45fad37209663bf87547a50a880760051 (patch) | |
tree | afb65ae7053e5fe34b5ab7b306c26011ffa393a6 /Test | |
parent | 59052004251c655e06951eb4615938259fdf4844 (diff) |
fixed an issue with parsing floating points
Diffstat (limited to 'Test')
-rw-r--r-- | Test/floats/float3.bpl | 4 | ||||
-rw-r--r-- | Test/floats/float4.bpl | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Test/floats/float3.bpl b/Test/floats/float3.bpl index 31de7ca8..e4de8b3b 100644 --- a/Test/floats/float3.bpl +++ b/Test/floats/float3.bpl @@ -8,10 +8,10 @@ procedure main() returns () { z := x + y; z := x - y; z := x * y; - assume(y != 0e-128f24e8); + assume(y != 0e-127f24e8); z := x / y; - z := (0e0f24e8 + 0e0f24e8 + 0e-128f24e8); + z := (0e0f24e8 + 0e0f24e8 + 0e-127f24e8); assert(z == 0e1f24e8); z := 0e1f24e8 - 0e0f24e8; diff --git a/Test/floats/float4.bpl b/Test/floats/float4.bpl index a1608572..816d8446 100644 --- a/Test/floats/float4.bpl +++ b/Test/floats/float4.bpl @@ -1,10 +1,11 @@ // RUN: %boogie -proverWarnings:1 "%s" > "%t" // RUN: %diff "%s.expect" "%t" -procedure foo() returns (r : float32) { +procedure foo() returns (r : float8e24) { r := 0NaN8e24; r := 0nan8e24; r := 0+oo8e24; r := 0-oo8e24; + r := -5e-3f8e24; return; }
\ No newline at end of file |