3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

display justifications compactly for tracing #4575

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-07-08 13:32:41 -07:00
parent ab7b8b6ec5
commit 80cc45c5c1
3 changed files with 38 additions and 1 deletions

View file

@ -1572,6 +1572,12 @@ public:
bool has_trace_stream() const { return m_trace_stream != nullptr; }
std::ostream & trace_stream() { SASSERT(has_trace_stream()); return *m_trace_stream; }
struct suspend_trace {
ast_manager& m;
std::fstream* m_tr;
suspend_trace(ast_manager& m): m(m), m_tr(m.m_trace_stream) { m.m_trace_stream = nullptr; }
~suspend_trace() { m.m_trace_stream = m_tr; }
};
void enable_int_real_coercions(bool f) { m_int_real_coercions = f; }
bool int_real_coercions() const { return m_int_real_coercions; }