Analysis on Control-flow Structures