Skip to content

Commit 8951e2d

Browse files
authored
Merge pull request #7307 from remi-delmas-3000/fix-module-mode
CONTRACTS: Fix language mode on wrapper symbol
2 parents d8a3286 + 868638f commit 8951e2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/goto-instrument/contracts/dynamic-frames/dfcc_utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const symbolt &dfcc_utilst::create_symbol(
100100
source_location,
101101
mode,
102102
goto_model.symbol_table);
103+
symbol.module = module;
103104
symbol.is_lvalue = true;
104105
symbol.is_state_var = true;
105106
symbol.is_thread_local = true;
@@ -125,6 +126,7 @@ const symbolt &dfcc_utilst::create_static_symbol(
125126
source_location,
126127
mode,
127128
goto_model.symbol_table);
129+
symbol.module = module;
128130
symbol.is_static_lifetime = true;
129131
symbol.value = initial_value;
130132
symbol.value.set(ID_C_no_nondet_initialization, no_nondet_initialization);

src/goto-instrument/contracts/dynamic-frames/dfcc_wrapper_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ dfcc_wrapper_programt::dfcc_wrapper_programt(
228228
id2string(wrapper_symbol.name),
229229
"__contract_return_value",
230230
wrapper_symbol.location,
231-
wrapper_symbol.module,
232231
wrapper_symbol.mode,
232+
wrapper_symbol.module,
233233
false)
234234
.symbol_expr();
235235

0 commit comments

Comments
 (0)