mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
more cleanup
This commit is contained in:
parent
a8586746be
commit
6ee3941523
17 changed files with 328 additions and 104 deletions
|
@ -32,6 +32,8 @@ namespace smt {
|
|||
|
||||
quantifier_manager_plugin * mk_default_plugin();
|
||||
|
||||
void log_single_justification(std::ostream & out, enode *en, obj_hashtable<enode> &visited, context &ctx, ast_manager &m);
|
||||
|
||||
/**
|
||||
\brief Ensures that all relevant proof steps to explain why the enode is equal to the root of its
|
||||
equivalence class are in the log and up-to-date.
|
||||
|
@ -68,7 +70,7 @@ namespace smt {
|
|||
\brief Logs a single equality explanation step and, if necessary, recursively calls log_justification_to_root to log
|
||||
equalities needed by the step (e.g. argument equalities for congruence steps).
|
||||
*/
|
||||
void quantifier_manager::log_single_justification(std::ostream & out, enode *en, obj_hashtable<enode> &visited, context &ctx, ast_manager &m) {
|
||||
void log_single_justification(std::ostream & out, enode *en, obj_hashtable<enode> &visited, context &ctx, ast_manager &m) {
|
||||
smt::literal lit;
|
||||
unsigned num_args;
|
||||
enode *target = en->get_trans_justification().m_target;
|
||||
|
@ -87,8 +89,8 @@ namespace smt {
|
|||
num_args = en->get_num_args();
|
||||
|
||||
for (unsigned i = 0; i < num_args; ++i) {
|
||||
log_justification_to_root(out, en->get_arg(i), visited, ctx, m);
|
||||
log_justification_to_root(out, target->get_arg(i), visited, ctx, m);
|
||||
quantifier_manager::log_justification_to_root(out, en->get_arg(i), visited, ctx, m);
|
||||
quantifier_manager::log_justification_to_root(out, target->get_arg(i), visited, ctx, m);
|
||||
}
|
||||
|
||||
out << "[eq-expl] #" << en->get_owner_id() << " cg";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue