Skip to content

Commit d467580

Browse files
committed
cleanup
1 parent 84ca5a0 commit d467580

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cprover/c_safety_checks.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ void c_safety_checks_rec(
142142
auto pointer = to_dereference_expr(expr).pointer();
143143
auto condition = r_or_w_ok_exprt(
144144
access_type == access_typet::W ? ID_w_ok : ID_r_ok, pointer, size);
145-
auto source_location = expr.source_location();
146145
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");
148148
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));
151151
}
152152
}
153153
}

0 commit comments

Comments
 (0)