Circle test with two halves containing tansitions