Optionally print the inductive invariant and check if it is actually invariant