| 
					
					
					
				 | 
				@ -1,13 +1,11 @@ | 
			
		
		
	
		
			
				 | 
				 | 
				#include "src/parser/AutoParser.h"
 | 
				 | 
				 | 
				#include "src/parser/AutoParser.h"
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				#include <string>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				#include <cctype>
 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				#include "src/exceptions/WrongFileFormatException.h"
 | 
				 | 
				 | 
				#include "src/exceptions/WrongFileFormatException.h"
 | 
			
		
		
	
		
			
				 | 
				 | 
				#include "src/models/AbstractModel.h"
 | 
				 | 
				 | 
				#include "src/models/AbstractModel.h"
 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				#include "src/parser/DtmcParser.h"
 | 
				 | 
				 | 
				#include "src/parser/DtmcParser.h"
 | 
			
		
		
	
		
			
				 | 
				 | 
				//#include "NonDeterministicSparseTransitionParser.h"
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				#include <string>
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				#include <cctype>
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				namespace storm { | 
				 | 
				 | 
				namespace storm { | 
			
		
		
	
		
			
				 | 
				 | 
				namespace parser { | 
				 | 
				 | 
				namespace parser { | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -15,15 +13,13 @@ namespace parser { | 
			
		
		
	
		
			
				 | 
				 | 
				AutoParser::AutoParser(std::string const & transitionSystemFile, std::string const & labelingFile, | 
				 | 
				 | 
				AutoParser::AutoParser(std::string const & transitionSystemFile, std::string const & labelingFile, | 
			
		
		
	
		
			
				 | 
				 | 
					std::string const & stateRewardFile, std::string const & transitionRewardFile) | 
				 | 
				 | 
					std::string const & stateRewardFile, std::string const & transitionRewardFile) | 
			
		
		
	
		
			
				 | 
				 | 
					: model(nullptr) { | 
				 | 
				 | 
					: model(nullptr) { | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
					storm::models::ModelType type = this->analyzeHint(transitionSystemFile); | 
				 | 
				 | 
					storm::models::ModelType type = this->analyzeHint(transitionSystemFile); | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
					if (type == storm::models::Unknown) { | 
				 | 
				 | 
					if (type == storm::models::Unknown) { | 
			
		
		
	
		
			
				 | 
				 | 
						LOG4CPLUS_ERROR(logger, "Could not determine file type of " << transitionSystemFile << "."); | 
				 | 
				 | 
						LOG4CPLUS_ERROR(logger, "Could not determine file type of " << transitionSystemFile << "."); | 
			
		
		
	
		
			
				 | 
				 | 
						LOG4CPLUS_ERROR(logger, "The first line of the file should contain a format hint. Please fix your file and try again."); | 
				 | 
				 | 
						LOG4CPLUS_ERROR(logger, "The first line of the file should contain a format hint. Please fix your file and try again."); | 
			
		
		
	
		
			
				 | 
				 | 
						throw storm::exceptions::WrongFileFormatException() << "Could not determine type of file " << transitionSystemFile; | 
				 | 
				 | 
						throw storm::exceptions::WrongFileFormatException() << "Could not determine type of file " << transitionSystemFile; | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
					else { | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
					} else { | 
			
		
		
	
		
			
				 | 
				 | 
						LOG4CPLUS_INFO(logger, "Model type seems to be " << type); | 
				 | 
				 | 
						LOG4CPLUS_INFO(logger, "Model type seems to be " << type); | 
			
		
		
	
		
			
				 | 
				 | 
					} | 
				 | 
				 | 
					} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
	
		
			
				| 
					
					
					
						
							
						
					
				 | 
				@ -47,7 +43,6 @@ AutoParser::AutoParser(std::string const & transitionSystemFile, std::string con | 
			
		
		
	
		
			
				 | 
				 | 
				} | 
				 | 
				 | 
				} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
				storm::models::ModelType AutoParser::analyzeHint(const std::string& filename) { | 
				 | 
				 | 
				storm::models::ModelType AutoParser::analyzeHint(const std::string& filename) { | 
			
		
		
	
		
			
				 | 
				 | 
					 | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
					storm::models::ModelType hintType = storm::models::Unknown; | 
				 | 
				 | 
					storm::models::ModelType hintType = storm::models::Unknown; | 
			
		
		
	
		
			
				 | 
				 | 
					// Open file
 | 
				 | 
				 | 
					// Open file
 | 
			
		
		
	
		
			
				 | 
				 | 
					MappedFile file(filename.c_str()); | 
				 | 
				 | 
					MappedFile file(filename.c_str()); | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |