}
for(int i=1; i < tmp.size(); i++)
{
IntExp curElem = tmp.get(i);
int min = curElem.min();
int max = curElem.max();
if (min < values[valCounter-1])
min = values[valCounter-1]+1;
for (int j=min;j<max;j++){ //== Changed: j<=max replaced to j<max
if (curElem.contains(j))