dependence analysis fixed, detecting the correct dependences order