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

Solution unsoundness for real formula, invalid mdoel for integer formula #5316

Closed
rainoftime opened this issue May 30, 2021 · 1 comment
Closed

Comments

@rainoftime
Copy link
Contributor

rainoftime commented May 30, 2021

Hi, for the following formula, z3 4d41db2

(declare-const v Bool)
(assert (= v (distinct 0.0 (/ 1.0 0.0))))
(assert (= v (= 0.0 (/ 1.0 0.0))))
(check-sat)
(check-sat-using (then purify-arith aig recover-01 smt))
z3 model_validate=true yy.smt2
unsat
sat
(error "line 5 column 55: an invalid model was generated")
@rainoftime rainoftime changed the title Solution soundness issue for real formula Solution unsoundness for real formula, invalid mdoel for integer formula May 30, 2021
@rainoftime
Copy link
Contributor Author

Invalid model

(declare-fun m () Int)
(declare-fun A () Bool)
(declare-fun r () Int)
(assert (and (= 0 m) (or A (= r 0)) (or (not A) (= r 1))))
(check-sat)
(check-sat-using (then reduce-invertible recover-01 smt))
z3 xx.smt2 model_validate=true
sat
sat
(error "line 6 column 56: an invalid model was generated")

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