source:
CIVL/mods/dev.civl.com/examples/languageFeatures/continue.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 422 bytes | |
| Line | |
|---|---|
| 1 | /* Commandline execution: |
| 2 | * civl verify continue.cvl |
| 3 | * */ |
| 4 | #include <civlc.cvh> |
| 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 | } |
| 13 | $assert(k >= 4); |
| 14 | } |
| 15 | if (j > 3) { |
| 16 | continue; |
| 17 | } |
| 18 | $assert(j <= 3); |
| 19 | } |
| 20 | if (i <= 2) { |
| 21 | continue; |
| 22 | } |
| 23 | $assert(i > 2); |
| 24 | } |
| 25 | } |
Note:
See TracBrowser
for help on using the repository browser.
