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

Method dual

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

Source from the content-addressed store, hash-verified

147 }
148
149 public Type dual() {
150 return switch( _type ) {
151 case TBOT -> TOP;
152 case TTOP -> BOTTOM;
153 case TCTRL -> XCONTROL;
154 case TXCTRL -> CONTROL;
155 default -> throw Utils.TODO(); // Should not reach here
156 };
157 }
158
159 // ----------------------------------------------------------
160 // Our lattice is defined with a MEET and a DUAL.

Callers 5

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

Calls 1

TODOMethod · 0.95

Tested by 2

check_symmetricMethod · 0.76
testTypeAdHocMethod · 0.36