mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	fix crash exposed by examples/dotnet/Program.cs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									3ba2aa2672
								
							
						
					
					
						commit
						c802a0ac96
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2103,7 +2103,7 @@ namespace test_mapi
 | 
			
		|||
            if (s.Check() != Status.SATISFIABLE)
 | 
			
		||||
                throw new TestFailedException();
 | 
			
		||||
 | 
			
		||||
            // Console.WriteLine("OK, model: {0}", s.Model.ToString());
 | 
			
		||||
            Console.WriteLine("OK, model: {0}", s.Model.ToString());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -312,7 +312,8 @@ void model::collect_occs(top_sort& ts, func_decl* f) {
 | 
			
		|||
        func_interp* fi = get_func_interp(f);
 | 
			
		||||
        if (fi) {
 | 
			
		||||
            e = fi->get_else();
 | 
			
		||||
            collect_occs(ts, e);
 | 
			
		||||
            if (e != nullptr)
 | 
			
		||||
               collect_occs(ts, e);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue