Skip to content

Commit c255a15

Browse files
committed
Havoc local write set for loop contracts
Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent 52387ab commit c255a15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/goto-instrument/contracts/assigns.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ goto_programt assigns_clauset::generate_havoc_code() const
138138
for(const auto &target : global_write_set)
139139
modifies.insert(target.address.object());
140140

141+
for(const auto &target : local_write_set)
142+
modifies.insert(target.address.object());
143+
141144
goto_programt havoc_statements;
142145
append_havoc_code(location, modifies, havoc_statements);
143146
return havoc_statements;

0 commit comments

Comments
 (0)