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

Method dual

chapter21/src/main/java/com/seaofnodes/simple/type/Type.java:172–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 11

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
computeMethod · 0.45

Calls 1

TODOMethod · 0.95

Tested by 3

check_symmetricMethod · 0.76
testCyclic0Method · 0.76
testTypeAdHocMethod · 0.36