MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / find

Method find

util/unionfind.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22unsigned UnionFind::find(unsigned i) {
23 unsigned root = i;
24 while (root != id[root])
25 root = id[root];
26 id[i] = root;
27 return root;
28}
29
30unsigned UnionFind::merge(unsigned p, unsigned q) {
31 unsigned i = find(p);

Callers 15

alive_parser.cppFile · 0.80
can_remove_initFunction · 0.80
preprocessMethod · 0.80
overlapsMethod · 0.80
isLargerThanInclReadsMethod · 0.80
mkIfMethod · 0.80
state.cppFile · 0.80
atMethod · 0.80
jumpCondFromMethod · 0.80
getPathMethod · 0.80
copyUBFromMethod · 0.80
copyUBFromBBMethod · 0.80

Calls

no outgoing calls

Tested by 5

substituteIfElseFunction · 0.64
is_timeoutFunction · 0.64
is_incompleteFunction · 0.64
id_checkFunction · 0.64
executeMethod · 0.64