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

In library mode, assume that parameters are in range if "assume nondet values are in range" is checked #431

Closed
danieldietsch opened this issue Jul 2, 2019 · 0 comments

Comments

@danieldietsch
Copy link
Member

danieldietsch commented Jul 2, 2019

Example for bug in trunk/examples/programs/SignedIntegerOverflow/regression/overflow.c (e45c224)

//#Safe
// This program clamps an integer and should not produce an overflow. 
// Nevertheless, we receive a counterexample with 
// -tc AutomizerC.xml 
// -s settings/default/automizer/svcomp-Overflow-32bit-Automizer_Default.epf
// on 0.1.24-b5fb152
// 
// We found a FailurePath: 
// [L5]        x >= 1000000 ? 1000000 : x + 1
//       VAL   [\old(x)=-2147483650, x=-2147483650]
// [L5]        x + 1
//       VAL   [\old(x)=-2147483650, x=-2147483650]
//
// This is probably a bug in library mode where parameters of functions are not assumed to be in range although the option is set. 
//

int foo(int x) { 
  return x >= 1000000 ? 1000000 : x + 1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants