3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-11 09:44:43 +00:00

simplify a few of the several axiom trace commands

This commit is contained in:
Nikolaj Bjorner 2020-07-26 18:02:16 -07:00
parent c7704ef9af
commit ae502bc2c4
2 changed files with 29 additions and 29 deletions

View file

@ -126,6 +126,15 @@ namespace smt {
}
}
scoped_trace_stream(theory& th, literal lit1, literal lit2): m(th.get_manager()) {
if (m.has_trace_stream()) {
literal_vector lits;
lits.push_back(lit1);
lits.push_back(lit2);
th.log_axiom_instantiation(lits);
}
}
scoped_trace_stream(theory& th, std::function<literal(void)>& fn): m(th.get_manager()) {
if (m.has_trace_stream()) {
literal_vector ls;