Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement does not work for modify #140

Open
hyz200926 opened this issue Jan 19, 2019 · 1 comment
Open

Replacement does not work for modify #140

hyz200926 opened this issue Jan 19, 2019 · 1 comment

Comments

@hyz200926
Copy link

Hi, when I run the cardumen to generate the patches for math_2, there is an strange error occur and none of the patch is generated. However, the cardumen can generate the patch for math_70.
The parameters of running math_2 is :
java -cp $(cat /tmp/astor-classpath.txt):target/classes fr.inria.main.evolution.AstorMain -mode cardumen -jvm4testexecution /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/ -failing org.apache.commons.math3.distribution.HypergeometricDistributionTest -javacompliancelevel 5 -stopfirst false -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes -location /Users/XXX/WorkSpace/astor/examples/math_2/ -dependencies /Users/XXX/.m2/repository/junit/junit/4.10/junit-4.10.jar

The Error for the math_2 is as below:

----Starting Solution Search
[ERROR] fr.inria.astor.approaches.cardumen.ExpressionReplaceOperator.applyChangesInModel(ExpressionReplaceOperator.java:47) - Replacement does not work for modify getNumberOfSuccesses() to getNumberOfSuccesses()
[INFO ] fr.inria.astor.core.solutionsearch.AstorCoreEngine.atEnd(AstorCoreEngine.java:168) - Time Repair Loop (s): 81.562
[INFO ] fr.inria.astor.core.solutionsearch.AstorCoreEngine.atEnd(AstorCoreEngine.java:170) - generationsexecuted: 200
[INFO ] fr.inria.astor.core.solutionsearch.AstorCoreEngine.printFinalStatus(AstorCoreEngine.java:234) -
----SUMMARY_EXECUTION---
[INFO ] fr.inria.astor.core.ingredientbased.IngredientBasedEvolutionaryRepairApproachImpl.printFinalStatus(IngredientBasedEvolutionaryRepairApproachImpl.java:123) - Total mod points: 23
[INFO ] fr.inria.astor.core.solutionsearch.spaces.ingredients.scopes.ExpressionTypeIngredientSpace.toJSON(ExpressionTypeIngredientSpace.java:233) - Storing ing JSON at /Users/xxx/Workspace/astor/./output_astor/AstorMain-math_2//src/ingredients.json
[INFO ] fr.inria.astor.core.stats.IngredientStats.toJSON(IngredientStats.java:253) - Storing ing JSON at /Users/XXX/Workspace/astor/./output_astor/AstorMain-math_2//ingredientSpaceSize.json
[INFO ] fr.inria.astor.core.stats.IngredientStats.toJSON(IngredientStats.java:254) - ingredientSpaceSize:{"allAttempts":200,"space":[{"a":15,"v":6},{"a":19,"v":17},{"a":16,"v":11},{"a":18,"v":19},{"a":3,"v":3},{"a":7,"v":3},{"a":17,"v":17},{"a":13,"v":1},{"a":21,"v":75},{"a":6,"v":1},{"a":20,"v":40},{"a":14,"v":4},{"a":10,"v":1},{"a":5,"v":2}]}
[INFO ] fr.inria.astor.core.stats.IngredientStats.toJSON(IngredientStats.java:253) - Storing ing JSON at /Users/XXX/Workspace/astor/./output_astor/AstorMain-math_2//combinationsTemplatesingredientSpaceSize.json
[INFO ] fr.inria.astor.core.stats.IngredientStats.toJSON(IngredientStats.java:254) - combinationsTemplatesingredientSpaceSize:{"allAttempts":622,"space":[{"a":62,"v":1},{"a":15,"v":4},{"a":4,"v":22},{"a":8,"v":8},{"a":26,"v":2},{"a":143,"v":1},{"a":16,"v":28},{"a":63,"v":4},{"a":3,"v":16},{"a":1000,"v":2},{"a":7,"v":2},{"a":81,"v":2},{"a":144,"v":12},{"a":27,"v":26},{"a":64,"v":32},{"a":2,"v":3},{"a":9,"v":78},{"a":1,"v":332},{"a":142,"v":1},{"a":0,"v":46}]}
[INFO ] fr.inria.astor.core.solutionsearch.AstorCoreEngine.atEnd(AstorCoreEngine.java:184) -
--SOLUTIONS DESCRIPTION--

Astor Output:

General stats:
EXECUTION_IDENTIFIER=
TOTAL_TIME=81.562
NR_GENERATIONS=200
NR_RIGHT_COMPILATIONS=198
NR_FAILLING_COMPILATIONS=2
NR_ERRONEOUS_VARIANCES=null
NR_FAILING_VALIDATION_PROCESS=null
OUTPUT_STATUS=MAX_GENERATION

Patch stats:

[INFO ] fr.inria.astor.core.output.PatchJSONStandarOutput.produceOutput(PatchJSONStandarOutput.java:103) - Storing ing JSON at /Users/XXX/Workspace/astor/./output_astor/AstorMain-math_2//astor_output.json
[INFO ] fr.inria.astor.core.output.PatchJSONStandarOutput.produceOutput(PatchJSONStandarOutput.java:104) - astor_output:
{"general":{"NR_RIGHT_COMPILATIONS":198,"NR_ERRONEOUS_VARIANCES":null,"EXECUTION_IDENTIFIER":"","OUTPUT_STATUS":"MAX_GENERATION","NR_FAILLING_COMPILATIONS":2,"NR_GENERATIONS":200,"TOTAL_TIME":81.562,"NR_FAILING_VALIDATION_PROCESS":null},"patches":[]}
[INFO ] fr.inria.main.evolution.AstorMain.run(AstorMain.java:200) - Time Total(s): 615.521

Please help me to deal with this issue, thanks very much!

@hyz200926
Copy link
Author

And math_5 has the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant