void read_mosaic_contact(const char *mosaic_file, int *tile1, int *tile2,
                         int *istart1, int *iend1, int *jstart1, int *jend1,
                         int *istart2, int *iend2, int *jstart2, int *jend2) {
  char contacts[255];
  char **gridtiles;
  char pstring[40][255];
  int ntiles, ncontacts, n, m, l, found;
  unsigned int nstr;
  const int x_refine = 2, y_refine = 2;
  int i1_type, j1_type, i2_type, j2_type;
  ntiles = get_dimlen(mosaic_file, "ntiles");
  gridtiles = (char **)malloc(ntiles * sizeof(char *));
  for (n = 0; n < ntiles; n++) {
    gridtiles[n] = (char *)malloc(255 * sizeof(char));
    get_string_data_level(mosaic_file, "gridtiles", gridtiles[n], &n);
  }
  ncontacts = get_dimlen(mosaic_file, "ncontact");
  for (n = 0; n < ncontacts; n++) {
    get_string_data_level(mosaic_file, "contacts", contacts, &n);
    tokenize(contacts, ":", 255, 40, (char *)pstring, &nstr);
    if (nstr != 4)
      error_handler("Error from read_mosaic: number of elements "
                    "in contact seperated by :/:: should be 4");
    found = 0;
    for (m = 0; m < ntiles; m++) {
      if (strcmp(gridtiles[m], pstring[1]) == 0) {
        found = 1;
        tile1[n] = m + 1;
        break;
      }
    }
    if (!found)
      error_handler("error from read_mosaic: the first tile name specified "
                    "in contact is not found in tile list");
    found = 0;
    for (m = 0; m < ntiles; m++) {
      if (strcmp(gridtiles[m], pstring[3]) == 0) {
        found = 1;
        tile2[n] = m + 1;
        break;
      }
    }
    if (!found)
      error_handler("error from read_mosaic: the second tile name specified "
                    "in contact is not found in tile list");
    get_string_data_level(mosaic_file, "contact_index", contacts, &n);
    tokenize(contacts, ":,", 255, 40, (char *)pstring, &nstr);
    if (nstr != 8)
      error_handler("Error from read_mosaic: number of elements "
                    "in contact_index seperated by :/, should be 8");
    for (m = 0; m < nstr; m++)
      for (l = 0; l < strlen(pstring[m]); l++) {
        if (pstring[m][l] > '9' || pstring[m][l] < '0') {
          error_handler("Error from read_mosaic: some of the character in "
                        "contact_indices except token is not digit number");
        }
      }
    istart1[n] = atoi(pstring[0]);
    iend1[n] = atoi(pstring[1]);
    jstart1[n] = atoi(pstring[2]);
    jend1[n] = atoi(pstring[3]);
    istart2[n] = atoi(pstring[4]);
    iend2[n] = atoi(pstring[5]);
    jstart2[n] = atoi(pstring[6]);
    jend2[n] = atoi(pstring[7]);
    i1_type = transfer_to_model_index(istart1[n], iend1[n], istart1 + n,
                                      iend1 + n, x_refine);
    j1_type = transfer_to_model_index(jstart1[n], jend1[n], jstart1 + n,
                                      jend1 + n, y_refine);
    i2_type = transfer_to_model_index(istart2[n], iend2[n], istart2 + n,
                                      iend2 + n, x_refine);
    j2_type = transfer_to_model_index(jstart2[n], jend2[n], jstart2 + n,
                                      jend2 + n, y_refine);
    if (i1_type == 0 && j1_type == 0)
      error_handler(
          "Error from read_mosaic_contact:istart1==iend1 and jstart1==jend1");
    if (i2_type == 0 && j2_type == 0)
      error_handler(
          "Error from read_mosaic_contact:istart2==iend2 and jstart2==jend2");
    if (i1_type + j1_type != i2_type + j2_type)
      error_handler("Error from read_mosaic_contact: It is not a line or "
                    "overlap contact");
  }
  for (m = 0; m < ntiles; m++) {
    free(gridtiles[m]);
  }
  free(gridtiles);
}


