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

Identity statement with incorrect local name #36

Open
faustocarva opened this issue Nov 27, 2020 · 0 comments
Open

Identity statement with incorrect local name #36

faustocarva opened this issue Nov 27, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@faustocarva
Copy link
Contributor

The identity statement of jimple is getting an incorrect value for local name.
Sample code:

class O {
	public O f;
}
public class FooBar {
	public static void main(String[] args) {
		O p = new O();
		O q = p;
		O r = new O();
		p.f = r;
		O t = bar(q);
	}
	static O bar(O s) {
		return s.f;
	}
}

Output from the decompiler module (only for the bar method):

    static samples.pointsto.ex2.O bar(samples.pointsto.ex2.O) 
    {
        samples.pointsto.ex2.O r1;
        samples.pointsto.ex2.O $r1;     
        i1 := @parameter0: samples.pointsto.ex2.O;     
        $r1 = r1.<samples.pointsto.ex2.O: samples.pointsto.ex2.O f>;   
        return $r1; 
    }

As you can see, there is no i1 variable in this scope.

@faustocarva faustocarva added the bug Something isn't working label Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants