Var y = new Var(i2,TypeName.INT) ;
MethodDef md = new MethodDef(new TypeName(ret),"meth",x,y) ;
md = md.addInstructions(
new Load(x),
new Load(y),
new UnsignedShiftRight(TypeCode.getType(type)),
new Return(TypeCode.getType(ret))
) ;
return cd.addMethod(md) ;
}