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

Only one test generates for function #637

Open
ladisgin opened this issue Sep 11, 2023 · 1 comment
Open

Only one test generates for function #637

ladisgin opened this issue Sep 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ladisgin
Copy link
Member

For code

#include <stdlib.h>

int min8(int a, int b) {
    if(a > b) {
        printf("a:%d, b:%d", a, b);
        b = abs(b);
        return b;
    } else {
        printf("a:%d, b:%d", a, b);
        a = abs(a);
        return a;
    }
}

Generates only one test

TEST(regression, min8_test1)
{
    int actual = min8(0, 0);
    EXPECT_EQ(0, actual);
}

Waiting at least two tests

@ladisgin ladisgin added the bug Something isn't working label Sep 11, 2023
@ladisgin ladisgin self-assigned this Sep 11, 2023
@ladisgin
Copy link
Member Author

ladisgin commented Sep 11, 2023

Problem with -disable-O0-optnone compiler flag
Not reproduce on main branch of KLEE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant