Regression
tests.wurstscript.tests.OptimizerTests.controlFlowMergeSideEffect2
Fehlermeldung
java.lang.Error: this expr should have been flattened: { i_620; Player532(i_620); >>> null} initPlayerArray181
Stacktrace
java.lang.Error: this expr should have been flattened: { i_620; Player532(i_620); >>> null} initPlayerArray181 at de.peeeq.wurstscript.translation.imtojass.ExprTranslation.translate(ExprTranslation.java:98) at de.peeeq.wurstscript.jassIm.ImStatementExprImpl.translate(ImStatementExprImpl.java:172) at de.peeeq.wurstscript.translation.imtojass.StatementTranslation.translate(StatementTranslation.java:61) at de.peeeq.wurstscript.jassIm.ImStatementExprImpl.translate(ImStatementExprImpl.java:168) at de.peeeq.wurstscript.translation.imtojass.StatementTranslation.translate(StatementTranslation.java:82) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.translate(ImStmtsImpl.java:76) at de.peeeq.wurstscript.translation.imtojass.StatementTranslation.translate(StatementTranslation.java:30) at de.peeeq.wurstscript.jassIm.ImLoopImpl.translate(ImLoopImpl.java:143) at de.peeeq.wurstscript.translation.imtojass.StatementTranslation.translate(StatementTranslation.java:82) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.translate(ImStmtsImpl.java:76) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translateFunction(ImToJassTranslator.java:171) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translateFunctionTransitive(ImToJassTranslator.java:123) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translateFunctionTransitive(ImToJassTranslator.java:120) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translateFunctionTransitive(ImToJassTranslator.java:120) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translateFunctionTransitive(ImToJassTranslator.java:120) at de.peeeq.wurstscript.translation.imtojass.ImToJassTranslator.translate(ImToJassTranslator.java:57) at de.peeeq.wurstio.WurstCompilerJassImpl.transformProgToJass(WurstCompilerJassImpl.java:515) at tests.wurstscript.tests.WurstScriptTest.translateAndTest(WurstScriptTest.java:467) at tests.wurstscript.tests.WurstScriptTest.testWithoutInliningAndOptimization(WurstScriptTest.java:373) at tests.wurstscript.tests.WurstScriptTest.access$000(WurstScriptTest.java:39) at tests.wurstscript.tests.WurstScriptTest$TestConfig.testScript(WurstScriptTest.java:196) at tests.wurstscript.tests.WurstScriptTest$TestConfig.run(WurstScriptTest.java:126) at tests.wurstscript.tests.WurstScriptTest$TestConfig.lines(WurstScriptTest.java:116) at tests.wurstscript.tests.OptimizerTests.controlFlowMergeSideEffect2(OptimizerTests.java:667) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1204) at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) at org.testng.TestNG.runSuites(TestNG.java:1049) at org.testng.TestNG.run(TestNG.java:1017) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:140) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:89) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:175) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:157) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.base/java.lang.Thread.run(Thread.java:834)
Standard Ausgabe (STDOUT)
// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1193 globals integer tempReturn_integer=0 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function cyc_g takes integer funcChoice, integer x returns nothing if funcChoice == 0 then call cyc_g(1, x / 1000) set tempReturn_integer = tempReturn_integer return elseif funcChoice == 1 then if x > 1000 then call cyc_g(0, x) set tempReturn_integer = tempReturn_integer return endif if x > 100 then call cyc_g(2, x) set tempReturn_integer = tempReturn_integer return endif if x > 10 then call cyc_g(3, x) set tempReturn_integer = tempReturn_integer return endif set tempReturn_integer = x return elseif funcChoice == 2 then call cyc_g(1, x / 100) set tempReturn_integer = tempReturn_integer return elseif funcChoice == 3 then call cyc_g(1, x / 10) set tempReturn_integer = tempReturn_integer return endif endfunction function init_Test takes nothing returns nothing call cyc_g(1, 7531) if tempReturn_integer == 7 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_Test() endfunction function config takes nothing returns nothing endfunction
Standard Fehler (STDERR)
1751543663 1751543664 1751543665