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

Method gather

chapter15/src/main/java/com/seaofnodes/simple/type/Type.java:54–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 public static final Type CONTROL = new Type( TCTRL ).intern(); // Ctrl
53 public static final Type XCONTROL = new Type( TXCTRL ).intern(); // ~Ctrl
54 public static Type[] gather() {
55 ArrayList<Type> ts = new ArrayList<>();
56 ts.add(BOTTOM);
57 ts.add(CONTROL);
58 Field.gather(ts);
59 TypeInteger.gather(ts);
60 TypeFloat.gather(ts);
61 TypeMem.gather(ts);
62 TypeMemPtr.gather(ts);
63 TypeStruct.gather(ts);
64 TypeTuple.gather(ts);
65 int sz = ts.size();
66 for( int i = 0; i < sz; i++ )
67 ts.add(ts.get(i).dual());
68 return ts.toArray(new Type[ts.size()]);
69 }
70
71 // Is high or on the lattice centerline.
72 public boolean isHigh () { return _type==TTOP || _type==TXCTRL; }

Callers 1

testLatticeTheoryMethod · 0.95

Calls 11

gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
gatherMethod · 0.95
addMethod · 0.45
sizeMethod · 0.45
dualMethod · 0.45
getMethod · 0.45

Tested by 1

testLatticeTheoryMethod · 0.76