public void readFlowGraphsStatistics(final Diff diff) {
    for (final BinExport2.FlowGraph flowGraph : binexport.getFlowGraphList()) {
      final BinExport2.BasicBlock entryBasicBlock =
          binexport.getBasicBlock(flowGraph.getEntryBasicBlockIndex());
      final BinExport2.Instruction firstInstruction =
          binexport.getInstruction(entryBasicBlock.getInstructionIndex(0).getBeginIndex());
      long functionAddress = firstInstruction.getAddress();
      final RawFunction function =
          diff.getCallGraph(side).getFunction(new CAddress(functionAddress));
      function.setSizeOfBasicBlocks(flowGraph.getBasicBlockIndexCount());
      int numInstructions = 0;
      for (final int index : flowGraph.getBasicBlockIndexList()) {
        numInstructions += binexport.getBasicBlock(index).getInstructionIndexCount();
      }
      function.setSizeOfInstructions(numInstructions);
      function.setSizeOfJumps(flowGraph.getEdgeCount());
    }
  }
Reads data from BinExport2 files and renders disassemblies.
java/ui/src/main/java/com/google/security/zynamics/bindiff/io/BinExport2Reader.java