Skip to content

Commit

Permalink
added failing test case for TreeAutomizer, #143
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernutz committed Aug 2, 2017
1 parent 9e974bb commit 5593e53
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
; status: unsat (checked by z3)
; written on 27.03.2017
; currently, we say this set is sat without looking at any trace, because the "initial transitions"
; don't have the form of an implication withough uninterpreted predicates in the body.
; author: [email protected]
(set-logic HORN)

(declare-fun I_x (Int) Bool)
(declare-fun I_y (Int) Bool)
(declare-fun I_z (Int) Bool)

(assert (I_x 0)) ; equivalent to "(=> (= x 0) (I_x x))", but not translated like that right now..
(assert (I_y 0))
(assert (forall ((x Int) (x1 Int)) (=> (and (I_x x) (= x1 (+ x 1))) (I_x x1))))
(assert (forall ((y Int) (y1 Int)) (=> (and (I_y y) (= y1 (+ y 1))) (I_y y1))))

(assert (forall ((x Int) (y Int) (z Int)) (=> (and (I_x x) (I_y y) (= (+ x y) z)) (I_z z))))
(assert (forall ((z Int)) (=> (and (I_z z) (= z 0)) false)))

(check-sat)

0 comments on commit 5593e53

Please sign in to comment.