summaryrefslogtreecommitdiff
path: root/Test/floats/float7.bpl
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-29 17:40:45 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-29 17:40:45 -0400
commit77123528a64dd438a31a29f8f589904d71e668e9 (patch)
treec4c49a3a17e170f69f0785996987770f4cf1ad3b /Test/floats/float7.bpl
parent54b058e054efe8348f8fa3d99ed5992807e28d81 (diff)
parent1f2d6c15cc587e9e1b91be70186ee9a26d5e1928 (diff)
Merge branch 'dfsg_free'
Diffstat (limited to 'Test/floats/float7.bpl')
-rw-r--r--Test/floats/float7.bpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/floats/float7.bpl b/Test/floats/float7.bpl
new file mode 100644
index 00000000..39fca79e
--- /dev/null
+++ b/Test/floats/float7.bpl
@@ -0,0 +1,13 @@
+// RUN: %boogie -proverWarnings:1 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure main() returns () {
+ var x : float53e11;
+ var y : float53e11;
+ var z : float53e11;
+ var r : float53e11;
+ x := 0e1063f53e11;
+ y := x + 0e1023f53e11;
+ z := x - 0e1023f53e11;
+ r := y - z;
+ assert r == 0e1024f53e11;
+} \ No newline at end of file