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

Cannot compile klee file if typename equals variable name #631

Open
IDKWNTCMF opened this issue Aug 31, 2023 · 0 comments
Open

Cannot compile klee file if typename equals variable name #631

IDKWNTCMF opened this issue Aug 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@IDKWNTCMF
Copy link
Collaborator

Description
If a type name equals variable name then klee file cannot be compiled in some cases.

Example

typedef struct {
    int fld;
} str;

int cas(str *str, int val, int new_val) {
    if (str && str->fld == val) {
        str->fld = new_val;
        return 1;
    }
    return 0;
}

To Reproduce
Steps to reproduce the behavior:

  1. Copy the example above to your project
  2. Try to generate tests for cas function

Expected behavior
Tests are supposed to be generated.

Actual behavior
Couldn't compile klee file.

@IDKWNTCMF IDKWNTCMF added the bug Something isn't working label Aug 31, 2023
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