#include <OOC/SSA/Schedule.d>
#include <__oo2c.h>
#include <setjmp.h>

void OOC_SSA_Schedule__InitInfo(OOC_SSA_Schedule__Info info) {

  return;
  ;
}

static void OOC_SSA_Schedule__InitBlock(OOC_SSA_Schedule__Block b, OOC_SSA_Schedule__Block dominator) {
  register OOC_INT64 i0,i1,i2;

  i0 = (OOC_INT64)b;
  *(OOC_INT64*)((_check_pointer(i0, 5806))+16) = (OOC_INT64)0;
  *(OOC_INT64*)((_check_pointer(i0, 5831))+24) = (OOC_INT64)0;
  i1 = (OOC_INT64)dominator;
  *(OOC_INT64*)((_check_pointer(i0, 5856))+8) = i1;
  i2 = i1!=(OOC_INT64)0;
  if (i2) goto l3;
  *(OOC_INT64*)(_check_pointer(i0, 5996)) = (OOC_INT64)0;
  goto l4;
l3:
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 5938))+32);
  *(OOC_INT64*)(_check_pointer(i0, 5916)) = i2;
  *(OOC_INT64*)((_check_pointer(i1, 5964))+32) = i0;
l4:
  *(OOC_INT64*)((_check_pointer(i0, 6028))+32) = (OOC_INT64)0;
  *(OOC_INT64*)((_check_pointer(i0, 6051))+40) = (OOC_INT64)0;
  *(OOC_INT32*)((_check_pointer(i0, 6080))+48) = 0;
  *(OOC_INT64*)((_check_pointer(i0, 6102))+56) = (OOC_INT64)0;
  *(OOC_INT32*)((_check_pointer(i0, 6131))+64) = 0;
  *(OOC_UINT8*)((_check_pointer(i0, 6153))+52) = 0u;
  *(OOC_INT32*)((_check_pointer(i0, 6181))+68) = (-1);
  *(OOC_INT64*)((_check_pointer(i0, 6198))+72) = (OOC_INT64)0;
  return;
  ;
}

void OOC_SSA_Schedule__BlockDesc_SetInfo(OOC_SSA_Schedule__Block b, OOC_SSA_Schedule__Info info) {
  register OOC_INT64 i0,i1,i2;
  OOC_SSA_Schedule__Block nested;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)info;
  *(OOC_INT64*)((_check_pointer(i0, 6313))+72) = i1;
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 6344))+32);
  nested = (OOC_SSA_Schedule__Block)i0;
  i2 = i0!=(OOC_INT64)0;
  if (!i2) goto l8;
l3_loop:
  OOC_SSA_Schedule__BlockDesc_SetInfo((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Info)i1);
  i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 6435));
  nested = (OOC_SSA_Schedule__Block)i0;
  i2 = i0!=(OOC_INT64)0;
  if (i2) goto l3_loop;
l8:
  return;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__BlockDesc_DefaultTarget(OOC_SSA_Schedule__Block b) {

  return (OOC_SSA_Schedule__Block)(OOC_INT64)0;
  ;
}

static void OOC_SSA_Schedule__RevertDomList(OOC_SSA_Schedule__Block b) {
  register OOC_INT64 i0,i1,i2,i3;
  OOC_SSA_Schedule__Block _new;
  OOC_SSA_Schedule__Block old;
  OOC_SSA_Schedule__Block next;

  _new = (OOC_SSA_Schedule__Block)(OOC_INT64)0;
  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 6887))+32);
  old = (OOC_SSA_Schedule__Block)i1;
  i2 = i1!=(OOC_INT64)0;
  if (i2) goto l3;
  i1=(OOC_INT64)0;
  goto l9;
l3:
  i2=(OOC_INT64)0;
l4_loop:
  i3 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 6940));
  next = (OOC_SSA_Schedule__Block)i3;
  *(OOC_INT64*)(_check_pointer(i1, 6960)) = i2;
  _new = (OOC_SSA_Schedule__Block)i1;
  old = (OOC_SSA_Schedule__Block)i3;
  i2 = i3!=(OOC_INT64)0;
  if (!i2) goto l9;
  i2=i1;i1=i3;
  goto l4_loop;
l9:
  *(OOC_INT64*)((_check_pointer(i0, 7029))+32) = i1;
  return;
  ;
}

static void OOC_SSA_Schedule__ClearJump(OOC_SSA_Schedule__Jump reference) {
  register OOC_INT64 i0,i1,i2;
  auto void OOC_SSA_Schedule__ClearJump_Remove(OOC_SSA_Schedule__Jump *list, OOC_SSA_Schedule__Jump entry);
    
    void OOC_SSA_Schedule__ClearJump_Remove(OOC_SSA_Schedule__Jump *list, OOC_SSA_Schedule__Jump entry) {
      register OOC_INT64 i0,i1,i2;

      i0 = (OOC_INT64)*list;
      i1 = (OOC_INT64)entry;
      i2 = i0==i1;
      if (i2) goto l3;
      OOC_SSA_Schedule__ClearJump_Remove((void*)((_check_pointer(i0, 7264))+16), (OOC_SSA_Schedule__Jump)i1);
      goto l4;
l3:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7217))+16);
      *list = (OOC_SSA_Schedule__Jump)i0;
l4:
      return;
      ;
    }


  i0 = (OOC_INT64)reference;
  _assert((i0!=(OOC_INT64)0), 127, 7330);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7374))+8);
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7374))+8);
  i2 = *(OOC_INT32*)((_check_pointer(i2, 7380))+64);
  *(OOC_INT32*)((_check_pointer(i1, 7380))+64) = (i2-1);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7414))+8);
  OOC_SSA_Schedule__ClearJump_Remove((void*)((_check_pointer(i1, 7420))+56), (OOC_SSA_Schedule__Jump)i0);
  return;
  ;
}

static void OOC_SSA_Schedule__SetJump(OOC_SSA_Schedule__Jump *reference, OOC_SSA_Schedule__Block src, OOC_SSA_Schedule__Block dest) {
  register OOC_INT64 i0,i1,i2;
  auto OOC_SSA_Schedule__Jump OOC_SSA_Schedule__SetJump_NewJump(OOC_SSA_Schedule__Block src, OOC_SSA_Schedule__Block dest, OOC_SSA_Schedule__Jump nextTargetUse);
    
    OOC_SSA_Schedule__Jump OOC_SSA_Schedule__SetJump_NewJump(OOC_SSA_Schedule__Block src, OOC_SSA_Schedule__Block dest, OOC_SSA_Schedule__Jump nextTargetUse) {
      register OOC_INT64 i0,i1;
      OOC_SSA_Schedule__Jump j;

      i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__Jump.baseTypes[0]);
      j = (OOC_SSA_Schedule__Jump)i0;
      i1 = (OOC_INT64)src;
      *(OOC_INT64*)(_check_pointer(i0, 7649)) = i1;
      i1 = (OOC_INT64)dest;
      *(OOC_INT64*)((_check_pointer(i0, 7670))+8) = i1;
      i1 = (OOC_INT64)nextTargetUse;
      *(OOC_INT64*)((_check_pointer(i0, 7693))+16) = i1;
      *(OOC_UINT8*)((_check_pointer(i0, 7734))+24) = 0u;
      return (OOC_SSA_Schedule__Jump)i0;
      ;
    }


  i0 = (OOC_INT64)*reference;
  _assert((i0==(OOC_INT64)0), 127, 7808);
  i0 = (OOC_INT64)dest;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 7847))+64);
  *(OOC_INT32*)((_check_pointer(i0, 7847))+64) = (i1+1);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7901))+56);
  i2 = (OOC_INT64)src;
  i0 = (OOC_INT64)OOC_SSA_Schedule__SetJump_NewJump((OOC_SSA_Schedule__Block)i2, (OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Jump)i1);
  *reference = (OOC_SSA_Schedule__Jump)i0;
  i1 = (OOC_INT64)dest;
  *(OOC_INT64*)((_check_pointer(i1, 7927))+56) = i0;
  return;
  ;
}

OOC_CHAR8 OOC_SSA_Schedule__Dominates(OOC_SSA_Schedule__Block dominator, OOC_SSA_Schedule__Block child) {
  register OOC_INT64 i0,i1,i2;

  i0 = (OOC_INT64)child;
  i1 = i0!=(OOC_INT64)0;
  if (i1) goto l3;
  i1=0u;
  goto l5;
l3:
  i1 = (OOC_INT64)dominator;
  i1 = i0!=i1;
  
l5:
  if (!i1) goto l17;
  i1 = (OOC_INT64)dominator;
  
l8_loop:
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 8106))+8);
  child = (OOC_SSA_Schedule__Block)i0;
  i2 = i0!=(OOC_INT64)0;
  if (i2) goto l11;
  i2=0u;
  goto l13;
