libSBML Perl API  libSBML 5.17.2 Perl API
flattenModel.cpp

Model flattening example.