begin model loopFailSpec_2
| begin input variables
| | N_BOUND : int;
| | | loopFailSpec.c 1.13--2.12: "input int N_BOUND;"
| | n : int;
| | | loopFailSpec.c 3.13--4.6: "input {n >= 0 && n <= N_BOUND} int n;"
| end input variables;
| begin output variables
| | t : int;
| | | loopFailSpec.c 5.13--6.6: "output int t;"
| end output variables;
| begin process 0
| | main function : main;
| | begin function main
| | | | loopFailSpec.c 8.0--8.12: "void main ()"
| | | begin proper local variables
| | | | i : int = 1;
| | | | | loopFailSpec.c 9.1--9.9: "int i=1;"
| | | | j : int = 0;
| | | | | loopFailSpec.c 10.1--10.9: "int j=0;"
| | | end proper local variables;
| | | start location : 0;
| | | begin location 0
| | | | kind : CHOICE;
| | | | when i < (n+1) goto location 1;
| | | | | loopFailSpec.c 13.1--13.18: "while (i < n + 1)"
| | | | when !i < (n+1) goto location 3;
| | | | | loopFailSpec.c 13.1--13.18: "while (i < n + 1)"
| | | end location 0;
| | | begin location 1
| | | | kind : ASSIGNMENT;
| | | | j = j+i; goto location 2;
| | | | | loopFailSpec.c 14.2--14.12: "j = j + i;"
| | | end location 1;
| | | begin location 2
| | | | kind : ASSIGNMENT;
| | | | i = i+1; goto location 0;
| | | | | loopFailSpec.c 15.2--15.12: "i = i + 1;"
| | | end location 2;
| | | begin location 3
| | | | kind : ASSIGNMENT;
| | | | t = j; goto location 4;
| | | | | loopFailSpec.c 17.1--17.7: "t = j;"
| | | end location 3;
| | | begin location 4
| | | | kind : RETURN;
| | | | return null; goto location 5;
| | | | | loopFailSpec.c 18.0--18.0: "}"
| | | end location 4;
| | | begin location 5
| | | | kind : TERMINAL;
| | | end location 5;
| | end function main;
| end process 0;
end model loopFailSpec_2.
