source: CIVL/mods/dev.civl.abc/examples/c/jumps.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 368 bytes
Line 
1int x = 0;
2int y = 0;
3
4void main() {
5
6 while (x<10) {
7 x++;
8 while (y<20) {
9 if (x+y==1) return;
10 y++;
11 }
12 }
13
14 x = 1;
15
16 while (x<30) {
17 x--;
18 if (x==2) break;
19 }
20
21 x = 2;
22
23 while (x<40) {
24 x--;
25 if (x==3) {
26 x = 3;
27 continue;
28 }
29 }
30
31 x = 4;
32
33 goto exitpoint;
34
35 x = 42;
36 x = 42*42;
37
38 exitpoint: x = 5;
39}
Note: See TracBrowser for help on using the repository browser.