Browse Source
			
			
			Simplify assertion
			
				(thanks to Tim)
Co-authored-by: Tim Quatmann <tim.quatmann@cs.rwth-aachen.de>
			
			
				main
			
			
		 
		
			
				
					
						 Sebastian Junges
					
					4 years ago
						Sebastian Junges
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
3 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/storm/simulator/PrismProgramSimulator.cpp
				
					
					
						
							
								
									
										
											
	
		
			
				|  | @ -41,9 +41,7 @@ namespace storm { | 
		
	
		
			
				|  |  |             // TODO: This low-level code currently expands all actions, while this is not necessary.
 |  |  |             // TODO: This low-level code currently expands all actions, while this is not necessary.
 | 
		
	
		
			
				|  |  |             // However, using the next state generator ensures compatibliity with the model generator.
 |  |  |             // However, using the next state generator ensures compatibliity with the model generator.
 | 
		
	
		
			
				|  |  |             behavior = stateGenerator->expand(stateToIdCallback); |  |  |             behavior = stateGenerator->expand(stateToIdCallback); | 
		
	
		
			
				|  |  |             if (behavior.getStateRewards().size() > 0) { |  |  |  | 
		
	
		
			
				|  |  |             STORM_LOG_ASSERT(behavior.getStateRewards().size() == lastActionRewards.size(), "Reward vectors should have same length.");             |  |  |             STORM_LOG_ASSERT(behavior.getStateRewards().size() == lastActionRewards.size(), "Reward vectors should have same length.");             | 
		
	
		
			
				|  |  |             } |  |  |  | 
		
	
		
			
				|  |  |             for(uint64_t i = 0; i < behavior.getStateRewards().size(); i++) { |  |  |             for(uint64_t i = 0; i < behavior.getStateRewards().size(); i++) { | 
		
	
		
			
				|  |  |                 lastActionRewards[i] += behavior.getStateRewards()[i]; |  |  |                 lastActionRewards[i] += behavior.getStateRewards()[i]; | 
		
	
		
			
				|  |  |             } |  |  |             } | 
		
	
	
		
			
				|  | 
 |