-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: replace Guards with IRGuards #11356
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
Conversation
Coding standards tests now pass 🎉 |
@rdmarsh2 I think the test changes are all good, but I'd appreciate a second pair of 👀s on it. |
Happily have a look, but please update the tests, so I don't have to look at the workflow output. |
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.
Test changes make sense to me.
I guess the remaining task is to run a DCA on this 🎉? |
fe02c59
to
a3a7aaf
Compare
Looks like there are a couple of results on |
I think it's related to non-returning functions that aren't modeled as such in the IR... |
Indeed. Looking at the very first lost result on SAMATE, It looks like we're no longer raising an alert on this pattern (from if (STAT(filename, &statBuffer) == -1)
{
exit(1);
}
fileDesc = OPEN(filename, O_RDWR); Do we need to teach the IR guards library about non-returning functions before we can merge this PR? |
I think we'd be better off modeling it properly in the IR than handling it in the Guards library specifically. A jump from the call to the |
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll
Fixed
Show fixed
Hide fixed
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/IRConstruction.qll
Outdated
Show resolved
Hide resolved
I seems some files need to be sync'ed and some formatting is required. |
It seems like |
The unclassified results that disappeared are all of the form:
So that looks ok. The new unclassified results look a bit funny, though not wrong.
and
|
Three of the syntax zoo consistency check tests are currently failing by the way. |
419f8c5
to
c581602
Compare
Fixes merge conflicts in IR SSA tests
Should we update this PR now #12982 is merged? |
Yeah, let's at least fix up the merge conflicts. I guess we need to schedule when to do the last part of this work at the next iteration planning. |
Superseded by #14992 ? |
Yep. Closing! |
No description provided.