An Operational and Axiomatic Semantics for Non-determinism and Sequence Points in C
Robbert Krebbers
Radboud University Nijmegen
January 22, 2014 @ POPL, San Diego, USA
1 / 16
An Operational and Axiomatic Semantics for Non-determinism and - - PowerPoint PPT Presentation
An Operational and Axiomatic Semantics for Non-determinism and Sequence Points in C Robbert Krebbers Radboud University Nijmegen January 22, 2014 @ POPL, San Diego, USA 1 / 16 What is this program supposed to do? int main() { int x; int y =
1 / 16
2 / 16
2 / 16
2 / 16
2 / 16
3 / 16
3 / 16
4 / 16
4 / 16
4 / 16
5 / 16
5 / 16
5 / 16
5 / 16
6 / 16
6 / 16
6 / 16
7 / 16
◮ Assignment: lock memory location ◮ Sequence point: unlock memory locations
8 / 16
◮ Assignment: lock memory location ◮ Sequence point: unlock memory locations
8 / 16
◮ Assignment: lock memory location ◮ Sequence point: unlock memory locations
8 / 16
◮ Assignment: lock memory location ◮ Sequence point: unlock memory locations
8 / 16
◮ Assignment: lock memory location ◮ Sequence point: unlock memory locations
8 / 16
9 / 16
9 / 16
10 / 16
10 / 16
10 / 16
10 / 16
11 / 16
11 / 16
11 / 16
11 / 16
12 / 16
12 / 16
γ
lock γ
13 / 16
γ
lock γ
γ
γ
13 / 16
γ
lock γ
γ
γ
13 / 16
γ
lock γ
γ
γ
13 / 16
14 / 16
15 / 16
16 / 16