Skip to content

Error in Base Query right after Data Flow Analysis Integration —— Empty Relation #14995

Answered by smowton
oriana19993926782 asked this question in Q&A
Discussion options

You must be logged in to vote

The full error says "...in type test" -- this is telling you that the type test not argument2 instanceof MethodAccess is pointless. We can see why by noting we also have constraints expectedVariable = expected.(VarAccess) and expected = argument2 -- hence we know that for any result to be returned, expected and argument2 must be a VarAccess, and VarAccess is disjoint with MethodAccess, therefore the test not argument2 instanceof MethodAccess is redundant and can be deleted.

A few other little hints while I'm here:

  • argument is always cast to MethodAccess, and is always equal to focalMethodCall, so we can drop focalMethodCall = argument.(MethodAccess) and just use focalMethodCall.
  • not argu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oriana19993926782
Comment options

Answer selected by oriana19993926782
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants