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];
  unsigned int nstr, ntiles, ncontacts, n, m, l, found;
  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,-0x2918(%rbp)
mov    -0x2918(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x138(%rbp)
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x2918(%rbp),%eax
jae    1293 <read_mosaic_contact+0xf3>
mov    $0xff,%edi
call   1090 <malloc@plt>
mov    %rax,%rdx
mov    -0x138(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x8(%rbp),%rdi
mov    -0x138(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,8),%rdx
lea    0xd96(%rip),%rsi
lea    -0x2920(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    1225 <read_mosaic_contact+0x85>
mov    -0x8(%rbp),%rdi
lea    0xd73(%rip),%rsi
mov    $0x0,%al
call   10c0 <get_dimlen@plt>
mov    %eax,-0x291c(%rbp)
movl   $0x0,-0x2920(%rbp)
mov    -0x2920(%rbp),%eax
cmp    -0x291c(%rbp),%eax
jae    18d5 <read_mosaic_contact+0x735>
mov    -0x8(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xd41(%rip),%rsi
lea    -0x2920(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
lea    -0x130(%rbp),%rdi
lea    -0x2910(%rbp),%r8
lea    0xd27(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    -0x2914(%rbp),%r9
mov    $0x0,%al
call   10a0 <tokenize@plt>
cmpl   $0x4,-0x2914(%rbp)
je     132f <read_mosaic_contact+0x18f>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x292c(%rbp)
movl   $0x0,-0x2924(%rbp)
mov    -0x2924(%rbp),%eax
cmp    -0x2918(%rbp),%eax
jae    13c0 <read_mosaic_contact+0x220>
mov    -0x138(%rbp),%rax
mov    -0x2924(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    -0x2910(%rbp),%rsi
add    $0xff,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    13a7 <read_mosaic_contact+0x207>
movl   $0x1,-0x292c(%rbp)
mov    -0x2924(%rbp),%edx
add    $0x1,%edx
mov    -0x10(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
jmp    13c0 <read_mosaic_contact+0x220>
jmp    13ac <read_mosaic_contact+0x20c>
mov    -0x2924(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2924(%rbp)
jmp    1343 <read_mosaic_contact+0x1a3>
cmpl   $0x0,-0x292c(%rbp)
jne    13db <read_mosaic_contact+0x23b>
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x292c(%rbp)
movl   $0x0,-0x2924(%rbp)
mov    -0x2924(%rbp),%eax
cmp    -0x2918(%rbp),%eax
jae    146c <read_mosaic_contact+0x2cc>
mov    -0x138(%rbp),%rax
mov    -0x2924(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
lea    -0x2910(%rbp),%rsi
add    $0x2fd,%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1453 <read_mosaic_contact+0x2b3>
movl   $0x1,-0x292c(%rbp)
mov    -0x2924(%rbp),%edx
add    $0x1,%edx
mov    -0x18(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
jmp    146c <read_mosaic_contact+0x2cc>
jmp    1458 <read_mosaic_contact+0x2b8>
mov    -0x2924(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2924(%rbp)
jmp    13ef <read_mosaic_contact+0x24f>
cmpl   $0x0,-0x292c(%rbp)
jne    1487 <read_mosaic_contact+0x2e7>
lea    0xc54(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
mov    -0x8(%rbp),%rdi
lea    -0x130(%rbp),%rdx
lea    0xc97(%rip),%rsi
lea    -0x2920(%rbp),%rcx
mov    $0x0,%al
call   1030 <get_string_data_level@plt>
lea    -0x130(%rbp),%rdi
lea    -0x2910(%rbp),%r8
lea    0xc82(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    -0x2914(%rbp),%r9
mov    $0x0,%al
call   10a0 <tokenize@plt>
cmpl   $0x8,-0x2914(%rbp)
je     14ef <read_mosaic_contact+0x34f>
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
movl   $0x0,-0x2924(%rbp)
mov    -0x2924(%rbp),%eax
cmp    -0x2914(%rbp),%eax
jae    15e9 <read_mosaic_contact+0x449>
movl   $0x0,-0x2928(%rbp)
mov    -0x2928(%rbp),%eax
mov    %rax,-0x2950(%rbp)
mov    -0x2924(%rbp),%eax
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    15d0 <read_mosaic_contact+0x430>
mov    -0x2924(%rbp),%eax
mov    %eax,%ecx
lea    -0x2910(%rbp),%rax
imul   $0xff,%rcx,%rcx
add    %rcx,%rax
mov    -0x2928(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x39,%eax
jg     15a9 <read_mosaic_contact+0x409>
mov    -0x2924(%rbp),%eax
mov    %eax,%ecx
lea    -0x2910(%rbp),%rax
imul   $0xff,%rcx,%rcx
add    %rcx,%rax
mov    -0x2928(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
jge    15b7 <read_mosaic_contact+0x417>
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
jmp    15bc <read_mosaic_contact+0x41c>
mov    -0x2928(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2928(%rbp)
jmp    1515 <read_mosaic_contact+0x375>
jmp    15d5 <read_mosaic_contact+0x435>
mov    -0x2924(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2924(%rbp)
jmp    14f9 <read_mosaic_contact+0x359>
lea    -0x2910(%rbp),%rdi
mov    $0x0,%al
call   10b0 <atoi@plt>
mov    %eax,%edx
mov    -0x20(%rbp),%rax
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
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
mov    -0x2920(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%edi
mov    -0x28(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
mov    -0x20(%rbp),%rdx
mov    -0x2920(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rdx
mov    -0x28(%rbp),%rcx
mov    -0x2920(%rbp),%eax
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
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%edi
mov    0x10(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
mov    -0x30(%rbp),%rdx
mov    -0x2920(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x10(%rbp),%rcx
mov    -0x2920(%rbp),%eax
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
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%edi
mov    0x20(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
mov    0x18(%rbp),%rdx
mov    -0x2920(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x20(%rbp),%rcx
mov    -0x2920(%rbp),%eax
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
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%edi
mov    0x30(%rbp),%rax
mov    -0x2920(%rbp),%ecx
mov    (%rax,%rcx,4),%esi
mov    0x28(%rbp),%rdx
mov    -0x2920(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rdx
mov    0x30(%rbp),%rcx
mov    -0x2920(%rbp),%eax
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    1866 <read_mosaic_contact+0x6c6>
cmpl   $0x0,-0x293c(%rbp)
jne    1866 <read_mosaic_contact+0x6c6>
lea    0x99d(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
cmpl   $0x0,-0x2940(%rbp)
jne    188e <read_mosaic_contact+0x6ee>
cmpl   $0x0,-0x2944(%rbp)
jne    188e <read_mosaic_contact+0x6ee>
lea    0x9b6(%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     18bc <read_mosaic_contact+0x71c>
lea    0x9c9(%rip),%rdi
mov    $0x0,%al
call   1070 <error_handler@plt>
jmp    18c1 <read_mosaic_contact+0x721>
mov    -0x2920(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2920(%rbp)
jmp    12b5 <read_mosaic_contact+0x115>
movl   $0x0,-0x2924(%rbp)
mov    -0x2924(%rbp),%eax
cmp    -0x2918(%rbp),%eax
jae    191b <read_mosaic_contact+0x77b>
mov    -0x138(%rbp),%rax
mov    -0x2924(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    -0x2924(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2924(%rbp)
jmp    18df <read_mosaic_contact+0x73f>
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,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,%r13
lea    0xe2c(%rip),%rsi
xor    %eax,%eax
call   10c0 <get_dimlen@plt>
mov    %eax,%ebx
mov    %eax,%r12d
lea    0x0(,%r12,8),%rdi
call   1090 <malloc@plt>
mov    %rax,%r14
movl   $0x0,0xc(%rsp)
test   %ebx,%ebx
je     1243 <read_mosaic_contact+0xa3>
lea    0xe04(%rip),%rbp
lea    0xc(%rsp),%r15
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    $0xff,%edi
call   1090 <malloc@plt>
mov    %ebx,%ecx
mov    %rax,(%r14,%rcx,8)
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    0xc(%rsp),%ebx
add    $0x1,%ebx
mov    %ebx,0xc(%rsp)
cmp    %r12d,%ebx
jb     1210 <read_mosaic_contact+0x70>
lea    0xdc7(%rip),%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   10c0 <get_dimlen@plt>
movl   $0x0,0xc(%rsp)
mov    %eax,0x14(%rsp)
test   %eax,%eax
je     167b <read_mosaic_contact+0x4db>
lea    0x24f(%rsp),%rbp
lea    0xf23(%rip),%r15
mov    %r14,0x30(%rsp)
mov    %r13,0x28(%rsp)
jmp    12b7 <read_mosaic_contact+0x117>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    0x14(%rsp),%eax
mov    0x30(%rsp),%r14
mov    0x28(%rsp),%r13
lea    0x24f(%rsp),%rbp
jae    167b <read_mosaic_contact+0x4db>
mov    %r13,%rdi
lea    0xd59(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdx
lea    0xc(%rsp),%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    %rbx,%rdi
lea    0xd44(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    0x150(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
call   10a0 <tokenize@plt>
cmpl   $0x4,0x10(%rsp)
je     1312 <read_mosaic_contact+0x172>
lea    0xd1a(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
test   %r12,%r12
je     1339 <read_mosaic_contact+0x199>
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    (%r14,%rbx,8),%rdi
mov    %rbp,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1350 <read_mosaic_contact+0x1b0>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1320 <read_mosaic_contact+0x180>
lea    0xd39(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    135f <read_mosaic_contact+0x1bf>
nopl   0x0(%rax)
add    $0x1,%ebx
mov    0xc(%rsp),%eax
mov    0x18(%rsp),%rcx
mov    %ebx,(%rcx,%rax,4)
test   %r12,%r12
lea    0x44d(%rsp),%rbp
je     1389 <read_mosaic_contact+0x1e9>
xor    %ebx,%ebx
xchg   %ax,%ax
mov    (%r14,%rbx,8),%rdi
mov    %rbp,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     13a0 <read_mosaic_contact+0x200>
add    $0x1,%rbx
cmp    %rbx,%r12
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
mov    0xc(%rsp),%eax
mov    0x20(%rsp),%rcx
mov    %ebx,(%rcx,%rax,4)
mov    %r13,%rdi
lea    0xd77(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdx
lea    0xc(%rsp),%rcx
xor    %eax,%eax
call   1030 <get_string_data_level@plt>
mov    %rbx,%rdi
lea    0xd67(%rip),%rsi
mov    $0xff,%edx
mov    $0x28,%ecx
lea    0x150(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %eax,%eax
call   10a0 <tokenize@plt>
mov    $0x8,%r14d
cmpl   $0x8,0x10(%rsp)
je     141a <read_mosaic_contact+0x27a>
lea    0xd38(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
mov    0x10(%rsp),%r14d
test   %r14d,%r14d
je     1490 <read_mosaic_contact+0x2f0>
xor    %r13d,%r13d
jmp    1431 <read_mosaic_contact+0x291>
nop
mov    0x10(%rsp),%r14d
add    $0x1,%r13
mov    %r14d,%eax
cmp    %rax,%r13
jae    1490 <read_mosaic_contact+0x2f0>
mov    %r13,%rax
shl    $0x8,%rax
sub    %r13,%rax
lea    (%rsp,%rax,1),%rbp
add    $0x150,%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %rax,%rax
je     1425 <read_mosaic_contact+0x285>
xor    %ebx,%ebx
jmp    1470 <read_mosaic_contact+0x2d0>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
mov    %rbp,%rdi
call   1060 <strlen@plt>
cmp    %rbx,%rax
jbe    1420 <read_mosaic_contact+0x280>
movzbl (%rbx,%rbp,1),%eax
add    $0xc6,%al
cmp    $0xf5,%al
ja     1460 <read_mosaic_contact+0x2c0>
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    1460 <read_mosaic_contact+0x2c0>
cs nopw 0x0(%rax,%rax,1)
lea    0x150(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x38(%rsp),%r14
mov    %eax,(%r14,%rcx,4)
lea    0x24f(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x40(%rsp),%rbp
mov    %eax,0x0(%rbp,%rcx,4)
lea    0x34e(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x48(%rsp),%rbx
mov    %eax,(%rbx,%rcx,4)
lea    0x44d(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x2960(%rsp),%r13
mov    %eax,0x0(%r13,%rcx,4)
lea    0x54c(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x2968(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x64b(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x2970(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x74a(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%ecx
mov    0x2978(%rsp),%rdx
mov    %eax,(%rdx,%rcx,4)
lea    0x849(%rsp),%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
mov    0xc(%rsp),%esi
mov    0x2980(%rsp),%rcx
mov    %eax,(%rcx,%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>
mov    0xc(%rsp),%esi
lea    (%rbx,%rsi,4),%rdx
mov    (%rbx,%rsi,4),%edi
mov    %eax,%ebx
lea    0x0(,%rsi,4),%rcx
add    %r13,%rcx
mov    0x0(%r13,%rsi,4),%esi
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <transfer_to_model_index@plt>
mov    %eax,%r13d
mov    0xc(%rsp),%eax
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,%ebp
mov    0xc(%rsp),%eax
mov    0x2978(%rsp),%rcx
lea    (%rcx,%rax,4),%rdx
mov    (%rcx,%rax,4),%edi
mov    0x2980(%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
mov    %ebx,%eax
or     %r13d,%eax
jne    1644 <read_mosaic_contact+0x4a4>
lea    0xbbf(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
mov    %ebp,%eax
or     %r14d,%eax
jne    1659 <read_mosaic_contact+0x4b9>
lea    0xbeb(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
add    %ebx,%r13d
add    %ebp,%r14d
cmp    %r14d,%r13d
je     1290 <read_mosaic_contact+0xf0>
lea    0xc0f(%rip),%rdi
xor    %eax,%eax
call   1070 <error_handler@plt>
jmp    1290 <read_mosaic_contact+0xf0>
test   %r12,%r12
je     16a2 <read_mosaic_contact+0x502>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r14,%rbx,8),%rdi
call   1040 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1690 <read_mosaic_contact+0x4f0>
mov    %r14,%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* %27
%41 = load i32, i32* %27
%42 = zext 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* %29
br label %46
46: ; preds = %63, %11
%47 = load i32, i32* %29
%48 = load i32, i32* %27
%49 = icmp ult 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* %29
%54 = zext 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* %29
%59 = zext 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* %29)
br label %63
63: ; preds = %50
%64 = load i32, i32* %29
%65 = add i32 %64, 1
store i32 %65, i32* %29
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* %28
store i32 0, i32* %29
br label %69
69: ; preds = %363, %66
%70 = load i32, i32* %29
%71 = load i32, i32* %28
%72 = icmp ult 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* %29)
%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* %26)
%81 = load i32, i32* %26
%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* %32
store i32 0, i32* %30
br label %86
86: ; preds = %108, %85
%87 = load i32, i32* %30
%88 = load i32, i32* %27
%89 = icmp ult i32 %87, %88
br i1 %89, label %90, label %111
90: ; preds = %86
%91 = load i8**, i8*** %24
%92 = load i32, i32* %30
%93 = zext 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* %32
%101 = load i32, i32* %30
%102 = add i32 %101, 1
%103 = load i32*, i32** %13
%104 = load i32, i32* %29
%105 = zext 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* %30
%110 = add i32 %109, 1
store i32 %110, i32* %30
br label %86
111: ; preds = %100, %86
%112 = load i32, i32* %32
%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* %32
store i32 0, i32* %30
br label %117
117: ; preds = %139, %116
%118 = load i32, i32* %30
%119 = load i32, i32* %27
%120 = icmp ult i32 %118, %119
br i1 %120, label %121, label %142
121: ; preds = %117
%122 = load i8**, i8*** %24
%123 = load i32, i32* %30
%124 = zext 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* %32
%132 = load i32, i32* %30
%133 = add i32 %132, 1
%134 = load i32*, i32** %14
%135 = load i32, i32* %29
%136 = zext 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* %30
%141 = add i32 %140, 1
store i32 %141, i32* %30
br label %117
142: ; preds = %131, %117
%143 = load i32, i32* %32
%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* %29)
%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* %26)
%155 = load i32, i32* %26
%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* %30
br label %160
160: ; preds = %201, %159
%161 = load i32, i32* %30
%162 = load i32, i32* %26
%163 = icmp ult i32 %161, %162
br i1 %163, label %164, label %204
164: ; preds = %160
store i32 0, i32* %31
br label %165
165: ; preds = %197, %164
%166 = load i32, i32* %31
%167 = zext i32 %166 to i64
%168 = load i32, i32* %30
%169 = zext 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* %30
%176 = zext 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* %31
%179 = zext 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* %30
%186 = zext 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* %31
%189 = zext 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* %31
%199 = add i32 %198, 1
store i32 %199, i32* %31
br label %165
200: ; preds = %165
br label %201
201: ; preds = %200
%202 = load i32, i32* %30
%203 = add i32 %202, 1
store i32 %203, i32* %30
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* %29
%210 = zext 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* %29
%217 = zext 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* %29
%224 = zext 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* %29
%231 = zext 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* %29
%238 = zext 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* %29
%245 = zext 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* %29
%252 = zext 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* %29
%259 = zext 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* %29
%263 = zext 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* %29
%268 = zext 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* %29
%273 = zext i32 %272 to i64
%274 = getelementptr inbounds i32, i32* %271, i64 %273
%275 = load i32*, i32** %16
%276 = load i32, i32* %29
%277 = zext 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* %29
%282 = zext 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* %29
%287 = zext 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* %29
%292 = zext i32 %291 to i64
%293 = getelementptr inbounds i32, i32* %290, i64 %292
%294 = load i32*, i32** %18
%295 = load i32, i32* %29
%296 = zext 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* %29
%301 = zext 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* %29
%306 = zext 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* %29
%311 = zext i32 %310 to i64
%312 = getelementptr inbounds i32, i32* %309, i64 %311
%313 = load i32*, i32** %20
%314 = load i32, i32* %29
%315 = zext 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* %29
%320 = zext 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* %29
%325 = zext 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* %29
%330 = zext i32 %329 to i64
%331 = getelementptr inbounds i32, i32* %328, i64 %330
%332 = load i32*, i32** %22
%333 = load i32, i32* %29
%334 = zext 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* %29
%365 = add i32 %364, 1
store i32 %365, i32* %29
br label %69
366: ; preds = %69
store i32 0, i32* %30
br label %367
367: ; preds = %377, %366
%368 = load i32, i32* %30
%369 = load i32, i32* %27
%370 = icmp ult i32 %368, %369
br i1 %370, label %371, label %380
371: ; preds = %367
%372 = load i8**, i8*** %24
%373 = load i32, i32* %30
%374 = zext 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* %30
%379 = add i32 %378, 1
store i32 %379, i32* %30
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 = zext i32 %20 to i64
%22 = shl nuw nsw i64 %21, 3
%23 = tail call i8* @malloc(i64 %22)
%24 = bitcast i8* %23 to i8**
store i32 0, i32* %15
%25 = icmp eq i32 %20, 0
br i1 %25, label %35, label %26
26: ; preds = %11, %26
%27 = phi i32 [ %33, %26 ], [ 0, %11 ]
%28 = call dereferenceable_or_null(255) i8* @malloc(i64 255)
%29 = zext 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* %15)
%32 = load i32, i32* %15
%33 = add i32 %32, 1
store i32 %33, i32* %15
%34 = icmp ult 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* %15
%37 = icmp eq i32 %36, 0
br i1 %37, label %46, label %38
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
br label %47
46: ; preds = %203, %35
br i1 %25, label %213, label %207
47: ; preds = %38, %203
%48 = 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* %15)
%49 = 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* %14)
%50 = load i32, i32* %14
%51 = icmp eq i32 %50, 4
br i1 %51, label %54, label %52
52: ; preds = %47
%53 = 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 %54
54: ; preds = %52, %47
br i1 %25, label %70, label %55
55: ; preds = %54, %67
%56 = phi i64 [ %68, %67 ], [ 0, %54 ]
%57 = getelementptr inbounds i8*, i8** %24, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 @strcmp(i8* dereferenceable(1) %58, i8* %39)
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %55
%62 = trunc i64 %56 to i32
%63 = add nuw i32 %62, 1
%64 = load i32, i32* %15
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds i32, i32* %1, i64 %65
store i32 %63, i32* %66
br label %72
67: ; preds = %55
%68 = add nuw nsw i64 %56, 1
%69 = icmp eq i64 %68, %21
br i1 %69, label %70, label %55
70: ; preds = %67, %54
%71 = 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 %72
72: ; preds = %61, %70
br i1 %25, label %88, label %73
73: ; preds = %72, %85
%74 = phi i64 [ %86, %85 ], [ 0, %72 ]
%75 = getelementptr inbounds i8*, i8** %24, i64 %74
%76 = load i8*, i8** %75
%77 = call i32 @strcmp(i8* dereferenceable(1) %76, i8* %40)
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %85
79: ; preds = %73
%80 = trunc i64 %74 to i32
%81 = add nuw i32 %80, 1
%82 = load i32, i32* %15
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %2, i64 %83
store i32 %81, i32* %84
br label %90
85: ; preds = %73
%86 = add nuw nsw i64 %74, 1
%87 = icmp eq i64 %86, %21
br i1 %87, label %88, label %73
88: ; preds = %85, %72
%89 = 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 %90
90: ; preds = %79, %88
%91 = 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* %15)
%92 = 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* %14)
%93 = load i32, i32* %14
%94 = icmp eq i32 %93, 8
br i1 %94, label %99, label %95
95: ; preds = %90
%96 = 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))
%97 = load i32, i32* %14
%98 = icmp eq i32 %97, 0
br i1 %98, label %127, label %99
99: ; preds = %90, %95
%100 = phi i32 [ 8, %90 ], [ %97, %95 ]
br label %101
101: ; preds = %99, %122
%102 = phi i32 [ %123, %122 ], [ %100, %99 ]
%103 = phi i64 [ %124, %122 ], [ 0, %99 ]
%104 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 %103, i64 0
%105 = call i64 @strlen(i8* %104)
%106 = icmp eq i64 %105, 0
br i1 %106, label %122, label %107
107: ; preds = %101, %115
%108 = phi i64 [ %117, %115 ], [ 0, %101 ]
%109 = getelementptr inbounds [40 x [255 x i8]], [40 x [255 x i8]]* %13, i64 0, i64 %103, i64 %108
%110 = load i8, i8* %109
%111 = add i8 %110, -58
%112 = icmp ult i8 %111, -10
br i1 %112, label %113, label %115
113: ; preds = %107
%114 = 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 %115
115: ; preds = %107, %113
%116 = add nuw nsw i64 %108, 1
%117 = and i64 %116, 4294967295
%118 = call i64 @strlen(i8* %104)
%119 = icmp ugt i64 %118, %117
br i1 %119, label %107, label %120
120: ; preds = %115
%121 = load i32, i32* %14
br label %122
122: ; preds = %120, %101
%123 = phi i32 [ %121, %120 ], [ %102, %101 ]
%124 = add nuw nsw i64 %103, 1
%125 = zext i32 %123 to i64
%126 = icmp ult i64 %124, %125
br i1 %126, label %101, label %127
127: ; preds = %122, %95
%128 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %17)
%129 = load i32, i32* %15
%130 = zext i32 %129 to i64
%131 = getelementptr inbounds i32, i32* %3, i64 %130
store i32 %128, i32* %131
%132 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %39)
%133 = load i32, i32* %15
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds i32, i32* %4, i64 %134
store i32 %132, i32* %135
%136 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %41)
%137 = load i32, i32* %15
%138 = zext i32 %137 to i64
%139 = getelementptr inbounds i32, i32* %5, i64 %138
store i32 %136, i32* %139
%140 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %40)
%141 = load i32, i32* %15
%142 = zext i32 %141 to i64
%143 = getelementptr inbounds i32, i32* %6, i64 %142
store i32 %140, i32* %143
%144 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %42)
%145 = load i32, i32* %15
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds i32, i32* %7, i64 %146
store i32 %144, i32* %147
%148 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %43)
%149 = load i32, i32* %15
%150 = zext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %8, i64 %150
store i32 %148, i32* %151
%152 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %44)
%153 = load i32, i32* %15
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds i32, i32* %9, i64 %154
store i32 %152, i32* %155
%156 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %45)
%157 = load i32, i32* %15
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds i32, i32* %10, i64 %158
store i32 %156, i32* %159
%160 = getelementptr inbounds i32, i32* %3, i64 %158
%161 = load i32, i32* %160
%162 = getelementptr inbounds i32, i32* %4, i64 %158
%163 = load i32, i32* %162
%164 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %161, i32 %163, i32* %160, i32* %162, i32 2)
%165 = load i32, i32* %15
%166 = zext i32 %165 to i64
%167 = getelementptr inbounds i32, i32* %5, i64 %166
%168 = load i32, i32* %167
%169 = getelementptr inbounds i32, i32* %6, i64 %166
%170 = load i32, i32* %169
%171 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %168, i32 %170, i32* %167, i32* %169, i32 2)
%172 = load i32, i32* %15
%173 = zext i32 %172 to i64
%174 = getelementptr inbounds i32, i32* %7, i64 %173
%175 = load i32, i32* %174
%176 = getelementptr inbounds i32, i32* %8, i64 %173
%177 = load i32, i32* %176
%178 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %175, i32 %177, i32* %174, i32* %176, i32 2)
%179 = load i32, i32* %15
%180 = zext i32 %179 to i64
%181 = getelementptr inbounds i32, i32* %9, i64 %180
%182 = load i32, i32* %181
%183 = getelementptr inbounds i32, i32* %10, i64 %180
%184 = load i32, i32* %183
%185 = call i32 (i32, i32, i32*, i32*, i32, ...) bitcast (i32 (...)* @transfer_to_model_index to i32 (i32, i32, i32*, i32*, i32, ...)*)(i32 %182, i32 %184, i32* %181, i32* %183, i32 2)
%186 = icmp eq i32 %164, 0
%187 = icmp eq i32 %171, 0
%188 = select i1 %186, i1 %187, i1 false
br i1 %188, label %189, label %191
189: ; preds = %127
%190 = 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 %191
191: ; preds = %189, %127
%192 = icmp eq i32 %178, 0
%193 = icmp eq i32 %185, 0
%194 = select i1 %192, i1 %193, i1 false
br i1 %194, label %195, label %197
195: ; preds = %191
%196 = 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 %197
197: ; preds = %195, %191
%198 = add nsw i32 %171, %164
%199 = add nsw i32 %185, %178
%200 = icmp eq i32 %198, %199
br i1 %200, label %203, label %201
201: ; preds = %197
%202 = 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 %203
203: ; preds = %197, %201
%204 = load i32, i32* %15
%205 = add i32 %204, 1
store i32 %205, i32* %15
%206 = icmp ult i32 %205, %36
br i1 %206, label %47, label %46
207: ; preds = %46, %207
%208 = phi i64 [ %211, %207 ], [ 0, %46 ]
%209 = getelementptr inbounds i8*, i8** %24, i64 %208
%210 = load i8*, i8** %209
%211 = add nuw nsw i64 %208, 1
%212 = icmp eq i64 %211, %21
br i1 %212, label %213, label %207
213: ; preds = %207, %46
ret void
}