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

Tutorial get-value example returns 8 instead of 6 #12

Open
kroeckx opened this issue May 30, 2020 · 0 comments
Open

Tutorial get-value example returns 8 instead of 6 #12

kroeckx opened this issue May 30, 2020 · 0 comments

Comments

@kroeckx
Copy link

kroeckx commented May 30, 2020

The tutorial has this as example input:

(set-option :produce-models true)
(set-logic QF_LIA)
(declare-fun x () Int)
(declare-fun y () Int)
(assert (= (+ x y) 9))
(assert (= (+ (* 2 x) (* 3 y)) 22))
(check-sat)
(get-value (x))
(get-value ((- x y) (+ 2 y)))

And indicates this should be the output:

sat
((x 5))
(((- x y) 1)  ((+ 2 y) 8))

But either the 8 should be a 6, or the + a *

PS: I can't find the source of the tutorial

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