Bridging Constraint Satisfaction and Boolean Satisfiability