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 #290

Closed
operasfantom opened this issue Jun 17, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers klee Related to internal work of KLEE

Comments

@operasfantom
Copy link
Collaborator

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);
}
@ladisgin
Copy link
Member

ladisgin commented Mar 9, 2023

Moved to UnitTestBot/klee#66

@ladisgin ladisgin closed this as completed Mar 9, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot C/C++ Mar 9, 2023
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 klee Related to internal work of KLEE
Projects
Status: Done
Development

No branches or pull requests

3 participants