It was indeed a compiler issue. The following non-fix made the problem
disappear for me:

replace

          pm->rScore = UtilityME(arOutput, pci);
          if( i < nPruneMoves ) {

with

          pm->rScore = UtilityME(arOutput, pci);
          g_print("%f\n", pm->rScore)
          if( i < nPruneMoves ) {

around line 5811 in eval.c.

I attempted to fix the code. But my attempts made the code a bit
slower or did nothing. I ended up committing something that is much
simpler, but slightly slower than before. You are welcome to suggest
changes and test it for speed. In particular the sorting is a bit
overkill since we only need the 10 best pruned moves in no particular
order. And I'm not sure that the forced inline of eval_prune is an
advantage.

Christian.


_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to