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 iaProg[5][26] = {"C", "CPP", "Java", "Oracle", "DotNet"};
  char iaName[5][26];
  for (k = 0; k < 5; k++) {
    printf("Course %d = %s\n", k, iaProg[k]);
  }
  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(" %[^\n]", iaName[i]);
        printf("Hello, ");
        printf(" %s", iaName[i]);
        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    $0x1a0,%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>
lea    -0x110(%rbp),%rdi
lea    0xe72(%rip),%rsi
mov    $0x82,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x5,-0x8c(%rbp)
jge    11ec <main+0xac>
mov    -0x8c(%rbp),%esi
movslq -0x8c(%rbp),%rax
lea    -0x110(%rbp),%rdx
imul   $0x1a,%rax,%rax
add    %rax,%rdx
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    11a2 <main+0x62>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    1539 <main+0x3f9>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x3e8,-0x14(%rbp)
jle    14f8 <main+0x3b8>
cmpl   $0x3ed,-0x14(%rbp)
jg     14f8 <main+0x3b8>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe54(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x5,-0x18(%rbp)
jne    14cb <main+0x38b>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x5,-0x8c(%rbp)
jge    12e1 <main+0x1a1>
mov    -0x14(%rbp),%eax
movslq -0x8c(%rbp),%rcx
cmp    -0x50(%rbp,%rcx,8),%eax
jne    12c8 <main+0x188>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    169a <main+0x55a>
jmp    12cd <main+0x18d>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    127f <main+0x13f>
lea    0xe3b(%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    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x84(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
imul   $0x1a,%rax,%rax
add    %rax,%rsi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x84(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
imul   $0x1a,%rax,%rax
add    %rax,%rsi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x84(%rbp),%rax
cmpl   $0x0,-0x4c(%rbp,%rax,8)
jne    149e <main+0x35e>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    1484 <main+0x344>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    147f <main+0x33f>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcdf(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x1388,-0x20(%rbp)
jle    143e <main+0x2fe>
cmpl   $0x138d,-0x20(%rbp)
jg     143e <main+0x2fe>
mov    -0x20(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xd9e(%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    0xd90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1466 <main+0x326>
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    169a <main+0x55a>
jmp    146b <main+0x32b>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    13a5 <main+0x265>
jmp    1391 <main+0x251>
mov    -0x1c(%rbp),%ecx
movslq -0x84(%rbp),%rax
mov    %ecx,-0x4c(%rbp,%rax,8)
movl   $0x0,-0x1c(%rbp)
jmp    14c6 <main+0x386>
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    169a <main+0x55a>
jmp    14f3 <main+0x3b3>
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    169a <main+0x55a>
jmp    1520 <main+0x3e0>
lea    0xd6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    169a <main+0x55a>
jmp    1525 <main+0x3e5>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    11f6 <main+0xb6>
lea    0xd59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    15d8 <main+0x498>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    15bf <main+0x47f>
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    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1568 <main+0x428>
jmp    15c4 <main+0x484>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1551 <main+0x411>
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    1677 <main+0x537>
movl   $0x0,-0x88(%rbp)
cmpl   $0x2,-0x88(%rbp)
jge    165e <main+0x51e>
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    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1607 <main+0x4c7>
jmp    1663 <main+0x523>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    15f0 <main+0x4b0>
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%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    0xe7f(%rip),%rsi
lea    0x70(%rsp),%rbp
mov    $0x82,%edx
mov    %rbp,%rdi
call   1050 <memcpy@plt>
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8a(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa4(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbe(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd8(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x100(%rsp),%r15
lea    0xe92(%rip),%rbx
lea    0xf47(%rip),%r13
lea    0xc(%rsp),%r12
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x8(%rsp),%eax
mov    $0xfffffc17,%ecx
add    %ecx,%eax
cmp    $0x4,%eax
ja     1618 <main+0x4d8>
lea    0xe41(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x3c(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x5,0x3c(%rsp)
jne    1621 <main+0x4e1>
lea    0xe33(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    0x10(%rsp),%eax
je     162f <main+0x4ef>
cmp    0x18(%rsp),%eax
je     162f <main+0x4ef>
cmp    0x20(%rsp),%eax
je     162f <main+0x4ef>
cmp    0x28(%rsp),%eax
je     162f <main+0x4ef>
cmp    0x30(%rsp),%eax
je     162f <main+0x4ef>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%eax
mov    %eax,0x10(%rsp,%r14,8)
mov    0x44(%rsp,%r14,8),%esi
lea    0xe25(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe45(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe3b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe35(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x14(%rsp,%r14,8)
jne    1646 <main+0x506>
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%esi
lea    -0x1389(%rsi),%eax
cmp    $0x4,%eax
lea    0xe36(%rip),%rbp
ja     160f <main+0x4cf>
mov    0x8(%rsp),%edx
lea    0xdfa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x40(%rsp,%r14,8)
mov    %rbp,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xdbd(%rip),%rdi
mov    0xc(%rsp),%esi
lea    -0x1389(%rsi),%eax
cmp    $0x4,%eax
ja     160f <main+0x4cf>
mov    %r13,%rbp
mov    %r12,%r13
lea    (%r14,%r14,1),%r12
mov    0x8(%rsp),%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
mov    %eax,0x44(%rsp,%r12,4)
lea    0xdb0(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x2,0x14(%rsp,%r12,4)
mov    %r13,%r12
mov    %rbp,%r13
add    $0x1,%r14
add    $0x1a,%r15
cmp    $0x5,%r14
jne    1230 <main+0xf0>
lea    0xd0d(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%ecx
lea    0xdd1(%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    0xcfc(%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    0xc33(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc48(%rip),%rdi
jmp    165b <main+0x51b>
lea    0xbaa(%rip),%rdi
jmp    164d <main+0x50d>
lea    0xc48(%rip),%rdi
jmp    1628 <main+0x4e8>
lea    0xc69(%rip),%rdi
call   1030 <puts@plt>
jmp    1654 <main+0x514>
lea    0xab9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xca0(%rip),%rdi
jmp    165b <main+0x51b>
lea    0xb8e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc77(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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