













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!














2
S denotes a statement L is a statementlist A is assignment
4
5
7
8
10
11
13
if E 1 or M E 2 then x=y+z else x=y-z
if E then x=y+z else x=y-z
{ E.truelist=[100,104] E.falselist=[103,105] }
14
100 if a < b goto _
101 goto 102
102 if c < d goto 104
103 goto _
104 if e < f goto _
105 goto_
106
107
108
109
16
100 if a < b goto _
101 goto 102
102 if c < d goto 104
103 goto _
104 if e < f goto _
105 goto _
106 x=y+z
107 goto _
108
109
17
if E then M 1 S 1 N else M 2 x=y-z M 2 → ε { M 2 .quad = 108 }
if E then M 1 S 1 N else M 2 A A → x=y-z { emit(‘x=y-z’) }
if E then M 1 S 1 N else M 2 S 2 S (^2) A { S 2 .nextlist = nil }
S { backpatch([100,104],106) backpatch([103,105],108) Docsity.com
19
100 if a < b goto 106
101 goto 102
102 if c < d goto 104
103 goto 108
104 if e < f goto 106
105 goto 108
106 x=y+z
107 goto _
108 x=y-z
109
20