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
teach souper about data flow fact isKnownNegative #247
Conversation
Jubi I think we want the flags to be symmetrical. That is, we don't want Negative and NonNegative. Rather, we want NonNegative and NonPositive. |
Then NonNegative + NonZero = Positive and NonPositive + NonZero = Negative |
In my knowledge, there is no data flow function in LLVM to determine non-positive so far. If you want we can implement our own function, may be? |
I agree it will be good to have symmetrical flags actually. Since I didn't find non-positive, I thought it will be good enough to add an extra flag. |
I see, I thought I saw a non-positive call. Let me think about this a bit more. |
Sure. |
36212a4
to
ac607cf
Compare
lib/Parser/Parser.cpp
Outdated
ErrStr = makeErrStr(TP, "repeated '-' flag"); | ||
return false; | ||
} | ||
Negative = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation looks a bit messed up here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. The tabs were sitting in Parser.cpp in previous commits too. Hope it looks fine now.
This is represented as: var (-)
ac607cf
to
14701f2
Compare
This is represented as: var (-)