finished solver for propositional formulas