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

Method gather

chapter14/src/main/java/com/seaofnodes/simple/type/Type.java:53–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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