add_weight
add_weight(refs[i], i);
add_weight(pri_ignore, i);
add_weight(sb->ref[j], i);
void add_weight(int32_t, int);