Displaying 1 result from an estimated 1 matches for "dsgraph_1nod".
Did you mean:
dsgraph_1node
2009 May 29
1
[LLVMdev] DSA nodes do not get merged
...list));
Result->X = 1;
Result->Next = malloc(sizeof(list));
Result = Result->Next;
Result->X = 2;
Result->Next = 0;
}
int main()
{
MakeList();
return 0;
}
---------
You can view the corresponding DSGraph here:
http://www.liacs.nl/~hvdspek/images/dsgraph_1node.png
The following code produces 2 DSNodes:
-------------
typedef struct list {
int X;
struct list *Next;
} list;
void
MakeList()
{
list *Result = malloc(sizeof(list));
Result->X = 1;
Result->Next = malloc(sizeof(list));
Result->Next->X = 2;
R...