fix: 0 divides constraint in `grind`

This PR fixes nontermination in `grind` triggered by constraints of the form `0 ∣ p`.
5 files changed