Remove unecessary pushing/popping for function arguments
authorDavid Kerkeslager <kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:58:53 +0000 (12:58 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Wed, 24 Jul 2019 16:58:53 +0000 (12:58 -0400)
normalization.py

index 291646a..b55d42c 100644 (file)
@@ -301,21 +301,11 @@ def normalize_function_call_expression(counter, expression):
         for s in argument_prestatements:
             prestatements.append(s)
 
-        variable = '${}'.format(counter)
-        prestatements.append(
-            NormalVariableInitializationStatement(
-                variable=variable,
-                expression=normalized_argument,
-            )
-        )
         prestatements.append(
             NormalPushStatement(
-                expression=NormalVariableExpression(
-                    variable=variable,
-                ),
+                expression=normalized_argument,
             ),
         )
-        counter += 1
 
     counter, function_prestatements, function_expression = normalize_expression(
         counter,