l11:
  i2 = i0!=i1;
  
l13:
  if (i2) goto l8_loop;
l17:
  return (i0!=(OOC_INT64)0);
  ;
}

void OOC_SSA_Schedule__ChangeJumpTarget(OOC_SSA_Schedule__Jump reference, OOC_SSA_Schedule__Block dest) {
  register OOC_INT64 i0,i1,i2,i3;

  i0 = (OOC_INT64)reference;
  _assert((i0!=(OOC_INT64)0), 127, 8239);
  OOC_SSA_Schedule__ClearJump((OOC_SSA_Schedule__Jump)i0);
  i1 = (OOC_INT64)dest;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 8315))+64);
  *(OOC_INT32*)((_check_pointer(i1, 8315))+64) = (i2+1);
  *(OOC_INT64*)((_check_pointer(i0, 8341))+8) = i1;
  i2 = _check_pointer(i0, 8370);
  i3 = *(OOC_UINT8*)((_check_pointer(i1, 8402))+52);
  if (i3) goto l3;
  i3=0u;
  goto l4;
l3:
  i3 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 8443));
  i3 = OOC_SSA_Schedule__Dominates((OOC_SSA_Schedule__Block)i1, (OOC_SSA_Schedule__Block)i3);
  
l4:
  *(OOC_UINT8*)(i2+24) = i3;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 8487))+56);
  *(OOC_INT64*)((_check_pointer(i0, 8464))+16) = i2;
  *(OOC_INT64*)((_check_pointer(i1, 8517))+56) = i0;
  return;
  ;
}

static void OOC_SSA_Schedule__ChangeTargets(OOC_SSA_Schedule__Block oldTarget, OOC_SSA_Schedule__Block newTarget) {
  register OOC_INT64 i0,i1,i2;

  i0 = (OOC_INT64)oldTarget;
  i1 = (OOC_INT64)newTarget;
  _assert((i0!=i1), 127, 8713);
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 8766))+56);
  i2 = i2!=(OOC_INT64)0;
  if (!i2) goto l8;
l3_loop:
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 8825))+56);
  OOC_SSA_Schedule__ChangeJumpTarget((OOC_SSA_Schedule__Jump)i2, (OOC_SSA_Schedule__Block)i1);
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 8766))+56);
  i2 = i2!=(OOC_INT64)0;
  if (i2) goto l3_loop;
l8:
  return;
  ;
}

static void OOC_SSA_Schedule__InitBranchBlock(OOC_SSA_Schedule__BranchBlock b, OOC_SSA_Schedule__Block dominator, OOC_SSA__Opnd predicate, OOC_CHAR8 branchOnTrue) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitBlock((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  *(OOC_INT64*)((_check_pointer(i0, 9062))+80) = (OOC_INT64)0;
  i1 = (OOC_INT64)predicate;
  *(OOC_INT64*)((_check_pointer(i0, 9082))+88) = i1;
  i1 = branchOnTrue;
  *(OOC_UINT8*)((_check_pointer(i0, 9112))+96) = i1;
  *(OOC_INT64*)((_check_pointer(i0, 9149))+104) = (OOC_INT64)0;
  return;
  ;
}

static OOC_SSA_Schedule__BranchBlock OOC_SSA_Schedule__NewBranchBlock(OOC_SSA_Schedule__Block dominator, OOC_SSA__Opnd predicate, OOC_CHAR8 branchOnTrue) {
  register OOC_INT64 i0,i1,i2,i3;

  i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__BranchBlock.baseTypes[0]);
  i1 = (OOC_INT64)dominator;
  i2 = (OOC_INT64)predicate;
  i3 = branchOnTrue;
  OOC_SSA_Schedule__InitBranchBlock((OOC_SSA_Schedule__BranchBlock)i0, (OOC_SSA_Schedule__Block)i1, (OOC_SSA__Opnd)i2, i3);
  return (OOC_SSA_Schedule__BranchBlock)i0;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__BranchBlockDesc_DefaultTarget(OOC_SSA_Schedule__BranchBlock b) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9533))+104);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 9543))+8);
  i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 9550)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
  if (i1) goto l3;
  i1=0u;
  goto l5;
l3:
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9574))+104);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 9584))+8);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer((_type_guard(i1, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 9591)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 9591)), 9601))+80);
  i1 = *(OOC_UINT8*)((_check_pointer(i1, 9607))+24);
  
l5:
  if (i1) goto l7;
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9684))+80);
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9690))+8);
  return (OOC_SSA_Schedule__Block)i0;
  goto l8;
l7:
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9643))+104);
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9653))+8);
  return (OOC_SSA_Schedule__Block)i0;
l8:
  _failed_function(9491); return 0;
  ;
}

static void OOC_SSA_Schedule__InitJumpBlock(OOC_SSA_Schedule__JumpBlock b, OOC_SSA_Schedule__Block dominator) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitBlock((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  *(OOC_INT64*)((_check_pointer(i0, 9831))+80) = (OOC_INT64)0;
  return;
  ;
}

static OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__NewJumpBlock(OOC_SSA_Schedule__Block dominator) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__JumpBlock.baseTypes[0]);
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitJumpBlock((OOC_SSA_Schedule__JumpBlock)i0, (OOC_SSA_Schedule__Block)i1);
  return (OOC_SSA_Schedule__JumpBlock)i0;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__JumpBlockDesc_DefaultTarget(OOC_SSA_Schedule__JumpBlock b) {
  register OOC_INT64 i0;

  i0 = (OOC_INT64)b;
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 10104))+80);
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 10110))+8);
  return (OOC_SSA_Schedule__Block)i0;
  ;
}

static void OOC_SSA_Schedule__InitDeadEndBlock(OOC_SSA_Schedule__DeadEndBlock b, OOC_SSA_Schedule__Block dominator) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitBlock((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  return;
  ;
}

static OOC_SSA_Schedule__DeadEndBlock OOC_SSA_Schedule__NewDeadEndBlock(OOC_SSA_Schedule__Block dominator) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__DeadEndBlock.baseTypes[0]);
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitDeadEndBlock((OOC_SSA_Schedule__DeadEndBlock)i0, (OOC_SSA_Schedule__Block)i1);
  return (OOC_SSA_Schedule__DeadEndBlock)i0;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__DeadEndBlockDesc_DefaultTarget(OOC_SSA_Schedule__DeadEndBlock b) {

  return (OOC_SSA_Schedule__Block)(OOC_INT64)0;
  ;
}

static void OOC_SSA_Schedule__InitSwitchBlock(OOC_SSA_Schedule__SwitchBlock b, OOC_SSA_Schedule__Block dominator, OOC_SSA__Opnd expr, OOC_INT32 paths) {
  register OOC_INT64 i0,i1,i2,i3,i4;
  OOC_INT32 i;

  i0 = (OOC_INT64)b;
  i1 = (OOC_INT64)dominator;
  OOC_SSA_Schedule__InitBlock((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  i1 = (OOC_INT64)expr;
  *(OOC_INT64*)((_check_pointer(i0, 10734))+80) = i1;
  i1 = paths;
  *(OOC_INT64*)((_check_pointer(i0, 10760))+88) = ((OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__5412.baseTypes[0], i1));
  *(OOC_INT64*)((_check_pointer(i0, 10786))+96) = ((OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__5453.baseTypes[0], i1));
  *(OOC_INT64*)((_check_pointer(i0, 10817))+104) = ((OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__5501.baseTypes[0], i1));
  i = 0;
  i2 = 0<i1;
  if (!i2) goto l8;
  i2=0;
l3_loop:
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 10875))+88);
  i3 = _check_pointer(i3, 10881);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT64*)(i3+(_check_index(i2, i4, OOC_UINT32, 10881))*8) = (OOC_INT64)0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 10894))+96);
  i3 = _check_pointer(i3, 10905);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT64*)(i3+(_check_index(i2, i4, OOC_UINT32, 10905))*8) = (OOC_INT64)0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 10918))+104);
  i3 = _check_pointer(i3, 10930);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT64*)(i3+(_check_index(i2, i4, OOC_UINT32, 10930))*8) = (OOC_INT64)0;
  i2 = i2+1;
  i = i2;
  i3 = i2<i1;
  if (i3) goto l3_loop;
l8:
  return;
  ;
}

