Skip to content

Commit 6e7710a

Browse files
committed
Updates requested in the PR.
1 parent e82a763 commit 6e7710a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/taint-slicer/instrumenter.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,20 @@ std::size_t taint_instrumentert::instrument_location(
225225
{
226226
auto iit=instrumentation_code.add_instruction(ASSIGN);
227227
iit->code=code_assignt(
228-
symbol_exprt(from_tokens_to_vars.at(arg_token.get_token_name()),
229-
typet(ID_bool)),
228+
symbol_exprt(
229+
from_tokens_to_vars.at(arg_token.get_token_name()),
230+
typet(ID_bool)),
230231
constant_exprt(ID_true, typet(ID_bool)));
231232
iit->function=loc.get_function_id();
232233
}
233-
// Now we instrument "turn of" assignments of state variables.
234+
// Now we instrument "turn off" assignments of state variables.
234235
for(const auto &arg_token : loc.get_turn_off())
235236
{
236237
auto iit=instrumentation_code.add_instruction(ASSIGN);
237238
iit->code=code_assignt(
238-
symbol_exprt(from_tokens_to_vars.at(arg_token.get_token_name()),
239-
typet(ID_bool)),
239+
symbol_exprt(
240+
from_tokens_to_vars.at(arg_token.get_token_name()),
241+
typet(ID_bool)),
240242
constant_exprt(ID_false, typet(ID_bool)));
241243
iit->function=loc.get_function_id();
242244
}

src/taint-slicer/slicing_tasks_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Function: remove_calls_to_functions_without_bodies
4848
4949
\*******************************************************************/
5050
static void remove_calls_to_functions_without_bodies(
51-
goto_functionst &goto_functions,
52-
symbol_tablet &symbol_table)
51+
goto_functionst &goto_functions,
52+
symbol_tablet &symbol_table)
5353
{
5454
std::set<irep_idt> fns_without_bodies;
5555
for(auto &fname_prog : goto_functions.function_map)

0 commit comments

Comments
 (0)