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

Boolean define-fun functions don't work #315

Open
percontation opened this issue Jul 24, 2024 · 1 comment
Open

Boolean define-fun functions don't work #315

percontation opened this issue Jul 24, 2024 · 1 comment

Comments

@percontation
Copy link

On dReal v4.21.06.1:

(set-logic QF_NRA)
(declare-fun a () Real)
(define-fun eqfn ((x Real) (y Real)) Bool (= x y))
(assert (eqfn a 1.0))
(assert (eqfn a 2.0))
(check-sat)
(get-model)
(exit)

returns satisfiable.

It seems like all define-fun functions that return a Bool don't work correctly.

@percontation
Copy link
Author

More things I noticed that might be relevant:

  1. Certain trivial functions appear to work fine. So, it's not all functions that return Bool.
  2. Everything appears to work fine if you smuggle the value of the Bool as a Real, e.g. (define-fun eqfn ((x Real) (y Real)) Real (ite (= x y) 1.0 0.0)) and replacing call sites with (= 1.0 (eqfun ...)).

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