joern icon indicating copy to clipboard operation
joern copied to clipboard

(C/C++) 'IDENTIFIER' node in ddg

Open NemoTR opened this issue 3 years ago • 1 comments

The C++ code is:

int f(int x, int *y)
{

    int a, b, c = 10;

    a = 10;
    b = a;
    a = g(c);

    return a;
}

The ddg is: 49XF(RSXKBB6X0~2~)PITH9

There is also an IDENTIFIER node in ddg and an edge from that node to return a node with label a. I found that if RETURN node returns only a variable, this situation will arise; In other cases, it won't.

Is it normal for an IDENTIFIER node to exist in ddg? I am looking forward to your answer, QAQ

NemoTR avatar May 03 '22 15:05 NemoTR

There is currently a major dataflow engine rewrite in the works that most likely will change a lot here. We will keep you posted on that. Hence, this issue here is on hold.

max-leuthaeuser avatar May 06 '22 14:05 max-leuthaeuser