-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add a 'safe' or similar command-line flag #2782
Comments
I've (perhaps optimistically) given this the 'good-first issue' - at least adding the command-line flag and populating something in the |
We may want to support selectively turning-off the various things I listed in the original description. Therefore the precise form of the command-line flag needs some thought. |
I think |
I understand the point of "safe" for the frontend (we do some cannonicalisations that can fail and have some ambiguities coming from fparser; and we have do way to disable/stop them), but I don't think we need to do:
The can already do these by changing flags (no -s -> no transformations), and would will make the "safe" functionality very complex if it is more broad than the front-end. |
I think if these are already flags (e.g. -s /dev/null and -l unlimited or something) having the psyclone entry point part of |
But if it overrides the values we can not try things like "safe frontend but with transformations enabled" or "safe frontend but with line length limits enabled" which can help identify exactly what produces the issues:
|
Yeah, i think my idea was more
so safe is just a superceded set of flags and once |
Could we have something like:
I take your point about the line-length limiting etc. Perhaps the rule should be that if an option can already be controlled by a flag then it should not be part of 'safe' (although we could print a warning if e.g. Perhaps we should draft a 'Troubleshooting' section of the User Guide. That will help us think this through. |
Finding out where things are going wrong when using PSyclone to process existing code can be hard. It is proposed to add a
--safe
flag or similar akin to-O0
on a compiler. This will turn off things that we know can be problematic, e.g.:There are probably other things. Suggestions from @hiker, @TeranIvy, @sergisiso and @LonelyCat124 are welcome!
The text was updated successfully, but these errors were encountered: