mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	fix generation of symbolic automata with no moves but accepting initial state
This commit is contained in:
		
							parent
							
								
									8b506375e4
								
							
						
					
					
						commit
						9b01a5153e
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -451,7 +451,15 @@ typename symbolic_automata<T, M>::automaton_t* symbolic_automata<T, M>::mk_produ | |||
|         } | ||||
|     } | ||||
|     if (mvs1.empty()) { | ||||
|         return alloc(automaton_t, m); | ||||
|         if (a.is_final_state(a.init()) && b.is_final_state(b.init())) { | ||||
|             // special case: automaton has no moves, but the initial state is final on both sides
 | ||||
|             // this results in the automaton which accepts the empty sequence and nothing else
 | ||||
|             final.clear(); | ||||
|             final.push_back(0); | ||||
|             return alloc(automaton_t, m, 0, final, mvs1); | ||||
|         } else { | ||||
|             return alloc(automaton_t, m); | ||||
|         } | ||||
|     } | ||||
|     else { | ||||
|         return alloc(automaton_t, m, 0, final, mvs1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue