Lobnya-Boolean-Reordered_true-termination.c

loading
details
attribute value
description
owner Akihisa Yamada
uploaded 2020-06-20 22:55:36.0
disk size 345 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
/*
 * Date: 2013-07-10
 * Author: heizmann@informatik.uni-freiburg.de
 *
 * Ranking function: f(x) = x
 *
 */

extern int __VERIFIER_nondet_int();

int main ()
{
	int x = __VERIFIER_nondet_int();
	int b = __VERIFIER_nondet_int();
	while (1) {
		if (!b) {
			break;
		}
		b = __VERIFIER_nondet_int();
		x = x - 1;
		b = (x >= 0);
	}
	return 0;
}
popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark