Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions performance/array_read1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
int main()
{
unsigned size;
char array[size];

for(unsigned i = 0; i < N; i++)
__CPROVER_assume(array[i] == 123);

__CPROVER_assert(0, "");
}
10 changes: 10 additions & 0 deletions performance/array_write1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
int main()
{
unsigned size;
char array[size];

for(unsigned i = 0; i < N; i++)
array[i] = 123;

__CPROVER_assert(0, "");
}
6 changes: 6 additions & 0 deletions regression/cbmc/Array_UF22/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
int main()
{
int a[2] = {0};
int b[2] = {0};
__CPROVER_assert(__CPROVER_array_equal(a, b), "equal");
}
10 changes: 10 additions & 0 deletions regression/cbmc/Array_UF22/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CORE broken-smt-backend
main.c
--arrays-uf-always --no-propagation
^VERIFICATION SUCCESSFUL$
^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
This test demonstrates the need for implementing the extensionality rule.
3 changes: 3 additions & 0 deletions regression/cbmc/trace-values/unbounded_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ int main(int argc, char *argv[])
array[size - 1] = 42;
int fixed_array[] = {1, 2};
__CPROVER_array_replace(array, fixed_array);
assert(array[0] == 1);
assert(array[1] == 2);
assert(array[size - 1] == 42);
assert(array[0] == 0);
}
Loading