data[i] = val;
miss[j] = i;
j += (val > maxcode) ? 1 : 0; // TODO can't eliminate if-then-else control hazard
}
// LOOP2: create patch-list
final CharArrayList exceptionList = segment.exceptionList;
if(j > 0) {
segment.firstException_ = miss[0];
prev = miss[j - 1]; // last-patch
for(int i = 0; i < j; i++) {
int cur = miss[i];
exceptionList.add(input[cur]);
data[prev] = cur - prev - 1; // difference of the two exception
prev = cur;
}
}