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

Avoid adding auxiliary 'jimple' variables to the list of possible conflicts. #34

Open
barbosamaatheus opened this issue Feb 1, 2021 · 0 comments

Comments

@barbosamaatheus
Copy link
Collaborator

Currently in the implementation of Overriding Assignment, when the 'jimple' creates additional auxiliary variables, these variables are added to the list of possible conflicts which generates a greater effort when it comes to flicting the real conflicts in this list and this consequently has an impact on performance . Avoiding adding these variables is a possible solution.

Example:

public class Sample{

    public void m() {
        int x = foo() + bar(); // LEFT    x = $stack2 + $stack3 // Jimple
        x = x + qux();         // RIGHT   x = x + $stack4 // Jimple
    }
    ...
}

In this example, $stack2, $stack3 and $stack4 are added to the list when, in fact, it was only necessary to add x

@barbosamaatheus barbosamaatheus self-assigned this Feb 2, 2021
@barbosamaatheus barbosamaatheus removed their assignment Aug 11, 2022
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