From 5d396bb845ee9f2b8e2c4bae9e1de351661f5113 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 24 Jul 2019 12:58:53 -0400 Subject: [PATCH] Remove unecessary pushing/popping for function arguments --- normalization.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/normalization.py b/normalization.py index 291646a..b55d42c 100644 --- a/normalization.py +++ b/normalization.py @@ -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, -- 2.20.1