I am trying to solve some nonlinear equation on boolean variables and at the same time I want to compute the hamming weight (i.e. involve normal addition of boolean variables).<