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

Method gather

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

Source from the content-addressed store, hash-verified

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

Callers 1

testLatticeTheoryMethod · 0.95

Calls 10

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