Skip to content

Conversation

@Mittagskogel
Copy link

This PR extends the _const_eval_basic_type transformation in the Fortran parser to propagate elements from
global constant PARAMETER arrays throughout the AST.

Given that the parameter array does not change and the declaration and definition are available in the same AST node, the transformation can handle array index offsets. The transformation also performs bounds checks to assert that referenced indices are valid.

Additionally, we avoid discarding PARAMETER arrays in consolidate_global_data_into_arg, given that variable array references par_arr(var) cannot be resolved. Our fix ensures that the array definition remains in the AST/SDFG for later use and does not get pruned prematurely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant