Skip to content

Commit 8296041

Browse files
author
martin
committed
Add 'malloc may fail' initialization to goto-diff
The tests aren't really sufficient to tell whether this has an effect.
1 parent 8e7c656 commit 8296041

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/goto-diff/goto_diff_parse_options.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Author: Peter Schrammel
2424

2525
#include <langapi/language.h>
2626

27+
#include <goto-programs/add_malloc_may_fail_variable_initializations.h>
2728
#include <goto-programs/adjust_float_expressions.h>
2829
#include <goto-programs/goto_convert_functions.h>
2930
#include <goto-programs/goto_inline.h>
@@ -330,6 +331,8 @@ bool goto_diff_parse_optionst::process_goto_program(
330331
goto_model, ui_message_handler, cprover_cpp_library_factory);
331332
link_to_library(goto_model, ui_message_handler, cprover_c_library_factory);
332333

334+
add_malloc_may_fail_variable_initializations(goto_model);
335+
333336
// remove function pointers
334337
log.status() << "Removal of function pointers and virtual functions"
335338
<< messaget::eom;

0 commit comments

Comments
 (0)