Ben Clayton | def7313 | 2021-06-21 19:04:56 +0000 | [diff] [blame] | 1 | [numthreads(1, 1, 1)] |
2 | void unused_entry_point() { | ||||
3 | return; | ||||
4 | } | ||||
5 | |||||
6 | int f() { | ||||
7 | int i = 0; | ||||
8 | int j = 0; | ||||
Antonio Maiorano | 06844a5 | 2022-09-29 16:53:58 +0000 | [diff] [blame] | 9 | while (true) { |
Ben Clayton | def7313 | 2021-06-21 19:04:56 +0000 | [diff] [blame] | 10 | if ((i > 4)) { |
11 | return 1; | ||||
12 | } | ||||
Antonio Maiorano | 06844a5 | 2022-09-29 16:53:58 +0000 | [diff] [blame] | 13 | while (true) { |
Ben Clayton | def7313 | 2021-06-21 19:04:56 +0000 | [diff] [blame] | 14 | if ((j > 4)) { |
15 | return 2; | ||||
16 | } | ||||
17 | { | ||||
18 | j = (j + 1); | ||||
19 | } | ||||
20 | } | ||||
21 | { | ||||
22 | i = (i + 1); | ||||
23 | } | ||||
24 | } | ||||
Ben Clayton | def7313 | 2021-06-21 19:04:56 +0000 | [diff] [blame] | 25 | } |