static OOC_SSA_Schedule__SwitchBlock OOC_SSA_Schedule__NewSwitchBlock(OOC_SSA_Schedule__Block dominator, OOC_SSA__Opnd expr, OOC_INT32 paths) {
  register OOC_INT64 i0,i1,i2,i3;

  i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__SwitchBlock.baseTypes[0]);
  i1 = (OOC_INT64)dominator;
  i2 = (OOC_INT64)expr;
  i3 = paths;
  OOC_SSA_Schedule__InitSwitchBlock((OOC_SSA_Schedule__SwitchBlock)i0, (OOC_SSA_Schedule__Block)i1, (OOC_SSA__Opnd)i2, i3);
  return (OOC_SSA_Schedule__SwitchBlock)i0;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__SwitchBlockDesc_DefaultTarget(OOC_SSA_Schedule__SwitchBlock b) {

  return (OOC_SSA_Schedule__Block)(OOC_INT64)0;
  ;
}

static void OOC_SSA_Schedule__InitInstrProxy(OOC_SSA_Schedule__InstrProxy proxy, OOC_SSA__Instr instr) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)proxy;
  OOC_SSA__InitNode((OOC_SSA__Node)i0);
  *(OOC_INT64*)(_check_pointer(i0, 11430)) = 0;
  *(OOC_INT64*)((_check_pointer(i0, 11459))+8) = 0;
  *(OOC_INT64*)((_check_pointer(i0, 11488))+16) = 0;
  i1 = (OOC_INT64)instr;
  *(OOC_INT64*)((_check_pointer(i0, 11513))+24) = i1;
  return;
  ;
}

static OOC_SSA_Schedule__InstrProxy OOC_SSA_Schedule__NewInstrProxy(OOC_SSA__Instr instr) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__InstrProxy.baseTypes[0]);
  i1 = (OOC_INT64)instr;
  OOC_SSA_Schedule__InitInstrProxy((OOC_SSA_Schedule__InstrProxy)i0, (OOC_SSA__Instr)i1);
  return (OOC_SSA_Schedule__InstrProxy)i0;
  ;
}

static void OOC_SSA_Schedule__AppendProxy(OOC_SSA_Schedule__Block b, OOC_SSA_Schedule__InstrProxy proxy) {
  register OOC_INT64 i0,i1,i2;

  i0 = (OOC_INT64)proxy;
  i1 = (OOC_INT64)b;
  *(OOC_INT64*)((_check_pointer(i0, 11808))+16) = i1;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11847))+24);
  *(OOC_INT64*)((_check_pointer(i0, 11831))+8) = i2;
  *(OOC_INT64*)(_check_pointer(i0, 11869)) = 0;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11898))+24);
  i2 = i2==0;
  if (i2) goto l3;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11966))+24);
  *(OOC_INT64*)(_check_pointer(i2, 11977)) = i0;
  goto l4;
l3:
  *(OOC_INT64*)((_check_pointer(i1, 11929))+16) = i0;
l4:
  *(OOC_INT64*)((_check_pointer(i1, 12012))+24) = i0;
  return;
  ;
}

static OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__TransferInstructions(OOC_SSA_Blocker__Region region, OOC_SSA_Schedule__JumpBlock block) {
  register OOC_INT64 i0,i1,i2;
  OOC_SSA_Blocker__Proxy bProxy;
  OOC_SSA_Schedule__InstrProxy proxy;
  OOC_SSA_Schedule__JumpBlock newBlock;
  auto OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__TransferInstructions_TransferSelect(OOC_SSA_Blocker__Select select, OOC_SSA_Schedule__JumpBlock block);
  auto OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__TransferInstructions_TransferLoop(OOC_SSA_Blocker__Loop loop, OOC_SSA_Schedule__JumpBlock block);
    
    OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__TransferInstructions_TransferSelect(OOC_SSA_Blocker__Select select, OOC_SSA_Schedule__JumpBlock block) {
      register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7,i8,i9,i10;
      OOC_INT32 paths;
      OOC_SSA_Schedule__SwitchBlock _switch;
      OOC_SSA__Opnd opnd;
      OOC_INT32 i;
      OOC_SSA_Schedule__JumpBlock path;
      OOC_SSA_Schedule__JumpBlock out;
      OOC_SSA_Schedule__BranchBlock branch;
      OOC_SSA_Schedule__JumpBlock path1;
      OOC_SSA_Schedule__JumpBlock path2;

      i0 = (OOC_INT64)select;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12833))+16);
      i1 = OOC_SSA__InstrDesc_IsSwitchStatm((OOC_SSA__Instr)i1);
      if (i1) goto l3;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 13836))+16);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 13874))+16);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13881))+48);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13891))+16);
      i2 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i2, 13901));
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 13843))+48);
      i2 = OOC_SSA__ResultDesc_IsBooleanConst((OOC_SSA__Result)i2, 1u);
      i3 = (OOC_INT64)block;
      i1 = (OOC_INT64)OOC_SSA_Schedule__NewBranchBlock((OOC_SSA_Schedule__Block)i3, (OOC_SSA__Opnd)i1, i2);
      branch = (OOC_SSA_Schedule__BranchBlock)i1;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i3, 13954))+80), (OOC_SSA_Schedule__Block)i3, (OOC_SSA_Schedule__Block)i1);
      i2 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i1);
      path1 = (OOC_SSA_Schedule__JumpBlock)i2;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i1, 14050))+104), (OOC_SSA_Schedule__Block)i1, (OOC_SSA_Schedule__Block)i2);
      i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14123))+104);
      i3 = _check_pointer(i3, 14130);
      i4 = OOC_ARRAY_LENGTH(i3, 0);
      i3 = (OOC_INT64)*(OOC_INT64*)(i3+(_check_index(0, i4, OOC_UINT8, 14130))*8);
      i2 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i3, (OOC_SSA_Schedule__JumpBlock)i2);
      path1 = (OOC_SSA_Schedule__JumpBlock)i2;
      i3 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i1);
      path2 = (OOC_SSA_Schedule__JumpBlock)i3;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i1, 14215))+80), (OOC_SSA_Schedule__Block)i1, (OOC_SSA_Schedule__Block)i3);
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14284))+104);
      i0 = _check_pointer(i0, 14291);
      i4 = OOC_ARRAY_LENGTH(i0, 0);
      i0 = (OOC_INT64)*(OOC_INT64*)(i0+(_check_index(1, i4, OOC_UINT8, 14291))*8);
      i0 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i0, (OOC_SSA_Schedule__JumpBlock)i3);
      path2 = (OOC_SSA_Schedule__JumpBlock)i0;
      i1 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i1);
      out = (OOC_SSA_Schedule__JumpBlock)i1;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i2, 14373))+80), (OOC_SSA_Schedule__Block)i2, (OOC_SSA_Schedule__Block)i1);
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i0, 14416))+80), (OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
      return (OOC_SSA_Schedule__JumpBlock)i1;
      goto l20;
l3:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12940))+16);
      i1 = OOC_SSA__InstrDesc_CountOpndClass((OOC_SSA__Instr)i1, 16);
      paths = i1;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 13026))+16);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13033))+48);
      i3 = (OOC_INT64)block;
      i2 = (OOC_INT64)OOC_SSA_Schedule__NewSwitchBlock((OOC_SSA_Schedule__Block)i3, (OOC_SSA__Opnd)i2, i1);
      _switch = (OOC_SSA_Schedule__SwitchBlock)i2;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i3, 13075))+80), (OOC_SSA_Schedule__Block)i3, (OOC_SSA_Schedule__Block)i2);
      i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 13122))+16);
      i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i3, 13129))+48);
      i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i3, 13139))+16);
      opnd = (OOC_SSA__Opnd)i3;
      i = 0;
      i4 = 0<i1;
      if (!i4) goto l11;
      i5=i3;i3=0;
l6_loop:
      i6 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13200))+104);
      i6 = _check_pointer(i6, 13212);
      i7 = OOC_ARRAY_LENGTH(i6, 0);
      *(OOC_INT64*)(i6+(_check_index(i3, i7, OOC_UINT32, 13212))*8) = i5;
      i6 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i2);
      path = (OOC_SSA_Schedule__JumpBlock)i6;
      i7 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13302))+88);
      i7 = _check_pointer(i7, 13308);
      i8 = OOC_ARRAY_LENGTH(i7, 0);
      OOC_SSA_Schedule__SetJump((void*)(i7+(_check_index(i3, i8, OOC_UINT32, 13308))*8), (OOC_SSA_Schedule__Block)i2, (OOC_SSA_Schedule__Block)i6);
      i7 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13344))+96);
      i7 = _check_pointer(i7, 13355);
      i8 = OOC_ARRAY_LENGTH(i7, 0);
      i9 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 13390))+104);
      i9 = _check_pointer(i9, 13396);
      i10 = OOC_ARRAY_LENGTH(i9, 0);
      i9 = (OOC_INT64)*(OOC_INT64*)(i9+(_check_index(i3, i10, OOC_UINT32, 13396))*8);
      i6 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i9, (OOC_SSA_Schedule__JumpBlock)i6);
      *(OOC_INT64*)(i7+(_check_index(i3, i8, OOC_UINT32, 13355))*8) = i6;
      i5 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i5, 13430))+16);
      i5 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i5, 13440))+16);
      opnd = (OOC_SSA__Opnd)i5;
      i3 = i3+1;
      i = i3;
      i6 = i3<i1;
      if (i6) goto l6_loop;
