ClassDef cd = makeClassDef() ;
Var x = new Var(1,new TypeName("int[]")) ;
MethodDef md = new MethodDef(TypeName.VOID,"meth",x) ;
md = md.addInstructions(
new Load(x),
new Const(0),
new Increment(new ArrLValue(TypeName.INT),inc),
new Return(TypeCode.VOID)
) ;
return cd.addMethod(md) ;
}