- ir_node *succ = sched_next(in);
- while(succ != node && !sched_is_end(succ)) {
- /* the node in between has to be another input of the
- * keep or a Proj */
- int i2;
- int found = 0;
-
- if(is_Proj(succ)) {
- succ = sched_next(succ);
- continue;
- }
-
- for(i2 = 0; i2 < arity; ++i2) {
- ir_node *in2 = get_irn_n(node, i2);
- if(in2 == succ) {
- found = 1;
- break;
- }
- }
- if(!found)
- problem = 1;
-
- succ = sched_next(succ);
- }