kusumotolab / kGenProg

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

kGP終了時の出力を変更 #738

Closed RyokoIzuta closed 4 years ago

RyokoIzuta commented 4 years ago

理由は下記の2つ

- 2020-05-18 18:15:16 [main] [INFO]  KGenProgMain - enough solutions have been found.
- 2020-05-18 18:15:16 [main] [INFO]  KGenProgMain - GA stopped at the era of 10th generation.
2020-05-18 18:15:16 [main] [INFO]  Patch - 
 --- example.CloseToZero
 +++ example.CloseToZero
@@ -16,7 +16,6 @@
    */
   public int close_to_zero(int n) {
     if (n == 0) {
 -      n++; // bug here
     } else if (n > 0) {
       n--;
     } else {
- 2020-05-18 18:15:16 [main] [INFO]  KGenProgMain - execution time: 631 seconds

+ 2020-05-18 18:15:16 [main] [INFO]  KGenProgMain - GA stopped.
2020-05-18 18:15:16 [main] [INFO]  Patch - 
 --- example.CloseToZero
 +++ example.CloseToZero
@@ -16,7 +16,6 @@
    */
   public int close_to_zero(int n) {
     if (n == 0) {
 -       n++; // bug here
     } else if (n > 0) {
       n--;
     } else {
+ 2020-05-18 18:15:16 [main] [INFO]  KGenProgMain - Overall
+ Generation = 10
+ Generated variants = 100
+ Syntax valid variants = 35
+ Build succeeded variants = 31
+ Time elapsed = 631sec
+ Exit status = SUCCESS

失敗時は

Exit status = SUCCESS

の代わりに

Exit status = FAIL(maximum generation)
Exit status = FAIL(time limit)
RyokoIzuta commented 4 years ago

relating to #456

RyokoIzuta commented 4 years ago

次のものも追加候補(メモ)