l11:
      i0 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i2);
      out = (OOC_SSA_Schedule__JumpBlock)i0;
      i = 0;
      if (!i4) goto l19;
      i3=0;
l14_loop:
      i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13570))+96);
      i4 = _check_pointer(i4, 13581);
      i5 = OOC_ARRAY_LENGTH(i4, 0);
      i4 = (OOC_INT64)*(OOC_INT64*)(i4+(_check_index(i3, i5, OOC_UINT32, 13581))*8);
      i5 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 13598))+96);
      i5 = _check_pointer(i5, 13609);
      i6 = OOC_ARRAY_LENGTH(i5, 0);
      i5 = (OOC_INT64)*(OOC_INT64*)(i5+(_check_index(i3, i6, OOC_UINT32, 13609))*8);
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i4, 13584))+80), (OOC_SSA_Schedule__Block)i5, (OOC_SSA_Schedule__Block)i0);
      i3 = i3+1;
      i = i3;
      i4 = i3<i1;
      if (i4) goto l14_loop;
l19:
      OOC_SSA_Schedule__RevertDomList((OOC_SSA_Schedule__Block)i2);
      return (OOC_SSA_Schedule__JumpBlock)i0;
l20:
      _failed_function(12587); return 0;
      ;
    }

    
    OOC_SSA_Schedule__JumpBlock OOC_SSA_Schedule__TransferInstructions_TransferLoop(OOC_SSA_Blocker__Loop loop, OOC_SSA_Schedule__JumpBlock block) {
      register OOC_INT64 i0,i1,i2;
      OOC_SSA_Schedule__JumpBlock body;
      OOC_SSA_Schedule__JumpBlock bodyEnd;
      OOC_SSA__Instr loopEnd;
      OOC_SSA_Schedule__JumpBlock out;
      OOC_SSA__Opnd opnd;
      OOC_SSA_Schedule__JumpBlock exit;

      i0 = (OOC_INT64)block;
      i1 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i0);
      body = (OOC_SSA_Schedule__JumpBlock)i1;
      *(OOC_UINT8*)((_check_pointer(i1, 14772))+52) = 1u;
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i0, 14814))+80), (OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
      i0 = (OOC_INT64)loop;
      i2 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i0, (OOC_SSA_Schedule__JumpBlock)i1);
      bodyEnd = (OOC_SSA_Schedule__JumpBlock)i2;
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14910))+16);
      loopEnd = (OOC_SSA__Instr)i0;
      _assert((i0!=(OOC_INT64)0), 127, 14925);
      OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i2, 14971))+80), (OOC_SSA_Schedule__Block)i2, (OOC_SSA_Schedule__Block)i1);
      i1 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i1);
      out = (OOC_SSA_Schedule__JumpBlock)i1;
      i0 = (OOC_INT64)OOC_SSA__InstrDesc_NthOpnd((OOC_SSA__Instr)i0, 2);
      opnd = (OOC_SSA__Opnd)i0;
      i2 = i0!=(OOC_INT64)0;
      if (i2) goto l3;
      i2=0u;
      goto l5;
l3:
      i2 = *(OOC_INT8*)((_check_pointer(i0, 15382))+8);
      i2 = i2==11;
      
l5:
      if (!i2) goto l16;
l7_loop:
      i2 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 15431));
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 15436))+16);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 15443))+32);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer((_type_guard(i2, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i2, 15450)))), &_td_OOC_SSA_Schedule__InstrProxyDesc, 15450)), 15461))+16);
      i2 = _type_guard(i2, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i2, 15469)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 15469);
      exit = (OOC_SSA_Schedule__JumpBlock)i2;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 15511))+80);
      OOC_SSA_Schedule__ChangeJumpTarget((OOC_SSA_Schedule__Jump)i2, (OOC_SSA_Schedule__Block)i1);
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 15545))+16);
      opnd = (OOC_SSA__Opnd)i0;
      i2 = i0!=(OOC_INT64)0;
      if (i2) goto l10;
      i2=0u;
      goto l12;
l10:
      i2 = *(OOC_INT8*)((_check_pointer(i0, 15382))+8);
      i2 = i2==11;
      
l12:
      if (i2) goto l7_loop;
l16:
      return (OOC_SSA_Schedule__JumpBlock)i1;
      ;
    }


  i0 = (OOC_INT64)region;
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 15639))+80);
  bProxy = (OOC_SSA_Blocker__Proxy)i0;
  i1 = i0!=(OOC_INT64)0;
  if (!i1) goto l22;
l3_loop:
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 15712))+16);
  i1 = (OOC_INT64)OOC_SSA_Schedule__NewInstrProxy((OOC_SSA__Instr)i1);
  proxy = (OOC_SSA_Schedule__InstrProxy)i1;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 15734))+16);
  *(OOC_INT64*)((_check_pointer(i2, 15741))+32) = i1;
  i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 15782)))), &_td_OOC_SSA_Blocker__LoopDesc);
  if (i1) goto l13;
  i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 15861)))), &_td_OOC_SSA_Blocker__SelectDesc);
  if (i1) goto l11;
  i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 15944)))), &_td_OOC_SSA_Blocker__RegionDesc);
  if (!i1) goto l14;
  i1 = (OOC_INT64)block;
  i0 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i0, (OOC_SSA_Schedule__JumpBlock)i1);
  block = (OOC_SSA_Schedule__JumpBlock)i0;
  goto l14;
l11:
  i1 = (OOC_INT64)block;
  i0 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions_TransferSelect((OOC_SSA_Blocker__Select)i0, (OOC_SSA_Schedule__JumpBlock)i1);
  block = (OOC_SSA_Schedule__JumpBlock)i0;
  goto l14;
l13:
  i1 = (OOC_INT64)block;
  i0 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions_TransferLoop((OOC_SSA_Blocker__Loop)i0, (OOC_SSA_Schedule__JumpBlock)i1);
  block = (OOC_SSA_Schedule__JumpBlock)i0;
l14:
  i0 = (OOC_INT64)block;
  i1 = (OOC_INT64)proxy;
  OOC_SSA_Schedule__AppendProxy((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__InstrProxy)i1);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 16162))+24);
  i1 = *(OOC_INT8*)((_check_pointer(i1, 16169))+72);
  i1 = i1==9;
  if (!i1) goto l17;
  i1 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)i0);
  newBlock = (OOC_SSA_Schedule__JumpBlock)i1;
  OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i0, 16382))+80), (OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  block = (OOC_SSA_Schedule__JumpBlock)i1;
l17:
  i0 = (OOC_INT64)bProxy;
  i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 16475));
  bProxy = (OOC_SSA_Blocker__Proxy)i0;
  i1 = i0!=(OOC_INT64)0;
  if (i1) goto l3_loop;
l22:
  i0 = (OOC_INT64)block;
  return (OOC_SSA_Schedule__JumpBlock)i0;
  ;
}

