We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7702d52 commit 18bf1fcCopy full SHA for 18bf1fc
src/goto-symex/symex_start_thread.cpp
@@ -68,10 +68,11 @@ void goto_symext::symex_start_thread(statet &state)
68
lhs.set_level_0(t);
69
70
// set up L1 name
71
- if(!state.level1.current_names.insert(
72
- std::make_pair(lhs.get_l1_object_identifier(),
73
- std::make_pair(lhs, 0))).second)
74
- UNREACHABLE;
+ auto emplace_result = state.level1.current_names.emplace(
+ std::piecewise_construct,
+ std::forward_as_tuple(lhs.get_l1_object_identifier()),
+ std::forward_as_tuple(lhs, 0));
75
+ CHECK_RETURN(emplace_result.second);
76
state.rename(lhs, ns, goto_symex_statet::L1);
77
const irep_idt l1_name=lhs.get_l1_object_identifier();
78
// store it
0 commit comments