Skip to content

Commit 001c1a2

Browse files
committed
ireps of type "ID_atomic_begin" and "ID_atomic_end" will now be properly displayed
when the "show-symbol-table" flag is specified.
1 parent d978ef9 commit 001c1a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ansi-c/expr2c.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,6 +2968,12 @@ std::string expr2ct::convert_code(
29682968
if(statement=="unlock")
29692969
return convert_code_unlock(src, indent);
29702970

2971+
if(statement==ID_atomic_begin)
2972+
return indent_str(indent)+"__CPROVER_atomic_begin();";
2973+
2974+
if(statement==ID_atomic_end)
2975+
return indent_str(indent)+"__CPROVER_atomic_end();";
2976+
29712977
if(statement==ID_function_call)
29722978
return convert_code_function_call(to_code_function_call(src), indent);
29732979

0 commit comments

Comments
 (0)