../dfg
DFG
I’m not an expert, do not hesitate to correct me
The Data Flow Graph is kinda like a DFG.
As far as i know it’s performed usually at the scale of a basic bloc of a CFG to avoid conditional variation.
Let’s take the following code :
#include <stdio.h>
int main(int argc, char ** argv)
{
int a = atoi(argv[1]);
int b = atoi(argv[2]);
a = a << 2;
b %= 4;
printf("%d\n",a+b);
}
We would have a graph looking like this :
So this representation synthetise the operator and constant use. It’s an easy way to recognise some well know algorithm of category of algorithm. Like cryptographic algorithme have very characteristic constant and operations.