Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refutation unsoundness issue on a QF_UFNIA instance #6693

Closed
zhendongsu opened this issue Apr 18, 2023 · 0 comments
Closed

refutation unsoundness issue on a QF_UFNIA instance #6693

zhendongsu opened this issue Apr 18, 2023 · 0 comments

Comments

@zhendongsu
Copy link

Commit: cb041c1
OS: Ubuntu 18.04

[520] % z3release small.smt2
unsat
sat
[521] % cat small.smt2
(declare-fun c (Int) Int)
(define-fun e ((f Int) (a Int) (b Int)) Int (ite (= b 0) 0 (rem a b)))
(define-fun g ((c Int) (a Int) (b Int)) Int (ite (= b 0) a c))
(define-fun h ((f Int) (a Int) (b Int)) Int (g 0 (e f a (c b)) 0))
(assert (exists ((k Int)) (and (< k 0) (= k (h 1 k 0)))))
(check-sat)

(reset)

(define-fun c ((x Int)) Int (- 2))
(define-fun e ((f Int) (a Int) (b Int)) Int (ite (= b 0) 0 (rem a b)))
(define-fun g ((c Int) (a Int) (b Int)) Int (ite (= b 0) a c))
(define-fun h ((f Int) (a Int) (b Int)) Int (g 0 (e f a (c b)) 0))
(assert (exists ((k Int)) (and (< k 0) (= k (h 1 k 0)))))
(check-sat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant