ply adaption was wrong for EM replacements
This commit is contained in:
parent
77fdce183a
commit
a96b52e85d
@ -656,8 +656,10 @@ if (Debug > 1) fprintf(stderr, "cost after coercions: %u\n", t);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!toplevel)
|
||||
ply += emrepllen;
|
||||
if (!toplevel) {
|
||||
if (ply >= j) ply += emrepllen - j;
|
||||
else ply = emrepllen;
|
||||
}
|
||||
break;
|
||||
case DO_COST:
|
||||
DEBUG("COST");
|
||||
|
||||
@ -852,8 +852,14 @@ normalfailed: if (stackpad!=tokpatlen) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!toplevel)
|
||||
ply += emrepllen;
|
||||
if (!toplevel) {
|
||||
if (ply >= j) ply = emrepllen + ply - j;
|
||||
else ply = emrepllen;
|
||||
#ifndef NDEBUG
|
||||
if (Debug > 4)
|
||||
fprintf(stderr, "ply becomes %d\n", ply);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DO_COST: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user