summaryrefslogtreecommitdiff
path: root/float_test13.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'float_test13.bpl')
-rw-r--r--float_test13.bpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/float_test13.bpl b/float_test13.bpl
new file mode 100644
index 00000000..d073836d
--- /dev/null
+++ b/float_test13.bpl
@@ -0,0 +1,17 @@
+//Translation from inv_square_false-unreach-call.c
+//Should return an error (without crashing)
+
+procedure main() returns () {
+ var x : float;
+ var y : float;
+ var z : float;
+
+ havoc x;
+ assume(x >= fp(-1) && x <= fp(1));
+
+ if (x != fp(0)) {
+ y := x * x;
+ assert(y != fp(0));
+ z := fp(1) / y;
+ }
+} \ No newline at end of file