search for: getdifference

Displaying 1 result from an estimated 1 matches for "getdifference".

2009 Jun 29
4
[LLVMdev] Limitations of Alias Analysis?
...follow: //------------=== Source code ===------------// #include<stdlib.h> typedef struct { int x; int y; } Location; Location* getNewLocation(int x, int y) { Location* newLoc = (Location *)malloc(sizeof(Location)); newLoc->x = x; newLoc->y = y; return newLoc; } Location* getDifference(Location *a, Location *b) { Location* newLoc = (Location *)malloc(sizeof(Location)); newLoc->x = a->x - b->x; newLoc->y = a->y - b->y; return newLoc; } int main() { Location *loc1 = getNewLocation(0, 0); Location *loc2 = getNewLocation(1, 2); Location *loc3 = getDiffere...