mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ML API: bugfix for native function with more than 5 parameters.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									b889b225a0
								
							
						
					
					
						commit
						c32e130487
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1211,9 +1211,11 @@ def mk_ml():
 | 
			
		|||
            ml_i.write(')')
 | 
			
		||||
        ml_native.write('\n')
 | 
			
		||||
        ml_i.write('\n')
 | 
			
		||||
        ml_native.write('      = "n_%s"\n' % ml_method_name(name))
 | 
			
		||||
        if len(ip) > 5:
 | 
			
		||||
            ml_native.write('        "n_%s_bytecode"\n' % ml_method_name(name))
 | 
			
		||||
            ml_native.write('      = "n_%s_bytecode"\n' % ml_method_name(name))
 | 
			
		||||
            ml_native.write('        "n_%s"\n' % ml_method_name(name))
 | 
			
		||||
        else:
 | 
			
		||||
            ml_native.write('      = "n_%s"\n' % ml_method_name(name))
 | 
			
		||||
        ml_native.write('\n')
 | 
			
		||||
    ml_native.write('  end\n\n')
 | 
			
		||||
    ml_i.write('\n(**/**)\n');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue