libSBML Perl API  libSBML 5.12.0 Perl API
flattenModel.cpp

Model flattening example.