// invar_check_02

// This test checks that loop invariants adequately handle continues.

#include <assert.h>

int main()
{
  int r;
  __CPROVER_assume(r >= 0);

  while(r > 0)
    __CPROVER_loop_invariant(r >= 0)
  { 
    --r;
    if (r < 5)
    {
      continue;
    }
    else
    {
      --r;
    }
  }

  assert(r == 0);

  return 0;
}
