Skip to content

Commit 0f74979

Browse files
author
Daniel Kroening
committed
added test for uninterpreted functions
1 parent e53d2b4 commit 0f74979

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
int __CPROVER_uninterpreted_f(int, int);
2+
3+
main()
4+
{
5+
int a, b;
6+
7+
int inst1 = __CPROVER_uninterpreted_f(1, a);
8+
int inst2 = __CPROVER_uninterpreted_f(1, b);
9+
10+
if(a == b)
11+
__CPROVER_assert(inst1 == inst2, "functional consistency");
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
uf2.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
Basic test for an uninterpreted function.

scripts/delete_failing_smt2_solver_tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ rm struct7/test.desc
7575
rm trace-values/trace-values.desc
7676
rm trace_show_function_calls/test.desc
7777
rm uninterpreted_function/uf1.desc
78+
rm uninterpreted_function/uf2.desc
7879
rm union12/test.desc
7980
rm union6/test.desc
8081
rm union7/test.desc

0 commit comments

Comments
 (0)