14 lines
272 B

#include "test_I.h"
int test_I_logorc2 (int iterations)
{
int error = 0;
int i;
// Check against logior.
for (i = iterations; i > 0; i--) {
cl_I a = testrandom_I();
cl_I b = testrandom_I();
ASSERT2(logorc2(a,b) == logior(a,lognot(b)), a,b);
}
return error;
}