On the greedy algorithm for satisfiability