Browse Source

Use result.toString to generate easier-to-parse result files

tempestpy_adaptions
sjunges 8 years ago
committed by Sebastian Junges
parent
commit
5a3c67c352
  1. 2
      src/storm/api/export.h

2
src/storm/api/export.h

@ -32,7 +32,7 @@ namespace storm {
std::set<storm::RationalFunctionVariable> vars = result.gatherVariables();
std::copy(vars.begin(), vars.end(), std::ostream_iterator<storm::RationalFunctionVariable>(filestream, "; "));
filestream << std::endl;
filestream << "!Result: " << result << std::endl;
filestream << "!Result: " << result.toString(false, true) << std::endl;
filestream << "!Well-formed Constraints: " << std::endl;
std::vector<std::string> stringConstraints;
std::transform(constraintCollector.getWellformedConstraints().begin(), constraintCollector.getWellformedConstraints().end(), std::back_inserter(stringConstraints), [](carl::Formula<typename storm::Polynomial::PolyType> const& c) -> std::string { return c.toString();});

Loading…
Cancel
Save