mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 06:15:46 +00:00
code cleaning around m_touched_rows of lar_solver (#6814)
This commit is contained in:
parent
3849f665d6
commit
401ec04ec3
9 changed files with 51 additions and 65 deletions
|
@ -358,14 +358,14 @@ int_solver::int_solver(lar_solver& lar_slv) :
|
|||
// this will allow to enable and disable tracking of the pivot rows
|
||||
struct check_return_helper {
|
||||
lar_solver& lra;
|
||||
bool m_track_pivoted_rows;
|
||||
bool m_track_touched_rows;
|
||||
check_return_helper(lar_solver& ls) :
|
||||
lra(ls),
|
||||
m_track_pivoted_rows(lra.get_track_pivoted_rows()) {
|
||||
lra.set_track_pivoted_rows(false);
|
||||
m_track_touched_rows(lra.touched_rows_are_tracked()) {
|
||||
lra.track_touched_rows(false);
|
||||
}
|
||||
~check_return_helper() {
|
||||
lra.set_track_pivoted_rows(m_track_pivoted_rows);
|
||||
lra.track_touched_rows(m_track_touched_rows);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue