kusumotolab / kGenProg

A High-performance, High-extensibility and High-portability APR System
MIT License
48 stars 13 forks source link

JDTASTCrossoverLocation のバグ #788

Closed hrtwt closed 4 years ago

hrtwt commented 4 years ago

候補ノードの条件は「木の深さが同じで同じ記述」のみ. そして,最終的に返すノードは,はじめに見つかったノード.

if () {
  n++;  //found
  n--;
} else {
  n++; //target
  n--;
}

このように探索するノードが同じ深さで2block以上存在すると, 上にある記述が返される.

shinsuke-mat commented 4 years ago

related to #755