OOC_SSA_Schedule__Block OOC_SSA_Schedule__Schedule(OOC_SSA__ProcBlock pb) {
  register OOC_INT64 i0,i1,i2;
  OOC_SSA_Blocker__Region root;
  OOC_SSA_Schedule__InstrProxy proxy;
  OOC_SSA_Schedule__JumpBlock b;
  OOC_SSA_Schedule__JumpBlock lastBlock;
  OOC_INT32 count;
  auto void OOC_SSA_Schedule__Schedule_ArrangeBlock(OOC_SSA_Schedule__Block b);
  auto void OOC_SSA_Schedule__Schedule_MarkBackedges(OOC_SSA_Schedule__Block b);
  auto void OOC_SSA_Schedule__Schedule_RemoveUnreachable(OOC_SSA_Schedule__Block *b);
  auto void OOC_SSA_Schedule__Schedule_RemoveEmpty(OOC_SSA_Schedule__Block *b);
  auto void OOC_SSA_Schedule__Schedule_NumberBlocks(OOC_SSA_Schedule__Block b, OOC_INT32 *count);
  auto void OOC_SSA_Schedule__Schedule_Check(OOC_SSA_Schedule__Block b);
  auto void OOC_SSA_Schedule__Schedule_MoveSelectReturn(OOC_SSA_Blocker__Region root, OOC_SSA_Schedule__Block block);
    
    void OOC_SSA_Schedule__Schedule_ArrangeBlock(OOC_SSA_Schedule__Block b) {
      register OOC_INT64 i0,i1,i2;
      OOC_SSA_Schedule__Block nested;
      auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps(OOC_SSA_Schedule__Block path, OOC_SSA_Schedule__Block b);
      auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_AddToList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b);
      auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_AppendToList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b);
      auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_RemoveFromList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b);
      auto OOC_CHAR8 OOC_SSA_Schedule__Schedule_ArrangeBlock_In(OOC_SSA_Schedule__Block list, OOC_SSA_Schedule__Block b);
      auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_SortBlocks(OOC_SSA_Schedule__Block domBlock);
        
        void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps(OOC_SSA_Schedule__Block path, OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1,i2,i3;
          OOC_INT32 i;
          OOC_SSA_Schedule__Block nested;
          auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump(OOC_SSA_Schedule__Block target);
            
            void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump(OOC_SSA_Schedule__Block target) {
              register OOC_INT64 i0,i1,i2,i3;
              auto void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump_WriteBefore(OOC_SSA_Schedule__Dependent *dependentList, OOC_SSA_Schedule__Block b);
                
                void OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump_WriteBefore(OOC_SSA_Schedule__Dependent *dependentList, OOC_SSA_Schedule__Block b) {
                  register OOC_INT64 i0,i1,i2;

                  i0 = (OOC_INT64)*dependentList;
                  i1 = i0==(OOC_INT64)0;
                  if (i1) goto l6;
                  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 17840))+8);
                  i2 = (OOC_INT64)b;
                  i1 = i1!=i2;
                  if (!i1) goto l7;
                  OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump_WriteBefore((void*)(_check_pointer(i0, 17898)), (OOC_SSA_Schedule__Block)i2);
                  goto l7;
l6:
                  i0 = (OOC_INT64)b;
                  i1 = (OOC_INT64)path;
                  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 17631))+8);
                  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 17646))+8);
                  _assert((i2==i1), 127, 17622);
                  i1 = (OOC_INT64)RT0__NewObject(_td_OOC_SSA_Schedule__Dependent.baseTypes[0]);
                  *dependentList = (OOC_SSA_Schedule__Dependent)i1;
                  *(OOC_INT64*)((_check_pointer(i1, 17719))+8) = i0;
                  i1 = (OOC_INT64)*dependentList;
                  *(OOC_INT64*)(_check_pointer(i1, 17760)) = (OOC_INT64)0;
                  i1 = *(OOC_INT32*)((_check_pointer(i0, 17795))+48);
                  *(OOC_INT32*)((_check_pointer(i0, 17795))+48) = (i1+1);
l7:
                  return;
                  ;
                }


              i0 = (OOC_INT64)path;
              i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18003))+8);
              i2 = (OOC_INT64)target;
              i1 = i2!=i1;
              if (!i1) goto l27;
              i1 = i2!=(OOC_INT64)0;
              if (i1) goto l5;
              i1=0u;
              goto l7;
l5:
              i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 18060))+8);
              i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18075))+8);
              i1 = i1!=i3;
              
l7:
              if (i1) goto l9;
              i1=i2;
              goto l19;
l9:
              i1=i2;
l10_loop:
              i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 18118))+8);
              target = (OOC_SSA_Schedule__Block)i1;
              i2 = i1!=(OOC_INT64)0;
              if (i2) goto l13;
              i2=0u;
              goto l15;
l13:
              i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 18060))+8);
              i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18075))+8);
              i2 = i2!=i3;
              
l15:
              if (i2) goto l10_loop;
l19:
              i2 = i1!=(OOC_INT64)0;
              if (i2) goto l22;
              i2=0u;
              goto l24;
l22:
              i2 = i1!=i0;
              
l24:
              if (!i2) goto l27;
              OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump_WriteBefore((void*)((_check_pointer(i0, 18228))+40), (OOC_SSA_Schedule__Block)i1);
l27:
              return;
              ;
            }


          i0 = (OOC_INT64)b;
          i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 18343)))), &_td_OOC_SSA_Schedule__BranchBlockDesc);
          if (i1) goto l22;
          i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 18453)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
          if (i1) goto l20;
          i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 18518)))), &_td_OOC_SSA_Schedule__DeadEndBlockDesc);
          if (i1) goto l23;
          i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 18577)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc);
          if (i1) goto l9;
          _failed_with(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 18574)))), 18574);
          goto l23;
l9:
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18624))+88);
          i = 0;
          i0 = OOC_ARRAY_LENGTH((_check_pointer(i0, 18630)), 0);
          i1 = 0<i0;
          if (!i1) goto l23;
          i1=0;
l12_loop:
          i2 = (OOC_INT64)b;
          i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 18664))+88);
          i2 = _check_pointer(i2, 18670);
          i3 = OOC_ARRAY_LENGTH(i2, 0);
          i1 = (OOC_INT64)*(OOC_INT64*)(i2+(_check_index(i1, i3, OOC_UINT32, 18670))*8);
          i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 18673))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump((OOC_SSA_Schedule__Block)i1);
          i1 = i;
          i1 = i1+1;
          i = i1;
          i2 = i1<i0;
          if (i2) goto l12_loop;
          goto l23;
l20:
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18492))+80);
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18498))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump((OOC_SSA_Schedule__Block)i0);
          goto l23;
l22:
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18384))+104);
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18394))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump((OOC_SSA_Schedule__Block)i0);
          i0 = (OOC_INT64)b;
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18427))+80);
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18433))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps_ProcessJump((OOC_SSA_Schedule__Block)i0);
l23:
          i0 = (OOC_INT64)b;
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 18738))+32);
          nested = (OOC_SSA_Schedule__Block)i0;
          i1 = i0!=(OOC_INT64)0;
          if (!i1) goto l31;
          i1 = (OOC_INT64)path;
          
l26_loop:
          OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps((OOC_SSA_Schedule__Block)i1, (OOC_SSA_Schedule__Block)i0);
          i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 18845));
          nested = (OOC_SSA_Schedule__Block)i0;
          i2 = i0!=(OOC_INT64)0;
          if (i2) goto l26_loop;
l31:
          return;
          ;
        }

        
        void OOC_SSA_Schedule__Schedule_ArrangeBlock_AddToList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1;

          i0 = (OOC_INT64)b;
          i1 = (OOC_INT64)*list;
          *(OOC_INT64*)(_check_pointer(i0, 18966)) = i1;
          *list = (OOC_SSA_Schedule__Block)i0;
          return;
          ;
        }

        
        void OOC_SSA_Schedule__Schedule_ArrangeBlock_AppendToList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1;

          i0 = (OOC_INT64)*list;
          i1 = i0==(OOC_INT64)0;
          if (i1) goto l3;
          i1 = (OOC_INT64)b;
          OOC_SSA_Schedule__Schedule_ArrangeBlock_AppendToList((void*)(_check_pointer(i0, 19212)), (OOC_SSA_Schedule__Block)i1);
          goto l4;
l3:
          i0 = (OOC_INT64)b;
          *(OOC_INT64*)(_check_pointer(i0, 19133)) = (OOC_INT64)0;
          *list = (OOC_SSA_Schedule__Block)i0;
l4:
          return;
          ;
        }

        
        void OOC_SSA_Schedule__Schedule_ArrangeBlock_RemoveFromList(OOC_SSA_Schedule__Block *list, OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1,i2;

          i0 = (OOC_INT64)*list;
          i1 = (OOC_INT64)b;
          i2 = i0==i1;
          if (i2) goto l3;
          OOC_SSA_Schedule__Schedule_ArrangeBlock_RemoveFromList((void*)(_check_pointer(i0, 19436)), (OOC_SSA_Schedule__Block)i1);
          goto l4;
l3:
          i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 19383));
          *list = (OOC_SSA_Schedule__Block)i0;
l4:
          return;
          ;
        }

        
        OOC_CHAR8 OOC_SSA_Schedule__Schedule_ArrangeBlock_In(OOC_SSA_Schedule__Block list, OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1,i2;
          OOC_SSA_Schedule__Block ptr;

          i0 = (OOC_INT64)list;
          ptr = (OOC_SSA_Schedule__Block)i0;
          i1 = i0!=(OOC_INT64)0;
          if (i1) goto l3;
          i1=0u;
          goto l5;
l3:
          i1 = (OOC_INT64)b;
          i1 = i0!=i1;
          
l5:
          if (!i1) goto l17;
          i1 = (OOC_INT64)b;
          
l8_loop:
          i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 19665));
          ptr = (OOC_SSA_Schedule__Block)i0;
          i2 = i0!=(OOC_INT64)0;
          if (i2) goto l11;
          i2=0u;
          goto l13;
