-
-induct_var_info *is_induction_variable (induct_var_info *info) {
-
- int i;
- int op_pred, Store_in_op, Store_in_phi, cmp_in_phi;
-
- info->c = NULL;
- info->cmp = NULL;
- info->cmp_const = NULL;
- info->cmp_init_block = NULL;
- info->increment = NULL;
- info->init = NULL;
- info->l_itervar_phi = NULL;
- info->new_add = NULL;
- info->new_cmp = NULL;
- info->new_increment = NULL;
- info->new_init = NULL;
- info->new_op = NULL;
- info->new_phi = NULL;
- info->operation_code = NULL;
- info->op = NULL;
- info->old_ind = NULL;
- info->reducible_node = NULL;
- info->out_loop_res = 1;
- info->reducible = 0;
- info->phi_pred = 0;
- info->strong_reduced = 0;
- info->init_pred_pos = -1;
- info->op_pred_pos = -1;
+induct_var_info *is_induction_variable(induct_var_info *info) {
+
+ int i, q, r;
+ int op_pred, Store_in_op, Store_in_phi;
+ ir_node *cmp_pred_bl, *cond_succ_0, *cond_succ_1, *cmp_const;
+ ir_node *loop_head;
+ ir_node *cmp_const_block;
+
+ info->cmp = NULL; /* Cmp wich breake the loop and compare iteration variable with a constant.*/
+ info->cmp_const = NULL; /* The oder operand of Cmp. */
+ info->cmp_init_block = NULL; /* The block of cmp.*/
+ info->increment = NULL; /* The volue wich increase or decrease the iteration variable.*/
+ info->init = NULL; /* The start volue of the iteration variable.*/
+ info->l_itervar_phi = NULL; /* The iteration variable.*/
+ info->new_cmp = NULL; /* The new cmp wich replace the old one.*/
+ info->new_increment = NULL; /* The new increment wich replece the old one.*/
+ info->new_init = NULL; /* The new init of the iteration varible.*/
+ info->new_op = NULL; /* The new operation that we need after replece.*/
+ info->new_phi = NULL; /* The new iteration variable.*/
+ info->operation_code = NULL; /* The operation art of "op"*/
+ info->op = NULL; /* The operation wich increase or decrease the iteration variable.*/
+ info->reducible_node = NULL; /* The reducible nodes are save here.*/
+ info->reducible = 0; /* To save information if enything is redicible.*/
+ info->phi_pred = 0; /* To save the volue of iteration variable predecessors.*/
+ info->init_pred_pos = -1; /* To save the position of iteration variable start volue.*/
+ info->op_pred_pos = -1; /* To save the backedge of iteration variable.*/