Files @ 966ebed86908
Branch filter:

Location: CSY/reowolf/testdata/parser/positive/11.pdl

Christopher Esterhuyse
simplified the cyclic drainer because it was unnecessarily complex. added a unit test. added some future-proofing for corner case protocols
#version 100

primitive main(in a, out b) {
	msg x = null;
	while (x == null) {
		synchronous {
			if (fires(a))
				x = get(a);
		}
	}
	while (true) {
		synchronous {
			if (fires(b))
				put(b, x);
		}
	}
}