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:
parent
2dde851ed7
commit
bea09539cf
5 changed files with 96 additions and 12 deletions
12
examples/ml/MLExample.ml
Normal file
12
examples/ml/MLExample.ml
Normal 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
14
examples/ml/README
Normal 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
|
||||
??
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue