@@ -29,7 +29,7 @@ class TranslatedMicrosoftTryExceptHandler extends TranslatedElement,
29
29
30
30
final override Locatable getAst ( ) { result = tryExcept .getExcept ( ) }
31
31
32
- override Instruction getFirstInstruction ( ) { result = getChild ( 0 ) .getFirstInstruction ( ) }
32
+ override Instruction getFirstInstruction ( ) { result = this . getChild ( 0 ) .getFirstInstruction ( ) }
33
33
34
34
override predicate hasInstruction ( Opcode opcode , InstructionTag tag , CppType resultType ) {
35
35
// t1 = -1
@@ -87,41 +87,41 @@ class TranslatedMicrosoftTryExceptHandler extends TranslatedElement,
87
87
tag = TryExceptCompareNegativeOne ( ) and
88
88
(
89
89
operandTag instanceof LeftOperandTag and
90
- result = getTranslatedCondition ( ) .getResult ( )
90
+ result = this . getTranslatedCondition ( ) .getResult ( )
91
91
or
92
92
operandTag instanceof RightOperandTag and
93
- result = getInstruction ( TryExceptGenerateNegativeOne ( ) )
93
+ result = this . getInstruction ( TryExceptGenerateNegativeOne ( ) )
94
94
)
95
95
or
96
96
tag = TryExceptCompareNegativeOneBranch ( ) and
97
97
operandTag instanceof ConditionOperandTag and
98
- result = getInstruction ( TryExceptCompareNegativeOne ( ) )
98
+ result = this . getInstruction ( TryExceptCompareNegativeOne ( ) )
99
99
or
100
100
tag = TryExceptCompareZero ( ) and
101
101
(
102
102
operandTag instanceof LeftOperandTag and
103
- result = getTranslatedCondition ( ) .getResult ( )
103
+ result = this . getTranslatedCondition ( ) .getResult ( )
104
104
or
105
105
operandTag instanceof RightOperandTag and
106
- result = getInstruction ( TryExceptGenerateZero ( ) )
106
+ result = this . getInstruction ( TryExceptGenerateZero ( ) )
107
107
)
108
108
or
109
109
tag = TryExceptCompareZeroBranch ( ) and
110
110
operandTag instanceof ConditionOperandTag and
111
- result = getInstruction ( TryExceptCompareZero ( ) )
111
+ result = this . getInstruction ( TryExceptCompareZero ( ) )
112
112
or
113
113
tag = TryExceptCompareOne ( ) and
114
114
(
115
115
operandTag instanceof LeftOperandTag and
116
- result = getTranslatedCondition ( ) .getResult ( )
116
+ result = this . getTranslatedCondition ( ) .getResult ( )
117
117
or
118
118
operandTag instanceof RightOperandTag and
119
- result = getInstruction ( TryExceptGenerateOne ( ) )
119
+ result = this . getInstruction ( TryExceptGenerateOne ( ) )
120
120
)
121
121
or
122
122
tag = TryExceptCompareOneBranch ( ) and
123
123
operandTag instanceof ConditionOperandTag and
124
- result = getInstruction ( TryExceptCompareOne ( ) )
124
+ result = this . getInstruction ( TryExceptCompareOne ( ) )
125
125
}
126
126
127
127
override string getInstructionConstantValue ( InstructionTag tag ) {
@@ -139,12 +139,12 @@ class TranslatedMicrosoftTryExceptHandler extends TranslatedElement,
139
139
// Generate -1 -> Compare condition
140
140
tag = TryExceptGenerateNegativeOne ( ) and
141
141
kind instanceof GotoEdge and
142
- result = getInstruction ( TryExceptCompareNegativeOne ( ) )
142
+ result = this . getInstruction ( TryExceptCompareNegativeOne ( ) )
143
143
or
144
144
// Compare condition -> Branch
145
145
tag = TryExceptCompareNegativeOne ( ) and
146
146
kind instanceof GotoEdge and
147
- result = getInstruction ( TryExceptCompareNegativeOneBranch ( ) )
147
+ result = this . getInstruction ( TryExceptCompareNegativeOneBranch ( ) )
148
148
or
149
149
// Branch -> Unwind or Generate 0
150
150
tag = TryExceptCompareNegativeOneBranch ( ) and
@@ -153,61 +153,61 @@ class TranslatedMicrosoftTryExceptHandler extends TranslatedElement,
153
153
// TODO: This is not really correct. The semantics of `EXCEPTION_CONTINUE_EXECUTION` is that
154
154
// we should continue execution at the point where the exception occurred. But we don't have
155
155
// any instruction to model this behavior.
156
- result = getInstruction ( UnwindTag ( ) )
156
+ result = this . getInstruction ( UnwindTag ( ) )
157
157
or
158
158
kind instanceof FalseEdge and
159
- result = getInstruction ( TryExceptGenerateZero ( ) )
159
+ result = this . getInstruction ( TryExceptGenerateZero ( ) )
160
160
)
161
161
or
162
162
// Generate 0 -> Compare condition
163
163
tag = TryExceptGenerateZero ( ) and
164
164
kind instanceof GotoEdge and
165
- result = getInstruction ( TryExceptCompareZero ( ) )
165
+ result = this . getInstruction ( TryExceptCompareZero ( ) )
166
166
or
167
167
// Compare condition -> Branch
168
168
tag = TryExceptCompareZero ( ) and
169
169
kind instanceof GotoEdge and
170
- result = getInstruction ( TryExceptCompareZeroBranch ( ) )
170
+ result = this . getInstruction ( TryExceptCompareZeroBranch ( ) )
171
171
or
172
172
// Branch -> Unwind or Generate 1
173
173
tag = TryExceptCompareZeroBranch ( ) and
174
174
(
175
175
kind instanceof TrueEdge and
176
- result = getInstruction ( UnwindTag ( ) )
176
+ result = this . getInstruction ( UnwindTag ( ) )
177
177
or
178
178
kind instanceof FalseEdge and
179
- result = getInstruction ( TryExceptGenerateOne ( ) )
179
+ result = this . getInstruction ( TryExceptGenerateOne ( ) )
180
180
)
181
181
or
182
182
// Generate 1 -> Compare condition
183
183
tag = TryExceptGenerateOne ( ) and
184
184
kind instanceof GotoEdge and
185
- result = getInstruction ( TryExceptCompareOne ( ) )
185
+ result = this . getInstruction ( TryExceptCompareOne ( ) )
186
186
or
187
187
// Compare condition -> Branch
188
188
tag = TryExceptCompareOne ( ) and
189
189
kind instanceof GotoEdge and
190
- result = getInstruction ( TryExceptCompareOneBranch ( ) )
190
+ result = this . getInstruction ( TryExceptCompareOneBranch ( ) )
191
191
or
192
192
// Branch -> Handler (the condition value is always 0, -1 or 1, and we've checked for 0 or -1 already.)
193
193
tag = TryExceptCompareOneBranch ( ) and
194
194
(
195
195
kind instanceof TrueEdge and
196
- result = getTranslatedHandler ( ) .getFirstInstruction ( )
196
+ result = this . getTranslatedHandler ( ) .getFirstInstruction ( )
197
197
)
198
198
or
199
199
// Unwind -> Parent
200
200
tag = UnwindTag ( ) and
201
201
kind instanceof GotoEdge and
202
- result = getParent ( ) .getChildSuccessor ( this )
202
+ result = this . getParent ( ) .getChildSuccessor ( this )
203
203
}
204
204
205
205
override Instruction getChildSuccessor ( TranslatedElement child ) {
206
- child = getTranslatedCondition ( ) and
207
- result = getInstruction ( TryExceptGenerateNegativeOne ( ) )
206
+ child = this . getTranslatedCondition ( ) and
207
+ result = this . getInstruction ( TryExceptGenerateNegativeOne ( ) )
208
208
or
209
- child = getTranslatedHandler ( ) and
210
- result = getParent ( ) .getChildSuccessor ( this )
209
+ child = this . getTranslatedHandler ( ) and
210
+ result = this . getParent ( ) .getChildSuccessor ( this )
211
211
}
212
212
213
213
private TranslatedExpr getTranslatedCondition ( ) {
@@ -220,10 +220,10 @@ class TranslatedMicrosoftTryExceptHandler extends TranslatedElement,
220
220
221
221
override TranslatedElement getChild ( int id ) {
222
222
id = 0 and
223
- result = getTranslatedCondition ( )
223
+ result = this . getTranslatedCondition ( )
224
224
or
225
225
id = 1 and
226
- result = getTranslatedHandler ( )
226
+ result = this . getTranslatedHandler ( )
227
227
}
228
228
229
229
final override Function getFunction ( ) { result = tryExcept .getEnclosingFunction ( ) }
0 commit comments