File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
regression/LVSA/recent_alloc_clear_from_callees Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def test_should_not_be_most_recent_caller_1(tmpdir):
168
168
value_set_expectation .check_contains_dynamic_object (1 , False )
169
169
170
170
171
- @pytest .mark .xfail
171
+ @pytest .mark .xfail ( strict = True )
172
172
def test_should_not_be_most_recent_caller_2 (tmpdir ):
173
173
"""
174
174
[13] Checks whether 'is_most_recent_allocation' flag is cleared when
Original file line number Diff line number Diff line change @@ -266,10 +266,11 @@ void local_value_set_analysist::transform_function_stub(
266
266
{
267
267
// Ordinary value set member (not an external value set);
268
268
269
- object_numberingt::number_type rhs_num;
269
+ const auto rhs_num=valuesets.object_numbering .get_number (rhs_expr);
270
+ // object_numberingt::number_type rhs_num;
270
271
if (can_cast_expr<dynamic_object_exprt>(rhs_expr) &&
271
272
l_call->location_number ==valuesets.location_number &&
272
- !valuesets. object_numbering . get_number (rhs_expr, rhs_num) )
273
+ rhs_num)
273
274
{
274
275
// Replace all the current most-recent-allocation dynamic-objects
275
276
// with the corresponding any-allocation ones
@@ -280,10 +281,7 @@ void local_value_set_analysist::transform_function_stub(
280
281
281
282
// Look-up for the first appearance of the current
282
283
// most-recent dynamic-object in the current object-map
283
- auto it=object_map.begin ();
284
- for (; it!=object_map.end (); ++it)
285
- if (it->first ==rhs_num)
286
- break ;
284
+ const auto it=object_map.find (*rhs_num);
287
285
if (it==object_map.end ())
288
286
continue ;
289
287
You can’t perform that action at this time.
0 commit comments