source:
CIVL/examples/languageFeatures/initialValues.cvl@
ed25e58
| Last change on this file since ed25e58 was ed25e58, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 365 bytes | |
| Line | |
|---|---|
| 1 | #include<stdio.h> |
| 2 | #include<civlc.cvh> |
| 3 | #include<bundle.cvh> |
| 4 | |
| 5 | typedef enum INIT {zero, one} Init; |
| 6 | |
| 7 | $domain dom0; |
| 8 | $domain(2) dom2; |
| 9 | $bundle bun; |
| 10 | Init enumVar; |
| 11 | int * ptr; |
| 12 | int main() { |
| 13 | int a; |
| 14 | |
| 15 | $elaborate_rectangular_domain(dom0); |
| 16 | $elaborate_rectangular_domain(dom2); |
| 17 | a = enumVar; |
| 18 | ptr = &a; |
| 19 | (&comm)++; |
| 20 | $bundle_unpack(bun, &a); |
| 21 | return 0; |
| 22 | } |
Note:
See TracBrowser
for help on using the repository browser.
