Home
last modified time | relevance | path

Searched refs:ForestDist (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp571 ForestDist = std::make_unique<std::unique_ptr<double[]>[]>( in ZhangShashaMatcher()
608 ForestDist[Row - 1][Col] + 1 == ForestDist[Row][Col]) { in getMatchingNodes()
611 ForestDist[Row][Col - 1] + 1 == ForestDist[Row][Col]) { in getMatchingNodes()
662 ForestDist[LMD1][LMD2] = 0; in computeForestDist()
664 ForestDist[D1][LMD2] = ForestDist[D1 - 1][LMD2] + DeletionCost; in computeForestDist()
666 ForestDist[LMD1][D2] = ForestDist[LMD1][D2 - 1] + InsertionCost; in computeForestDist()
671 ForestDist[D1][D2] = in computeForestDist()
672 std::min({ForestDist[D1 - 1][D2] + DeletionCost, in computeForestDist()
675 TreeDist[D1][D2] = ForestDist[D1][D2]; in computeForestDist()
677 ForestDist[D1][D2] = in computeForestDist()
[all …]