Closed gussmith23 closed 4 months ago
Turns out this is actually done! EGraph::function_to_dag
.
Opened an issue to document the function: #367
Oh cool! There is an open issue in the Python bindings to expose print function, but I wasn't sure if I could get at the data. Nice to know that it's possible https://github.com/egraphs-good/egglog-python/issues/124
On the Rust side, I would like to have access to the functions printed by
print_function
. @oflatt suggested a simple refactor, adding adump_function
function which dumps the Term objects, and then refactoringprint_function
to usedump_function
. Then I can usedump_function
to achieve my own goal.Feel free to assign to me.