Skip to content

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

@operasfantom

Description

@operasfantom

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);
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomerskleeRelated to internal work of KLEE

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions