This commit is contained in:
2026-03-26 16:01:14 +03:00
parent 70779c3c4e
commit 2907e57797
5 changed files with 94 additions and 23 deletions

View File

@@ -79,4 +79,6 @@ private:
Region* header;
};
void TopologySort(std::vector<Region*>& basikBlocks, Region* header);
bool HasCycle(Region* block, const std::unordered_set<Region*>& cycleBlocks, std::unordered_set<Region*>& visitedBlocks);
bool TopologySort(std::vector<Region*>& basikBlocks, Region* header);