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

Support Real Division #10

Open
yangky11 opened this issue Jul 8, 2024 · 0 comments
Open

Support Real Division #10

yangky11 opened this issue Jul 8, 2024 · 0 comments

Comments

@yangky11
Copy link

yangky11 commented Jul 8, 2024

Hi,

smtlib::theories::reals::Real currently only supports floor division (div) but not real division (/). I'm wondering if there is a way to use real division. Thank you!

Simple examples to demonstrate the difference:

(declare-const a Real)
(assert (= a (div 1.0 2.0)))
(check-sat)
(get-model)
sat
(
  (define-fun a () Real
    0.0)
)
(declare-const a Real)
(assert (= a (/ 1.0 2.0)))
(check-sat)
(get-model)
sat
(
  (define-fun a () Real
    (/ 1.0 2.0))
)
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