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

Yices2-mcsat and converting between Real and Integer #58

Open
yav opened this issue Feb 15, 2019 · 0 comments
Open

Yices2-mcsat and converting between Real and Integer #58

yav opened this issue Feb 15, 2019 · 0 comments

Comments

@yav
Copy link

yav commented Feb 15, 2019

The model below illustrates an example where sally (with engine kind) can solve the problem immediately, but if we add --yices2-mcsat Sally fails to find a solution (or is much slower, I didn't wait for too long).

I imagine that this is more of a Yices issue rather than Sally, but I thought it might be of interest here.

(define-state-type S
   ( (ok2 Bool) (ok4 Bool) (init Bool))
   ( (x Real) )
)

(define-transition-system TS S
   (= init true)
   (and (= next.init false)

        (= next.ok2
           (= (= (to_int (- input.x)) (- (to_int input.x)))
              (= input.x (to_real (to_int input.x)))
           )
        )

        (= next.ok4
           (= (to_int (/ (to_real (to_int input.x)) (to_real 5)))
              (to_int (/ input.x 5.0))))))

(query TS (or init ok2))
(query TS (or init ok4))
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