if ((flag & 1 << 12) != 0 && ((a ^ b) & 15) == 0) { ... }
ここで A = a+b-c とおく
printf("a=%d, b=%d\n", a, b);
dump(a, b);