#include "emp-tool/emp-tool.h" #include using namespace std; using namespace emp; void test_bit() { bool b[] = {true, false}; int p[] = {PUBLIC, ALICE, BOB}; for(int i = 0; i < 2; ++i) for(int j = 0; j < 3; ++j) for(int k = 0; k < 2; ++k) for (int l= 0; l < 3; ++l) { { Bit b1(b[i], p[j]); Bit b2(b[k], p[l]); bool res = (b1&b2).reveal(PUBLIC); if(res != (b[i] and b[k])) { cout<<"AND" <