diff options
author | Checkmate50 <dgeisler50@gmail.com> | 2016-07-22 15:42:33 -0600 |
---|---|---|
committer | Checkmate50 <dgeisler50@gmail.com> | 2016-07-22 15:42:33 -0600 |
commit | ce9d174eba6a4efd321e78fed4a6e00aab1fda2c (patch) | |
tree | 06b4f3239b76b252fc4de1b43428689199a8d0db /Test/floats/float14.bpl | |
parent | 07c34b257ba84db8ec26cba283aae74f87087181 (diff) |
fixed the syntax on former tests and added two fp constant translation tests
Diffstat (limited to 'Test/floats/float14.bpl')
-rw-r--r-- | Test/floats/float14.bpl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/floats/float14.bpl b/Test/floats/float14.bpl new file mode 100644 index 00000000..1752ef0d --- /dev/null +++ b/Test/floats/float14.bpl @@ -0,0 +1,22 @@ +// RUN: %boogie -proverWarnings:1 "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +procedure main() returns () { + var f : float24e8; + var d : float53e11; + + f := 0e-1f24e8; //Error + f := 0e256f24e8; //Error + f := 0e255f24e8; //No Error + + f := 8388608e0f24e8; //Error + f := -8388608e0f24e8; //Error + f := 8388607e0f24e8; //No Error + + d := 0e-1f53e11; //Error + d := 0e2048f53e11; //Error + d := 0e2047f53e11; //No Error + + d := 4503599627370496e0f53e11; //Error + d := -4503599627370496e0f53e11; //Error + d := 4503599627370495e0f53e11; //No Error +}
\ No newline at end of file |