Skip to content

Commit 0a5d531

Browse files
committed
test for uninterpreted functions
This adds a test for an uninterpreted function, added using declare-fun.
1 parent 429a282 commit 0a5d531

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
uf1.smt2
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^unsat$
7+
--
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(set-logic QF_UFBV)
2+
3+
(declare-fun myfun ((_ BitVec 32)) (_ BitVec 32))
4+
5+
(assert (= (myfun (_ bv10 32)) (_ bv20 32)))
6+
7+
(declare-const x (_ BitVec 32))
8+
(assert (= x (_ bv10 32)))
9+
(assert (= (myfun x) (_ bv30 32)))
10+
11+
(check-sat)

0 commit comments

Comments
 (0)