summaryrefslogtreecommitdiff
path: root/Test/floats/float10.bpl
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-29 17:35:13 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-29 17:35:13 -0400
commit1f2d6c15cc587e9e1b91be70186ee9a26d5e1928 (patch)
tree1b6cd99944efbba2c993327bb49f2d544d50b1eb /Test/floats/float10.bpl
parent41082463d783d6f8d8a5aaf69bf459b57bca6000 (diff)
parentba4f9fa1fbd923bfce1363566af08624c5c6fe38 (diff)
Merge branch 'upstream' into dfsg_freedfsg_free
Diffstat (limited to 'Test/floats/float10.bpl')
-rw-r--r--Test/floats/float10.bpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/floats/float10.bpl b/Test/floats/float10.bpl
new file mode 100644
index 00000000..ec9b4895
--- /dev/null
+++ b/Test/floats/float10.bpl
@@ -0,0 +1,18 @@
+// RUN: %boogie -proverWarnings:1 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+function {:builtin "(_ to_fp 11 53) RNE"} TO_FLOAT64_REAL(real) returns (float53e11);
+
+procedure double_range_true() returns () {
+ var x : float53e11;
+ havoc x;
+ if (x >= TO_FLOAT64_REAL(-1e307) && x <= TO_FLOAT64_REAL(1e307)) {
+ assert(x==x);
+ }
+}
+
+procedure double_range_false() returns () {
+ var x : float53e11;
+ havoc x;
+ assert(x==x);
+} \ No newline at end of file