source:
CIVL/examples/languageFeatures/continue.cvl@
397ae5f
| Last change on this file since 397ae5f was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 422 bytes | |
| Rev | Line | |
|---|---|---|
| [36b5ada] | 1 | /* Commandline execution: |
| 2 | * civl verify continue.cvl | |
| 3 | * */ | |
| [e6b02c8] | 4 | #include <civlc.cvh> |
| [420d7f3] | 5 | |
| 6 | void main() { | |
| 7 | for (int i = 0; i < 5; i++) { | |
| 8 | for (int j = 0; j < 5; j++) { | |
| 9 | for (int k = 0; k < 7; k++) { | |
| 10 | if (k < 4) { | |
| 11 | continue; | |
| 12 | } | |
| [d980649] | 13 | $assert(k >= 4); |
| [420d7f3] | 14 | } |
| 15 | if (j > 3) { | |
| 16 | continue; | |
| 17 | } | |
| [d980649] | 18 | $assert(j <= 3); |
| [420d7f3] | 19 | } |
| 20 | if (i <= 2) { | |
| 21 | continue; | |
| 22 | } | |
| [d980649] | 23 | $assert(i > 2); |
| [420d7f3] | 24 | } |
| 25 | } |
Note:
See TracBrowser
for help on using the repository browser.
