

































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!


































Flow- and Context-Sensitivity Logical Representation Pointer Analysis Interprocedural Analysis
5
x = 3 y = 2
x = 2 y = 3
z = x+y
8
main
p
r s
q
t (^) Contexts: Green Green, pink Green, yellow Green, pink, yellow
Reach(d,x,j) :- Reach(d,x,i) &
StatementAt(i,s) & NOT Assign(s,x) & Follows(i,j)
Reach(s,x,j) :- StatementAt(i,s) &
Assign(s,x) & Follows(i,j)
Path(x,y) :- Arc(x,y)
Path(x,y) :- Path(x,z) & Path(z,y) NewPath(x,y) = Arc(x,y); Path(x,y) = ∅; while (NewPath != ∅) do { NewPath(x,y) = {(x,y) | NewPath(x,z) && Path(z,y) || Path(x,z) && NewPath(z,y)} – Path(x,y); Path(x,y) = Path(x,y) ∪ NewPath(x,y); }