package ch.ntb.inf.deep.ssa;

import java.io.IOException;

import org.junit.BeforeClass;
import org.junit.Test;

import ch.ntb.inf.deep.classItems.Class;
import ch.ntb.inf.deep.classItems.IClassFileConsts;
import ch.ntb.inf.deep.classItems.Type;

public class SSA05 extends TestSSA {

	@BeforeClass
	public static void setUp() {
		String[] rootClassNames = new String[] { "ch/ntb/inf/deep/testClasses/T05Returns" };
		try {
			Class.buildSystem(rootClassNames, (1 << IClassFileConsts.atxCode)
					| (1 << IClassFileConsts.atxLocalVariableTable)
					| (1 << IClassFileConsts.atxLineNumberTable)
					| (1 << IClassFileConsts.atxExceptions));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if (Type.nofRootClasses > 0) {
			createSSA(Type.rootClasses[0]);
		}
	}

	@Test
	public void testConstructor() {

	}
}

@@ -878,16 +878,744 @@
 or() %7B%0D%0A
+%09%09SSANode%5B%5D nodes = getAndTestSSA(0, 1, 0);%0D%0A%09%09testNode(nodes%5B0%5D, 2, 0, 2);%0D%0A%09%7D%0D%0A%09%0D%0A%09@Test%0D%0A%09public void testMultipleReturns1Param() %7B%0D%0A%09%09SSANode%5B%5D nodes = getAndTestSSA(1, 3, 0);%0D%0A%09%09testNode(nodes%5B0%5D, 2, 0, 3);%0D%0A%09%09testNode(nodes%5B1%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B2%5D, 1, 0, 3);%0D%0A%09%7D%0D%0A%09%0D%0A%09@Test%0D%0A%09public void testMultipleReturns1() %7B%0D%0A%09%09SSANode%5B%5D nodes = getAndTestSSA(2, 11, 0);%0D%0A%09%09testNode(nodes%5B0%5D, 2, 0, 3);%0D%0A%09%09testNode(nodes%5B1%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B2%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B3%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B4%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B5%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B6%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B7%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B8%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B9%5D, 1, 0, 3);%0D%0A%09%09testNode(nodes%5B10%5D, 1, 0, 3);
 %0D%0A%09%7D%0D%0A%7D%0D

add testresults