-
Notifications
You must be signed in to change notification settings - Fork 28
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
Added get_callee() which determines the right routine of the return values of get_callees() #2775
base: master
Are you sure you want to change the base?
Conversation
Thanks @schreiberx, unfortunately, linting is still failing. In case it helps, I have the following pre-push hook setup:
|
Hi Andy, Thanks for this script. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2775 +/- ##
==========================================
- Coverage 99.88% 99.87% -0.01%
==========================================
Files 356 356
Lines 49479 49540 +61
==========================================
+ Hits 49421 49479 +58
- Misses 58 61 +3 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@schreiberx please could you hold off making further changes until I pass it back to you? It's hard to review if code changes underneath me while I'm doing it :-) |
These changes are only addressing increasing the coverage to 100% since the codecov bot complained with "Please review." |
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.
Thanks very much for this Martin. I like the new routine making use of the existing functionality, that seems sensible. I did struggle to get my head around it so you'll see I've requested that some comments be tweaked or added.
As I say in the review, I think a little work on the frontend for those situations where we hit OPTIONAL could really help here.
The only thing I'm really not sure of is the passing around of the list of integers. That seems a bit odd so I'd like to understand why you do that.
I've not looked at the test suite yet (but thanks for addressing the missed lines).
Back to @schreiberx :-) |
Back to @arporter :-) |
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.
Back to @arporter :-)
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.
Thanks for the updates Martin. I think the main thing to agree upon now is how best to return the information on the argument mapping. Apart from that it's a matter of tidying a few things. You also still have a couple of lines missing from coverage (but best to leave that until we've hammered-out the implementation).
I have the one-line fix to improve our OPTIONAL support as #2785 which is just waiting on review. Since it's so simple, you could merge that branch into this one.
routine_main: Routine = root_node.walk(Routine)[0] | ||
assert routine_main.name == "main" | ||
|
||
if 1: |
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.
Please remove all these if
s and print
statements (but do add comments describing what specific case each part of the test is for).
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.
These if statements are very handy for debugging potential future problems. Setting some of them to '0' allows you to skip this subtest.
Also, the print statements provide helpful output again for debugging.
I don't understand why there should be no output. Is this a convention from PSyclone?
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.
PS: The indentation with the "if 1" statements also structures such subtests nicely, hence, improving readability :-)
Back to @arporter |
It does what's in the title.