Automatic synthesis of optimal invariant assertions | Synapse