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

How to analyse a specific method ? #44

Open
fynch3r opened this issue Jul 20, 2021 · 3 comments
Open

How to analyse a specific method ? #44

fynch3r opened this issue Jul 20, 2021 · 3 comments

Comments

@fynch3r
Copy link

fynch3r commented Jul 20, 2021

I run an easy code:

public class IFDSDemo {
    public static void main(String[] args) {
        int x = secret();
        int y = 0;
        y = foo(x);
        print(y);
    }

    private static void print(int y) {
        System.out.println(y);
    }

    private static int secret() {
        return 88;
    }
    private static int foo(int p){
        return p;
    }
}

I use the wiki way to analysis.
I wonder that how to analyse a specific method as an entry method.
Because I find that the wiki says:

// Set the main class of the application to be analysed
        Options.v().set_main_class(mainClass);

I think that heros must has a way to implement of specific functions as entry points. If not , please tell me why. Thanks.

@fynch3r
Copy link
Author

fynch3r commented Jul 21, 2021

Please, I would appreciate some help.

@ericbodden
Copy link
Member

Hi. You may want to look at the documentation of the Soot framework. Heros is using Soot to do class loading and call-graph construction.

@canliture
Copy link

In heros IFDS, you need to give some seeds to start the analysis.

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

3 participants