mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Add Z3_get_estimated_alloc_size to OCaml API (#7068)
This commit is contained in:
parent
19f3ad46ce
commit
68a2c08d5e
3 changed files with 7 additions and 0 deletions
|
@ -308,6 +308,7 @@ let fpa_example ( ctx : context ) =
|
|||
(
|
||||
let solver = (mk_solver ctx None) in
|
||||
(Solver.add solver [ c5 ]) ;
|
||||
Printf.printf "Memory in use before `check`: %Lu bytes\n" (Statistics.get_estimated_alloc_size());
|
||||
if (check solver []) != SATISFIABLE then
|
||||
raise (TestFailedException "")
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue