I am scanning through GIMPLE instructions generated from this C code:
void if_simple() {
int c = cond();
if (c) {
f1();
}
}
The generated GIMPLE is like this:
if_simple ()
{
int c;
<bb 2> [100.00%]:
c_4 = cond ();
if (c_4 != 0)
goto <bb 3>; [36.64%]
else
goto <bb 4>; [63.36%]
<bb 3> [36.64%]:
f1 ();
<bb 4> [100.00%]:
return;
}
However, in Python, I'm getting gcc.GimpleCond which has true_label & false_label set to None.
Is there anything I'm missing or is it a bug?
Thanks
I am scanning through GIMPLE instructions generated from this C code:
The generated GIMPLE is like this:
However, in Python, I'm getting gcc.GimpleCond which has true_label & false_label set to None.
Is there anything I'm missing or is it a bug?
Thanks