summaryrefslogtreecommitdiff
path: root/Test/floats/float1.bpl
blob: 2b901c94c000d58e3c25da1828ded6b03142826c (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 := 0e1f24e8;
	r := 1e0f24e8;
	r := x;
	r := x + 1e0f24e8;
	r := 0e0f24e8 + 0e0f24e8;
	assert(r == 0e1f24e8);
	
	return;
}