@@ -323,7 +323,7 @@ class TranslatedParameter extends TranslatedElement, TTranslatedParameter {
323323 }
324324
325325 override final Instruction getFirstInstruction ( ) {
326- result = getInstruction ( ParameterInitializerTag ( ) )
326+ result = getInstruction ( InitializerVariableAddressTag ( ) )
327327 }
328328
329329 override final TranslatedElement getChild ( int id ) {
@@ -334,10 +334,6 @@ class TranslatedParameter extends TranslatedElement, TTranslatedParameter {
334334 EdgeKind kind ) {
335335 kind instanceof GotoEdge and
336336 (
337- (
338- tag = ParameterInitializerTag ( ) and
339- result = getInstruction ( InitializerVariableAddressTag ( ) )
340- ) or
341337 (
342338 tag = InitializerVariableAddressTag ( ) and
343339 result = getInstruction ( InitializerStoreTag ( ) )
@@ -355,12 +351,6 @@ class TranslatedParameter extends TranslatedElement, TTranslatedParameter {
355351
356352 override final predicate hasInstruction ( Opcode opcode , InstructionTag tag ,
357353 Type resultType , boolean isGLValue ) {
358- (
359- tag = ParameterInitializerTag ( ) and
360- opcode instanceof Opcode:: InitializeParameter and
361- resultType = param .getType ( ) .getUnspecifiedType ( ) and
362- isGLValue = false
363- ) or
364354 (
365355 tag = InitializerVariableAddressTag ( ) and
366356 opcode instanceof Opcode:: VariableAddress and
@@ -369,15 +359,15 @@ class TranslatedParameter extends TranslatedElement, TTranslatedParameter {
369359 ) or
370360 (
371361 tag = InitializerStoreTag ( ) and
372- opcode instanceof Opcode:: Store and
362+ opcode instanceof Opcode:: InitializeParameter and
373363 resultType = param .getType ( ) .getUnspecifiedType ( ) and
374364 isGLValue = false
375365 )
376366 }
377367
378368 override final IRVariable getInstructionVariable ( InstructionTag tag ) {
379369 (
380- tag = ParameterInitializerTag ( ) or
370+ tag = InitializerStoreTag ( ) or
381371 tag = InitializerVariableAddressTag ( )
382372 ) and
383373 result = getIRUserVariable ( getFunction ( ) , param )
@@ -390,10 +380,6 @@ class TranslatedParameter extends TranslatedElement, TTranslatedParameter {
390380 (
391381 operandTag instanceof LoadStoreAddressOperand and
392382 result = getInstruction ( InitializerVariableAddressTag ( ) )
393- ) or
394- (
395- operandTag instanceof CopySourceOperand and
396- result = getInstruction ( ParameterInitializerTag ( ) )
397383 )
398384 )
399385 }
0 commit comments