We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80186e3 + fe903fd commit d971ad8Copy full SHA for d971ad8
src/analyses/goto_check_c.cpp
@@ -2170,27 +2170,6 @@ void goto_check_ct::goto_check(
2170
}
2171
else if(i.is_throw())
2172
{
2173
- if(
2174
- i.get_code().get_statement() == ID_expression &&
2175
- i.get_code().operands().size() == 1 &&
2176
- i.get_code().op0().operands().size() == 1)
2177
- {
2178
- // must not throw NULL
2179
-
2180
- exprt pointer = to_unary_expr(i.get_code().op0()).op();
2181
2182
- const notequal_exprt not_eq_null(
2183
- pointer, null_pointer_exprt(to_pointer_type(pointer.type())));
2184
2185
- add_guarded_property(
2186
- not_eq_null,
2187
- "throwing null",
2188
- "pointer dereference",
2189
- i.source_location(),
2190
- pointer,
2191
- identity);
2192
- }
2193
2194
// this has no successor
2195
assertions.clear();
2196
0 commit comments