projects
/
satune.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9f7bb
)
Adding the missing bug fix for the merge heuristic ...
author
Hamed Gorjiara
<hgorjiar@uci.edu>
Tue, 23 Oct 2018 00:40:20 +0000
(17:40 -0700)
committer
Hamed Gorjiara
<hgorjiar@uci.edu>
Tue, 23 Oct 2018 00:40:20 +0000
(17:40 -0700)
src/ASTAnalyses/Encoding/encodinggraph.cc
patch
|
blob
|
history
diff --git
a/src/ASTAnalyses/Encoding/encodinggraph.cc
b/src/ASTAnalyses/Encoding/encodinggraph.cc
index d2791d3a02e994da2584ec4da731de57d1c909a0..6ebea56771771644a8bbe33782adde4d49ebbf3c 100644
(file)
--- a/
src/ASTAnalyses/Encoding/encodinggraph.cc
+++ b/
src/ASTAnalyses/Encoding/encodinggraph.cc
@@
-342,6
+342,8
@@
void EncodingGraph::decideEdges() {
newSize = convertSize(left->s->getUnionSize(right->s));
newSize = (leftSize > newSize) ? leftSize : newSize;
newSize = (rightSize > newSize) ? rightSize : newSize;
+ max = rightSize > leftSize ? rightSize : leftSize;
+ merge = left->measureSimilarity(right) > 1.5 || max == newSize;
} else if (leftGraph != NULL && rightGraph == NULL) {
leftSize = convertSize(leftGraph->encodingSize);
rightSize = convertSize(right->getSize());