l11:
          i2 = i0!=i1;
          
l13:
          if (i2) goto l8_loop;
l17:
          return (i0!=(OOC_INT64)0);
          ;
        }

        
        void OOC_SSA_Schedule__Schedule_ArrangeBlock_SortBlocks(OOC_SSA_Schedule__Block domBlock) {
          register OOC_INT64 i0,i1,i2,i3,i4;
          OOC_SSA_Schedule__Block ready;
          OOC_SSA_Schedule__Block waiting;
          OOC_SSA_Schedule__Block nested;
          OOC_SSA_Schedule__Block next;
          OOC_SSA_Schedule__Block preferedBlock;
          OOC_SSA_Schedule__Block b;
          OOC_SSA_Schedule__Dependent dep;

          ready = (OOC_SSA_Schedule__Block)(OOC_INT64)0;
          waiting = (OOC_SSA_Schedule__Block)(OOC_INT64)0;
          i0 = (OOC_INT64)domBlock;
          i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 20087))+32);
          nested = (OOC_SSA_Schedule__Block)i1;
          i2 = i1!=(OOC_INT64)0;
          if (!i2) goto l12;
l3_loop:
          i2 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 20154));
          next = (OOC_SSA_Schedule__Block)i2;
          i3 = *(OOC_INT32*)((_check_pointer(i1, 20185))+48);
          i3 = i3==0;
          if (i3) goto l6;
          OOC_SSA_Schedule__Schedule_ArrangeBlock_AddToList((void*)(OOC_INT64)&waiting, (OOC_SSA_Schedule__Block)i1);
          goto l7;
l6:
          OOC_SSA_Schedule__Schedule_ArrangeBlock_AddToList((void*)(OOC_INT64)&ready, (OOC_SSA_Schedule__Block)i1);
l7:
          nested = (OOC_SSA_Schedule__Block)i2;
          i1 = i2!=(OOC_INT64)0;
          if (!i1) goto l12;
          i1=i2;
          goto l3_loop;
l12:
          *(OOC_INT64*)((_check_pointer(i0, 20377))+32) = (OOC_INT64)0;
          i1 = (OOC_INT64)OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 20428)))), OOC_SSA_Schedule__BlockDesc_DefaultTarget)),OOC_SSA_Schedule__BlockDesc_DefaultTarget)((OOC_SSA_Schedule__Block)i0);
          preferedBlock = (OOC_SSA_Schedule__Block)i1;
          i2 = (OOC_INT64)ready;
          i3 = i2!=(OOC_INT64)0;
          if (!i3) goto l39;
l15_loop:
          i3 = i1!=(OOC_INT64)0;
          if (i3) goto l18;
          i3=0u;
          goto l20;
l18:
          i3 = OOC_SSA_Schedule__Schedule_ArrangeBlock_In((OOC_SSA_Schedule__Block)i2, (OOC_SSA_Schedule__Block)i1);
          
l20:
          if (i3) goto l22;
          b = (OOC_SSA_Schedule__Block)i2;
          i1=i2;
          goto l23;
l22:
          b = (OOC_SSA_Schedule__Block)i1;
          
l23:
          OOC_SSA_Schedule__Schedule_ArrangeBlock_RemoveFromList((void*)(OOC_INT64)&ready, (OOC_SSA_Schedule__Block)i1);
          i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 20697))+8);
          _assert((i2==i0), 127, 20688);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_AppendToList((void*)((_check_pointer(i0, 20751))+32), (OOC_SSA_Schedule__Block)i1);
          *(OOC_INT32*)((_check_pointer(i1, 20777))+48) = (-1);
          i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 20824))+40);
          dep = (OOC_SSA_Schedule__Dependent)i2;
          i3 = i2!=(OOC_INT64)0;
          if (!i3) goto l34;
l26_loop:
          i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 20892))+8);
          i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 20892))+8);
          i4 = *(OOC_INT32*)((_check_pointer(i4, 20899))+48);
          *(OOC_INT32*)((_check_pointer(i3, 20899))+48) = (i4-1);
          i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 20931))+8);
          i3 = *(OOC_INT32*)((_check_pointer(i3, 20938))+48);
          i3 = i3==0;
          if (!i3) goto l29;
          i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 21001))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_RemoveFromList((void*)(OOC_INT64)&waiting, (OOC_SSA_Schedule__Block)i3);
          i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 21046))+8);
          OOC_SSA_Schedule__Schedule_ArrangeBlock_AddToList((void*)(OOC_INT64)&ready, (OOC_SSA_Schedule__Block)i3);
l29:
          i2 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i2, 21094));
          dep = (OOC_SSA_Schedule__Dependent)i2;
          i3 = i2!=(OOC_INT64)0;
          if (i3) goto l26_loop;
l34:
          i1 = (OOC_INT64)OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 21144)))), OOC_SSA_Schedule__BlockDesc_DefaultTarget)),OOC_SSA_Schedule__BlockDesc_DefaultTarget)((OOC_SSA_Schedule__Block)i1);
          preferedBlock = (OOC_SSA_Schedule__Block)i1;
          i2 = (OOC_INT64)ready;
          i3 = i2!=(OOC_INT64)0;
          if (i3) goto l15_loop;
l39:
          i0 = (OOC_INT64)waiting;
          _assert((i0==(OOC_INT64)0), 127, 21184);
          return;
          ;
        }


      i0 = (OOC_INT64)b;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 21311))+32);
      nested = (OOC_SSA_Schedule__Block)i1;
      i2 = i1!=(OOC_INT64)0;
      if (!i2) goto l8;
l3_loop:
      OOC_SSA_Schedule__Schedule_ArrangeBlock((OOC_SSA_Schedule__Block)i1);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 21407));
      nested = (OOC_SSA_Schedule__Block)i1;
      i2 = i1!=(OOC_INT64)0;
      if (i2) goto l3_loop;
l8:
      i1 = !(OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 21553)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc));
      if (!i1) goto l27;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 21593))+32);
      nested = (OOC_SSA_Schedule__Block)i1;
      i2 = i1!=(OOC_INT64)0;
      if (!i2) goto l18;
l13_loop:
      *(OOC_INT64*)((_check_pointer(i1, 21652))+40) = (OOC_INT64)0;
      *(OOC_INT32*)((_check_pointer(i1, 21692))+48) = 0;
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 21735));
      nested = (OOC_SSA_Schedule__Block)i1;
      i2 = i1!=(OOC_INT64)0;
      if (i2) goto l13_loop;
l18:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 21786))+32);
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l26;
l21_loop:
      OOC_SSA_Schedule__Schedule_ArrangeBlock_LocateJumps((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i0);
      i0 = (OOC_INT64)nested;
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 21895));
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (i1) goto l21_loop;
l26:
      i0 = (OOC_INT64)b;
      OOC_SSA_Schedule__Schedule_ArrangeBlock_SortBlocks((OOC_SSA_Schedule__Block)i0);
l27:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_MarkBackedges(OOC_SSA_Schedule__Block b) {
      register OOC_INT64 i0,i1,i2,i3;
      OOC_INT32 i;
      OOC_SSA_Schedule__Block nested;
      auto void OOC_SSA_Schedule__Schedule_MarkBackedges_Check(OOC_SSA_Schedule__Jump jump);
        
        void OOC_SSA_Schedule__Schedule_MarkBackedges_Check(OOC_SSA_Schedule__Jump jump) {
          register OOC_INT64 i0,i1,i2;

          i0 = (OOC_INT64)jump;
          i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22164))+8);
          i2 = (OOC_INT64)b;
          i1 = OOC_SSA_Schedule__Dominates((OOC_SSA_Schedule__Block)i1, (OOC_SSA_Schedule__Block)i2);
          *(OOC_UINT8*)((_check_pointer(i0, 22129))+24) = i1;
          return;
          ;
        }


      i0 = (OOC_INT64)b;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 22220)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
      if (i1) goto l22;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 22268)))), &_td_OOC_SSA_Schedule__BranchBlockDesc);
      if (i1) goto l20;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 22347)))), &_td_OOC_SSA_Schedule__DeadEndBlockDesc);
      if (i1) goto l23;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 22402)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc);
      if (i1) goto l9;
      _failed_with(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 22399)))), 22399);
      goto l23;
l9:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22447))+88);
      i = 0;
      i0 = OOC_ARRAY_LENGTH((_check_pointer(i0, 22453)), 0);
      i1 = 0<i0;
      if (!i1) goto l23;
      i1=0;
