srecord noeq FindAllLSFRTriplets(int bits) { event tripletFound(int[] triplet); L get() { var iterator = outerProduct(repF(3, -> virtualCountList(1, bits))); new L workingTriples; for (L t : iterator) { int[] triple = new int[] {t.get(0), t.get(1), t.get(2)}; CheckLSFRTriplet checker = new(bits, triple); if (checker!) { workingTriples.add(triple); tripleFound(triple); } } ret workingTriples; } }