mirror of
https://github.com/Z3Prover/z3
synced 2025-05-06 15:25:46 +00:00
add new C API function: Z3_finalize_memory()
Useful to debug memory leaks in Z3 and in client applications Signed-off-by: Nuno Lopes <nlopes@microsoft.com>
This commit is contained in:
parent
6217804ed5
commit
0997d0d2b5
2 changed files with 18 additions and 1 deletions
|
@ -516,6 +516,11 @@ extern "C" {
|
|||
memory::initialize(0);
|
||||
}
|
||||
|
||||
void Z3_API Z3_finalize_memory(void) {
|
||||
LOG_Z3_finalize_memory();
|
||||
memory::finalize();
|
||||
}
|
||||
|
||||
Z3_error_code Z3_API Z3_get_error_code(Z3_context c) {
|
||||
LOG_Z3_get_error_code(c);
|
||||
return mk_c(c)->get_error_code();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue