You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joern>defsrc= cpg.identifier.name("x")
defined function src
joern>defsink= cpg.method.name("main").methodReturn
defined function sink
joern> sink.reachableByFlows(src).p
res7:List[String] =List(
"""__________________________________________________________| tracked| lineNumber| method| file ||=========================================================|| x = 2 | 6 | main | /Users/jai/dump/ret/main.c || int | 4 | main | /Users/jai/dump/ret/main.c |"""
)
Using <node>.ast.isReturn works correctly though,
joern>defsrc= cpg.method.name("main").parameter.order(1)
defined function src
joern>defsink= cpg.method.name("main").ast.isReturn
defined function sink
joern> sink.reachableByFlows(src).p
res22:List[String] =List()
The text was updated successfully, but these errors were encountered:
I was using the following snippet to run a test,
x
has no influence on the return value here, butUsing
<node>.ast.isReturn
works correctly though,The text was updated successfully, but these errors were encountered: