Assertions and flag reset