I need to verify the validity of this correctness statement by adding any intermediate assertions and inferencing , however I have never seen a statement where the last assertion is the same as the first, so am just a little lost on where to go.
ASSERT( x == y*(y+1)/2 )
y = y + 1;
x = x + y;
ASSERT( x == y*(y+1)/2 )