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

model completion not working for "indeterminate values" #2561

Closed
quickbeam123 opened this issue Sep 17, 2019 · 1 comment
Closed

model completion not working for "indeterminate values" #2561

quickbeam123 opened this issue Sep 17, 2019 · 1 comment

Comments

@quickbeam123
Copy link

quickbeam123 commented Sep 17, 2019

  auto name = c.bool_const("v");
  auto zero = c.real_val(0,1);
  auto one = c.real_val(1,1);
  
  auto expr = (name == (zero == (one / zero)));
  
  s.add(expr);
  cout << s.check() << endl;
  
  model m = s.get_model();
  
  cout << m.eval(name,true) << endl;

prints

sat
(= 0.0 (/ 1.0 0.0))

despite eval called with model_completion=true. What I am expecting would be either true or false, since name is declared as a boolean constant.

Is there a way to force eval deciding what (one / zero) should be?

NikolajBjorner added a commit that referenced this issue Oct 2, 2019
@NikolajBjorner
Copy link
Contributor

it is fixed

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

2 participants