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(
1007
1007
const sub_expression_mapt &converted)
1008
1008
{
1009
1009
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 )
1012
1011
{
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 ]);
1017
1014
array = smt_array_theoryt::store (array, index_term, value_term);
1018
1015
}
1019
1016
return array;
You can’t perform that action at this time.
0 commit comments