Skip to content

How to analyse a specific method ? #44

@fynch3r

Description

@fynch3r

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions