libSBML Perl API  libSBML 5.15.2 Perl API
flattenModel.cpp

Model flattening example.