File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/solvers/smt2_incremental Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1007,13 +1007,10 @@ static smt_termt convert_array_update_to_smt(
10071007 const sub_expression_mapt &converted)
10081008{
10091009 smt_termt array = converted.at (with.old ());
1010- auto it = ++with.operands ().begin ();
1011- while (it != with.operands ().end ())
1010+ for (auto it = ++with.operands ().begin (); it != with.operands ().end (); it += 2 )
10121011 {
1013- const smt_termt &index_term = converted.at (*it);
1014- ++it;
1015- const smt_termt &value_term = converted.at (*it);
1016- ++it;
1012+ const smt_termt &index_term = converted.at (it[0 ]);
1013+ const smt_termt &value_term = converted.at (it[1 ]);
10171014 array = smt_array_theoryt::store (array, index_term, value_term);
10181015 }
10191016 return array;
You can’t perform that action at this time.
0 commit comments