|
@ -7,22 +7,24 @@ |
|
|
|
|
|
|
|
|
#include "src/parser/NonDeterministicSparseTransitionParser.h"
|
|
|
#include "src/parser/NonDeterministicSparseTransitionParser.h"
|
|
|
|
|
|
|
|
|
#include "src/utility/Settings.h"
|
|
|
|
|
|
#include "src/exceptions/FileIoException.h"
|
|
|
|
|
|
#include "src/exceptions/WrongFileFormatException.h"
|
|
|
|
|
|
#include "boost/integer/integer_mask.hpp"
|
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
#include <locale.h>
|
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
#include <cstdlib>
|
|
|
#include <cstdio>
|
|
|
#include <cstdio>
|
|
|
#include <cstring>
|
|
|
#include <cstring>
|
|
|
#include <clocale>
|
|
|
#include <clocale>
|
|
|
#include <iostream>
|
|
|
#include <iostream>
|
|
|
#include <errno.h>
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
#include <locale.h>
|
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
#include "src/utility/Settings.h"
|
|
|
|
|
|
#include "src/exceptions/FileIoException.h"
|
|
|
|
|
|
#include "src/exceptions/WrongFileFormatException.h"
|
|
|
|
|
|
#include "boost/integer/integer_mask.hpp"
|
|
|
#include "log4cplus/logger.h"
|
|
|
#include "log4cplus/logger.h"
|
|
|
#include "log4cplus/loggingmacros.h"
|
|
|
#include "log4cplus/loggingmacros.h"
|
|
|
extern log4cplus::Logger logger; |
|
|
extern log4cplus::Logger logger; |
|
@ -152,8 +154,7 @@ uint_fast64_t NonDeterministicSparseTransitionParser::firstPass(char* buf, uint_ |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
NonDeterministicSparseTransitionParser::NonDeterministicSparseTransitionParser(std::string const &filename) |
|
|
NonDeterministicSparseTransitionParser::NonDeterministicSparseTransitionParser(std::string const &filename) |
|
|
: matrix(nullptr) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
: matrix(nullptr) { |
|
|
/*
|
|
|
/*
|
|
|
* Enforce locale where decimal point is '.'. |
|
|
* Enforce locale where decimal point is '.'. |
|
|
*/ |
|
|
*/ |
|
@ -174,8 +175,7 @@ NonDeterministicSparseTransitionParser::NonDeterministicSparseTransitionParser(s |
|
|
/*
|
|
|
/*
|
|
|
* If first pass returned zero, the file format was wrong. |
|
|
* If first pass returned zero, the file format was wrong. |
|
|
*/ |
|
|
*/ |
|
|
if (nonzero == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
if (nonzero == 0) { |
|
|
LOG4CPLUS_ERROR(logger, "Error while parsing " << filename << ": erroneous file format."); |
|
|
LOG4CPLUS_ERROR(logger, "Error while parsing " << filename << ": erroneous file format."); |
|
|
throw storm::exceptions::WrongFileFormatException(); |
|
|
throw storm::exceptions::WrongFileFormatException(); |
|
|
} |
|
|
} |
|
@ -227,8 +227,7 @@ NonDeterministicSparseTransitionParser::NonDeterministicSparseTransitionParser(s |
|
|
/*
|
|
|
/*
|
|
|
* Read all transitions from file. |
|
|
* Read all transitions from file. |
|
|
*/ |
|
|
*/ |
|
|
while (buf[0] != '\0') |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
while (buf[0] != '\0') { |
|
|
/*
|
|
|
/*
|
|
|
* Read source node and choice name. |
|
|
* Read source node and choice name. |
|
|
*/ |
|
|
*/ |
|
|