mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
More ML API:
Fixes in native layer. Added symbols. Prepared code for automatic documentation. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
7efe7a2c16
commit
794823ba6d
4 changed files with 151 additions and 63 deletions
|
@ -4,6 +4,7 @@
|
|||
*)
|
||||
|
||||
open Z3
|
||||
open Z3.Context
|
||||
|
||||
exception ExampleException of string
|
||||
|
||||
|
@ -15,6 +16,10 @@ let _ =
|
|||
Printf.printf "Running Z3 version %s\n" Version.to_string ;
|
||||
let cfg = [("model", "true"); ("proof", "false")] in
|
||||
let ctx = (new context cfg) in
|
||||
let is = (mk_symbol_int ctx 42) in
|
||||
let ss = (mk_symbol_string ctx "mySymbol") in
|
||||
Printf.printf "int symbol: %s\n" (Symbol.to_string (is :> symbol));
|
||||
Printf.printf "string symbol: %s\n" (Symbol.to_string (ss :> symbol));
|
||||
Printf.printf "Disposing...\n";
|
||||
ctx#dispose (* can do, but we'd rather let it go out of scope *) ;
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue