Text this: Counterexample-guided precondition inference