3
0
Fork 0
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:
Lev Nachmanson 2023-07-14 20:19:13 -07:00 committed by GitHub
parent 3849f665d6
commit 401ec04ec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 51 additions and 65 deletions

View file

@ -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);
}
};