3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-06 15:25:46 +00:00

added Z3_enable_trace/Z3_disable_trace to the Z3 API (these APIs are NOOPs if tracing is not enabled during compilation)

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-29 17:23:45 -07:00
parent 1a16cf5a01
commit 5220092f0c
4 changed files with 33 additions and 5 deletions

View file

@ -491,6 +491,16 @@ extern "C" {
*revision_number = Z3_REVISION_NUMBER;
}
void Z3_API Z3_enable_trace(Z3_string tag) {
LOG_Z3_enable_trace(tag);
enable_trace(tag);
}
void Z3_API Z3_disable_trace(Z3_string tag) {
LOG_Z3_disable_trace(tag);
disable_trace(tag);
}
void Z3_API Z3_reset_memory(void) {
LOG_Z3_reset_memory();
memory::finalize();