public virtual string ToString(string format, IFormatProvider formatProvider, string[] options) { string result = ""; foreach (object method in getMethods()) { BasicBlocksGraph graph = new BasicBlocksGraph(bodies[method] as MethodBodyBlock); result += String.Format(formatProvider,"{0:"+format+"}\n",method)+"{\n"+ graph.ToString(format,formatProvider,options)+"}\n\n"; } return result; }
public virtual void Optimize() { foreach (MethodBodyBlock mbb in this) { BasicBlocksGraph graph = new BasicBlocksGraph(mbb); graph.Optimize(); } }