Currently I was working with FHE scheme and used HElib to do homomorphic logical operation like the formal question described Homomorphic encryption methods that could support logical XOR, AND?. But now I'm facing a new problem. When I do multi times calculation (the situation is a circuit calculation that has to be used many times), the result is getting wrong. For instance: there are 3 bits a,b,c, and the formula is a = a*b+c, each time 'a' is updated, b , c is fixed value. When the process is repeated many times, the final 'a' is decrypted to a wrong value. Could someone tell me the reason, and are there any methods that could skip this problem?
By the way, this is one of the problem mentioned in the terminal: Ctxt::bringToSet called with capacity=-101.861, likely decryption error Ctxt::bringToSet called with empty set and capacity=63.5502, this is likely a bug