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 30daf27 commit 7fa7bfdCopy full SHA for 7fa7bfd
src/analyses/memLeak.ml
@@ -228,8 +228,7 @@ struct
228
warn_for_multi_threaded_due_to_abort ctx;
229
state
230
| Assert { exp; _ } ->
231
- let warn_for_assert_exp =
232
- match ctx.ask (Queries.EvalInt exp) with
+ begin match ctx.ask (Queries.EvalInt exp) with
233
| a when Queries.ID.is_bot a -> M.warn ~category:Assert "assert expression %a is bottom" d_exp exp
234
| a ->
235
begin match Queries.ID.to_bool a with
@@ -242,8 +241,7 @@ struct
242
241
243
check_for_mem_leak ctx ~assert_exp_imprecise:true ~exp:(Some exp)
244
end
245
- in
246
- warn_for_assert_exp;
+ end;
247
248
| ThreadExit _ ->
249
begin match ctx.ask (Queries.CurrentThreadId) with
0 commit comments