Browse Source

adding test-bench for prctl parser.

tempestpy_adaptions
gereon 12 years ago
parent
commit
60dbf5608e
  1. 5
      src/mrmc.cpp
  2. 1
      src/utility/settings.cpp

5
src/mrmc.cpp

@ -22,6 +22,7 @@
#include "src/models/AtomicPropositionsLabeling.h" #include "src/models/AtomicPropositionsLabeling.h"
#include "src/parser/readLabFile.h" #include "src/parser/readLabFile.h"
#include "src/parser/readTraFile.h" #include "src/parser/readTraFile.h"
#include "src/parser/readPrctlFile.h"
#include "src/solver/GraphAnalyzer.h" #include "src/solver/GraphAnalyzer.h"
#include "src/utility/settings.h" #include "src/utility/settings.h"
#include "Eigen/Sparse" #include "Eigen/Sparse"
@ -84,6 +85,10 @@ int main(const int argc, const char* argv[]) {
std::cout << mrmc::settings::helpConfigfile << std::endl; std::cout << mrmc::settings::helpConfigfile << std::endl;
return 0; return 0;
} }
if (s->isSet("test-prctl")) {
mrmc::parser::PRCTLParser parser(s->getString("test-prctl").c_str());
return 0;
}
if (s->isSet("verbose")) if (s->isSet("verbose"))
{ {

1
src/utility/settings.cpp

@ -114,6 +114,7 @@ Settings* Settings::instance(const int argc, const char* argv[], const char* fil
("verbose,v", "be verbose") ("verbose,v", "be verbose")
("help-config", "produce help message about config file") ("help-config", "produce help message about config file")
("configfile,c", bpo::value<std::string>(), "name of config file") ("configfile,c", bpo::value<std::string>(), "name of config file")
("test-prctl", bpo::value<std::string>(), "name of prctl file")
; ;
Settings::generic.add_options() Settings::generic.add_options()
("trafile", bpo::value<std::string>()->required(), "name of the .tra file") ("trafile", bpo::value<std::string>()->required(), "name of the .tra file")

Loading…
Cancel
Save