File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ void c_safety_checks_rec(
142
142
auto pointer = to_dereference_expr (expr).pointer ();
143
143
auto condition = r_or_w_ok_exprt (
144
144
access_type == access_typet::W ? ID_w_ok : ID_r_ok, pointer, size);
145
- auto source_location = expr.source_location ();
146
145
condition.add_source_location () = expr.source_location ();
147
- source_location.set_property_class (" pointer" );
146
+ auto assertion_source_location = expr.source_location ();
147
+ assertion_source_location.set_property_class (" pointer" );
148
148
auto pointer_text = expr2c (pointer, ns);
149
- source_location .set_comment (" pointer " + pointer_text + " safe" );
150
- dest.add (goto_programt::make_assertion (condition, source_location ));
149
+ assertion_source_location .set_comment (" pointer " + pointer_text + " safe" );
150
+ dest.add (goto_programt::make_assertion (condition, assertion_source_location ));
151
151
}
152
152
}
153
153
}
You can’t perform that action at this time.
0 commit comments