![]() |
User Guide
|
Unroll for loop in the AST. More...
Unroll for loop in the AST.
Derivative and kinetic blocks have for loop with coupled set of ODEs :
To solve these ODEs with SymPy, we need to get all ODEs from such loops. This visitor unroll such loops and insert new expression statement in the AST :
Note that the index 0+1
is not expanded to 1
because we do not run constant folder pass within this loop (but could be easily done).
Definition at line 59 of file loop_unroll_visitor.hpp.
#include <loop_unroll_visitor.hpp>
|
default |
|
overridevirtual |
Parse verbatim blocks and rename variable if it is used.
check if any verbatim block exists
unroll loop, replace current statement on successfull unroll
Implements nmodl::visitor::Visitor.
Definition at line 80 of file loop_unroll_visitor.cpp.