mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 11:45:41 -05:00
add regression test
This commit is contained in:
parent
2d24a21908
commit
46b13d08d0
1 changed files with 34 additions and 0 deletions
34
tests/unsat/reg_dt.smt2
Normal file
34
tests/unsat/reg_dt.smt2
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
; expect: unsat
|
||||
|
||||
(set-logic QF_UFDT)
|
||||
(declare-datatypes
|
||||
((foo 0))
|
||||
(((A) (B) (C))))
|
||||
|
||||
(declare-datatypes
|
||||
((tup 0))
|
||||
(((mk_tup (x foo) (y foo)))))
|
||||
|
||||
(declare-datatypes
|
||||
((bar 0))
|
||||
(((mk_bar (b1 tup) (b2 Bool)))))
|
||||
|
||||
(declare-fun x0 () bar)
|
||||
(declare-fun f (bar) bar)
|
||||
|
||||
(assert
|
||||
(= (f x0)
|
||||
(mk_bar (b1 x0) (not (b2 x0)))))
|
||||
|
||||
(assert
|
||||
(let ((x1 (f x0)))
|
||||
(= (f x1)
|
||||
(mk_bar (b1 x1) (not (b2 x1))))))
|
||||
|
||||
; the goal: f(f(x0))=x0
|
||||
(assert (not (= x0 (f (f x0)))))
|
||||
|
||||
(check-sat)
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue