void makeBasicToStringMethod(Type prim, String classname, Automaton a) {
Method m = new Method(application, classname + ".toString",
new Variable[0]);
SootClass c = Scene.v().getSootClass(classname);
Variable var = application.createVariable(VariableType.STRING);
StringStatement ss = new StringInit(var, a);
m.addStatement(ss);
m.getEntry().addSucc(ss);
Return ret = new Return(var);
m.addStatement(ret);
ss.addSucc(ret);
methods.add(m);
tostring_targets.put(c, m);
tostring_methods.put(classname, m);
tostring_hotspots.put(c, ss);