#expect 42
#expect 46
-#ship alu : Alu2
+#ship alu : Alu
#ship debug : Debug
-alu.inOp: literal Alu2.inOp[ADD];
- [*] deliver;
-alu.out: clog;
- load loop counter with 40;
- take, sendto alu.in1;
- sendto debug.in;
- decrement loop counter;
- unclog;
-debug.in: [*] take, deliver;
+alu.inOp: set word=Alu.inOp[ADD];
+ set ilc=*; deliver;
-alu.in2: literal 4;
- [*] deliver;
-alu.in1: literal 2;
- load repeat counter with 4; deliver;
- clog;
- load loop counter with 2;
- take, deliver;
- discard;
+debug.in: set ilc=41; recv, deliver, send token to alu.out;
+
+alu.in2: set word= 4;
+ set ilc=*; deliver;
+
+alu.out: set olc=40;
+ head;
+ collect, send to alu.in1;
+ send to debug.in;
+ recv token;
+ tail;
+
+alu.in1: set word= 2;
+ set ilc=4;
deliver;
- unclog;
+ set olc=2;
+ head;
+ recv, deliver;
+ recv nothing, deliver;
+ tail;