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

Solving for logical and is too conservative #4

Open
dcci opened this issue May 29, 2017 · 0 comments
Open

Solving for logical and is too conservative #4

dcci opened this issue May 29, 2017 · 0 comments

Comments

@dcci
Copy link

dcci commented May 29, 2017

Assuming you have:

define i1 @tinkywinky(i32 %a) {
exit:
  %and = and i32 %a, 128
  %cmp = icmp sle i32 %and, 128
  ret i1 %cmp
}

Both Cousot and CropDFS intra return:

Analysis for function: tinkywinky
[-inf, +inf]  %and = and i32 %a, 128

Ideally, this should return [0, 128], I think (maybe some care needs to be taken for undef, but I wouldn't worry too much).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant