

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CS 553 Compiler Construction — Fall 2007 Homework # Parallelization and Interprocedural Analysis Due December 7, 2007
but they must be readable. Due at the beginning of class. Total points: 100, 5% of course grade^ Homework assignments are to be completed individually.^ Hand-written submissions are fine,
int g; main() {int **a, **b, *c, *d, e, f, *r, *s; S1 c = &e; S2 d = &f; S3 a = &c; S4 b = &d; S5 r = bar( a ); S6 s = bar( &d ); }
int* bar(int **z) {int *q; S7 q = *z; S8 q = &g; S9 return q; } For the above program, perform flow-sensitive, context-sensitive alias analysis (FSCS) andflow-insensitive, context-sensitive alias analysis (FICS). Showing you work will help in the assignment of partial credit. (a) For FSCS, what is the points-to set for variables r and s after statement S6? (b) For FICS, what is the points-to set for variables r and s in the main function?