Skip to content

Commit 26b5184

Browse files
committed
Add const to mmio identifiers
To make it clear that they are not mutated.
1 parent e4abae0 commit 26b5184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-programs/mm_io.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ void mm_io(symbol_tablet &symbol_table, goto_functionst &goto_functions)
115115
exprt mm_io_r_value = nil_exprt();
116116
exprt mm_io_w = nil_exprt();
117117

118-
irep_idt id_r=CPROVER_PREFIX "mm_io_r";
119-
irep_idt id_w=CPROVER_PREFIX "mm_io_w";
118+
const irep_idt id_r = CPROVER_PREFIX "mm_io_r";
119+
const irep_idt id_w = CPROVER_PREFIX "mm_io_w";
120120

121121
auto maybe_symbol=symbol_table.lookup(id_r);
122122
if(maybe_symbol)

0 commit comments

Comments
 (0)