Closed KuiWei004 closed 2 weeks ago
Is there any way to disable the mem-manager of z3? I'd like to let z3 use the malloc
function overrided by libgc.
memory manager code is here:
https://github.com/Z3Prover/z3/blob/master/src/util/memory_manager.cpp
it uses different libraries depending on compilation flags.
I use z3-solver as a library in my c++ project, but it crashed occasionally. The crash point is always the destructor in z3-ast or z3-solver. I think the reason may be that before the destructor works, the libgc has collected the corresponding mem, so when the destructor works, it will delete a null pointer.