Midlands Graduate School, University of Birmingham, April 2008 1
✬ ✫ ✩ ✪
Roy L. Crole University of Leicester, UK Midlands Graduate - - PowerPoint PPT Presentation
Midlands Graduate School, University of Birmingham, April 2008 1 Operational Semantics Abstract Machines and Correctness Roy L. Crole University of Leicester, UK Midlands Graduate School, University of
Midlands Graduate School, University of Birmingham, April 2008 1
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 2
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 3
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 4
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 5
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 6
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 7
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 8
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 9
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 10
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 11
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 12
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 13
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 14
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 15
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 16
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 17
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 18
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 19
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 20
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 21
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 22
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 23
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 24
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 25
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 26
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 27
✬ ✫ ✩ ✪
deduction tree
✛ ✲
Midlands Graduate School, University of Birmingham, April 2008 28
✬ ✫ ✩ ✪
FETCH(l) : PUSH(10) : OP(−)
FETCH(l) : PUSH(10) : OP(−)
Midlands Graduate School, University of Birmingham, April 2008 29
✬ ✫ ✩ ✪
PUSH(c) | FETCH(l) | OP(op) | SKIP
Midlands Graduate School, University of Birmingham, April 2008 30
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 31
✬ ✫ ✩ ✪ PUSH(c) : C
FETCH(l) : C
OP( op ) : C
STO(l) : C
BR(C1,C2) : C
LOOP(C1,C2) : C
Midlands Graduate School, University of Birmingham, April 2008 32
✬ ✫ ✩ ✪
def
PUSH(c)
def
FETCH(l)
def
def
def
SKIP
def
def
def
LOOP([[P1]],[[P2]])
Midlands Graduate School, University of Birmingham, April 2008 33
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 34
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 35
✬ ✫ ✩ ✪
STO(l) : C
Midlands Graduate School, University of Birmingham, April 2008 36
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 37
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 38
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 39
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 40
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 41
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 42
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 43
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 44
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 45
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 46
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 47
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 48
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 49
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 50
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 51
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 52
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 53
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 54
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 55
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 56
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 57
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 58
✬ ✫ ✩ ✪
def
def
def
def
Midlands Graduate School, University of Birmingham, April 2008 59
✬ ✫ ✩ ✪
def
Midlands Graduate School, University of Birmingham, April 2008 60
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 61
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 62
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 63
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 64
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 65
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 66
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 67
✬ ✫ ✩ ✪ P1 ⇓e F V P2 ⇓e V2 F V V2 ⇓e V where either P1 or P2 is not a value ⇓eAP P1 P2 ⇓e V EF[V1,...,Va/x1,...,xa] ⇓e V [F x = EF declared in decI ] ⇓eFID FV1 ...Va ⇓e V EK ⇓e V [K = EK declared in decI ] ⇓eCID K ⇓e V
Midlands Graduate School, University of Birmingham, April 2008 68
✬ ✫ ✩ ✪ P ⇓e V : V′ ⇓eHD hd(P) ⇓e V P ⇓e V : V′ ⇓eTL tl(P) ⇓e V′ P1 ⇓e V P2 ⇓e V′ ⇓eCONS P1 : P2 ⇓e V : V′ P ⇓e nilσ ⇓eELIST1 elist(P) ⇓e T P ⇓e V : V′ ⇓eELIST2 elist(P) ⇓e F
Midlands Graduate School, University of Birmingham, April 2008 69
✬ ✫ ✩ ✪
VAL
VAL
CID
VAL
VAL
OP
FID
AP
Midlands Graduate School, University of Birmingham, April 2008 70
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 71
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 72
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 73
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 74
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 75
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 76
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 77
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 78
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 79
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 80
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 81
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 82
✬ ✫ ✩ ✪
num
Midlands Graduate School, University of Birmingham, April 2008 83
✬ ✫ ✩ ✪
fn
Midlands Graduate School, University of Birmingham, April 2008 84
✬ ✫ ✩ ✪
var
Midlands Graduate School, University of Birmingham, April 2008 85
✬ ✫ ✩ ✪
cav0
Avα
Midlands Graduate School, University of Birmingham, April 2008 86
✬ ✫ ✩ ✪
S α cloH ↑ Sk−1 ...S1 cloF ↑ ⊕S E E C APP : C D D
cav1
− → S
Avα−1
cloH ↑ Sk−1 ...S1 cloF ↑ ⊕S E E C C D D
Midlands Graduate School, University of Birmingham, April 2008 87
✬ ✫ ✩ ✪
S
Avα
Sk ...S1 cloF ↑ S′
k′−1 ...S′ 1
cloG ↑ ⊕S E E C APP : C D D
avtav
− → S
Avα−1
Sk ...S1 cloF ↑ S′
k′−1 ...S′ 1
cloG ↑ ⊕S E E C C D D
Midlands Graduate School, University of Birmingham, April 2008 88
✬ ✫ ✩ ✪
call0
Midlands Graduate School, University of Birmingham, April 2008 89
✬ ✫ ✩ ✪
S α cloH ↑ Sa−1 ...S1 cloF ↑ ⊕S E E C APP : C D D
call1
− → S − E xa =?Sa : ... : x1 =?S1 : E C [[EF]] D (α−2 S,E,C,D)
Midlands Graduate School, University of Birmingham, April 2008 90
✬ ✫ ✩ ✪
S
Avα
Sk ...S1 cloF ↑ S′
a−1 ...S′ 1
cloG ↑ ⊕S E E C APP : C D D
call2
− → S − E xa =?S′
a : ... : x1 =?S′ 1 : E
C [[EG]] D (α−2 S,E,C,D)
Midlands Graduate School, University of Birmingham, April 2008 91
✬ ✫ ✩ ✪
res
Midlands Graduate School, University of Birmingham, April 2008 92
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 93
✬ ✫ ✩ ✪
num/fn
3
Midlands Graduate School, University of Birmingham, April 2008 94
✬ ✫ ✩ ✪
call0
fn
3
Midlands Graduate School, University of Birmingham, April 2008 95
✬ ✫ ✩ ✪
cav1
Av2
avtav
Av1
Midlands Graduate School, University of Birmingham, April 2008 96
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 97
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 98
✬ ✫ ✩ ✪
M def = S S1 E E C C1 D D − →k S S2 E E C C2 D D
def
= M′ implies M def = S S1 ⊕S3 E E C C1 : C3 D D − →k S S2 ⊕S3 E E C C2 : C3 D D
def
= M′
Midlands Graduate School, University of Birmingham, April 2008 99
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 100
✬ ✫ ✩ ✪
res
1
Midlands Graduate School, University of Birmingham, April 2008 101
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 102
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 103
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 104
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 105
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 106
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 107
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 108
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 109
✬ ✫ ✩ ✪
Midlands Graduate School, University of Birmingham, April 2008 110
✬ ✫ ✩ ✪