3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

More ML API

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-12-19 16:33:51 +00:00
parent 2dde851ed7
commit bea09539cf
5 changed files with 96 additions and 12 deletions

12
examples/ml/MLExample.ml Normal file
View file

@ -0,0 +1,12 @@
(*
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
ctx#dispose
;;

14
examples/ml/README Normal file
View file

@ -0,0 +1,14 @@
### This is work-in-progress and does not work yet.
Small example using the Z3 ML bindings.
To build the example execute
make examples
in the build directory.
It will create MLExample in the build directory,
which can be run on Windows via
ocaml -I . MLExample
On Linux and FreeBSD, we must use
??