|
@ -6,7 +6,7 @@ |
|
|
|
|
|
|
|
|
#include "storm/settings/SettingsManager.h"
|
|
|
#include "storm/settings/SettingsManager.h"
|
|
|
#include "storm/api/storm.h"
|
|
|
#include "storm/api/storm.h"
|
|
|
#include "storm/cli/cli.h"
|
|
|
|
|
|
|
|
|
#include "storm-cli-utilities/cli.h"
|
|
|
#include "storm/models/ModelBase.h"
|
|
|
#include "storm/models/ModelBase.h"
|
|
|
#include "storm/storage/SymbolicModelDescription.h"
|
|
|
#include "storm/storage/SymbolicModelDescription.h"
|
|
|
#include "storm/utility/file.h"
|
|
|
#include "storm/utility/file.h"
|
|
@ -23,7 +23,7 @@ |
|
|
#include "storm/exceptions/InvalidSettingsException.h"
|
|
|
#include "storm/exceptions/InvalidSettingsException.h"
|
|
|
#include "storm/exceptions/NotSupportedException.h"
|
|
|
#include "storm/exceptions/NotSupportedException.h"
|
|
|
|
|
|
|
|
|
#include "storm/cli/cli.cpp"
|
|
|
|
|
|
|
|
|
#include "storm-cli-utilities/cli.cpp"
|
|
|
|
|
|
|
|
|
namespace storm { |
|
|
namespace storm { |
|
|
namespace pars { |
|
|
namespace pars { |
|
@ -336,26 +336,6 @@ namespace storm { |
|
|
processInputWithValueTypeAndDdlib<storm::dd::DdType::Sylvan, storm::RationalFunction>(symbolicInput); |
|
|
processInputWithValueTypeAndDdlib<storm::dd::DdType::Sylvan, storm::RationalFunction>(symbolicInput); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int64_t process(const int argc, const char** argv) { |
|
|
|
|
|
storm::utility::setUp(); |
|
|
|
|
|
storm::cli::printHeader("Storm-pars", argc, argv); |
|
|
|
|
|
storm::settings::initializeParsSettings("Storm-pars", "storm-pars"); |
|
|
|
|
|
|
|
|
|
|
|
storm::utility::Stopwatch totalTimer(true); |
|
|
|
|
|
if (!storm::cli::parseOptions(argc, argv)) { |
|
|
|
|
|
return -1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
processOptions(); |
|
|
|
|
|
|
|
|
|
|
|
totalTimer.stop(); |
|
|
|
|
|
if (storm::settings::getModule<storm::settings::modules::ResourceSettings>().isPrintTimeAndMemorySet()) { |
|
|
|
|
|
storm::cli::printTimeAndMemoryStatistics(totalTimer.getTimeInMilliseconds()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
storm::utility::cleanUp(); |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -366,7 +346,24 @@ namespace storm { |
|
|
int main(const int argc, const char** argv) { |
|
|
int main(const int argc, const char** argv) { |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
return storm::pars::process(argc, argv); |
|
|
|
|
|
|
|
|
storm::utility::setUp(); |
|
|
|
|
|
storm::cli::printHeader("Storm-pars", argc, argv); |
|
|
|
|
|
storm::settings::initializeParsSettings("Storm-pars", "storm-pars"); |
|
|
|
|
|
|
|
|
|
|
|
storm::utility::Stopwatch totalTimer(true); |
|
|
|
|
|
if (!storm::cli::parseOptions(argc, argv)) { |
|
|
|
|
|
return -1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
storm::pars::processOptions(); |
|
|
|
|
|
|
|
|
|
|
|
totalTimer.stop(); |
|
|
|
|
|
if (storm::settings::getModule<storm::settings::modules::ResourceSettings>().isPrintTimeAndMemorySet()) { |
|
|
|
|
|
storm::cli::printTimeAndMemoryStatistics(totalTimer.getTimeInMilliseconds()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
storm::utility::cleanUp(); |
|
|
|
|
|
return 0; |
|
|
} catch (storm::exceptions::BaseException const& exception) { |
|
|
} catch (storm::exceptions::BaseException const& exception) { |
|
|
STORM_LOG_ERROR("An exception caused Storm-pars to terminate. The message of the exception is: " << exception.what()); |
|
|
STORM_LOG_ERROR("An exception caused Storm-pars to terminate. The message of the exception is: " << exception.what()); |
|
|
return 1; |
|
|
return 1; |
|
|