File tree 2 files changed +2
-4
lines changed
src/goto-instrument/contracts/dynamic-frames 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ void dfcc_is_freeablet::rewrite_calls(
55
55
.set_identifier (library.get_dfcc_fun_name (dfcc_funt::IS_FREEABLE));
56
56
target->call_arguments ().push_back (write_set);
57
57
}
58
-
59
- if (fun_name == CPROVER_PREFIX " was_freed" )
58
+ else if (fun_name == CPROVER_PREFIX " was_freed" )
60
59
{
61
60
// insert call to precondition for vacuity checking
62
61
auto inst = goto_programt::make_function_call (
Original file line number Diff line number Diff line change @@ -454,8 +454,7 @@ void dfcc_libraryt::fix_malloc_free_calls()
454
454
455
455
if (fun_name == (CONTRACTS_PREFIX " malloc" ))
456
456
to_symbol_expr (ins->call_function ()).set_identifier (" malloc" );
457
-
458
- if (fun_name == (CONTRACTS_PREFIX " free" ))
457
+ else if (fun_name == (CONTRACTS_PREFIX " free" ))
459
458
to_symbol_expr (ins->call_function ()).set_identifier (" free" );
460
459
}
461
460
}
You can’t perform that action at this time.
0 commit comments