Java Supercompiler. Version 0.0.75. Copyright (c) 2001 Supercompilers, LLC. /* Supercompilation options -------------------------------------------------------------------- internal option name | command line option = value -------------------------------------------------------------------- method | -method <method identifier> = test allMethods | -allMethods, -allm, -am = false destinationDir | -destination <directory> = invokeLimit | -invoke<n>, -i<n> = no recurLimit | -recur<n>, -r<n> = 5 arrayLimit | -arrayLimit<n>, -al<n> = 10 joinLabeled | -joinLabeled, -jla, -join, -j = true joinTree | -joinLoop, -jl, -join, -j = true joinTreeR | -joinIf, -ji, -join, -j = true unfoldLoopNumber | -loop<n>, -l<n> = 0 unfoldLoop_Empty () | -unfoldLoopEmpty, -ule, -ul1 = true unfoldLoop_Linear () | -unfoldLoopLinear, -ull, -ul2 = true unfoldLoop_NoBreak () | -unfoldLoopNoBreak, -ulnb, -ul = true defaultArrayElements | -[no]defaultArrayElements, -[no]dae = true multiplyZeroFP | -[no]multiplyZeroFP, -[no]mzfp = true changeAccessOrder | -[no]changeAccessOrder, -[no]cao = true --------------------------------------------------------------------*/ //-------------------------------------- 0 sec - field tmmul2.CURRENT_STATE //-------------------------------------- 0 sec - postprocessing... public static final int CURRENT_STATE = 0; //-------------------------------------- 0 sec - field tmmul2.CURRENT_SYMBOL //-------------------------------------- 0 sec - postprocessing... public static final int CURRENT_SYMBOL = 1; //-------------------------------------- 0 sec - field tmmul2.NEXT_SYMBOL //-------------------------------------- 0 sec - postprocessing... public static final int NEXT_SYMBOL = 2; //-------------------------------------- 0 sec - field tmmul2.NEXT_STATE //-------------------------------------- 0 sec - postprocessing... public static final int NEXT_STATE = 3; //-------------------------------------- 0 sec - field tmmul2.MOVE //-------------------------------------- 0 sec - postprocessing... public static final int MOVE = 4; //-------------------------------------- 0 sec - field tmmul2.instruction //-------------------------------------- 0 sec - postprocessing... public static final java.lang.String[][] instruction = new java.lang.String[][] {{"start", " ", " ", "stop", "right"}, {"start", "2", "2", "start", "right"}, {"start", "1", "2", "b", "left"}, {"b", "2", "2", "b", "left"}, {"b", " ", "2", "start", "right"}}; //-------------------------------------- 0 sec - method tmmul2.test() //-------------------------------------- 0 sec - postprocessing... public static void test () { tmmul2.state = "start"; while (tmmul2.state != "stop") { if (tmmul2.state == "start" && tmmul2.tape[tmmul2.head] == " ") { tmmul2.state = "stop"; tmmul2.tape[tmmul2.head] = " "; tmmul2.head++;} if (tmmul2.state == "start" && tmmul2.tape[tmmul2.head] == "2") { tmmul2.state = "start"; tmmul2.tape[tmmul2.head] = "2"; tmmul2.head++;} if (tmmul2.state == "start" && tmmul2.tape[tmmul2.head] == "1") { tmmul2.state = "b"; tmmul2.tape[tmmul2.head] = "2"; tmmul2.head--;} if (tmmul2.state == "b" && tmmul2.tape[tmmul2.head] == "2") { tmmul2.state = "b"; tmmul2.tape[tmmul2.head] = "2"; tmmul2.head--;} if (tmmul2.state == "b" && tmmul2.tape[tmmul2.head] == " ") { tmmul2.state = "start"; tmmul2.tape[tmmul2.head] = "2"; tmmul2.head++;} continue;} /*while*/ return; } //-------------------------------------- 0 sec - JScp version 0.0.75