summaryrefslogtreecommitdiff
path: root/Test/floats/float0.bpl
blob: b1a240be00aa909e973e33f4cdc04650d208b1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %boogie -proverWarnings:1 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure foo(x : real) returns (r : float<8, 24>)
{
	r := 15;  // Error
	r := 15.0;  // Error
	r := fp(false, 1bv8, 0bv22); // Error
	r := fp<8, 23>(1bv31); // Error
	r := x; // Error
	r := fp<8, 23>(1bv31) + fp<8, 23>(1bv31); // Error
	r := fp<8, 24>(1bv32) + fp<8, 23>(1bv31); // Error
	
	return;
}