Skip to content

Commit 8b5510b

Browse files
NikolajBjornerlevnach
authored andcommitted
nit
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 7577f6f commit 8b5510b

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

src/math/lp/dioph_eq.cpp

+9-15
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,13 @@ namespace lp {
111111
}
112112
// Only b0 exists
113113
else if (has_b0) {
114-
unsigned a0 = m_rev_map.at(b0);
115-
114+
unsigned a0 = m_rev_map.at(b0);
116115
erase_val(b0);
117116
add(a0, b1);
118117
}
119118
// Only b1 exists
120119
else if (has_b1) {
121-
unsigned a1 = m_rev_map.at(b1);
122-
120+
unsigned a1 = m_rev_map.at(b1);
123121
erase_val(b1);
124122
add(a1, b0);
125123
}
@@ -2479,14 +2477,11 @@ namespace lp {
24792477
print_deps(out, explain_fixed_in_meta_term(l_term));
24802478
out << "}\n";
24812479
}
2482-
if (belongs_to_f(i)) {
2480+
if (belongs_to_f(i))
24832481
out << "in F\n";
2484-
}
2485-
else {
2486-
if (print_in_S) {
2487-
out << "in S\n";
2488-
}
2489-
}
2482+
else if (print_in_S)
2483+
out << "in S\n";
2484+
24902485
if (print_column_info) {
24912486
bool has_fresh = false;
24922487
for (const auto& p : m_e_matrix[i] ) {
@@ -2500,7 +2495,8 @@ namespace lp {
25002495
auto j = local_to_lar_solver(p.var());
25012496
out << "\tx" << p.var() << " := " << lra.get_column_value(j) << " " << lra.get_bounds_string(j) << "\n";
25022497
}
2503-
} else {
2498+
}
2499+
else {
25042500
out << "\thas fresh vars\n";
25052501
}
25062502
}
@@ -2585,9 +2581,7 @@ namespace lp {
25852581
TRACE("dioph_eq", tout << "push to S:\n"; print_entry(h, tout););
25862582
move_entry_from_f_to_s(kh, h);
25872583
eliminate_var_in_f(h, kh, kh_sign);
2588-
if (ih != f_vector.size() - 1) {
2589-
f_vector[ih] = f_vector.back();
2590-
}
2584+
f_vector[ih] = f_vector.back();
25912585
f_vector.pop_back();
25922586
}
25932587
else {

0 commit comments

Comments
 (0)