#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main(int argc, char **argv) {
  int iStu_id;
  int iSems;
  int iNumco = 0;
  int iCo_id;
  int iaStud[5][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}};
  int iaCoud[5][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, 0}};
  int i, j, k;
  char cStu_name[100];
  for (i = 0; i < 5; i++) {
    printf("\nEnter student ID: ");
    scanf("%d", &iStu_id);
    if (iStu_id > 1000 && iStu_id <= 1005) {
      printf("\nEnter current semester: ");
      scanf("%d", &iSems);
      if (iSems == 5) {
        printf("Checking if your student ID is in system...");
        for (k = 0; k < 5; k++) {
          if (iStu_id == iaStud[k][0]) {
            printf("\nError! You have registered already");
            printf("\nKill Program!\n");
            return (0);
          }
        }
        printf("no data yet. ok!\n");
        iaStud[i][0] = iStu_id;
        printf("\nCurrent Number of Courses: %d\n", iaCoud[i][1]);
        printf("Enter students first name: ");
        scanf("%s", cStu_name);
        printf("Hello, ");
        printf("%s", cStu_name);
        if (iaStud[i][1] == 0) {
          iNumco = 0;
          while (iNumco < 2) {
            for (j = 0; j < 2; j++) {
              printf("\nEnter Course ID: ");
              scanf("%d", &iCo_id);
              if (iCo_id > 5000 && iCo_id <= 5005) {
                printf("\nEx: Course ID %d is allocated with ID %d\n", iCo_id,
                       iStu_id);
                iNumco++;
                iaCoud[i][j] = iCo_id;
                printf("\nCurrent number of courses: %d\n", iNumco);
              } else {
                printf("\nError! Course ID invalid!");
                printf("\nExiting Program!\n");
                return (0);
              }
            }
          }
          iaStud[i][1] = iNumco;
          iNumco = 0;
        } else {
          printf("\nError! Your courses must be zero to proceed");
          printf("\nExiting Program!\n");
          return (0);
        }
      } else {
        printf("\nError! Your current semester is not applicable\n");
        printf("\nExiting Program!\n");
        return (0);
      }
    } else {
      printf("\nError! Your Student ID is not applicable\n");
      printf("\nExiting Program!\n");
      return (0);
    }
  }
  printf("\n\n");
  for (i = 0; i < 5; i++) {
    for (j = 0; j < 2; j++) {
      printf("iaStud[%d][%d] = %d\n", i, j, iaStud[i][j]);
    }
  }
  printf("\n\n");
  for (i = 0; i < 5; i++) {
    for (j = 0; j < 2; j++) {
      printf("iaCoud[%d][%d] = %d\n", i, j, iaCoud[i][j]);
    }
  }
  printf("\nThank you for using this program!");
  printf("\nHave a nice day!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    14a1 <main+0x371>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe78(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x3e8,-0x14(%rbp)
jle    1460 <main+0x330>
cmpl   $0x3ed,-0x14(%rbp)
jg     1460 <main+0x330>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3e(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x5,-0x18(%rbp)
jne    1433 <main+0x303>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x5,-0x8c(%rbp)
jge    1265 <main+0x135>
mov    -0x14(%rbp),%eax
movslq -0x8c(%rbp),%rcx
cmp    -0x50(%rbp,%rcx,8),%eax
jne    124c <main+0x11c>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1602 <main+0x4d2>
jmp    1251 <main+0x121>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1203 <main+0xd3>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%ecx
movslq -0x84(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,8)
movslq -0x84(%rbp),%rax
mov    -0x7c(%rbp,%rax,8),%esi
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf0(%rbp),%rsi
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xf0(%rbp),%rsi
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x84(%rbp),%rax
cmpl   $0x0,-0x4c(%rbp,%rax,8)
jne    1406 <main+0x2d6>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    13ec <main+0x2bc>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    13e7 <main+0x2b7>
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce5(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0x1388,-0x20(%rbp)
jle    13a6 <main+0x276>
cmpl   $0x138d,-0x20(%rbp)
jg     13a6 <main+0x276>
mov    -0x20(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%edx
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%esi
lea    0xd8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13ce <main+0x29e>
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1602 <main+0x4d2>
jmp    13d3 <main+0x2a3>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    130d <main+0x1dd>
jmp    12f9 <main+0x1c9>
mov    -0x1c(%rbp),%ecx
movslq -0x84(%rbp),%rax
mov    %ecx,-0x4c(%rbp,%rax,8)
movl   $0x0,-0x1c(%rbp)
jmp    142e <main+0x2fe>
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1602 <main+0x4d2>
jmp    145b <main+0x32b>
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1602 <main+0x4d2>
jmp    1488 <main+0x358>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1602 <main+0x4d2>
jmp    148d <main+0x35d>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    117a <main+0x4a>
lea    0xd57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    1540 <main+0x410>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    1527 <main+0x3f7>
mov    -0x84(%rbp),%esi
mov    -0x88(%rbp),%edx
movslq -0x84(%rbp),%rcx
lea    -0x50(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    14d0 <main+0x3a0>
jmp    152c <main+0x3fc>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    14b9 <main+0x389>
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    15df <main+0x4af>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    15c6 <main+0x496>
mov    -0x84(%rbp),%esi
mov    -0x88(%rbp),%edx
movslq -0x84(%rbp),%rcx
lea    -0x80(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    156f <main+0x43f>
jmp    15cb <main+0x49b>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1558 <main+0x428>
lea    0xc46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x30(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x60(%rsp)
lea    0xea3(%rip),%r14
lea    0xf8e(%rip),%rbp
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
mov    $0xfffffc17,%ecx
add    %ecx,%eax
cmp    $0x4,%eax
ja     1562 <main+0x432>
lea    0xe5f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x3c(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x5,0x3c(%rsp)
jne    156b <main+0x43b>
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
cmp    0x10(%rsp),%eax
je     1579 <main+0x449>
cmp    0x18(%rsp),%eax
je     1579 <main+0x449>
cmp    0x20(%rsp),%eax
je     1579 <main+0x449>
cmp    0x28(%rsp),%eax
je     1579 <main+0x449>
cmp    0x30(%rsp),%eax
je     1579 <main+0x449>
mov    %rbp,%r13
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x10(%rsp,%r15,8)
mov    0x44(%rsp,%r15,8),%esi
lea    0xe40(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe52(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe60(%rip),%rbp
mov    %rbp,%rdi
lea    0x70(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x14(%rsp,%r15,8)
jne    1590 <main+0x460>
lea    0xe2b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%esi
lea    -0x1389(%rsi),%eax
cmp    $0x4,%eax
lea    0xe14(%rip),%r12
ja     1559 <main+0x429>
mov    %r13,%rbp
mov    0xc(%rsp),%edx
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
mov    %eax,0x40(%rsp,%r15,8)
mov    %r13,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdcb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%esi
lea    -0x1389(%rsi),%eax
cmp    $0x4,%eax
ja     1559 <main+0x429>
lea    (%r15,%r15,1),%r13
mov    0xc(%rsp),%edx
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
mov    %eax,0x44(%rsp,%r13,4)
mov    %rbp,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x2,0x14(%rsp,%r13,4)
add    $0x1,%r15
cmp    $0x5,%r15
jne    1180 <main+0x50>
lea    0xd31(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%ecx
lea    0xded(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%ecx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x2,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x3,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%ecx
mov    %rbp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x40(%rsp),%ecx
lea    0xd18(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%ecx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x54(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x58(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x5c(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x64(%rsp),%ecx
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc4f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc64(%rip),%rdi
jmp    15a5 <main+0x475>
lea    0xbc6(%rip),%rdi
jmp    1597 <main+0x467>
lea    0xc64(%rip),%rdi
jmp    1572 <main+0x442>
lea    0xc85(%rip),%rdi
call   1030 <puts@plt>
jmp    159e <main+0x46e>
lea    0xadd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcbc(%rip),%rdi
jmp    15a5 <main+0x475>
lea    0xbaa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc93(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0AEnter student ID: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AEnter current semester: \00"
@.str.3 = [44 x i8] c"Checking if your student ID is in system...\00"
@.str.4 = [36 x i8] c"\0AError! You have registered already\00"
@.str.5 = [16 x i8] c"\0AKill Program!\0A\00"
@.str.6 = [18 x i8] c"no data yet. ok!\0A\00"
@.str.7 = [32 x i8] c"\0ACurrent Number of Courses: %d\0A\00"
@.str.8 = [28 x i8] c"Enter students first name: \00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [8 x i8] c"Hello, \00"
@.str.11 = [19 x i8] c"\0AEnter Course ID: \00"
@.str.12 = [43 x i8] c"\0AEx: Course ID %d is allocated with ID %d\0A\00"
@.str.13 = [32 x i8] c"\0ACurrent number of courses: %d\0A\00"
@.str.14 = [27 x i8] c"\0AError! Course ID invalid!\00"
@.str.15 = [19 x i8] c"\0AExiting Program!\0A\00"
@.str.16 = [45 x i8] c"\0AError! Your courses must be zero to proceed\00"
@.str.17 = [49 x i8] c"\0AError! Your current semester is not applicable\0A\00"
@.str.18 = [43 x i8] c"\0AError! Your Student ID is not applicable\0A\00"
@.str.19 = [3 x i8] c"\0A\0A\00"
@.str.20 = [21 x i8] c"iaStud[%d][%d] = %d\0A\00"
@.str.21 = [21 x i8] c"iaCoud[%d][%d] = %d\0A\00"
@.str.22 = [35 x i8] c"\0AThank you for using this program!\00"
@.str.23 = [19 x i8] c"\0AHave a nice day!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [5 x [2 x i32]]
%11 = alloca [5 x [2 x i32]]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%16 = bitcast [5 x [2 x i32]]* %10 to i8*
%17 = bitcast [5 x [2 x i32]]* %11 to i8*
store i32 0, i32* %12
br label %18
18: ; preds = %136, %2
%19 = load i32, i32* %12
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %139
21: ; preds = %18
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%24 = load i32, i32* %6
%25 = icmp sgt i32 %24, 1000
br i1 %25, label %26, label %132
26: ; preds = %21
%27 = load i32, i32* %6
%28 = icmp sle i32 %27, 1005
br i1 %28, label %29, label %132
29: ; preds = %26
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%32 = load i32, i32* %7
%33 = icmp eq i32 %32, 5
br i1 %33, label %34, label %128
34: ; preds = %29
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %14
br label %36
36: ; preds = %51, %34
%37 = load i32, i32* %14
%38 = icmp slt i32 %37, 5
br i1 %38, label %39, label %54
39: ; preds = %36
%40 = load i32, i32* %6
%41 = load i32, i32* %14
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %10, i64 0, i64 %42
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %43, i64 0, i64 0
%45 = load i32, i32* %44
%46 = icmp eq i32 %40, %45
br i1 %46, label %47, label %50
47: ; preds = %39
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %196
50: ; preds = %39
br label %51
51: ; preds = %50
%52 = load i32, i32* %14
%53 = add nsw i32 %52, 1
store i32 %53, i32* %14
br label %36
54: ; preds = %36
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%56 = load i32, i32* %6
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %10, i64 0, i64 %58
%60 = getelementptr inbounds [2 x i32], [2 x i32]* %59, i64 0, i64 0
store i32 %56, i32* %60
%61 = load i32, i32* %12
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %11, i64 0, i64 %62
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %63, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %65)
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%68 = getelementptr inbounds [100 x i8], [100 x i8]* %15, i64 0, i64 0
%69 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %68)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %15, i64 0, i64 0
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %71)
%73 = load i32, i32* %12
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %10, i64 0, i64 %74
%76 = getelementptr inbounds [2 x i32], [2 x i32]* %75, i64 0, i64 1
%77 = load i32, i32* %76
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %124
79: ; preds = %54
store i32 0, i32* %8
br label %80
80: ; preds = %117, %79
%81 = load i32, i32* %8
%82 = icmp slt i32 %81, 2
br i1 %82, label %83, label %118
83: ; preds = %80
store i32 0, i32* %13
br label %84
84: ; preds = %114, %83
%85 = load i32, i32* %13
%86 = icmp slt i32 %85, 2
br i1 %86, label %87, label %117
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%89 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%90 = load i32, i32* %9
%91 = icmp sgt i32 %90, 5000
br i1 %91, label %92, label %110
92: ; preds = %87
%93 = load i32, i32* %9
%94 = icmp sle i32 %93, 5005
br i1 %94, label %95, label %110
95: ; preds = %92
%96 = load i32, i32* %9
%97 = load i32, i32* %6
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0), i32 %96, i32 %97)
%99 = load i32, i32* %8
%100 = add nsw i32 %99, 1
store i32 %100, i32* %8
%101 = load i32, i32* %9
%102 = load i32, i32* %12
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %11, i64 0, i64 %103
%105 = load i32, i32* %13
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [2 x i32], [2 x i32]* %104, i64 0, i64 %106
store i32 %101, i32* %107
%108 = load i32, i32* %8
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 %108)
br label %113
110: ; preds = %92, %87
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %3
br label %196
113: ; preds = %95
br label %114
114: ; preds = %113
%115 = load i32, i32* %13
%116 = add nsw i32 %115, 1
store i32 %116, i32* %13
br label %84
117: ; preds = %84
br label %80
118: ; preds = %80
%119 = load i32, i32* %8
%120 = load i32, i32* %12
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %10, i64 0, i64 %121
%123 = getelementptr inbounds [2 x i32], [2 x i32]* %122, i64 0, i64 1
store i32 %119, i32* %123
store i32 0, i32* %8
br label %127
124: ; preds = %54
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.16, i64 0, i64 0))
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %3
br label %196
127: ; preds = %118
br label %131
128: ; preds = %29
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0))
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %3
br label %196
131: ; preds = %127
br label %135
132: ; preds = %26, %21
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %3
br label %196
135: ; preds = %131
br label %136
136: ; preds = %135
%137 = load i32, i32* %12
%138 = add nsw i32 %137, 1
store i32 %138, i32* %12
br label %18
139: ; preds = %18
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %12
br label %141
141: ; preds = %163, %139
%142 = load i32, i32* %12
%143 = icmp slt i32 %142, 5
br i1 %143, label %144, label %166
144: ; preds = %141
store i32 0, i32* %13
br label %145
145: ; preds = %159, %144
%146 = load i32, i32* %13
%147 = icmp slt i32 %146, 2
br i1 %147, label %148, label %162
148: ; preds = %145
%149 = load i32, i32* %12
%150 = load i32, i32* %13
%151 = load i32, i32* %12
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %10, i64 0, i64 %152
%154 = load i32, i32* %13
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [2 x i32], [2 x i32]* %153, i64 0, i64 %155
%157 = load i32, i32* %156
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 %149, i32 %150, i32 %157)
br label %159
159: ; preds = %148
%160 = load i32, i32* %13
%161 = add nsw i32 %160, 1
store i32 %161, i32* %13
br label %145
162: ; preds = %145
br label %163
163: ; preds = %162
%164 = load i32, i32* %12
%165 = add nsw i32 %164, 1
store i32 %165, i32* %12
br label %141
166: ; preds = %141
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %12
br label %168
168: ; preds = %190, %166
%169 = load i32, i32* %12
%170 = icmp slt i32 %169, 5
br i1 %170, label %171, label %193
171: ; preds = %168
store i32 0, i32* %13
br label %172
172: ; preds = %186, %171
%173 = load i32, i32* %13
%174 = icmp slt i32 %173, 2
br i1 %174, label %175, label %189
175: ; preds = %172
%176 = load i32, i32* %12
%177 = load i32, i32* %13
%178 = load i32, i32* %12
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %11, i64 0, i64 %179
%181 = load i32, i32* %13
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [2 x i32], [2 x i32]* %180, i64 0, i64 %182
%184 = load i32, i32* %183
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 %176, i32 %177, i32 %184)
br label %186
186: ; preds = %175
%187 = load i32, i32* %13
%188 = add nsw i32 %187, 1
store i32 %188, i32* %13
br label %172
189: ; preds = %172
br label %190
190: ; preds = %189
%191 = load i32, i32* %12
%192 = add nsw i32 %191, 1
store i32 %192, i32* %12
br label %168
193: ; preds = %168
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0))
store i32 0, i32* %3
br label %196
196: ; preds = %193, %132, %128, %124, %110, %47
%197 = load i32, i32* %3
ret i32 %197
}

LLVM IR (-O2):
@.str = [20 x i8] c"\0AEnter student ID: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AEnter current semester: \00"
@.str.3 = [44 x i8] c"Checking if your student ID is in system...\00"
@.str.4 = [36 x i8] c"\0AError! You have registered already\00"
@.str.7 = [32 x i8] c"\0ACurrent Number of Courses: %d\0A\00"
@.str.8 = [28 x i8] c"Enter students first name: \00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [8 x i8] c"Hello, \00"
@.str.11 = [19 x i8] c"\0AEnter Course ID: \00"
@.str.12 = [43 x i8] c"\0AEx: Course ID %d is allocated with ID %d\0A\00"
@.str.13 = [32 x i8] c"\0ACurrent number of courses: %d\0A\00"
@.str.14 = [27 x i8] c"\0AError! Course ID invalid!\00"
@.str.16 = [45 x i8] c"\0AError! Your courses must be zero to proceed\00"
@.str.20 = [21 x i8] c"iaStud[%d][%d] = %d\0A\00"
@.str.21 = [21 x i8] c"iaCoud[%d][%d] = %d\0A\00"
@.str.22 = [35 x i8] c"\0AThank you for using this program!\00"
@str.24 = [2 x i8] c"\0A\00"
@str.25 = [18 x i8] c"\0AHave a nice day!\00"
@str.26 = [42 x i8] c"\0AError! Your Student ID is not applicable\00"
@str.28 = [48 x i8] c"\0AError! Your current semester is not applicable\00"
@str.30 = [17 x i8] c"no data yet. ok!\00"
@str.32 = [18 x i8] c"\0AExiting Program!\00"
@str.33 = [15 x i8] c"\0AKill Program!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [5 x [2 x i32]]
%7 = alloca [5 x [2 x i32]]
%8 = alloca [100 x i8]
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast [5 x [2 x i32]]* %6 to i8*
%13 = bitcast [5 x [2 x i32]]* %7 to i8*
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%15 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 0, i64 0
%16 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 1, i64 0
%17 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 2, i64 0
%18 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 3, i64 0
%19 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 4, i64 0
br label %20
20: ; preds = %2, %82
%21 = phi i64 [ 0, %2 ], [ %87, %82 ]
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%24 = load i32, i32* %3
%25 = add i32 %24, -1001
%26 = icmp ult i32 %25, 5
br i1 %26, label %27, label %95
27: ; preds = %20
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%30 = load i32, i32* %4
%31 = icmp eq i32 %30, 5
br i1 %31, label %32, label %93
32: ; preds = %27
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%34 = load i32, i32* %3
%35 = load i32, i32* %15
%36 = icmp eq i32 %34, %35
%37 = load i32, i32* %16
%38 = icmp eq i32 %34, %37
%39 = select i1 %36, i1 true, i1 %38
%40 = load i32, i32* %17
%41 = icmp eq i32 %34, %40
%42 = select i1 %39, i1 true, i1 %41
%43 = load i32, i32* %18
%44 = icmp eq i32 %34, %43
%45 = select i1 %42, i1 true, i1 %44
%46 = load i32, i32* %19
%47 = icmp eq i32 %34, %46
%48 = select i1 %45, i1 true, i1 %47
br i1 %48, label %63, label %49
49: ; preds = %32
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.30, i64 0, i64 0))
%51 = load i32, i32* %3
%52 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 %21, i64 0
store i32 %51, i32* %52
%53 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 %21, i64 1
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %14)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %14)
%60 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 %21, i64 1
%61 = load i32, i32* %60
%62 = icmp eq i32 %61, 0
br i1 %62, label %65, label %91
63: ; preds = %32
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
br label %161
65: ; preds = %49
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%68 = load i32, i32* %5
%69 = add i32 %68, -5001
%70 = icmp ult i32 %69, 5
br i1 %70, label %71, label %89
71: ; preds = %65
%72 = load i32, i32* %3
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0), i32 %68, i32 %72)
%74 = load i32, i32* %5
%75 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 %21, i64 0
store i32 %74, i32* %75
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 1)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%78 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%79 = load i32, i32* %5
%80 = add i32 %79, -5001
%81 = icmp ult i32 %80, 5
br i1 %81, label %82, label %89
82: ; preds = %71
%83 = load i32, i32* %3
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0), i32 %79, i32 %83)
%85 = load i32, i32* %5
store i32 %85, i32* %53
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0), i32 2)
store i32 2, i32* %60
%87 = add nuw nsw i64 %21, 1
%88 = icmp eq i64 %87, 5
br i1 %88, label %97, label %20
89: ; preds = %71, %65
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
br label %161
91: ; preds = %49
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.16, i64 0, i64 0))
br label %161
93: ; preds = %27
%94 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.28, i64 0, i64 0))
br label %161
95: ; preds = %20
%96 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.26, i64 0, i64 0))
br label %161
97: ; preds = %82
%98 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 0, i64 0
%99 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 1, i64 0
%100 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 2, i64 0
%101 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 3, i64 0
%102 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 4, i64 0
%103 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.24, i64 0, i64 0))
%104 = load i32, i32* %98
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 0, i32 0, i32 %104)
%106 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 0, i64 1
%107 = load i32, i32* %106
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 0, i32 1, i32 %107)
%109 = load i32, i32* %99
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 1, i32 0, i32 %109)
%111 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 1, i64 1
%112 = load i32, i32* %111
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 1, i32 1, i32 %112)
%114 = load i32, i32* %100
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 2, i32 0, i32 %114)
%116 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 2, i64 1
%117 = load i32, i32* %116
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 2, i32 1, i32 %117)
%119 = load i32, i32* %101
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 3, i32 0, i32 %119)
%121 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 3, i64 1
%122 = load i32, i32* %121
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 3, i32 1, i32 %122)
%124 = load i32, i32* %102
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 4, i32 0, i32 %124)
%126 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %6, i64 0, i64 4, i64 1
%127 = load i32, i32* %126
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i32 4, i32 1, i32 %127)
%129 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.24, i64 0, i64 0))
%130 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 0, i64 0
%131 = load i32, i32* %130
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 0, i32 0, i32 %131)
%133 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 0, i64 1
%134 = load i32, i32* %133
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 0, i32 1, i32 %134)
%136 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 1, i64 0
%137 = load i32, i32* %136
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 1, i32 0, i32 %137)
%139 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 1, i64 1
%140 = load i32, i32* %139
%141 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 1, i32 1, i32 %140)
%142 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 2, i64 0
%143 = load i32, i32* %142
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 2, i32 0, i32 %143)
%145 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 2, i64 1
%146 = load i32, i32* %145
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 2, i32 1, i32 %146)
%148 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 3, i64 0
%149 = load i32, i32* %148
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 3, i32 0, i32 %149)
%151 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 3, i64 1
%152 = load i32, i32* %151
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 3, i32 1, i32 %152)
%154 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 4, i64 0
%155 = load i32, i32* %154
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 4, i32 0, i32 %155)
%157 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %7, i64 0, i64 4, i64 1
%158 = load i32, i32* %157
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.21, i64 0, i64 0), i32 4, i32 1, i32 %158)
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.22, i64 0, i64 0))
br label %161
161: ; preds = %97, %95, %93, %91, %89, %63
%162 = phi i8* [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.25, i64 0, i64 0), %97 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.32, i64 0, i64 0), %95 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.32, i64 0, i64 0), %93 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.32, i64 0, i64 0), %91 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @str.32, i64 0, i64 0), %89 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @str.33, i64 0, i64 0), %63 ]
%163 = call i32 @puts(i8* dereferenceable(1) %162)
ret i32 0
}