a_weight
a->a_weight++;
const int wa = (*a)->a_weight, wb = (*b)->a_weight;
fprintf(fp, "# %s (%d)\n", name, a->a_weight);