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

Method dual

chapter19/src/main/java/com/seaofnodes/simple/type/Type.java:171–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169 }
170
171 public Type dual() {
172 return switch( _type ) {
173 case TBOT -> TOP;
174 case TTOP -> BOTTOM;
175 case TCTRL ->XCONTROL;
176 case TXCTRL-> CONTROL;
177 case TNIL ->XNIL;
178 case TXNIL -> NIL;
179 default -> throw Utils.TODO(); // Should not reach here
180 };
181 }
182
183 // ----------------------------------------------------------
184 // 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