fix analysis dependence order

also fix getLoopCycle() out_of_range exception

Signed-off-by: xiehuc <xiehuc@gmail.com>