mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 17:30:23 +00:00
ML API and example compilation.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
e7e85dc7b4
commit
c001da6188
5 changed files with 39 additions and 34 deletions
14
examples/ml/ml_example.ml
Normal file
14
examples/ml/ml_example.ml
Normal file
|
@ -0,0 +1,14 @@
|
|||
(*
|
||||
Copyright (C) 2012 Microsoft Corporation
|
||||
Author: CM Wintersteiger (cwinter) 2012-12-17
|
||||
*)
|
||||
|
||||
open Z3
|
||||
|
||||
let _ = ignore(Log.open_ "z3.log") ;
|
||||
let cfg = Some [("model", "true"); ("proof", "false")] in
|
||||
let ctx = (new context cfg) in
|
||||
Printf.printf "Disposing...\n";
|
||||
ctx#dispose ;
|
||||
Printf.printf "Exiting.\n";
|
||||
;;
|
Loading…
Add table
Add a link
Reference in a new issue