-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fortran] Support for Computed GO TO (#780)
## Summary of Changes - Adds CAST support for ingesting Computed GO TO - Adds support for generating GroMEt for CAST files containing Computed GO TOs. - Adds a test script `test_goto_computed.py` that contains a unit test for a small Fortran file that has a Computed GO TO. - Fixes a small issue in the Annotated CAST generation in `cast_to_annotated_cast.py`. This fix allows correct support of Computed GO TOs. - Updates CAST Visualizer to support visualizing GO TO and Label CAST nodes. ### CAST Computed GO TO Conversion Since the expression in Computed GO TOs evaluates to an index rather than a label, we make a small conversion to the expression in the CAST to support this. We utilize the _get Gromet function to handle this indexing. So: ```fortran GO TO (100,200,300,400), x+y ``` gets converted to: ```python _get(["100", "200", "300", "400"], x+y) ``` ### Related issues Resolves #698 Resolves #701 Resolves #773 --------- Co-authored-by: Tito Ferra <[email protected]> f899664
- Loading branch information
1 parent
ed60127
commit f34a021
Showing
9,500 changed files
with
243,959 additions
and
238,253 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.