SymPy integration
There are two fundamental projects:
-
Use LFortran for SymPy's code generation. SymPy will target the LFortran's ASR, and LFortran can both generate Fortran code from it, as well as compile directly (whether JIT or to executable).
-
Use LFortran to parse Fortran code into ASR, then extract all expressions in each subroutine and convert them to SymPy (where it makes sense). This project allows then to hookup into modules such as Herbie, or do many other kinds of analysis using SymPy.
Here are SymPy GSoC 2019 project ideas regarding this: https://github.com/sympy/sympy/wiki/GSoC-2019-Ideas#lfortran-sympy-project-ideas