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

assumptions causing spurious candidate solutions from synthesis engine #89

Open
polgreen opened this issue Oct 13, 2019 · 0 comments
Open

Comments

@polgreen
Copy link
Collaborator

This example takes 1 iteration:

int EXPRESSION();
int nondet_int();

int main()
{
   int y=nondet_int();
 __CPROVER_assert(EXPRESSION()==10, "equality");
  return 0;
}

This example takes two iterations and the first solution produced by the synthesis engine is "return 8", which is clearly not right.

I think what is happening is we are finding solutions that work because the assumptions are incompatible with the inputs and so all paths to the final assertion are blocked.

int EXPRESSION();
int nondet_int();

int main()
{
   int y=nondet_int();
  __CPROVER_assume(y==2);
 __CPROVER_assert(EXPRESSION()==10, "equality");
  return 0;
}

More complicated examples that use assumptions will cause "No Progress" errors

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