source: CIVL/examples/languageFeatures/atomChooseBad.cvl@ 3e9b0c2

1.23 2.0 main test-branch
Last change on this file since 3e9b0c2 was e6b02c8, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

updates CIVL to use the new ABC FrontEnd. tests updated accordingly when necessary.

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

  • Property mode set to 100644
File size: 372 bytes
Line 
1/* Commandline execution:
2 * civl verify atomChooseBad.cvl
3 * */
4int n = 3;
5
6void main(){
7 int x = 3;
8
9 // non-determinism, an error will be reported
10 // because the execution of an $atom block should be
11 // finite, deterministic and non-blocking.
12 $atom {
13 $choose {
14 $when (n>2) { x=2; }
15 $when (n>1) { x=1; }
16 default: {x=0; }
17 }
18 }
19}
Note: See TracBrowser for help on using the repository browser.