Invariant generation, one state and two state