// File: /workspace/github_cpp_makefile_star2_O1/sotrteacher[P]1MM1INTRO/20190925_1MM1_INTRO/ctors.c
// Function: run_ctor(char*)
void run_ctor(char *file_name1)
{
  //cantidad_de_reactivos_usados=0;
  //reactivos_usados=NULL;
  string line;
  int ca=0;            /* comma amount */
  int i=0,j;
  char *token;
  char str1[512];
  char str2[512];
  unsigned int cantidad_de_indices_de_react_guardados;
  File_Name1=file_name1;
  //ifstream in(File_Name1.c_str());
  ifstream in(file_name1);
  if(in){
    getline(in,line);
    cantidad_de_reactivos_usados=atoi(&line[0]);
    if(cantidad_de_reactivos_usados){
      getline(in,line);
      for(j=0;j<line.size();j++){
        str1[j]=line[j];
      }
      str1[j]='\0';
      token=strtok(str1,",");
      while(token!=NULL){
        ca++;
        token=strtok(NULL,",");
      }
      cantidad_de_indices_de_react_guardados=ca;
      assert(cantidad_de_reactivos_usados==cantidad_de_indices_de_react_guardados);
      //TurnosAnteriores=new int[CantidadDTurnosAnteriores];
      reactivos_usados=(unsigned int *)malloc(cantidad_de_reactivos_usados*sizeof(unsigned int));
      for(j=0;j<line.size();j++){
        str2[j]=line[j];
      }
      str2[j]='\0';
      token=strtok(str2,",");
      while(token!=NULL){
        reactivos_usados[i++]=atoi(token);
        token=strtok(NULL,",");
      }
    }
    in.close();
  }
  
  modificado=false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x630, %rsp            # imm = 0x630
movq %rdi, %rsi
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x3f70(%rip), %rax      # 0x6988
movq %rdi, (%rax)
leaq -0x248(%rbp), %rdi
movl $0x8, %edx
callq 0x2270
movq -0x248(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x228(%rbp,%rax)
jne 0x2ba8
leaq (%rax,%rbp), %rdi
addq $-0x248, %rdi           # imm = 0xFDB8
movl $0xa, %esi
callq 0x2140
movsbl %al, %edx
leaq -0x248(%rbp), %rbx
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x2280
movq -0x40(%rbp), %rdi
callq 0x2220
leaq 0x3ef0(%rip), %r15      # 0x6970
movl %eax, (%r15)
testl %eax, %eax
je 0x2b9c
movq -0x248(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %edx
leaq -0x248(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2280
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2adb
movq -0x40(%rbp), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, -0x650(%rbp,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x2ac5
jmp 0x2add
xorl %eax, %eax
movb $0x0, -0x650(%rbp,%rax)
leaq 0x650(%rip), %rsi       # 0x313c
leaq -0x650(%rbp), %rdi
callq 0x2230
testq %rax, %rax
je 0x2b13
leaq 0x638(%rip), %rbx       # 0x313c
xorl %edi, %edi
movq %rbx, %rsi
callq 0x2230
testq %rax, %rax
jne 0x2b04
movl (%r15), %edi
shlq $0x2, %rdi
callq 0x21c0
leaq 0x3e52(%rip), %r15      # 0x6978
movq %rax, (%r15)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2b4e
movq -0x40(%rbp), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, -0x450(%rbp,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x2b38
jmp 0x2b50
xorl %eax, %eax
movb $0x0, -0x450(%rbp,%rax)
leaq 0x5dd(%rip), %rsi       # 0x313c
leaq -0x450(%rbp), %rdi
callq 0x2230
testq %rax, %rax
je 0x2b9c
xorl %r12d, %r12d
leaq 0x5c2(%rip), %rbx       # 0x313c
movq %rax, %rdi
callq 0x2220
movq (%r15), %rcx
movl %eax, (%rcx,%r12)
xorl %edi, %edi
movq %rbx, %rsi
callq 0x2230
addq $0x4, %r12
testq %rax, %rax
jne 0x2b7a
leaq -0x248(%rbp), %rdi
callq 0x2060
leaq 0x3dd1(%rip), %rax      # 0x6980
movb $0x0, (%rax)
leaq -0x248(%rbp), %rdi
callq 0x2070
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x2bd3
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2160
addq $0x630, %rsp            # imm = 0x630
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2bf7
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x2070
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c0c
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2250