FOR j:
CARD
IN [1..32767]
DO
[refQuotient, refRemainder] ← Basics.LongDivMod[j, i];
[testQuotient, testRemainder, testOK] ← TamarinDivide.Divide[i, j];
IF (refQuotient # testQuotient) OR (refRemainder # testRemainder) THEN SIGNAL BadResult[];
ENDLOOP;