Applying the Davis-Putnam procedure to non-clausal formulas