source:
CIVL/examples/languageFeatures/atomStatementBad.cvl@
38b7d06
| Last change on this file since 38b7d06 was 10e8759, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 188 bytes | |
| Rev | Line | |
|---|---|---|
| [d410676] | 1 | int n = 3; |
| 2 | ||
| 3 | void main(){ | |
| 4 | int x = 3; | |
| 5 | ||
| 6 | // non-determinism, an exception will be thrown | |
| [10e8759] | 7 | $atom{ |
| [d410676] | 8 | $choose { |
| 9 | $when (n>2) { x=2; } | |
| 10 | $when (n>1) { x=1; } | |
| 11 | default: {x=0; } | |
| 12 | } | |
| 13 | } | |
| 14 | } |
Note:
See TracBrowser
for help on using the repository browser.
