-
Notifications
You must be signed in to change notification settings - Fork 30
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
(Closes #2568) Adds a routine_symbol property to Routine and tests. #2570
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2570 +/- ##
==========================================
- Coverage 99.86% 99.85% -0.01%
==========================================
Files 357 357
Lines 48332 48327 -5
==========================================
- Hits 48266 48257 -9
- Misses 66 70 +4 ☔ View full report in Codecov by Sentry. |
Hi @arporter and @sergisiso. I'm requesting review from both of you on this syntactic sugar PR. Is the non required -0.01% |
No, in general we require a 100% of the patch (new code). Codecov has been acting strangely lately, so unless it lists something under the Codecov "indirect changes" (which this PR does not), don't worry about it. |
Hi @JulienRemy - Can I request a quick test to check I'm not seeing some different behaviour with this - I think this is a quirk of how we initialise things in fparser/PSyIR/PSyclone. The expected result from your call should be (one of ) the
this will fail, as the "own_routine_symbol" is changed and has become a DataSymbol of the type of the function, and the only place the RoutineSymbol will still exist is in the parent Edit: Mostly I think here there is a decision of if "own_routine_symbol" returns the |
Hi @LonelyCat124, Thanks for spotting this, there is indeed something confusing here, which I was unaware of. In my mind (as things stand right now) the symbol tagged
Output:
3/ by the way, why a As to #2566 and #2582, from what I understand, you would in time be working toward having it (only?) in the parent In any case, this syntactic sugar PR of mine might become useless or require some edits fairly fast if changes are made to the current approach, so I'm not sure there's much point in reviewing and merging it? |
I agree here, and think the My PRs don't plan to change the Routine's own RoutineSymbol - but 2566 simply ensures certain properties are correctly given the the symbol in the Routine that were previously getting lost, and 2582 should just ensure renaming maintains correct symbol names as opposed to changing any functionality. I assume the @sergisiso @arporter Do either of you know why function's own symbols is a DataSymbol rather than a typed RoutineSymbol? |
Am I right in thinking that #2596 will make this PR redundant? |
Yes, that PR has a |
No description provided.