mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	fix #6677
This commit is contained in:
		
							parent
							
								
									98d3fabc24
								
							
						
					
					
						commit
						bb44b91e45
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1237,6 +1237,9 @@ bool cmd_context::try_mk_pdecl_app(symbol const & s, unsigned num_args, expr * c
 | 
			
		|||
    if (num_args != 1)
 | 
			
		||||
        return false;
 | 
			
		||||
 | 
			
		||||
    if (!dt.is_datatype(args[0]->get_sort()))
 | 
			
		||||
        return false;
 | 
			
		||||
 | 
			
		||||
    for (auto* a : dt.plugin().get_accessors(s)) {        
 | 
			
		||||
        fn = a->instantiate(args[0]->get_sort());
 | 
			
		||||
        r = m().mk_app(fn, num_args, args);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue