Skip to content

Commit ebc5e68

Browse files
committed
Add a regression test exercising the API binary driver and its model loading capacity
1 parent 5bc7381 commit ebc5e68

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

regression/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ add_subdirectory(cbmc-concurrency)
3737
add_subdirectory(cbmc-cover)
3838
add_subdirectory(cbmc-incr-oneloop)
3939
add_subdirectory(cbmc-incr-smt2)
40+
add_subdirectory(cprover-api-cpp)
4041
add_subdirectory(cbmc-incr)
4142
add_subdirectory(cbmc-output-file)
4243
add_subdirectory(cbmc-with-incr)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_test_pl_tests(
2+
"$<TARGET_FILE:api-binary-driver>"
3+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <assert.h>
2+
3+
int main(int argc, char *argv[])
4+
{
5+
int a[] = {0, 1, 2, 3, 4};
6+
assert(a[4] != 4);
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
test.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
Successfully initialised goto_model
7+
--
8+
--

0 commit comments

Comments
 (0)