Skip to content

Commit 41cbe33

Browse files
Merge pull request diffblue#116 from diffblue/mariusmc92/bugfix/avoid-error-when-writing-summary
Fixed bug that caused error when writing summary
2 parents bd566d6 + 346e268 commit 41cbe33

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/pointer-analysis/local_value_set_analysis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ void local_value_set_analysist::save_summary(const goto_programt &goto_program)
320320
locationt last_loc=std::prev(goto_program.instructions.end());
321321
const auto &final_state=static_cast<const domaint&>(get_state(last_loc));
322322
// Put summary into database
323+
summarydb.erase(function_name);
323324
summarydb[function_name]->from_final_state(
324325
final_state.value_set,
325326
ns,

src/util/cached_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class cached_mapt final
464464
return false;
465465
if(cache.count(key) != 0)
466466
remove_cache(key);
467-
base_map.remove(key);
467+
base_map.erase(key);
468468
return true;
469469
}
470470

0 commit comments

Comments
 (0)