Skip to content

Commit 32a3f98

Browse files
committed
Adapt to upstream change in write_goto_binary interface and languaget
* write_goto_binary now takes a goto_modelt * languaget now uses the override keyword
1 parent 73a51df commit 32a3f98

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cbmc/src/jsil/jsil_language.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class jsil_languaget:public languaget
5555
const namespacet &ns) override;
5656

5757
std::unique_ptr<pretty_printert>
58-
get_pretty_printer(const namespacet &);
58+
get_pretty_printer(const namespacet &) override;
5959

6060
virtual bool to_expr(
6161
const std::string &code,

src/taint-slicer/slicing_tasks_builder.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ std::pair<taint_slicing_taskt,std::string> build_slicing_task(
150150
{
151151
// First we copy data from the instrumenter to the resuling structures
152152
// (because we want to attach more data - symbols and functions).
153-
symbol_tablet symbol_table=instrumenter.get_instrumented_symbol_table();
154-
goto_functionst goto_functions;
153+
goto_modelt goto_model;
154+
goto_model.symbol_table=instrumenter.get_instrumented_symbol_table();
155+
symbol_tablet &symbol_table=goto_model.symbol_table;
156+
goto_functionst &goto_functions=goto_model.goto_functions;
155157
for(const auto &fname_fn :
156158
instrumenter.get_instrumented_functions().function_map)
157159
{
@@ -306,8 +308,7 @@ std::pair<taint_slicing_taskt,std::string> build_slicing_task(
306308
// binary.
307309
const bool fail=write_goto_binary(
308310
pathname,
309-
symbol_table,
310-
goto_functions,
311+
goto_model,
311312
logger->get_message_handler());
312313
if(fail)
313314
fail_message="Not available.";

0 commit comments

Comments
 (0)