main
|
Last change
on this file was c74ec20, checked in by Stephen Siegel <siegel@…>, 2 years ago |
|
Add attribute string support to abstract functions in ABC
Add support in CIVL & SARL for some special attributes (e.g., "partial-order")
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5868 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
304 bytes
|
| Line | |
|---|
| 1 | #include <civlc.cvh>
|
|---|
| 2 |
|
|---|
| 3 | $abstract("partial-order") _Bool f(int, int );
|
|---|
| 4 |
|
|---|
| 5 | int test1() {
|
|---|
| 6 | $assume(f(1, 2) && f(2, 3));
|
|---|
| 7 | $assert(f(1, 3));
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | int test2() {
|
|---|
| 11 | int x, y, z;
|
|---|
| 12 |
|
|---|
| 13 | $havoc(&x);
|
|---|
| 14 | $havoc(&y);
|
|---|
| 15 | $havoc(&z);
|
|---|
| 16 | $assume(f(x, y) && f(y, z));
|
|---|
| 17 | $assert(f(x, z));
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | int main() {
|
|---|
| 22 | test1();
|
|---|
| 23 | test2();
|
|---|
| 24 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.