Skip to content

Commit 4a8dc96

Browse files
committed
JBMC: removed camel-casing from function identifiers
1 parent 9059be7 commit 4a8dc96

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

jbmc/src/java_bytecode/java_bytecode_concurrency_instrumentation.cpp

+17-8
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static void instrument_start_thread(
351351
/// \param f_code: function call to CProver.endThread:(I)V
352352
/// \param [out] code: resulting transformation
353353
/// \param symbol_table: a symbol table
354-
static void instrument_endThread(
354+
static void instrument_end_thread(
355355
const code_function_callt &f_code,
356356
codet &code,
357357
const symbol_tablet &symbol_table)
@@ -388,7 +388,7 @@ static void instrument_endThread(
388388
/// \param f_code: function call to CProver.getCurrentThreadID:()I
389389
/// \param [out] code: resulting transformation
390390
/// \param symbol_table: a symbol table
391-
static void instrument_getCurrentThreadID(
391+
static void instrument_get_current_thread_id(
392392
const code_function_callt &f_code,
393393
codet &code,
394394
symbol_tablet &symbol_table)
@@ -502,14 +502,23 @@ void convert_threadblock(symbol_tablet &symbol_table)
502502
const code_function_callt &f_code = to_code_function_call(code);
503503
const std::string &f_name = expr2java(f_code.function(), ns);
504504
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);
507510
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);
510516
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);
513522

514523
if(cb)
515524
expr_replacement_map.insert({expr, cb});

0 commit comments

Comments
 (0)