X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/48f48e6a26a54751ecd0ab90b10ab972cc5e89cd..c8c1e24dac94abfacb78fb3b661c9a5dbbb0d86a:/Graph.cpp?ds=inline diff --git a/Graph.cpp b/Graph.cpp index 999e72a..eb66dc4 100644 --- a/Graph.cpp +++ b/Graph.cpp @@ -158,15 +158,15 @@ bool Graph::computeOutputPatterns(int nbExec) { } } } - // search for maximum delta - int maxDelta = 0; + // search for maximum PP length + int maxPP = 0; foreach(FunctionalBlock* block, generators) { - if (block->getDelta() > maxDelta) maxDelta = block->getDelta(); + if (block->getProductionPatternLength() > maxPP) maxPP = block->getProductionPatternLength(); } // compute output for generators - int maxExecLen = maxDelta*nbExec; + int maxExecLen = maxPP*nbExec; foreach(FunctionalBlock* block, generators) { - int d = block->getDelta(); + int d = block->getProductionPatternLength(); block->computeOutputPattern((maxExecLen+d-1)/d); } // compute output for top group