l12_loop:
      i2 = (OOC_INT64)b;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i2, 22479))+88);
      i2 = _check_pointer(i2, 22485);
      i3 = OOC_ARRAY_LENGTH(i2, 0);
      i1 = (OOC_INT64)*(OOC_INT64*)(i2+(_check_index(i1, i3, OOC_UINT32, 22485))*8);
      OOC_SSA_Schedule__Schedule_MarkBackedges_Check((OOC_SSA_Schedule__Jump)i1);
      i1 = i;
      i1 = i1+1;
      i = i1;
      i2 = i1<i0;
      if (i2) goto l12_loop;
      goto l23;
l20:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22301))+104);
      OOC_SSA_Schedule__Schedule_MarkBackedges_Check((OOC_SSA_Schedule__Jump)i0);
      i0 = (OOC_INT64)b;
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22330))+80);
      OOC_SSA_Schedule__Schedule_MarkBackedges_Check((OOC_SSA_Schedule__Jump)i0);
      goto l23;
l22:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22251))+80);
      OOC_SSA_Schedule__Schedule_MarkBackedges_Check((OOC_SSA_Schedule__Jump)i0);
l23:
      i0 = (OOC_INT64)b;
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 22533))+32);
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l31;
l26_loop:
      OOC_SSA_Schedule__Schedule_MarkBackedges((OOC_SSA_Schedule__Block)i0);
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 22630));
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (i1) goto l26_loop;
l31:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_RemoveUnreachable(OOC_SSA_Schedule__Block *b) {
      register OOC_INT64 i0,i1,i2,i3;
      OOC_INT32 d;
      OOC_SSA_Schedule__Jump j;
      auto OOC_CHAR8 OOC_SSA_Schedule__Schedule_RemoveUnreachable_ContainsEndOfBlock(OOC_SSA_Schedule__Block b);
        
        OOC_CHAR8 OOC_SSA_Schedule__Schedule_RemoveUnreachable_ContainsEndOfBlock(OOC_SSA_Schedule__Block b) {
          register OOC_INT64 i0,i1;
          OOC_SSA_Schedule__InstrProxy proxy;

          i0 = (OOC_INT64)b;
          i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 23082))+16);
          proxy = (OOC_SSA_Schedule__InstrProxy)i0;
          i1 = i0!=(OOC_INT64)0;
          if (!i1) goto l12;
l3_loop:
          i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 23146))+24);
          i1 = *(OOC_INT8*)((_check_pointer(i1, 23153))+72);
          switch (i1) {
          case 8:
          case 11:
            return 1u;
            goto l7;
          default:
            goto l7;
          }
l7:
          i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 23293));
          proxy = (OOC_SSA_Schedule__InstrProxy)i0;
          i1 = i0!=(OOC_INT64)0;
          if (i1) goto l3_loop;
l12:
          return 0u;
          ;
        }


      i0 = (OOC_INT64)*b;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l49;
      i1 = *(OOC_INT32*)((_check_pointer(i0, 23424))+64);
      d = i1;
      i2 = *(OOC_UINT8*)((_check_pointer(i0, 23448))+52);
      if (!i2) goto l19;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 23552))+56);
      j = (OOC_SSA_Schedule__Jump)i2;
      i3 = i2!=(OOC_INT64)0;
      if (!i3) goto l19;
      {register OOC_INT64 h0=i1;i1=i2;i2=h0;}
l9_loop:
      i3 = *(OOC_UINT8*)((_check_pointer(i1, 23614))+24);
      if (!i3) goto l13;
      i2 = i2-1;
      d = i2;
      
l13:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 23694))+16);
      j = (OOC_SSA_Schedule__Jump)i1;
      i3 = i1!=(OOC_INT64)0;
      if (i3) goto l9_loop;
l17:
      i1=i2;
l19:
      i2 = i1==0;
      if (i2) goto l22;
      i2=0u;
      goto l24;
l22:
      i2 = OOC_SSA_Schedule__Schedule_RemoveUnreachable_ContainsEndOfBlock((OOC_SSA_Schedule__Block)i0);
      
l24:
      if (!i2) goto l27;
      i1 = i1+1;
      d = i1;
      
l27:
      i1 = i1==0;
      if (!i1) goto l45;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24051))+56);
      _assert((i2==(OOC_INT64)0), 127, 24042);
      i2 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24178)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
      if (i2) goto l43;
      i2 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24239)))), &_td_OOC_SSA_Schedule__BranchBlockDesc);
      if (i2) goto l41;
      i2 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24339)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc);
      if (i2) goto l39;
      i2 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24397)))), &_td_OOC_SSA_Schedule__DeadEndBlockDesc);
      if (i2) goto l45;
      _failed_with(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24394)))), 24394);
      goto l45;
l39:
      _assert(0u, 127, 24368);
      goto l45;
l41:
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24280))+80);
      OOC_SSA_Schedule__ClearJump((OOC_SSA_Schedule__Jump)i2);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24313))+104);
      OOC_SSA_Schedule__ClearJump((OOC_SSA_Schedule__Jump)i2);
      goto l45;
l43:
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24217))+80);
      OOC_SSA_Schedule__ClearJump((OOC_SSA_Schedule__Jump)i2);
l45:
      OOC_SSA_Schedule__Schedule_RemoveUnreachable((void*)((_check_pointer(i0, 24506))+32));
      OOC_SSA_Schedule__Schedule_RemoveUnreachable((void*)(_check_pointer(i0, 24546)));
      if (!i1) goto l49;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24610))+32);
      _assert((i1==(OOC_INT64)0), 127, 24601);
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 24644));
      *b = (OOC_SSA_Schedule__Block)i0;
l49:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_RemoveEmpty(OOC_SSA_Schedule__Block *b) {
      register OOC_INT64 i0,i1;

      i0 = (OOC_INT64)*b;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l22;
      OOC_SSA_Schedule__Schedule_RemoveEmpty((void*)((_check_pointer(i0, 24805))+32));
      OOC_SSA_Schedule__Schedule_RemoveEmpty((void*)(_check_pointer(i0, 24839)));
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24874)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
      if (i1) goto l5;
      i1=0u;
      goto l7;
l5:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24903))+16);
      i1 = i1==(OOC_INT64)0;
      
l7:
      if (i1) goto l9;
      i1=0u;
      goto l11;
l9:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 24938))+8);
      i1 = !(OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 24947)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc));
      
l11:
      if (i1) goto l13;
      i1=0u;
      goto l15;
l13:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer((_type_guard(i0, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 24979)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 24979)), 24989))+80);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 24995))+8);
      i1 = i1!=i0;
      
l15:
      if (!i1) goto l22;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer((_type_guard(i0, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 25042)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 25042)), 25052))+80);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 25058))+8);
      OOC_SSA_Schedule__ChangeTargets((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25086))+56);
      _assert((i1==(OOC_INT64)0), 127, 25077);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer((_type_guard(i0, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 25133)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 25133)), 25143))+80);
      OOC_SSA_Schedule__ClearJump((OOC_SSA_Schedule__Jump)i1);
      *(OOC_INT64*)((_check_pointer((_type_guard(i0, ((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 25164)))), &_td_OOC_SSA_Schedule__JumpBlockDesc, 25164)), 25174))+80) = (OOC_INT64)0;
      i0 = (OOC_INT64)*b;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25215))+32);
      i1 = i1!=(OOC_INT64)0;
      if (i1) goto l19;
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 25439));
      *b = (OOC_SSA_Schedule__Block)i0;
      goto l22;
l19:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25258))+32);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 25267));
      _assert((i1==(OOC_INT64)0), 127, 25249);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25298))+32);
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 25321));
      *(OOC_INT64*)(_check_pointer(i1, 25307)) = i0;
      i0 = (OOC_INT64)*b;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25345))+32);
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25367))+8);
      *(OOC_INT64*)((_check_pointer(i1, 25354))+8) = i0;
      i0 = (OOC_INT64)*b;
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25395))+32);
      *b = (OOC_SSA_Schedule__Block)i0;
l22:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_NumberBlocks(OOC_SSA_Schedule__Block b, OOC_INT32 *count) {
      register OOC_INT64 i0,i1;
      OOC_SSA_Schedule__Block nested;

      i0 = (OOC_INT64)b;
      i1 = *count;
      *(OOC_INT32*)((_check_pointer(i0, 25616))+68) = i1;
      *count = (i1+1);
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 25674))+32);
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l8;
l3_loop:
      OOC_SSA_Schedule__Schedule_NumberBlocks((OOC_SSA_Schedule__Block)i0, (void*)(OOC_INT64)count);
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 25777));
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (i1) goto l3_loop;
l8:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_Check(OOC_SSA_Schedule__Block b) {
      register OOC_INT64 i0,i1,i2,i3,i4,i5;
      OOC_SSA_Schedule__InstrProxy proxy;
      OOC_SSA_Schedule__InstrProxy select;
      OOC_SSA_Schedule__Block nested;
      OOC_INT32 i;

      i0 = (OOC_INT64)b;
      i1 = !(OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 26964)))), &_td_OOC_SSA_Schedule__JumpBlockDesc));
      if (!i1) goto l11;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 27001))+16);
      proxy = (OOC_SSA_Schedule__InstrProxy)i1;
      i2 = i1!=(OOC_INT64)0;
      if (!i2) goto l11;
