mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-30 19:22:28 +00:00 
			
		
		
		
	ML API: Cleanup
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									dcdcd7b140
								
							
						
					
					
						commit
						6842acbea8
					
				
					 4 changed files with 2064 additions and 1652 deletions
				
			
		|  | @ -15,6 +15,9 @@ open Z3.Tactic.ApplyResult | ||||||
| open Z3.Probe | open Z3.Probe | ||||||
| open Z3.Solver | open Z3.Solver | ||||||
| open Z3.Arithmetic | open Z3.Arithmetic | ||||||
|  | open Z3.Arithmetic.Integer | ||||||
|  | open Z3.Arithmetic.Real | ||||||
|  | open Z3.BitVector | ||||||
| 
 | 
 | ||||||
| exception TestFailedException of string | exception TestFailedException of string | ||||||
| 
 | 
 | ||||||
|  | @ -35,7 +38,7 @@ let  model_converter_test ( ctx : context ) = | ||||||
| 						     (Real.mk_numeral_nd ctx 10 1)))) |]) ; | 						     (Real.mk_numeral_nd ctx 10 1)))) |]) ; | ||||||
|   (Goal.assert_ g4 [| (mk_eq ctx  |   (Goal.assert_ g4 [| (mk_eq ctx  | ||||||
| 			 (expr_of_arith_expr yr)  | 			 (expr_of_arith_expr yr)  | ||||||
| 			 (expr_of_arith_expr (mk_add ctx [| xr; (arith_expr_of_real_expr (real_expr_of_rat_num (Real.mk_numeral_nd ctx 1 1)))  |] ))) |] ) ; | 			 (expr_of_arith_expr (Arithmetic.mk_add ctx [| xr; (arith_expr_of_real_expr (real_expr_of_rat_num (Real.mk_numeral_nd ctx 1 1)))  |]) ) ) |] ) ; | ||||||
|   (Goal.assert_ g4 [| (mk_gt ctx yr (arith_expr_of_real_expr (real_expr_of_rat_num (Real.mk_numeral_nd ctx 1 1)))) |]) ; |   (Goal.assert_ g4 [| (mk_gt ctx yr (arith_expr_of_real_expr (real_expr_of_rat_num (Real.mk_numeral_nd ctx 1 1)))) |]) ; | ||||||
|   ( |   ( | ||||||
|     let  ar = (Tactic.apply (mk_tactic ctx "simplify") g4 None) in |     let  ar = (Tactic.apply (mk_tactic ctx "simplify") g4 None) in | ||||||
|  |  | ||||||
|  | @ -1155,6 +1155,7 @@ def mk_ml(): | ||||||
|     ml_native.write('(** The native (raw) interface to the dynamic Z3 library. *)\n\n') |     ml_native.write('(** The native (raw) interface to the dynamic Z3 library. *)\n\n') | ||||||
|     ml_i.write('(* Automatically generated file *)\n\n') |     ml_i.write('(* Automatically generated file *)\n\n') | ||||||
|     ml_i.write('(** The native (raw) interface to the dynamic Z3 library. *)\n\n') |     ml_i.write('(** The native (raw) interface to the dynamic Z3 library. *)\n\n') | ||||||
|  |     ml_i.write('(**/**)\n\n'); | ||||||
|     ml_native.write('open Z3enums\n\n') |     ml_native.write('open Z3enums\n\n') | ||||||
|     ml_native.write('(**/**)\n') |     ml_native.write('(**/**)\n') | ||||||
|     ml_native.write('type ptr\n') |     ml_native.write('type ptr\n') | ||||||
|  | @ -1214,6 +1215,7 @@ def mk_ml(): | ||||||
|             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') |         ml_native.write('\n') | ||||||
|     ml_native.write('  end\n\n') |     ml_native.write('  end\n\n') | ||||||
|  |     ml_i.write('\n(**/**)\n'); | ||||||
| 
 | 
 | ||||||
|     # Exception wrappers |     # Exception wrappers | ||||||
|     for name, result, params in _dotnet_decls: |     for name, result, params in _dotnet_decls: | ||||||
|  |  | ||||||
							
								
								
									
										2111
									
								
								src/api/ml/z3.ml
									
										
									
									
									
								
							
							
						
						
									
										2111
									
								
								src/api/ml/z3.ml
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										1460
									
								
								src/api/ml/z3.mli
									
										
									
									
									
								
							
							
						
						
									
										1460
									
								
								src/api/ml/z3.mli
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue