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

print-success: get-value response is not standards compliant #8

Closed
LeventErkok opened this issue Jul 2, 2018 · 1 comment
Closed
Assignees

Comments

@LeventErkok
Copy link

For this input:

(set-option :print-success true)
(set-option :produce-models true)
(set-logic QF_BV)
(declare-fun x () (_ BitVec 8))
(check-sat)
(get-value (x))

Boolector 3.0.0 (freshly built out of github sources) prints:

success
success
success
success
sat
success
((x #b00000000))

This is not standards compliant, since the printing of success in response to get-value should not be there. (That is, after the sat response, we shouldn't see a success, but directly the printing of the valuation pair.) If you try it with other solvers (z3, yices, cvc4), you can see that success isn't printed after we see sat.

This might sound like nit-picking, but unfortunately, it breaks compatibility with tools that operate on top of SMT-solvers; and is a real issue for me. Would be great if it can be fixed!

@mpreiner
Copy link
Member

mpreiner commented Jul 2, 2018

Levent,

Thanks for pointing this out. This is now fixed on master.

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

2 participants