summaryrefslogtreecommitdiff
path: root/float_test13.bpl
blob: d073836d871907b7c3d54948f6ce73a5ac9496c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
	}
}