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

To model 'abs' and 'labs' functions in klee-libc and suggest to KLEE mainline #66

Open
ladisgin opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ladisgin
Copy link
Member

ladisgin commented Mar 9, 2023

Moved from UnitTestBot/UTBotCpp#290

This is a follow-up of that thread.

Currently, 'abs' and 'labs' function calls lead to concretization. Therefore important paths remain uncovered, as in the following example:

Code

int foo(int x) 
{
  int y = abs(x);
  if (y == 1234) {
    return -1;
  }
  return +1;
}

Generated tests

TEST(regression, foo_test_1)
{
    int actual = foo(0);
    EXPECT_EQ(1, actual);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants