summaryrefslogtreecommitdiff
path: root/float_test7.bpl
diff options
context:
space:
mode:
authorGravatar Dietrich <dgeisler50@gmail.com>2015-07-20 22:27:32 -0600
committerGravatar Dietrich <dgeisler50@gmail.com>2015-07-20 22:27:32 -0600
commitbb5395b35dcea5078c9b38a2f091f26256faac34 (patch)
tree5930116d3f65b25cdcd3a98cca6ced2e30f5e057 /float_test7.bpl
parent52aa9b8f63a3d955031e7a0dfd6e575ca7cf76b3 (diff)
Float type now works correctly for simple variable declaration and comparison.
Diffstat (limited to 'float_test7.bpl')
-rw-r--r--float_test7.bpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/float_test7.bpl b/float_test7.bpl
index ca33eb08..cc7a040b 100644
--- a/float_test7.bpl
+++ b/float_test7.bpl
@@ -1,5 +1,5 @@
- procedure F() returns () {
+procedure F() returns () {
var x : float;
- x := fp (.5 23 8);
- assert x == fp (0 -1);
+ x := fp(.1) + fp(.1) + fp(.1);
+ assert x == fp(.3);
} \ No newline at end of file