@@ -351,10 +351,10 @@ static void instrument_start_thread(
351
351
/// \param f_code: function call to CProver.endThread:(I)V
352
352
/// \param [out] code: resulting transformation
353
353
/// \param symbol_table: a symbol table
354
- static void instrument_endThread (
354
+ static void instrument_end_thread (
355
355
const code_function_callt &f_code,
356
356
codet &code,
357
- symbol_tablet symbol_table)
357
+ const symbol_tablet & symbol_table)
358
358
{
359
359
PRECONDITION(f_code.arguments().size() == 1);
360
360
@@ -388,10 +388,10 @@ static void instrument_endThread(
388
388
/// \param f_code: function call to CProver.getCurrentThreadID:()I
389
389
/// \param [out] code: resulting transformation
390
390
/// \param symbol_table: a symbol table
391
- static void instrument_getCurrentThreadID (
391
+ static void instrument_get_current_thread_id (
392
392
const code_function_callt &f_code,
393
393
codet &code,
394
- symbol_tablet symbol_table)
394
+ symbol_tablet & symbol_table)
395
395
{
396
396
PRECONDITION(f_code.arguments().size() == 0);
397
397
@@ -502,14 +502,23 @@ void convert_threadblock(symbol_tablet &symbol_table)
502
502
const code_function_callt &f_code = to_code_function_call(code);
503
503
const std::string &f_name = expr2java(f_code.function(), ns);
504
504
if(f_name == "org.cprover.CProver.startThread:(I)V")
505
- cb = std::bind(instrument_start_thread, std::placeholders::_1,
506
- std::placeholders::_2, std::placeholders::_3);
505
+ cb = std::bind(
506
+ instrument_start_thread,
507
+ std::placeholders::_1,
508
+ std::placeholders::_2,
509
+ std::placeholders::_3);
507
510
else if(f_name == "org.cprover.CProver.endThread:(I)V")
508
- cb = std::bind(&instrument_endThread, std::placeholders::_1,
509
- std::placeholders::_2, std::placeholders::_3);
511
+ cb = std::bind(
512
+ &instrument_end_thread,
513
+ std::placeholders::_1,
514
+ std::placeholders::_2,
515
+ std::placeholders::_3);
510
516
else if(f_name == "org.cprover.CProver.getCurrentThreadID:()I")
511
- cb = std::bind(&instrument_getCurrentThreadID, std::placeholders::_1,
512
- std::placeholders::_2, std::placeholders::_3);
517
+ cb = std::bind(
518
+ &instrument_get_current_thread_id,
519
+ std::placeholders::_1,
520
+ std::placeholders::_2,
521
+ std::placeholders::_3);
513
522
514
523
if(cb)
515
524
expr_replacement_map.insert({expr, cb});
0 commit comments