cd = cd.addMethod(md) ;
}
return cd ;
}
public ClassDef defadd12() {
ClassDef cd = makeClassDef() ;
{
Var x = new Var(0,TypeName.INT) ;
Var y = new Var(1,TypeName.LONG) ;
MethodDef md = new MethodDef(TypeName.LONG,"getFoo",x,y) ;
md = md.setStatic(true) ;
md = md.addInstructions(
new Load(x),
new Load(y),
new Dup(TypeCode.INT,TypeCode.LONG),
new Convert(TypeCode.LONG,TypeName.INT),
new Add(TypeCode.INT),
new Convert(TypeCode.INT,TypeName.LONG),
new Add(TypeCode.LONG),
new Return(TypeCode.LONG)
) ;
cd = cd.addMethod(md) ;
}
return cd ;
}