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

Invalid model for real formula (maxsmt) #4835

Closed
rainoftime opened this issue Nov 29, 2020 · 0 comments
Closed

Invalid model for real formula (maxsmt) #4835

rainoftime opened this issue Nov 29, 2020 · 0 comments

Comments

@rainoftime
Copy link
Contributor

rainoftime commented Nov 29, 2020

Hi, for the formula below,
z3 05c5f72

(set-option :rewriter.mul_to_power true)
(set-option :rewriter.flat false)
(declare-fun r0 () Real)
(declare-fun r1 () Real)
(declare-fun r3 () Real)
(assert (xor true true true true (and (= 0.0 r3) (= 0 (+ r3 (+ r3 0.5 r3 r3)))) (= 1.0 (* (+ r3 0.5 r3 r3) (+ r3 0.5 r3 r3)))))
(assert-soft false)
(check-sat)
$./z3  model_validate=true smt.arith.solver=6 delta.out.smt2 
sat
(error "line 8 column 10: an invalid model was generated")

$./z3  model_validate=true smt.arith.solver=2 delta.out.smt2 
unknown
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