Skip to content

Commit 09bff09

Browse files
Don't apply field sensitivity on index expression writing
1 parent 529b435 commit 09bff09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-symex/field_sensitivity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ exprt field_sensitivityt::apply(
127127
else
128128
return std::move(tmp);
129129
}
130-
else
130+
else if(!write)
131131
{
132132
// Expand the array and return `{array[0]; array[1]; ...}[index]`
133133
exprt expanded_array =

0 commit comments

Comments
 (0)