Skip to content

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

Description

@kroeckx

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions