package ch.ntb.inf.deep.ssa.instruction;

public class NoOpndRef extends NoOpnd {
	int ref;

	public NoOpndRef(int opcode){
		super(opcode);
	}
	
	public NoOpndRef(int opcode, int ref) {
		super(opcode);
		this.ref = ref;
	}
	
	public void setArg(int ref){
		this.ref=ref;
	}

	public int getArg(){
		return ref;
	}
	
	@Override
	public void print(int level) {
		for (int i = 0; i < level*3; i++)System.out.print(" ");
		System.out.println("NoOpndRef["+ scMnemonics[ssaOpcode]+"]");
	}

}

@@ -37,16 +37,59 @@
 ion;%0D%0A%0D%0A
+import ch.ntb.inf.deep.strings.HString;%0D%0A%0D%0A
 public c
@@ -122,23 +122,33 @@
 pnd %7B%0D%0A%09
-int ref
+HString fieldName
 ;%0D%0A%0D%0A%09pu
@@ -231,23 +231,33 @@
 opcode, 
-int ref
+HString fieldName
 ) %7B%0D%0A%09%09s
@@ -282,17 +282,29 @@
 his.
-ref = ref
+fieldName = fieldName
 ;%0D%0A%09
@@ -333,33 +333,57 @@
 Arg(
-int ref)%7B%0D%0A%09%09this.ref=ref
+HString fieldName)%7B%0D%0A%09%09this.fieldName = fieldName
 ;%0D%0A%09
@@ -395,19 +395,23 @@
 %09public 
+HStr
 in
-t
+g
  getArg(
@@ -427,11 +427,17 @@
 urn 
-ref
+fieldName
 ;%0D%0A%09
@@ -568,10 +568,8 @@
 rint
-ln
 (%22No
@@ -605,21 +605,135 @@
 ode%5D+%22%5D%22);%0D%0A
+%09%09if(fieldName != null)%7B%0D%0A%09%09%09System.out.println(%22(%22 + fieldName + %22)%22);%0D%0A%09%09%7Delse%7B%0D%0A%09%09%09System.out.println();%0D%0A%09%09%7D%0D%0A
 %09%7D%0D%0A%0D%0A%7D%0D%0A

add field fieldName