Skip to content

Commit 9aa2792

Browse files
author
Daniel Kroening
committed
fixes
1 parent 8930562 commit 9aa2792

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/cbmc

Submodule cbmc updated 119 files

src/hw-cbmc/hw_cbmc_parse_options.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ int hw_cbmc_parse_optionst::doit()
116116
// do actual BMC
117117
return do_bmc(hw_bmc, goto_functions);
118118
#endif
119+
120+
return false;
119121
}
120122

121123
/*******************************************************************\
@@ -143,7 +145,7 @@ irep_idt hw_cbmc_parse_optionst::get_top_module()
143145
return irep_idt();
144146

145147
return get_module(
146-
symbol_table, top_module, get_message_handler()).name;
148+
goto_model.symbol_table, top_module, get_message_handler()).name;
147149
}
148150

149151
/*******************************************************************\
@@ -194,7 +196,7 @@ int hw_cbmc_parse_optionst::get_modules(
194196
if(cmdline.isset("gen-interface"))
195197
{
196198
const symbolt &symbol=
197-
namespacet(symbol_table).lookup(top_module);
199+
namespacet(goto_model.symbol_table).lookup(top_module);
198200

199201
if(cmdline.isset("outfile"))
200202
{
@@ -205,10 +207,10 @@ int hw_cbmc_parse_optionst::get_modules(
205207
return 6;
206208
}
207209

208-
gen_interface(symbol_table, symbol, true, out, std::cerr);
210+
gen_interface(goto_model.symbol_table, symbol, true, out, std::cerr);
209211
}
210212
else
211-
gen_interface(symbol_table, symbol, true, std::cout, std::cerr);
213+
gen_interface(goto_model.symbol_table, symbol, true, std::cout, std::cerr);
212214

213215
return 0; // done
214216
}
@@ -220,7 +222,7 @@ int hw_cbmc_parse_optionst::get_modules(
220222
status() << "Mapping variables" << eom;
221223

222224
map_vars(
223-
symbol_table,
225+
goto_model.symbol_table,
224226
top_module,
225227
bmc_constraints,
226228
get_message_handler(),
@@ -236,7 +238,7 @@ int hw_cbmc_parse_optionst::get_modules(
236238
}
237239
else if(cmdline.isset("show-modules"))
238240
{
239-
show_modules(symbol_table, ui_message_handler.get_ui());
241+
show_modules(goto_model.symbol_table, ui_message_handler.get_ui());
240242
return 0; // done
241243
}
242244

src/hw-cbmc/map_vars.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,7 @@ const symbolt &map_varst::add_array(symbolt &symbol)
439439

440440
exprt array_size=from_integer(no_timeframes, index_type());
441441

442-
array_typet new_type;
443-
new_type.size()=array_size;
444-
new_type.subtype()=full_type;
442+
array_typet new_type(full_type, array_size);
445443

446444
new_symbol.type=new_type;
447445
new_symbol.value=exprt(ID_nondet);

0 commit comments

Comments
 (0)