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

Method join

chapter11/src/main/java/com/seaofnodes/simple/type/Type.java:162–165  ·  view source on GitHub ↗
(Type t)

Source from the content-addressed store, hash-verified

160 // Our lattice is defined with a MEET and a DUAL.
161 // JOIN is dual of meet of both duals.
162 public final Type join(Type t) {
163 if( this==t ) return this;
164 return dual().meet(t.dual()).dual();
165 }
166
167 // True if this "isa" t; e.g. 17 isa TypeInteger.BOT
168 public boolean isa( Type t ) { return meet(t)==t; }

Callers 4

testTypeAdHocMethod · 0.45
testLatticeTheoryMethod · 0.45
computeMethod · 0.45
peepholeOptMethod · 0.45

Calls 2

dualMethod · 0.95
meetMethod · 0.45

Tested by 2

testTypeAdHocMethod · 0.36
testLatticeTheoryMethod · 0.36