





































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!






































x := *p; ... y := *p; // replace with y := x?
*x := ...; // is *x dead?
x.lock(); ... y.unlock(); // same object as x?
Pointers to dynamically-allocated memory
T
the new statement is analyzed to stand for the
new location:
l p
l p
V1 t V
l p
t V
l
t
V
p
V
l
t
V
p
V
l
t
V
p
V2 V
l
t
V
p
V2 V
l
t
V
p
V2 V
l p
l p
S1 t S
l p
t S
l
t
S
p
S
l
t
S
p
S
l
t
S
p
S
l
t
S
p
S
l
t
S
p
S
l
t S
p S
l
t
S
p
S
l
t
S
p
S
l
t
S
p
S
x y g