mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Java API: bugfixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									29b896b0bf
								
							
						
					
					
						commit
						519d308b86
					
				
					 2 changed files with 7 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -2974,23 +2974,15 @@ public class Context extends IDisposable
 | 
			
		|||
 | 
			
		||||
	void CheckContextMatch(Z3Object other) throws Z3Exception
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		if (this == other.Context())
 | 
			
		||||
			throw new Z3Exception("Context mismatch");
 | 
			
		||||
	    if (this != other.Context())
 | 
			
		||||
		throw new Z3Exception("Context mismatch");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void CheckContextMatch(Z3Object[] arr) throws Z3Exception
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		if (arr != null)
 | 
			
		||||
		{
 | 
			
		||||
			for (Z3Object a : arr)
 | 
			
		||||
			{
 | 
			
		||||
				// It was an assume, now we added the precondition, and we made
 | 
			
		||||
				// it into an assert
 | 
			
		||||
				CheckContextMatch(a);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	    if (arr != null)
 | 
			
		||||
		for (Z3Object a : arr)
 | 
			
		||||
		    CheckContextMatch(a);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	private ASTDecRefQueue m_AST_DRQ = new ASTDecRefQueue();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue