diff options
author | Checkmate50 <dgeisler50@gmail.com> | 2016-05-31 12:08:07 -0600 |
---|---|---|
committer | Checkmate50 <dgeisler50@gmail.com> | 2016-05-31 12:08:07 -0600 |
commit | 6f7fc01346c0ebe9072e61ace2cfede4fcedea09 (patch) | |
tree | 6d55790d0180d5e8cf1a79ea03ad6ce3b2019f17 /float_test3.bpl | |
parent | 51b7e8146f413b83a412572fcc9e3a1a8b302b79 (diff) |
Initial round of testing works with new syntax. Fixed an error where floating points could not be given as a function argument
Diffstat (limited to 'float_test3.bpl')
-rw-r--r-- | float_test3.bpl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/float_test3.bpl b/float_test3.bpl index dd0c1ba4..67c6ba48 100644 --- a/float_test3.bpl +++ b/float_test3.bpl @@ -1,13 +1,13 @@ //Translation from addsub_float_inexact.c //Should give an error procedure main() returns () { - var x : float; - var y : float; - var z : float; - var r : float; - x := fp(10000000); - y := x + fp(1); - z := x - fp(1); + var x : float32; + var y : float32; + var z : float32; + var r : float32; + x := fp<8, 24>(3221225472bv32); + y := x + fp<8, 24>(1bv32); + z := x - fp<8, 24>(1bv32); r := y - z; - assert r == fp(0); + assert r == fp<8, 24>(2bv32); }
\ No newline at end of file |