When checking the following problem using Z3, I receive different answers when wrapping or not wrapping it by a pair of push/pop
(declare-fun sz_53 () Int)
(declare-fun x () Int)
(declare-fun u () Int)
(declare-fun y () Int)
(assert (> u 0))
(assert (= (+ y (- 0 0)) 0))
(assert (or (= (- x u) 0) (> x 0)))
(assert (<= (* (- 0 1) sz_53) 0))
(assert (or (= (- x u) 0) (not (= (- x u) 0))))
(assert (not (and (and (and (and (exists ((sz_64 Int)) (and (= sz_64 0) (exists ((sz_62 Int)) (and (exists ((sz_55 Int)) (and (<= (* (- 0 1) sz_55) 0) (= (+ sz_53 (- sz_62 sz_55)) 0))) (= (+ sz_62 (- (- 0 1) sz_64)) 0))))) (>= y 0)) (or (= (+ x (* (- 0 1) y)) 0) (> x 0))) (not (= (+ u (* (- 0 1) y)) 0))) (not (= (+ u (* (- 0 1) y)) 0)))))
(assert (not false))
(check-sat)
Particularly, when checking it directly (not wrapping by push/pop
), Z3 returns unsat
(Here is the online link: http://rise4fun.com/Z3/cDt3)
However, when wrapping it by push/pop
, Z3 returns unknown
(http://rise4fun.com/Z3/epyh0)
Is there anybody who knows why Z3 behaves like this?
Thank you very much!