MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / union

Method union

chapter20/src/main/java/com/seaofnodes/simple/codegen/LRG.java:109–115  ·  view source on GitHub ↗
( LRG lrg )

Source from the content-addressed store, hash-verified

107 assert leader();
108 if( lrg==null ) return this;
109 lrg = lrg.find();
110 if( lrg==this ) return this;
111 return _lrg < lrg._lrg ? _union(lrg) : lrg._union(this);
112 }
113 // Union `this` and `lrg`, folding together all stats.
114 private LRG _union( LRG lrg ) {
115 // Set U-F leader
116 lrg._leader = this;
117 // Fold together stats
118 if( _machDef==null ) {

Callers 1

runMethod · 0.45

Calls 3

leaderMethod · 0.95
_unionMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected