MethodVisitor mv = method.getVisitor();
// get the length of the vector
int lengthLocal = method.reserveLocal(1);
accessor.pushLength(method);
mv.visitVarInsn(ISTORE, lengthLocal);
// initial the sum variable
int sumLocal = method.reserveLocal(2);
mv.visitInsn(DCONST_0);