Skip to content

Type mismatch error when running example code #34

@danielftz

Description

@danielftz

When running the example code provided in the wiki, I get this error:

Type mismatch: cannot convert from IFDSReachingDefinitions to IFDSTabulationProblem<Unit,Pair<Value,Set>,SootMethod,InterproceduralCFG<Unit,SootMethod>>

It seems the issue comes from this statement:

IFDSTabulationProblem<Unit, Pair<Value, 
	                Set<DefinitionStmt>>, SootMethod, 
	                InterproceduralCFG<Unit, SootMethod>> problem = new IFDSReachingDefinitions(icfg);

What should I do?

Activity

ericbodden

ericbodden commented on Jan 14, 2020

@ericbodden
Member

Can you please make sure that the Pair type you use is the type soot.toolkits.scalar.Pair? Then it works for me.

ericbodden

ericbodden commented on Jan 27, 2020

@ericbodden
Member

@danielftz Could you confirm please? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @ericbodden@danielftz

        Issue actions

          Type mismatch error when running example code · Issue #34 · soot-oss/heros