mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 19:52:29 +00:00 
			
		
		
		
	simplify theory case split handling
This commit is contained in:
		
							parent
							
								
									3bce61e0d4
								
							
						
					
					
						commit
						b86d472eaf
					
				
					 1 changed files with 2 additions and 13 deletions
				
			
		|  | @ -3057,19 +3057,8 @@ namespace smt { | |||
|                         literal l2 = *set_it; | ||||
|                         if (l2 != l) { | ||||
|                             b_justification js(l); | ||||
|                             switch (get_assignment(l2)) { | ||||
|                                 case l_false: | ||||
|                                     TRACE("theory_case_split", tout << "case split literal " << l2.index() << " is already assigned False" << std::endl;); | ||||
|                                     break; | ||||
|                                 case l_undef: | ||||
|                                     TRACE("theory_case_split", tout << "case split literal " << l2.index() << " is not assigned" << std::endl;); | ||||
|                                     assign(~l2, js); | ||||
|                                     break; | ||||
|                                 case l_true: | ||||
|                                     TRACE("theory_case_split", tout << "case split literal " << l2.index() << " is already assigned True" << std::endl;); | ||||
|                                     assign(~l2, js); | ||||
|                                     break; | ||||
|                             } | ||||
|                             TRACE("theory_case_split", tout << "case split literal "; l2.display(tout, m_manager, m_bool_var2expr.c_ptr());); | ||||
|                             assign(~l2, js); | ||||
|                             if (inconsistent()) { | ||||
|                                 TRACE("theory_case_split", tout << "conflict detected!" << std::endl;); | ||||
|                                 return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue