The following is a valid µOCCAM program that performs I/O. This tests replicated ALTs
Program file:
/public/cs3/web/ipptests/repalttest.io
[10]CHAN pipe: PAR INT a: SEQ stdin ? a pipe[a] ! 1 INT a: ALT i = 0 FOR 10 pipe[i] ? a stdout ! i
When provided with this input:
/public/cs3/web/ipptests/repalttest.in
4
it should generate the following output:
/public/cs3/web/ipptests/repalttest.out
==> 4