Exploration of language specifications by compilation to first-order logic