Browse Source

Added argument for timebound

Former-commit-id: 22a83eae6e
tempestpy_adaptions
Mavo 9 years ago
parent
commit
3f70a69d6e
  1. 16
      src/storm-dyftee.cpp

16
src/storm-dyftee.cpp

@ -6,6 +6,8 @@
#include "utility/storm.h" #include "utility/storm.h"
#include "storage/dft/DFTIsomorphism.h" #include "storage/dft/DFTIsomorphism.h"
#include <boost/lexical_cast.hpp>
/*! /*!
* Load DFT from filename, build corresponding Model and check against given property. * Load DFT from filename, build corresponding Model and check against given property.
* *
@ -74,6 +76,20 @@ int main(int argc, char** argv) {
} else if (option == "--probability") { } else if (option == "--probability") {
assert(pctlFormula.empty()); assert(pctlFormula.empty());
pctlFormula = "P=? [F \"failed\"]"; pctlFormula = "P=? [F \"failed\"]";
} else if (option == "--timebound") {
assert(pctlFormula.empty());
++i;
assert(i < argc);
double timeBound;
try {
timeBound = boost::lexical_cast<double>(argv[i]);
} catch (boost::bad_lexical_cast e) {
std::cerr << "The time bound '" << argv[i] << "' is not valid." << std::endl;
return 2;
}
std::stringstream stream;
stream << "P=? [F<=" << timeBound << " \"failed\"]";
pctlFormula = stream.str();
} else if (option == "--trace") { } else if (option == "--trace") {
level = log4cplus::TRACE_LOG_LEVEL; level = log4cplus::TRACE_LOG_LEVEL;
} else if (option == "--debug") { } else if (option == "--debug") {

Loading…
Cancel
Save