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

Method dual

chapter22/src/main/java/com/seaofnodes/simple/type/Type.java:175–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 public Type dual() {
176 return switch( _type ) {
177 case TBOT -> TOP;
178 case TTOP -> BOTTOM;
179 case TCTRL ->XCONTROL;
180 case TXCTRL-> CONTROL;
181 case TNIL ->XNIL;
182 case TXNIL -> NIL;
183 default -> throw Utils.TODO(); // Should not reach here
184 };
185 }
186
187 // ----------------------------------------------------------
188 // Our lattice is defined with a MEET and a DUAL.

Callers 10

check_symmetricMethod · 0.95
testCyclic0Method · 0.95
joinMethod · 0.95
testTypeAdHocMethod · 0.45
gatherMethod · 0.45
computeMethod · 0.45
computeMethod · 0.45
computeMethod · 0.45
computeMethod · 0.45
computeMethod · 0.45

Calls 1

TODOMethod · 0.95

Tested by 3

check_symmetricMethod · 0.76
testCyclic0Method · 0.76
testTypeAdHocMethod · 0.36