mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ML API: Cleanup
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									09aa02759f
								
							
						
					
					
						commit
						2af1f81ae1
					
				
					 4 changed files with 1159 additions and 1099 deletions
				
			
		| 
						 | 
				
			
			@ -3,5 +3,5 @@
 | 
			
		|||
# in the top-level build directory.
 | 
			
		||||
 | 
			
		||||
all: 
 | 
			
		||||
	OCAML_COMPAT=c ocamlc -g -annot -o ml_example.byte -I ../../bld_dbg -I ../../bld_dbg/api/ml z3.cma ml_example.ml
 | 
			
		||||
	ocamlopt -g -annot -o ml_example -I ../../bld_dbg -I ../../bld_dbg/api/ml z3.cmxa ml_example.ml
 | 
			
		||||
	OCAML_COMPAT=c C:/ocamlw32/bin/ocamlc -g -annot -o ml_example.byte -I ../../bld_dbg -I ../../bld_dbg/api/ml z3.cma ml_example.ml
 | 
			
		||||
	C:/ocamlw32/bin/ocamlopt -g -annot -o ml_example -I ../../bld_dbg -I ../../bld_dbg/api/ml z3.cmxa ml_example.ml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,6 +15,9 @@ open Z3.Tactic.ApplyResult
 | 
			
		|||
open Z3.Probe
 | 
			
		||||
open Z3.Solver
 | 
			
		||||
open Z3.Arithmetic
 | 
			
		||||
open Z3.Arithmetic.Integer
 | 
			
		||||
open Z3.Arithmetic.Real
 | 
			
		||||
open Z3.BitVector
 | 
			
		||||
 | 
			
		||||
exception TestFailedException of string
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +38,7 @@ let  model_converter_test ( ctx : context ) =
 | 
			
		|||
						     (Real.mk_numeral_nd ctx 10 1)))) |]) ;
 | 
			
		||||
  (Goal.assert_ g4 [| (mk_eq ctx 
 | 
			
		||||
			 (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)))) |]) ;
 | 
			
		||||
  (
 | 
			
		||||
    let  ar = (Tactic.apply (mk_tactic ctx "simplify") g4 None) in
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue