Skip to content

Commit 075773e

Browse files
remove proviso for single index arrays
1 parent 3e5abef commit 075773e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/qe/mbp/mbp_arrays_tg.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ struct mbp_array_tg::impl {
6767
}
6868

6969
bool is_wr_on_rhs(expr *lhs, expr *rhs) {
70-
return (is_arr_write(rhs) && !is_arr_write(lhs));
70+
return is_arr_write(rhs) && !is_arr_write(lhs);
7171
}
7272

7373
bool is_arr_write(expr *t) {
74-
return m_array_util.is_store1(t) && has_var(to_app(t));
75-
}
76-
77-
bool is_arr_write(expr *t, expr*& a, expr*& i, expr*& v) {
78-
return m_array_util.is_store1(t, a, i, v) && has_var(to_app(t));
74+
return m_array_util.is_store(t) && has_var(to_app(t));
7975
}
8076

8177
// Returns true if e has a subterm store(v) where v is a variable to be

0 commit comments

Comments
 (0)