Go backward to
The Semantics of Abstractions
Go up to
Top
Go forward to
The Semantics of Abstractions
The Semantics of Abstractions
Command: [[C:
comm
]] in
Environment
->
Store
->
Store
_
bottom
[[
p
|- L:=E:
comm
]]
e
s
=
update
([[
p
|- L:
intloc
]]
e
, [[
p
|- C
1
:
comm
]]
e
s
,
s
)
[[
p
|- C
1
;C
2
:
comm
]]
e
s
= [[
p
|- C
2
:
comm
]]
e
([[
p
|- C
1
:
comm
]]
e
s
)
[[
p
|-
if
E
then
C
1
else
C
2
fi
:
comm
]]
e
s
=
if
([[
p
|- E:
boolexp
]]
e
s
, [[
p
|- C
1
:
comm
]]
e
s
, [[
p
|- C
2
:
comm
]]
e
s
)
[[
p
|-
while
E
do
C
od
:
comm
]]
e
s
=
w(s)
where
w(s)
=
if
([[
p
|- E:
boolexp
]]
e
s
,
w
([[
p
|- C:
comm
]]
e
s
),
s
)
[[
p
|-
skip
:
comm
]]
e
s
=
s
Author:
Wolfgang Schreiner
Last Modification: April 2, 1998