Skip to content

Sign analysis for C++ #7794

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

Closed
wants to merge 5 commits into from
Closed

Sign analysis for C++ #7794

wants to merge 5 commits into from

Conversation

dbartol
Copy link

@dbartol dbartol commented Jan 31, 2022

No description provided.

@@ -216,6 +212,10 @@ private module Impl {
predicate numericExprWithUnknownSign(Expr e) {
// The expression types handled in the predicate complements the expression
// types handled in `specificSubExprSign`.
exists(IntegerLiteral lit | lit = e and not exists(lit.getValue().toInt()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it possible for an integer literal to not have a value?

Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've only given this a very superficial review so far, but it looks great!


class BasicBlock = IR::IRBlock;

private newtype TSsaVariable = MkSsaVariable(IR::Instruction instr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This IPA doesn't seem to be used? Was SsaVariable supposed to extend it? (It looks like it's not actually necessary to have this type at all!)

@dbartol dbartol closed this by deleting the head repository May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants