Skip to content

Commit

Permalink
[fix] Clean _arr_hash as well
Browse files Browse the repository at this point in the history
  • Loading branch information
misonijnik committed Nov 2, 2023
1 parent bf66f57 commit ad1841e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/Solver/Z3Builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ class Z3Builder {
clearConstructCache();
return res;
}
void clearConstructCache() { constructed.clear(); }
void clearConstructCache() {
constructed.clear();
_arr_hash.clear();
}
void clearSideConstraints() { sideConstraints.clear(); }
};
} // namespace klee
Expand Down
2 changes: 0 additions & 2 deletions lib/Solver/Z3Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,6 @@ bool Z3SolverImpl::internalRunSolver(
}

for (auto constant_array : constant_arrays_in_query.results) {
// assert(builder->constant_array_assertions.count(constant_array) == 1 &&
// "Constant array found in query, but not handled by Z3Builder");
if (all_constant_arrays_in_query.count(constant_array))
continue;
all_constant_arrays_in_query.insert(constant_array);
Expand Down

0 comments on commit ad1841e

Please sign in to comment.