mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 01:24:08 +00:00
streamline tracing
This commit is contained in:
parent
db997cd64d
commit
83ee21cd22
|
@ -2206,16 +2206,10 @@ void array_project(model &mdl, app_ref_vector &arr_vars, expr_ref &fml,
|
||||||
app_ref_vector &aux_vars, bool reduce_all_selects) {
|
app_ref_vector &aux_vars, bool reduce_all_selects) {
|
||||||
// 1. project array equalities
|
// 1. project array equalities
|
||||||
array_project_eqs(mdl, arr_vars, fml, aux_vars);
|
array_project_eqs(mdl, arr_vars, fml, aux_vars);
|
||||||
TRACE(
|
TRACE("qe",
|
||||||
"qe", ast_manager &m = fml.get_manager();
|
tout << "Projected array eqs:\n" << fml << "\n";
|
||||||
tout << "Projected array eqs:\n"
|
tout << "Remaining array vars:\n" << arr_vars;
|
||||||
<< mk_pp(fml, m) << "\n";
|
tout << "Aux vars:\n" << aux_vars;);
|
||||||
tout << "Remaining array vars:\n"; for (unsigned i = 0;
|
|
||||||
i < arr_vars.size(); i++) {
|
|
||||||
tout << mk_pp(arr_vars.get(i), m) << "\n";
|
|
||||||
} tout << "Aux vars:\n";
|
|
||||||
for (unsigned i = 0; i < aux_vars.size();
|
|
||||||
i++) { tout << mk_pp(aux_vars.get(i), m) << "\n"; });
|
|
||||||
|
|
||||||
// 2. reduce selects
|
// 2. reduce selects
|
||||||
if (reduce_all_selects) {
|
if (reduce_all_selects) {
|
||||||
|
@ -2223,19 +2217,16 @@ void array_project(model &mdl, app_ref_vector &arr_vars, expr_ref &fml,
|
||||||
} else {
|
} else {
|
||||||
reduce_array_selects(mdl, arr_vars, fml);
|
reduce_array_selects(mdl, arr_vars, fml);
|
||||||
}
|
}
|
||||||
TRACE("qe", ast_manager &m = fml.get_manager(); tout << "Reduced selects:\n"
|
TRACE("qe", tout << "Reduced selects:\n" << fml << "\n";);
|
||||||
<< mk_pp(fml, m)
|
|
||||||
<< "\n";);
|
|
||||||
|
|
||||||
// 3. project selects using model based ackermannization
|
// 3. project selects using model based ackermannization
|
||||||
array_project_selects(mdl, arr_vars, fml, aux_vars);
|
array_project_selects(mdl, arr_vars, fml, aux_vars);
|
||||||
TRACE(
|
TRACE(
|
||||||
"qe", ast_manager &m = fml.get_manager();
|
"qe",
|
||||||
tout << "Projected array selects:\n"
|
tout << "Projected array selects:\n";
|
||||||
<< mk_pp(fml, m) << "\n";
|
tout << fml << "\n";
|
||||||
tout << "All aux vars:\n";
|
tout << "All aux vars:\n" << aux_vars;);
|
||||||
for (unsigned i = 0; i < aux_vars.size();
|
|
||||||
i++) { tout << mk_pp(aux_vars.get(i), m) << "\n"; });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace spacer_qe
|
} // namespace spacer_qe
|
||||||
|
|
Loading…
Reference in a new issue