Refactoring ...
[satune.git] / src / ASTAnalyses / Encoding / encodinggraph.cc
index 8f50a038b17fbaa53d97db82171618ad78fd2996..43043a71b3f00bd73a5f5d8e05368647c85fb2c6 100644 (file)
@@ -295,7 +295,7 @@ void EncodingGraph::processPredicate(BooleanPredicate *b) {
 }
 
 uint convertSize(uint cost) {
-       cost = 1.2 * cost;// fudge factor
+       cost = FUDGEFACTOR * cost;// fudge factor
        return NEXTPOW2(cost);
 }
 
@@ -357,8 +357,8 @@ void EncodingGraph::decideEdges() {
                        totalCost = (newSize - leftSize) * leftGraph->numElements +
                                                                        (newSize - rightSize) * rightGraph->numElements;
                }
-               double conversionfactor = 0.5;
-               if ((totalCost * conversionfactor) < eeValue) {
+               
+               if ((totalCost * CONVERSIONFACTOR) < eeValue) {
                        //add the edge
                        mergeNodes(left, right);
                }