Skip to content

Commit

Permalink
cleaned up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zafer-esen committed Oct 15, 2020
1 parent 213f829 commit e1ab123
Show file tree
Hide file tree
Showing 26 changed files with 4 additions and 131 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 0 additions & 25 deletions heap-theory-examples/mutually-referential-structs-fail.c

This file was deleted.

2 changes: 1 addition & 1 deletion heap-theory-examples/mutually-referential-structs.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ void main()

struct parent *cp1 = list->child1->p;
struct parent *cp2 = list->child2->p;
assert(cp1 == list || cp1 == 0);
assert(list->child1->p == list);
}
File renamed without changes.
2 changes: 1 addition & 1 deletion heap-theory-examples/simple-arith.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ void main() {
*x = 3;
int y = *x + *x;
assert(y == 0 || y == 3 || y == 6 || y == 42 || y == 45 || y == 84);
/* possible values for y without refinements
/* possible values for y using the invariant encoding without refinements
0 + 0 = 0
0 + 3 = 3
3 + 3 = 6
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions heap-theory-examples/swap-1-fail.c

This file was deleted.

2 changes: 1 addition & 1 deletion heap-theory-examples/swap-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ void main() {
int *b = calloc(sizeof(int));
*b = 42;
swap(&a, b);
assert(a == 0 || a == 3 || a == 42);
assert(a == 42);
}

30 changes: 0 additions & 30 deletions heap-theory-examples/swap-1.c-1.smt2

This file was deleted.

File renamed without changes.
16 changes: 0 additions & 16 deletions heap-theory-examples/swap-2-fail.c

This file was deleted.

2 changes: 1 addition & 1 deletion heap-theory-examples/swap-2.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ void main() {
*b = 42;
swap(a, b);
int tmp = *a;
assert(tmp == 0 || tmp == 3 || tmp == 42);
assert(tmp == 42);
}

File renamed without changes.
42 changes: 0 additions & 42 deletions heap-theory-examples/swap-3.c-1.smt2

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit e1ab123

Please sign in to comment.