summaryrefslogtreecommitdiff
path: root/Test/floats/float1.bpl
blob: d7fc783764555434c7382c389b31fd939d9b0759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %boogie -proverWarnings:1 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure foo(x : float24e8) returns (r : float24e8)
{
	r := 0e128f24e8;
	r := 1e127f24e8;
	r := x;
	r := x + 1e127f24e8;
	r := 0e127f24e8 + 0e127f24e8;
	assert(r == 0e128f24e8);
	
	return;
}