Skip to content

Commit 3f63d28

Browse files
Merge pull request diffblue#99 from diffblue/nathan/feature/merge-master
Update to work with latest changes to master
2 parents ab50599 + 201ef09 commit 3f63d28

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

cbmc

Submodule cbmc updated 541 files

src/driver/sec_driver_parse_options.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ bool sec_driver_parse_optionst::process_goto_program(
311311

312312
// remove function pointers
313313
status() << "Removing function pointers and virtual functions" << eom;
314-
remove_function_pointers(goto_model, cmdline.isset("pointer-check"));
314+
remove_function_pointers(
315+
get_message_handler(),
316+
goto_model,
317+
cmdline.isset("pointer-check"));
315318
remove_virtual_functions(goto_model);
316319
// remove rtti
317320
remove_instanceof(goto_model);

src/pointer-analysis/local_value_set.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void local_value_sett::get_value_set_rec(
171171
// Override how malloc finds its type:
172172
exprt malloc_copy=expr;
173173
assert(expr.type().id()==ID_pointer && "non-pointer-typed malloc?");
174-
malloc_copy.set("#type", expr.type().subtype());
174+
malloc_copy.set(ID_C_cxx_alloc_type, expr.type().subtype());
175175
baset::get_value_set_rec(malloc_copy, dest, suffix, original_type, ns);
176176
return;
177177
}
@@ -250,7 +250,7 @@ void local_value_sett::apply_side_effects(
250250
rhs.get(ID_statement)==ID_malloc)
251251
{
252252
const typet &dynamic_type=
253-
static_cast<const typet &>(rhs.find("#type"));
253+
static_cast<const typet &>(rhs.find(ID_C_cxx_alloc_type));
254254

255255
// Replace all the current most-recent-allocation dynamic-objects
256256
// with the corresponding any-allocation ones

0 commit comments

Comments
 (0)