x86 assembly (clang, -O0):
<read_mosaic_contact>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2950,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x2,-0x2930(%rbp)
movl   $0x2,-0x2934(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   10c0 <get_dimlen@plt>
mov    %eax,-0x2914(%rbp)
movslq -0x2914(%rbp),%rdi
shl    $0x3,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x138(%rbp)
movl   $0x0,-0x291c(%rbp)
mov    -0x291c(%rbp),%eax
cmp    -0x2914(%rbp),%eax
jge    1294 <read_mosaic_contact+0xf4>
mov    $0xff,%edi
call   1090 <malloc@plt>
mov    %rax,%rdx
mov    -0x138(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x8(%rbp),%rdi
mov    -0x138(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd95(%rip),%rsi
lea    -0x291c(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
mov    -0x291c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x291c(%rbp)
jmp    1224 <read_mosaic_contact+0x84>
mov    -0x8(%rbp),%rdi
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   10c0 <get_dimlen@plt>
mov    %eax,-0x2918(%rbp)
movl   $0x0,-0x291c(%rbp)
mov    -0x291c(%rbp),%eax
cmp    -0x2918(%rbp),%eax
jge    18f4 <read_mosaic_contact+0x754>
mov    -0x8(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xd40(%rip),%rsi
lea    -0x291c(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
lea    -0x130(%rbp),%rdi
lea    -0x2910(%rbp),%r8
lea    0xd26(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    -0x292c(%rbp),%r9
mov    $0x0,%al
call   10a0 <tokenize@plt>
cmpl   $0x4,-0x292c(%rbp)
je     1330 <read_mosaic_contact+0x190>
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x2928(%rbp)
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x2914(%rbp),%eax
jge    13c3 <read_mosaic_contact+0x223>
mov    -0x138(%rbp),%rax
movslq -0x2920(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x2910(%rbp),%rsi
add    $0xff,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    13aa <read_mosaic_contact+0x20a>
movl   $0x1,-0x2928(%rbp)
mov    -0x2920(%rbp),%edx
add    $0x1,%edx
mov    -0x10(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    13c3 <read_mosaic_contact+0x223>
jmp    13af <read_mosaic_contact+0x20f>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    1344 <read_mosaic_contact+0x1a4>
cmpl   $0x0,-0x2928(%rbp)
jne    13de <read_mosaic_contact+0x23e>
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x2928(%rbp)
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x2914(%rbp),%eax
jge    1471 <read_mosaic_contact+0x2d1>
mov    -0x138(%rbp),%rax
movslq -0x2920(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x2910(%rbp),%rsi
add    $0x2fd,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1458 <read_mosaic_contact+0x2b8>
movl   $0x1,-0x2928(%rbp)
mov    -0x2920(%rbp),%edx
add    $0x1,%edx
mov    -0x18(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1471 <read_mosaic_contact+0x2d1>
jmp    145d <read_mosaic_contact+0x2bd>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    13f2 <read_mosaic_contact+0x252>
cmpl   $0x0,-0x2928(%rbp)
jne    148c <read_mosaic_contact+0x2ec>
lea    0xc4f(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
mov    -0x8(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xc92(%rip),%rsi
lea    -0x291c(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
lea    -0x130(%rbp),%rdi
lea    -0x2910(%rbp),%r8
lea    0xc7d(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    -0x292c(%rbp),%r9
mov    $0x0,%al
call   10a0 <tokenize@plt>
cmpl   $0x8,-0x292c(%rbp)
je     14f4 <read_mosaic_contact+0x354>
lea    0xc54(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x292c(%rbp),%eax
jae    15f0 <read_mosaic_contact+0x450>
movl   $0x0,-0x2924(%rbp)
movslq -0x2924(%rbp),%rax
mov    %rax,-0x2950(%rbp)
movslq -0x2920(%rbp),%rax
lea    -0x2910(%rbp),%rdi
imul   $0xff,%rax,%rax
add    %rax,%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
mov    -0x2950(%rbp),%rax
cmp    %rcx,%rax
jae    15d7 <read_mosaic_contact+0x437>
movslq -0x2920(%rbp),%rcx
lea    -0x2910(%rbp),%rax
imul   $0xff,%rcx,%rcx
add    %rcx,%rax
movslq -0x2924(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x39,%eax
jg     15b0 <read_mosaic_contact+0x410>
movslq -0x2920(%rbp),%rcx
lea    -0x2910(%rbp),%rax
imul   $0xff,%rcx,%rcx
add    %rcx,%rax
movslq -0x2924(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
jge    15be <read_mosaic_contact+0x41e>
lea    0xbe3(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
jmp    15c3 <read_mosaic_contact+0x423>
mov    -0x2924(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2924(%rbp)
jmp    151a <read_mosaic_contact+0x37a>
jmp    15dc <read_mosaic_contact+0x43c>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    14fe <read_mosaic_contact+0x35e>
lea    -0x2910(%rbp),%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    -0x20(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0xff,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    -0x28(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x1fe,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    -0x30(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x2fd,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    0x10(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x3fc,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    0x18(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x4fb,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    0x20(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x5fa,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    0x28(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
lea    -0x2910(%rbp),%rdi
add    $0x6f9,%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    0x30(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x28(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x20(%rbp),%rdx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x28(%rbp),%rcx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    $0x2,%r8d
mov    $0x0,%al
call   1050 <transfer_to_model_index@plt>
mov    %eax,-0x2938(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    0x10(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x30(%rbp),%rdx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x10(%rbp),%rcx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    $0x2,%r8d
mov    $0x0,%al
call   1050 <transfer_to_model_index@plt>
mov    %eax,-0x293c(%rbp)
mov    0x18(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    0x20(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x18(%rbp),%rdx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x20(%rbp),%rcx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    $0x2,%r8d
mov    $0x0,%al
call   1050 <transfer_to_model_index@plt>
mov    %eax,-0x2940(%rbp)
mov    0x28(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    0x30(%rbp),%rax
movslq -0x291c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    0x28(%rbp),%rdx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x30(%rbp),%rcx
movslq -0x291c(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    $0x2,%r8d
mov    $0x0,%al
call   1050 <transfer_to_model_index@plt>
mov    %eax,-0x2944(%rbp)
cmpl   $0x0,-0x2938(%rbp)
jne    1885 <read_mosaic_contact+0x6e5>
cmpl   $0x0,-0x293c(%rbp)
jne    1885 <read_mosaic_contact+0x6e5>
lea    0x97e(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
cmpl   $0x0,-0x2940(%rbp)
jne    18ad <read_mosaic_contact+0x70d>
cmpl   $0x0,-0x2944(%rbp)
jne    18ad <read_mosaic_contact+0x70d>
lea    0x997(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
mov    -0x2938(%rbp),%eax
add    -0x293c(%rbp),%eax
mov    -0x2940(%rbp),%ecx
add    -0x2944(%rbp),%ecx
cmp    %ecx,%eax
je     18db <read_mosaic_contact+0x73b>
lea    0x9aa(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
jmp    18e0 <read_mosaic_contact+0x740>
mov    -0x291c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x291c(%rbp)
jmp    12b6 <read_mosaic_contact+0x116>
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x2914(%rbp),%eax
jge    193b <read_mosaic_contact+0x79b>
mov    -0x138(%rbp),%rax
movslq -0x2920(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    18fe <read_mosaic_contact+0x75e>
mov    -0x138(%rbp),%rdi
call   1040 <free@plt>
add    $0x2950,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_mosaic_contact>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2928,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x40(%rsp)
mov    %rcx,0x38(%rsp)
mov    %rdx,0x18(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,%r13
lea    0xe2c(%rip),%rsi
xor    %eax,%eax
call   10c0 <get_dimlen@plt>
mov    %eax,%r12d
movslq %eax,%rbx
lea    0x0(,%rbx,8),%rdi
call   1090 <malloc@plt>
mov    %rax,%r15
movl   $0x0,(%rsp)
test   %ebx,%ebx
jle    1242 <read_mosaic_contact+0xa2>
lea    0xe04(%rip),%r14
mov    %rsp,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    $0xff,%edi
call   1090 <malloc@plt>
movslq %ebx,%rcx
mov    %rax,(%r15,%rcx,8)
mov    %r13,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    (%rsp),%ebx
add    $0x1,%ebx
mov    %ebx,(%rsp)
cmp    %r12d,%ebx
jl     1210 <read_mosaic_contact+0x70>
lea    0xdc8(%rip),%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   10c0 <get_dimlen@plt>
movl   $0x0,(%rsp)
mov    %r12d,%ebp
mov    %eax,0xc(%rsp)
test   %eax,%eax
mov    %r12d,%r14d
jle    1689 <read_mosaic_contact+0x4e9>
lea    0xf27(%rip),%r12
mov    %r15,0x30(%rsp)
mov    %r14d,0x8(%rsp)
mov    %rbp,0x20(%rsp)
mov    %r13,0x28(%rsp)
jmp    12b2 <read_mosaic_contact+0x112>
nopl   0x0(%rax)
mov    (%rsp),%eax
add    $0x1,%eax
mov    %eax,(%rsp)
cmp    0xc(%rsp),%eax
mov    0x30(%rsp),%r15
mov    0x8(%rsp),%r14d
mov    0x20(%rsp),%rbp
jge    1689 <read_mosaic_contact+0x4e9>
mov    %r13,%rdi
lea    0xd5e(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    %rbx,%rdi
lea    0xd4b(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    0x150(%rsp),%r8
lea    0x4(%rsp),%r9
xor    %eax,%eax
call   10a0 <tokenize@plt>
cmpl   $0x4,0x4(%rsp)
je     130b <read_mosaic_contact+0x16b>
lea    0xd21(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
test   %r14d,%r14d
jle    133e <read_mosaic_contact+0x19e>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r15,%rbx,8),%rdi
lea    0x24f(%rsp),%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1350 <read_mosaic_contact+0x1b0>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1320 <read_mosaic_contact+0x180>
lea    0xd34(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    135f <read_mosaic_contact+0x1bf>
xchg   %ax,%ax
add    $0x1,%ebx
movslq (%rsp),%rax
mov    0x10(%rsp),%rcx
mov    %ebx,(%rcx,%rax,4)
test   %r14d,%r14d
lea    0x44d(%rsp),%r14
jle    1389 <read_mosaic_contact+0x1e9>
xor    %ebx,%ebx
xchg   %ax,%ax
mov    (%r15,%rbx,8),%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     13a0 <read_mosaic_contact+0x200>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1370 <read_mosaic_contact+0x1d0>
lea    0xd44(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    13af <read_mosaic_contact+0x20f>
nopl   0x0(%rax)
add    $0x1,%ebx
movslq (%rsp),%rax
mov    0x18(%rsp),%rcx
mov    %ebx,(%rcx,%rax,4)
mov    %r13,%rdi
lea    0xd77(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdx
mov    %rsp,%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    %rbx,%rdi
lea    0xd69(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    0x150(%rsp),%r8
lea    0x4(%rsp),%r9
xor    %eax,%eax
call   10a0 <tokenize@plt>
mov    $0x8,%r15d
cmpl   $0x8,0x4(%rsp)
je     141c <read_mosaic_contact+0x27c>
lea    0xd3a(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
mov    0x4(%rsp),%r15d
test   %r15d,%r15d
je     14a0 <read_mosaic_contact+0x300>
lea    0x150(%rsp),%r13
xor    %r14d,%r14d
jmp    1448 <read_mosaic_contact+0x2a8>
nopl   0x0(%rax)
mov    0x4(%rsp),%r15d
add    $0x1,%r14
mov    %r15d,%eax
add    $0xff,%r13
cmp    %rax,%r14
jae    14a0 <read_mosaic_contact+0x300>
mov    %r14,%rax
shl    $0x8,%rax
sub    %r14,%rax
lea    (%rsp,%rax,1),%rbp
add    $0x150,%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %rax,%rax
je     1435 <read_mosaic_contact+0x295>
xor    %ebx,%ebx
jmp    1481 <read_mosaic_contact+0x2e1>
xchg   %ax,%ax
add    $0x1,%rbx
mov    %rbp,%rdi
call   1060 <strlen@plt>
cmp    %rbx,%rax
jbe    1430 <read_mosaic_contact+0x290>
movzbl 0x0(%r13,%rbx,1),%eax
add    $0xc6,%al
cmp    $0xf5,%al
ja     1470 <read_mosaic_contact+0x2d0>
mov    %r12,%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    1470 <read_mosaic_contact+0x2d0>
nopl   0x0(%rax)
lea    0x150(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x38(%rsp),%r14
mov    %eax,(%r14,%rcx,4)
lea    0x24f(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x40(%rsp),%rbp
mov    %eax,0x0(%rbp,%rcx,4)
lea    0x34e(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x48(%rsp),%rbx
mov    %eax,(%rbx,%rcx,4)
lea    0x44d(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x2960(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x54c(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x2968(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x64b(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x2970(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x74a(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rcx
mov    0x2978(%rsp),%r13
mov    %eax,0x0(%r13,%rcx,4)
lea    0x849(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
movslq (%rsp),%rsi
mov    0x2980(%rsp),%r15
mov    %eax,(%r15,%rsi,4)
lea    (%r14,%rsi,4),%rdx
mov    (%r14,%rsi,4),%edi
lea    0x0(,%rsi,4),%rcx
add    %rbp,%rcx
mov    0x0(%rbp,%rsi,4),%esi
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <transfer_to_model_index@plt>
movslq (%rsp),%rsi
lea    (%rbx,%rsi,4),%rdx
mov    (%rbx,%rsi,4),%edi
mov    %eax,%ebx
mov    0x2960(%rsp),%rax
lea    (%rax,%rsi,4),%rcx
mov    (%rax,%rsi,4),%esi
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <transfer_to_model_index@plt>
mov    %eax,%ebp
movslq (%rsp),%rax
mov    0x2968(%rsp),%rcx
lea    (%rcx,%rax,4),%rdx
mov    (%rcx,%rax,4),%edi
mov    0x2970(%rsp),%rsi
lea    (%rsi,%rax,4),%rcx
mov    (%rsi,%rax,4),%esi
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <transfer_to_model_index@plt>
mov    %eax,%r14d
movslq (%rsp),%rax
lea    0x0(,%rax,4),%rdx
add    %r13,%rdx
mov    0x0(%r13,%rax,4),%edi
lea    (%r15,%rax,4),%rcx
mov    (%r15,%rax,4),%esi
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <transfer_to_model_index@plt>
mov    %eax,%r15d
mov    %ebx,%eax
or     %ebp,%eax
jne    164d <read_mosaic_contact+0x4ad>
lea    0xbb6(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
mov    %r14d,%eax
or     %r15d,%eax
jne    1663 <read_mosaic_contact+0x4c3>
lea    0xbe1(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
add    %ebx,%ebp
add    %r14d,%r15d
cmp    %r15d,%ebp
mov    0x28(%rsp),%r13
je     1290 <read_mosaic_contact+0xf0>
lea    0xc01(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    1290 <read_mosaic_contact+0xf0>
test   %r14d,%r14d
jle    16a2 <read_mosaic_contact+0x502>
xor    %ebx,%ebx
mov    (%r15,%rbx,8),%rdi
call   1040 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1690 <read_mosaic_contact+0x4f0>
mov    %r15,%rdi
call   1040 <free@plt>
add    $0x2928,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"ntiles\00"
@.str.1 = [10 x i8] c"gridtiles\00"
@.str.2 = [9 x i8] c"ncontact\00"
@.str.3 = [9 x i8] c"contacts\00"
@.str.4 = [2 x i8] c":\00"
@.str.5 = [84 x i8] c"Error from read_mosaic: number of elements in contact seperated by :/:: should be 4\00"
@.str.6 = [91 x i8] c"error from read_mosaic: the first tile name specified in contact is not found in tile list\00"
@.str.7 = [92 x i8] c"error from read_mosaic: the second tile name specified in contact is not found in tile list\00"
@.str.8 = [14 x i8] c"contact_index\00"
@.str.9 = [3 x i8] c":,\00"
@.str.10 = [89 x i8] c"Error from read_mosaic: number of elements in contact_index seperated by :/, should be 8\00"
@.str.11 = [98 x i8] c"Error from read_mosaic: some of the character in contact_indices except token is not digit number\00"
@.str.12 = [65 x i8] c"Error from read_mosaic_contact:istart1==iend1 and jstart1==jend1\00"
@.str.13 = [65 x i8] c"Error from read_mosaic_contact:istart2==iend2 and jstart2==jend2\00"
@.str.14 = [68 x i8] c"Error from read_mosaic_contact: It is not a line or overlap contact\00"
define void @read_mosaic_contact(i8* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10) {
%12 = alloca i8*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca [255 x i8]
%24 = alloca i8**
%25 = alloca [40 x [255 x i8]]
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
%37 = alloca i32
%38 = alloca i32
store i8* %0, i8** %12
store i32* %1, i32** %13
store i32* %2, i32** %14
store i32* %3, i32** %15
store i32* %4, i32** %16
store i32* %5, i32** %17
store i32* %6, i32** %18
store i32* %7, i32** %19
store i32* %8, i32** %20
store i32* %9, i32** %21
store i32* %10, i32** %22
store i32 2, i32* %33
store i32 2, i32* %34
%39 = load i8*, i8** %12
%40 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_dimlen to i32 (i8*, i8*, ...)*)(i8* %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store i32 %40, i32* %26
%41 = load i32, i32* %26
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 8
%44 = call i8* @malloc(i64 %43)
%45 = bitcast i8* %44 to i8**
store i8** %45, i8*** %24
store i32 0, i32* %28
br label %46
46: ; preds = %63, %11
%47 = load i32, i32* %28
%48 = load i32, i32* %26
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %66
50: ; preds = %46
%51 = call i8* @malloc(i64 255)
%52 = load i8**, i8*** %24
%53 = load i32, i32* %28
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
store i8* %51, i8** %55
%56 = load i8*, i8** %12
%57 = load i8**, i8*** %24
%58 = load i32, i32* %28
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8*, i8** %57, i64 %59
%61 = load i8*, i8** %60
%62 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %61, i32* %28)
br label %63
63: ; preds = %50
%64 = load i32, i32* %28
%65 = add nsw i32 %64, 1
store i32 %65, i32* %28
br label %46
66: ; preds = %46
%67 = load i8*, i8** %12
%68 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_dimlen to i32 (i8*, i8*, ...)*)(i8* %67, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i32 %68, i32* %27
store i32 0, i32* %28
br label %69
69: ; preds = %363, %66
%70 = load i32, i32* %28
%71 = load i32, i32* %27
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %366
73: ; preds = %69
%74 = load i8*, i8** %12
%75 = getelementptr inbounds [255 x i8], [255 x i8]* %23, i64 0, i64 0
%76 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %74, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %75, i32* %28)
%77 = getelementptr inbounds [255 x i8], [255 x i8]* %23, i64 0, i64 0
%78 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 0
%79 = bitcast [255 x i8]* %78 to i8*
%80 = call i32 (i8*, i8*, i32, i32, i8*, i32*, ...) bitcast (i32 (...)* @tokenize to i32 (i8*, i8*, i32, i32, i8*, i32*, ...)*)(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 40, i8* %79, i32* %32)
%81 = load i32, i32* %32
%82 = icmp ne i32 %81, 4
br i1 %82, label %83, label %85
83: ; preds = %73
%84 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
br label %85
85: ; preds = %83, %73
store i32 0, i32* %31
store i32 0, i32* %29
br label %86
86: ; preds = %108, %85
%87 = load i32, i32* %29
%88 = load i32, i32* %26
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %111
90: ; preds = %86
%91 = load i8**, i8*** %24
%92 = load i32, i32* %29
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %91, i64 %93
%95 = load i8*, i8** %94
%96 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 1
%97 = getelementptr inbounds [255 x i8], [255 x i8]* %96, i64 0, i64 0
%98 = call i32 @strcmp(i8* %95, i8* %97)
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %107
100: ; preds = %90
store i32 1, i32* %31
%101 = load i32, i32* %29
%102 = add nsw i32 %101, 1
%103 = load i32*, i32** %13
%104 = load i32, i32* %28
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, i32* %103, i64 %105
store i32 %102, i32* %106
br label %111
107: ; preds = %90
br label %108
108: ; preds = %107
%109 = load i32, i32* %29
%110 = add nsw i32 %109, 1
store i32 %110, i32* %29
br label %86
111: ; preds = %100, %86
%112 = load i32, i32* %31
%113 = icmp ne i32 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %111
%115 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.6, i64 0, i64 0))
br label %116
116: ; preds = %114, %111
store i32 0, i32* %31
store i32 0, i32* %29
br label %117
117: ; preds = %139, %116
%118 = load i32, i32* %29
%119 = load i32, i32* %26
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %142
121: ; preds = %117
%122 = load i8**, i8*** %24
%123 = load i32, i32* %29
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8*, i8** %122, i64 %124
%126 = load i8*, i8** %125
%127 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 3
%128 = getelementptr inbounds [255 x i8], [255 x i8]* %127, i64 0, i64 0
%129 = call i32 @strcmp(i8* %126, i8* %128)
%130 = icmp eq i32 %129, 0
br i1 %130, label %131, label %138
131: ; preds = %121
store i32 1, i32* %31
%132 = load i32, i32* %29
%133 = add nsw i32 %132, 1
%134 = load i32*, i32** %14
%135 = load i32, i32* %28
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, i32* %134, i64 %136
store i32 %133, i32* %137
br label %142
138: ; preds = %121
br label %139
139: ; preds = %138
%140 = load i32, i32* %29
%141 = add nsw i32 %140, 1
store i32 %141, i32* %29
br label %117
142: ; preds = %131, %117
%143 = load i32, i32* %31
%144 = icmp ne i32 %143, 0
br i1 %144, label %147, label %145
145: ; preds = %142
%146 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.7, i64 0, i64 0))
br label %147
147: ; preds = %145, %142
%148 = load i8*, i8** %12
%149 = getelementptr inbounds [255 x i8], [255 x i8]* %23, i64 0, i64 0
%150 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %148, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %149, i32* %28)
%151 = getelementptr inbounds [255 x i8], [255 x i8]* %23, i64 0, i64 0
%152 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 0
%153 = bitcast [255 x i8]* %152 to i8*
%154 = call i32 (i8*, i8*, i32, i32, i8*, i32*, ...) bitcast (i32 (...)* @tokenize to i32 (i8*, i8*, i32, i32, i8*, i32*, ...)*)(i8* %151, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 255, i32 40, i8* %153, i32* %32)
%155 = load i32, i32* %32
%156 = icmp ne i32 %155, 8
br i1 %156, label %157, label %159
157: ; preds = %147
%158 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.10, i64 0, i64 0))
br label %159
159: ; preds = %157, %147
store i32 0, i32* %29
br label %160
160: ; preds = %201, %159
%161 = load i32, i32* %29
%162 = load i32, i32* %32
%163 = icmp ult i32 %161, %162
br i1 %163, label %164, label %204
164: ; preds = %160
store i32 0, i32* %30
br label %165
165: ; preds = %197, %164
%166 = load i32, i32* %30
%167 = sext i32 %166 to i64
%168 = load i32, i32* %29
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 %169
%171 = getelementptr inbounds [255 x i8], [255 x i8]* %170, i64 0, i64 0
%172 = call i64 @strlen(i8* %171)
%173 = icmp ult i64 %167, %172
br i1 %173, label %174, label %200
174: ; preds = %165
%175 = load i32, i32* %29
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 %176
%178 = load i32, i32* %30
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [255 x i8], [255 x i8]* %177, i64 0, i64 %179
%181 = load i8, i8* %180
%182 = sext i8 %181 to i32
%183 = icmp sgt i32 %182, 57
br i1 %183, label %194, label %184
184: ; preds = %174
%185 = load i32, i32* %29
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 %186
%188 = load i32, i32* %30
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [255 x i8], [255 x i8]* %187, i64 0, i64 %189
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = icmp slt i32 %192, 48
br i1 %193, label %194, label %196
194: ; preds = %184, %174
%195 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.11, i64 0, i64 0))
br label %196
196: ; preds = %194, %184
br label %197
197: ; preds = %196
%198 = load i32, i32* %30
%199 = add nsw i32 %198, 1
store i32 %199, i32* %30
br label %165
200: ; preds = %165
br label %201
201: ; preds = %200
%202 = load i32, i32* %29
%203 = add nsw i32 %202, 1
store i32 %203, i32* %29
br label %160
204: ; preds = %160
%205 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 0
%206 = getelementptr inbounds [255 x i8], [255 x i8]* %205, i64 0, i64 0
%207 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %206)
%208 = load i32*, i32** %15
%209 = load i32, i32* %28
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i32, i32* %208, i64 %210
store i32 %207, i32* %211
%212 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 1
%213 = getelementptr inbounds [255 x i8], [255 x i8]* %212, i64 0, i64 0
%214 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %213)
%215 = load i32*, i32** %16
%216 = load i32, i32* %28
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, i32* %215, i64 %217
store i32 %214, i32* %218
%219 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 2
%220 = getelementptr inbounds [255 x i8], [255 x i8]* %219, i64 0, i64 0
%221 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %220)
%222 = load i32*, i32** %17
%223 = load i32, i32* %28
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, i32* %222, i64 %224
store i32 %221, i32* %225
%226 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 3
%227 = getelementptr inbounds [255 x i8], [255 x i8]* %226, i64 0, i64 0
%228 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %227)
%229 = load i32*, i32** %18
%230 = load i32, i32* %28
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds i32, i32* %229, i64 %231
store i32 %228, i32* %232
%233 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 4
%234 = getelementptr inbounds [255 x i8], [255 x i8]* %233, i64 0, i64 0
%235 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %234)
%236 = load i32*, i32** %19
%237 = load i32, i32* %28
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i32, i32* %236, i64 %238
store i32 %235, i32* %239
%240 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 5
%241 = getelementptr inbounds [255 x i8], [255 x i8]* %240, i64 0, i64 0
%242 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %241)
%243 = load i32*, i32** %20
%244 = load i32, i32* %28
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i32, i32* %243, i64 %245
store i32 %242, i32* %246
%247 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 6
%248 = getelementptr inbounds [255 x i8], [255 x i8]* %247, i64 0, i64 0
%249 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %248)
%250 = load i32*, i32** %21
%251 = load i32, i32* %28
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i32, i32* %250, i64 %252
store i32 %249, i32* %253
%254 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %25, i64 0, i64 7
%255 = getelementptr inbounds [255 x i8], [255 x i8]* %254, i64 0, i64 0
%256 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %255)
%257 = load i32*, i32** %22
%258 = load i32, i32* %28
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, i32* %257, i64 %259
store i32 %256, i32* %260
%261 = load i32*, i32** %15
%262 = load i32, i32* %28
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds i32, i32* %261, i64 %263
%265 = load i32, i32* %264
%266 = load i32*, i32** %16
%267 = load i32, i32* %28
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i32, i32* %266, i64 %268
%270 = load i32, i32* %269
%271 = load i32*, i32** %15
%272 = load i32, i32* %28
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i32, i32* %271, i64 %273
%275 = load i32*, i32** %16
%276 = load i32, i32* %28
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i32, i32* %275, i64 %277
%279 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %265, i32 %270, i32* %274, i32* %278, i32 2)
store i32 %279, i32* %35
%280 = load i32*, i32** %17
%281 = load i32, i32* %28
%282 = sext i32 %281 to i64
%283 = getelementptr inbounds i32, i32* %280, i64 %282
%284 = load i32, i32* %283
%285 = load i32*, i32** %18
%286 = load i32, i32* %28
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds i32, i32* %285, i64 %287
%289 = load i32, i32* %288
%290 = load i32*, i32** %17
%291 = load i32, i32* %28
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds i32, i32* %290, i64 %292
%294 = load i32*, i32** %18
%295 = load i32, i32* %28
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds i32, i32* %294, i64 %296
%298 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %284, i32 %289, i32* %293, i32* %297, i32 2)
store i32 %298, i32* %36
%299 = load i32*, i32** %19
%300 = load i32, i32* %28
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds i32, i32* %299, i64 %301
%303 = load i32, i32* %302
%304 = load i32*, i32** %20
%305 = load i32, i32* %28
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds i32, i32* %304, i64 %306
%308 = load i32, i32* %307
%309 = load i32*, i32** %19
%310 = load i32, i32* %28
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds i32, i32* %309, i64 %311
%313 = load i32*, i32** %20
%314 = load i32, i32* %28
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds i32, i32* %313, i64 %315
%317 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %303, i32 %308, i32* %312, i32* %316, i32 2)
store i32 %317, i32* %37
%318 = load i32*, i32** %21
%319 = load i32, i32* %28
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds i32, i32* %318, i64 %320
%322 = load i32, i32* %321
%323 = load i32*, i32** %22
%324 = load i32, i32* %28
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds i32, i32* %323, i64 %325
%327 = load i32, i32* %326
%328 = load i32*, i32** %21
%329 = load i32, i32* %28
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds i32, i32* %328, i64 %330
%332 = load i32*, i32** %22
%333 = load i32, i32* %28
%334 = sext i32 %333 to i64
%335 = getelementptr inbounds i32, i32* %332, i64 %334
%336 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %322, i32 %327, i32* %331, i32* %335, i32 2)
store i32 %336, i32* %38
%337 = load i32, i32* %35
%338 = icmp eq i32 %337, 0
br i1 %338, label %339, label %344
339: ; preds = %204
%340 = load i32, i32* %36
%341 = icmp eq i32 %340, 0
br i1 %341, label %342, label %344
342: ; preds = %339
%343 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
br label %344
344: ; preds = %342, %339, %204
%345 = load i32, i32* %37
%346 = icmp eq i32 %345, 0
br i1 %346, label %347, label %352
347: ; preds = %344
%348 = load i32, i32* %38
%349 = icmp eq i32 %348, 0
br i1 %349, label %350, label %352
350: ; preds = %347
%351 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
br label %352
352: ; preds = %350, %347, %344
%353 = load i32, i32* %35
%354 = load i32, i32* %36
%355 = add nsw i32 %353, %354
%356 = load i32, i32* %37
%357 = load i32, i32* %38
%358 = add nsw i32 %356, %357
%359 = icmp ne i32 %355, %358
br i1 %359, label %360, label %362
360: ; preds = %352
%361 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
br label %362
362: ; preds = %360, %352
br label %363
363: ; preds = %362
%364 = load i32, i32* %28
%365 = add nsw i32 %364, 1
store i32 %365, i32* %28
br label %69
366: ; preds = %69
store i32 0, i32* %29
br label %367
367: ; preds = %377, %366
%368 = load i32, i32* %29
%369 = load i32, i32* %26
%370 = icmp slt i32 %368, %369
br i1 %370, label %371, label %380
371: ; preds = %367
%372 = load i8**, i8*** %24
%373 = load i32, i32* %29
%374 = sext i32 %373 to i64
%375 = getelementptr inbounds i8*, i8** %372, i64 %374
%376 = load i8*, i8** %375
br label %377
377: ; preds = %371
%378 = load i32, i32* %29
%379 = add nsw i32 %378, 1
store i32 %379, i32* %29
br label %367
380: ; preds = %367
%381 = load i8**, i8*** %24
%382 = bitcast i8** %381 to i8*
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"ntiles\00"
@.str.1 = [10 x i8] c"gridtiles\00"
@.str.2 = [9 x i8] c"ncontact\00"
@.str.3 = [9 x i8] c"contacts\00"
@.str.4 = [2 x i8] c":\00"
@.str.5 = [84 x i8] c"Error from read_mosaic: number of elements in contact seperated by :/:: should be 4\00"
@.str.6 = [91 x i8] c"error from read_mosaic: the first tile name specified in contact is not found in tile list\00"
@.str.7 = [92 x i8] c"error from read_mosaic: the second tile name specified in contact is not found in tile list\00"
@.str.8 = [14 x i8] c"contact_index\00"
@.str.9 = [3 x i8] c":,\00"
@.str.10 = [89 x i8] c"Error from read_mosaic: number of elements in contact_index seperated by :/, should be 8\00"
@.str.11 = [98 x i8] c"Error from read_mosaic: some of the character in contact_indices except token is not digit number\00"
@.str.12 = [65 x i8] c"Error from read_mosaic_contact:istart1==iend1 and jstart1==jend1\00"
@.str.13 = [65 x i8] c"Error from read_mosaic_contact:istart2==iend2 and jstart2==jend2\00"
@.str.14 = [68 x i8] c"Error from read_mosaic_contact: It is not a line or overlap contact\00"
define void @read_mosaic_contact(i8* %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10) {
%12 = alloca [255 x i8]
%13 = alloca [40 x [255 x i8]]
%14 = alloca i32
%15 = alloca i32
%16 = getelementptr inbounds [255 x i8], [255 x i8]* %12, i64 0, i64 0
%17 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 0, i64 0
%18 = bitcast i32* %14 to i8*
%19 = bitcast i32* %15 to i8*
%20 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_dimlen to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%21 = sext i32 %20 to i64
%22 = shl nsw i64 %21, 3
%23 = tail call i8* @malloc(i64 %22)
%24 = bitcast i8* %23 to i8**
store i32 0, i32* %14
%25 = icmp sgt i32 %20, 0
br i1 %25, label %26, label %35
26: ; preds = %11, %26
%27 = phi i32 [ %33, %26 ], [ 0, %11 ]
%28 = call dereferenceable_or_null(255) i8* @malloc(i64 255)
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8*, i8** %24, i64 %29
store i8* %28, i8** %30
%31 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %28, i32* %14)
%32 = load i32, i32* %14
%33 = add nsw i32 %32, 1
store i32 %33, i32* %14
%34 = icmp slt i32 %33, %20
br i1 %34, label %26, label %35
35: ; preds = %26, %11
%36 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_dimlen to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %14
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %35
%39 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 1, i64 0
%40 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 3, i64 0
%41 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 2, i64 0
%42 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 4, i64 0
%43 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 5, i64 0
%44 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 6, i64 0
%45 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 7, i64 0
%46 = zext i32 %20 to i64
%47 = zext i32 %20 to i64
br label %51
48: ; preds = %206, %35
br i1 %25, label %49, label %216
49: ; preds = %48
%50 = zext i32 %20 to i64
br label %210
51: ; preds = %38, %206
%52 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %16, i32* %14)
%53 = call i32 (i8*, i8*, i32, i32, i8*, i32*, ...) bitcast (i32 (...)* @tokenize to i32 (i8*, i8*, i32, i32, i8*, i32*, ...)*)(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 40, i8* %17, i32* %15)
%54 = load i32, i32* %15
%55 = icmp eq i32 %54, 4
br i1 %55, label %58, label %56
56: ; preds = %51
%57 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
br label %58
58: ; preds = %56, %51
br i1 %25, label %59, label %74
59: ; preds = %58, %71
%60 = phi i64 [ %72, %71 ], [ 0, %58 ]
%61 = getelementptr inbounds i8*, i8** %24, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @strcmp(i8* dereferenceable(1) %62, i8* %39)
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %71
65: ; preds = %59
%66 = trunc i64 %60 to i32
%67 = add nuw nsw i32 %66, 1
%68 = load i32, i32* %14
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %1, i64 %69
store i32 %67, i32* %70
br label %76
71: ; preds = %59
%72 = add nuw nsw i64 %60, 1
%73 = icmp eq i64 %72, %46
br i1 %73, label %74, label %59
74: ; preds = %71, %58
%75 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.6, i64 0, i64 0))
br label %76
76: ; preds = %65, %74
br i1 %25, label %77, label %92
77: ; preds = %76, %89
%78 = phi i64 [ %90, %89 ], [ 0, %76 ]
%79 = getelementptr inbounds i8*, i8** %24, i64 %78
%80 = load i8*, i8** %79
%81 = call i32 @strcmp(i8* dereferenceable(1) %80, i8* %40)
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %89
83: ; preds = %77
%84 = trunc i64 %78 to i32
%85 = add nuw nsw i32 %84, 1
%86 = load i32, i32* %14
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %2, i64 %87
store i32 %85, i32* %88
br label %94
89: ; preds = %77
%90 = add nuw nsw i64 %78, 1
%91 = icmp eq i64 %90, %47
br i1 %91, label %92, label %77
92: ; preds = %89, %76
%93 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.7, i64 0, i64 0))
br label %94
94: ; preds = %83, %92
%95 = call i32 (i8*, i8*, i8*, i32*, ...) bitcast (i32 (...)* @get_string_data_level to i32 (i8*, i8*, i8*, i32*, ...)*)(i8* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8* %16, i32* %14)
%96 = call i32 (i8*, i8*, i32, i32, i8*, i32*, ...) bitcast (i32 (...)* @tokenize to i32 (i8*, i8*, i32, i32, i8*, i32*, ...)*)(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 255, i32 40, i8* %17, i32* %15)
%97 = load i32, i32* %15
%98 = icmp eq i32 %97, 8
br i1 %98, label %103, label %99
99: ; preds = %94
%100 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.10, i64 0, i64 0))
%101 = load i32, i32* %15
%102 = icmp eq i32 %101, 0
br i1 %102, label %130, label %103
103: ; preds = %94, %99
%104 = phi i32 [ 8, %94 ], [ %101, %99 ]
br label %105
105: ; preds = %103, %125
%106 = phi i32 [ %126, %125 ], [ %104, %103 ]
%107 = phi i64 [ %127, %125 ], [ 0, %103 ]
%108 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 %107, i64 0
%109 = call i64 @strlen(i8* %108)
%110 = icmp eq i64 %109, 0
br i1 %110, label %125, label %111
111: ; preds = %105, %119
%112 = phi i64 [ %120, %119 ], [ 0, %105 ]
%113 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 %107, i64 %112
%114 = load i8, i8* %113
%115 = add i8 %114, -58
%116 = icmp ult i8 %115, -10
br i1 %116, label %117, label %119
117: ; preds = %111
%118 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.11, i64 0, i64 0))
br label %119
119: ; preds = %111, %117
%120 = add nuw i64 %112, 1
%121 = call i64 @strlen(i8* %108)
%122 = icmp ugt i64 %121, %120
br i1 %122, label %111, label %123
123: ; preds = %119
%124 = load i32, i32* %15
br label %125
125: ; preds = %123, %105
%126 = phi i32 [ %124, %123 ], [ %106, %105 ]
%127 = add nuw nsw i64 %107, 1
%128 = zext i32 %126 to i64
%129 = icmp ult i64 %127, %128
br i1 %129, label %105, label %130
130: ; preds = %125, %99
%131 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %17)
%132 = load i32, i32* %14
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, i32* %3, i64 %133
store i32 %131, i32* %134
%135 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %39)
%136 = load i32, i32* %14
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i32, i32* %4, i64 %137
store i32 %135, i32* %138
%139 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %41)
%140 = load i32, i32* %14
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32, i32* %5, i64 %141
store i32 %139, i32* %142
%143 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %40)
%144 = load i32, i32* %14
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, i32* %6, i64 %145
store i32 %143, i32* %146
%147 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %42)
%148 = load i32, i32* %14
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, i32* %7, i64 %149
store i32 %147, i32* %150
%151 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %43)
%152 = load i32, i32* %14
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, i32* %8, i64 %153
store i32 %151, i32* %154
%155 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %44)
%156 = load i32, i32* %14
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds i32, i32* %9, i64 %157
store i32 %155, i32* %158
%159 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %45)
%160 = load i32, i32* %14
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i32, i32* %10, i64 %161
store i32 %159, i32* %162
%163 = getelementptr inbounds i32, i32* %3, i64 %161
%164 = load i32, i32* %163
%165 = getelementptr inbounds i32, i32* %4, i64 %161
%166 = load i32, i32* %165
%167 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %164, i32 %166, i32* %163, i32* %165, i32 2)
%168 = load i32, i32* %14
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i32, i32* %5, i64 %169
%171 = load i32, i32* %170
%172 = getelementptr inbounds i32, i32* %6, i64 %169
%173 = load i32, i32* %172
%174 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %171, i32 %173, i32* %170, i32* %172, i32 2)
%175 = load i32, i32* %14
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i32, i32* %7, i64 %176
%178 = load i32, i32* %177
%179 = getelementptr inbounds i32, i32* %8, i64 %176
%180 = load i32, i32* %179
%181 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %178, i32 %180, i32* %177, i32* %179, i32 2)
%182 = load i32, i32* %14
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32, i32* %9, i64 %183
%185 = load i32, i32* %184
%186 = getelementptr inbounds i32, i32* %10, i64 %183
%187 = load i32, i32* %186
%188 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %185, i32 %187, i32* %184, i32* %186, i32 2)
%189 = icmp eq i32 %167, 0
%190 = icmp eq i32 %174, 0
%191 = select i1 %189, i1 %190, i1 false
br i1 %191, label %192, label %194
192: ; preds = %130
%193 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
br label %194
194: ; preds = %192, %130
%195 = icmp eq i32 %181, 0
%196 = icmp eq i32 %188, 0
%197 = select i1 %195, i1 %196, i1 false
br i1 %197, label %198, label %200
198: ; preds = %194
%199 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
br label %200
200: ; preds = %198, %194
%201 = add nsw i32 %174, %167
%202 = add nsw i32 %188, %181
%203 = icmp eq i32 %201, %202
br i1 %203, label %206, label %204
204: ; preds = %200
%205 = call i32 (i8*, ...) bitcast (i32 (...)* @error_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.14, i64 0, i64 0))
br label %206
206: ; preds = %200, %204
%207 = load i32, i32* %14
%208 = add nsw i32 %207, 1
store i32 %208, i32* %14
%209 = icmp slt i32 %208, %36
br i1 %209, label %51, label %48
210: ; preds = %49, %210
%211 = phi i64 [ 0, %49 ], [ %214, %210 ]
%212 = getelementptr inbounds i8*, i8** %24, i64 %211
%213 = load i8*, i8** %212
%214 = add nuw nsw i64 %211, 1
%215 = icmp eq i64 %214, %50
br i1 %215, label %216, label %210
216: ; preds = %210, %48
ret void
}