How to write a constraint for xor gate?

In reply to rraa:

Because there are no constraints on the input to an XOR gate.