l5_loop:
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 27068))+24);
      i2 = *(OOC_INT8*)((_check_pointer(i2, 27075))+72);
      _assert((i2!=6), 127, 27055);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 27127));
      proxy = (OOC_SSA_Schedule__InstrProxy)i1;
      i2 = i1!=(OOC_INT64)0;
      if (i2) goto l5_loop;
l11:
      i1 = *(OOC_INT32*)((_check_pointer(i0, 27390))+64);
      i1 = i1>1;
      if (!i1) goto l26;
      select = (OOC_SSA_Schedule__InstrProxy)(OOC_INT64)0;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 27452))+16);
      proxy = (OOC_SSA_Schedule__InstrProxy)i1;
      i2 = i1!=(OOC_INT64)0;
      if (!i2) goto l26;
      i2=(OOC_INT64)0;
l16_loop:
      i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 27516))+24);
      i3 = *(OOC_INT8*)((_check_pointer(i3, 27523))+72);
      switch (i3) {
      case 5:
      case 10:
      case 11:
        _assert((i2==(OOC_INT64)0), 127, 27608);
        select = (OOC_SSA_Schedule__InstrProxy)i1;
        i2=i1;
        goto l20;
      default:
        
        goto l20;
      }
l20:
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 27714));
      proxy = (OOC_SSA_Schedule__InstrProxy)i1;
      i3 = i1!=(OOC_INT64)0;
      if (i3) goto l16_loop;
l26:
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 27763)))), &_td_OOC_SSA_Schedule__SwitchBlockDesc);
      if (i1) goto l56;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 28479)))), &_td_OOC_SSA_Schedule__JumpBlockDesc);
      if (i1) goto l34;
      i1 = OOC_TYPE_TEST(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 30146)))), &_td_OOC_SSA_Schedule__DeadEndBlockDesc);
      if (!i1) goto l66;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30226))+32);
      _assert((i1==(OOC_INT64)0), 127, 30217);
      goto l66;
l34:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28506))+80);
      i1 = *(OOC_UINT8*)((_check_pointer(i1, 28512))+24);
      if (i1) goto l50;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28783))+32);
      i1 = i1!=(OOC_INT64)0;
      if (!i1) goto l66;
      i1 = *(OOC_UINT8*)((_check_pointer(i0, 28819))+52);
      if (i1) goto l44;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 29966))+32);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 29975));
      _assert((i1==(OOC_INT64)0), 127, 29957);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30010))+32);
      i1 = *(OOC_INT32*)((_check_pointer(i1, 30019))+64);
      i1 = i1!=0;
      if (!i1) goto l66;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30063))+80);
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 30069))+8);
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30079))+32);
      _assert((i1==i2), 127, 30054);
      goto l66;
l44:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 29532))+32);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 29541));
      i1 = i1!=(OOC_INT64)0;
      if (!i1) goto l66;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 29586))+32);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 29595));
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 29604));
      _assert((i1==(OOC_INT64)0), 127, 29577);
      goto l66;
l50:
      i1 = *(OOC_UINT8*)((_check_pointer(i0, 28695))+52);
      i1 = !i1;
      if (!i1) goto l66;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28734))+32);
      _assert((i1==(OOC_INT64)0), 127, 28725);
      goto l66;
l56:
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28249))+32);
      nested = (OOC_SSA_Schedule__Block)i1;
      i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28288))+88);
      i2 = OOC_ARRAY_LENGTH((_check_pointer(i2, 28294)), 0);
      i = 0;
      i3 = 0<i2;
      if (!i3) goto l65;
      i3=i1;i1=0;
l60_loop:
      i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 28321))+88);
      i4 = _check_pointer(i4, 28327);
      i5 = OOC_ARRAY_LENGTH(i4, 0);
      i4 = (OOC_INT64)*(OOC_INT64*)(i4+(_check_index(i1, i5, OOC_UINT32, 28327))*8);
      i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i4, 28330))+8);
      _assert((i4==i3), 127, 28312);
      i3 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i3, 28374));
      nested = (OOC_SSA_Schedule__Block)i3;
      i1 = i1+1;
      i = i1;
      i4 = i1<i2;
      if (i4) goto l60_loop;
l64:
      i1=i3;
l65:
      _assert((i1!=(OOC_INT64)0), 127, 28406);
      i1 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i1, 28451));
      _assert((i1==(OOC_INT64)0), 127, 28437);
l66:
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30290))+32);
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (!i1) goto l74;
l69_loop:
      OOC_SSA_Schedule__Schedule_Check((OOC_SSA_Schedule__Block)i0);
      i0 = (OOC_INT64)*(OOC_INT64*)(_check_pointer(i0, 30379));
      nested = (OOC_SSA_Schedule__Block)i0;
      i1 = i0!=(OOC_INT64)0;
      if (i1) goto l69_loop;
l74:
      return;
      ;
    }

    
    void OOC_SSA_Schedule__Schedule_MoveSelectReturn(OOC_SSA_Blocker__Region root, OOC_SSA_Schedule__Block block) {
      register OOC_INT64 i0,i1;
      OOC_SSA_Schedule__InstrProxy proxy;

      i0 = (OOC_INT64)root;
      i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30560))+16);
      i1 = (OOC_INT64)OOC_SSA_Schedule__NewInstrProxy((OOC_SSA__Instr)i1);
      proxy = (OOC_SSA_Schedule__InstrProxy)i1;
      i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30580))+16);
      *(OOC_INT64*)((_check_pointer(i0, 30587))+32) = i1;
      i0 = (OOC_INT64)block;
      OOC_SSA_Schedule__AppendProxy((OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__InstrProxy)i1);
      return;
      ;
    }


  i0 = (OOC_INT64)pb;
  i0 = (OOC_INT64)OOC_SSA_Blocker__ArrangeInstructions((OOC_SSA__ProcBlock)i0, 1u);
  root = (OOC_SSA_Blocker__Region)i0;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30812))+16);
  i1 = (OOC_INT64)OOC_SSA_Schedule__NewInstrProxy((OOC_SSA__Instr)i1);
  proxy = (OOC_SSA_Schedule__InstrProxy)i1;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 30830))+16);
  *(OOC_INT64*)((_check_pointer(i2, 30837))+32) = i1;
  i1 = (OOC_INT64)OOC_SSA_Schedule__NewJumpBlock((OOC_SSA_Schedule__Block)(OOC_INT64)0);
  b = (OOC_SSA_Schedule__JumpBlock)i1;
  i1 = (OOC_INT64)OOC_SSA_Schedule__TransferInstructions((OOC_SSA_Blocker__Region)i0, (OOC_SSA_Schedule__JumpBlock)i1);
  lastBlock = (OOC_SSA_Schedule__JumpBlock)i1;
  OOC_SSA_Schedule__Schedule_MoveSelectReturn((OOC_SSA_Blocker__Region)i0, (OOC_SSA_Schedule__Block)i1);
  i0 = (OOC_INT64)lastBlock;
  i1 = (OOC_INT64)OOC_SSA_Schedule__NewDeadEndBlock((OOC_SSA_Schedule__Block)i0);
  OOC_SSA_Schedule__SetJump((void*)((_check_pointer(i0, 30994))+80), (OOC_SSA_Schedule__Block)i0, (OOC_SSA_Schedule__Block)i1);
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_MarkBackedges((OOC_SSA_Schedule__Block)i0);
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_RemoveUnreachable((void*)((_check_pointer(i0, 31199))+32));
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_RemoveEmpty((void*)((_check_pointer(i0, 31229))+32));
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_Check((OOC_SSA_Schedule__Block)i0);
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_ArrangeBlock((OOC_SSA_Schedule__Block)i0);
  count = 0;
  i0 = (OOC_INT64)b;
  OOC_SSA_Schedule__Schedule_NumberBlocks((OOC_SSA_Schedule__Block)i0, (void*)(OOC_INT64)&count);
  i0 = (OOC_INT64)pb;
  OOC_SSA_Blocker__RemoveAntiDeps((OOC_SSA__ProcBlock)i0);
  i0 = (OOC_INT64)b;
  *(OOC_INT32*)((_check_pointer(i0, 31956))+64) = 1;
  return (OOC_SSA_Schedule__Block)i0;
  ;
}

void OOC_OOC_SSA_Schedule_init(void) {

  return;
  ;
}

/* --- */
