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

gcd example - Astor finds a solution, however continues to generate more variants #324

Open
ssk1216 opened this issue Jul 19, 2021 · 0 comments

Comments

@ssk1216
Copy link

ssk1216 commented Jul 19, 2021

package gcd;

public class GCD {

public int computegcd(int a, int b) {
	if (a == 0) 
	{
		return a;
	}
	while (b != 0)
		if (a > b)
			a = a - b;else
			b = b - a;
	**return b;**  //  buggy statement
}

}

13:20:52 [main] INFO Line:452 AstorCoreEngine - -Found Solution, child variant #6

However it contnues to generate more variants , Why does that happen? Shouldn't it stop iterating

Also , couple of questions:

  1. If there are multiple suspicious statements with various suspicious value, which is the .java file in which a selection of these statements are done to create new variants.
  2. When there is a tie between the suspicious values, how is the choice done?
  3. Which .java writes the variant to the folder for saveall:true option (I am trying to check the various variants generated)
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