




















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!





















g() { lock; }
h() { unlock; }
f() { h(); if (...) { main(); } }
main() { g(); f(); lock; unlock; }
main f g h
g() { lock; }
h() { unlock; }
f() { h(); if (...) { main(); } }
main() { g(); f(); lock; unlock; }
main f g h
u ; ; ; ; ; ; ; ” ” ” ” (^) u ” ” ” ” (^) ” ” ” l ” (^) ” ” ” l ” ”^ ” ” ”
l
u u u u
g() { if(isLocked()) { unlock; } else { lock; } }
main f g
u ; ; ; ; ; ” ” ” ” ” ” ” ” ” ” ” ” ” ” ”
u l l
f() { g(); if (...) { main(); } }
main() { g(); f(); lock; unlock; }
g() { if(isLocked()) { unlock; } else { lock; } }
main f g
u ; ; ; ; ; ” ” ” ” ” ” ” ” ” ” ” ” ” ” ” ” ” ” ” ”
u l l
{u,l}
f() { g(); if (...) { main(); } }
main() { g(); f(); lock; unlock; }
{u,l}
{u,l} {u,l} {u,l} {u,e}