Construction of minimal SSA form