From bcde99fbe99174a094f38fdda70ad69d65a423f4 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Wed, 30 Apr 2014 17:19:08 +0200 Subject: Fist commit (WIP) --- tests/sources/0507_loop_limit2.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/sources/0507_loop_limit2.c (limited to 'tests/sources/0507_loop_limit2.c') diff --git a/tests/sources/0507_loop_limit2.c b/tests/sources/0507_loop_limit2.c new file mode 100644 index 0000000..bafdf77 --- /dev/null +++ b/tests/sources/0507_loop_limit2.c @@ -0,0 +1,6 @@ +int x = 0; +int N = rand(0,1000); +while (rand(0,1)==0) { + if (x < N) x = x + 1; +} +print(x); -- cgit v1.2.3