solve constraints using SAT solver