main
test-branch
|
Last change
on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
317 bytes
|
| Line | |
|---|
| 1 | #include <mem.cvh>
|
|---|
| 2 |
|
|---|
| 3 | int main() {
|
|---|
| 4 | struct {
|
|---|
| 5 | int a;
|
|---|
| 6 | union UT {
|
|---|
| 7 | int b_seq[];
|
|---|
| 8 | int b_arr[10];
|
|---|
| 9 | } b;
|
|---|
| 10 | } s;
|
|---|
| 11 |
|
|---|
| 12 | $write_set_push();
|
|---|
| 13 |
|
|---|
| 14 | s.a = 0; // currently CIVL does not support capturing read/write
|
|---|
| 15 | // footprints on variables whose types containing sequences
|
|---|
| 16 |
|
|---|
| 17 | $mem m1 = $write_set_pop();
|
|---|
| 18 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.