//printf("accept_tuple channel=%d: ",tup.channel);
int tup_order=func.compare_ts_with_ts(&tup_ts,max_input_ts[tup.channel]);
if (tup_order < 0){
//printf("accept_tuple channel=%d: ",tup.channel);
int tup_order=func.compare_ts_with_ts(&tup_ts,max_input_ts[tup.channel]);
if (tup_order < 0){