#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*/ clearInputStream(char *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  int i, j;
  char temp_user[11] = "";
  char temp_object[25] = "";
  int len;
  char *users[] = {"instructor", "TA", "student"};
  int num_users = 3;
  char *objects[] = {
      "Course Management Form", "Announcement Page", "Lab Information",
      "Lab Group Reports",      "Discussion Page",   "Lab Marks",
      "Master Course Mark",
  };
  int num_objects = 7;
  char *privileges_matrix[3][7] = {
      {"rw", "rw", "rw", "rw", "rw", "rw", "rw"},
      {"rw", "rw", "rw", "rw", "rw", "rw", "rw"},
      {"rw", "rw", "rw", "rw", "rw", "rw", "rw"},
  };
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 7; j++) {
      printf("privileges_matrix[%s][%s] is %s\n", users[i], objects[j],
             privileges_matrix[i][j]);
    }
  }
  printf("\n");
  printf("Which user would you like to change: ");
  if (fgets(temp_user, 90, stdin) != NULL) {
    clearInputStream(temp_user);
    len = strlen(temp_user);
    if (temp_user[len - 1] == '\n')
      temp_user[len - 1] = '\0';
  }
  for (i = 0; i < 3; i++) {
    printf("temp_user: %s; user[%d]: %s \n", temp_user, i, users[i]);
    if (strcmp(temp_user, users[i]) == 0) {
      for (j = 0; j < 7; j++) {
        privileges_matrix[i][j] = "w";
      }
    }
  }
  printf("\n");
  printf("There are these objects in the system:\n");
  for (i = 0; i < 7; i++) {
    printf("%s \n", objects[i]);
  }
  printf("Enter the one you want to change: ");
  if (fgets(temp_object, 90, stdin) != NULL) {
    clearInputStream(temp_object);
    len = strlen(temp_object);
    if (temp_object[len - 1] == '\n')
      temp_object[len - 1] = '\0';
  }
  printf("Object is: %s", temp_object);
  for (i = 0; i < 7; i++) {
    printf("temp_object: %s; object[%d]: %s \n", temp_object, i, objects[i]);
    if (strcmp(temp_object, objects[i]) == 0) {
      printf("compared");
      for (j = 0; j < 3; j++) {
        privileges_matrix[j][i] = "r";
      }
    }
  }
  printf("\n");
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 7; j++) {
      printf("privileges_matrix[%s][%s] is %s\n", users[i], objects[j],
             privileges_matrix[i][j]);
    }
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x23(%rbp),%rdi
xor    %esi,%esi
mov    $0xb,%edx
call   1060 <memset@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x19,%edx
call   1060 <memset@plt>
mov    0x2b60(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0x2b5d(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x2b5a(%rip),%rax
mov    %rax,-0x50(%rbp)
movl   $0x3,-0x64(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0x2b51(%rip),%rsi
mov    $0x38,%edx
call   1090 <memcpy@plt>
movl   $0x7,-0xa4(%rbp)
lea    -0x150(%rbp),%rdi
lea    0x2b6f(%rip),%rsi
mov    $0xa8,%edx
call   1090 <memcpy@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    128b <main+0x11b>
movl   $0x0,-0x18(%rbp)
cmpl   $0x7,-0x18(%rbp)
jge    1278 <main+0x108>
movslq -0x14(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
movslq -0x18(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rdx
ff
movslq -0x14(%rbp),%rcx
lea    -0x150(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1223 <main+0xb3>
jmp    127d <main+0x10d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1212 <main+0xa2>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x23(%rbp),%rdi
mov    0x2d36(%rip),%rax
mov    (%rax),%edx
mov    $0x5a,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1305 <main+0x195>
lea    -0x23(%rbp),%rdi
call   1050 <clearInputStream@plt>
lea    -0x23(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x23(%rbp,%rax,1),%eax
cmp    $0xa,%eax
jne    1300 <main+0x190>
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x23(%rbp,%rax,1)
jmp    1305 <main+0x195>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    13a8 <main+0x238>
lea    -0x23(%rbp),%rsi
mov    -0x14(%rbp),%edx
movslq -0x14(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rcx
lea    0xdab(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x23(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1395 <main+0x225>
movl   $0x0,-0x18(%rbp)
cmpl   $0x7,-0x18(%rbp)
jge    1390 <main+0x220>
movslq -0x14(%rbp),%rcx
lea    -0x150(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
lea    0xd11(%rip),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1357 <main+0x1e7>
jmp    1395 <main+0x225>
jmp    139a <main+0x22a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    130c <main+0x19c>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    13fd <main+0x28d>
movslq -0x14(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rsi
ff
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13cb <main+0x25b>
lea    0xd1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    0x2bd2(%rip),%rax
mov    (%rax),%edx
mov    $0x5a,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1469 <main+0x2f9>
lea    -0x40(%rbp),%rdi
call   1050 <clearInputStream@plt>
lea    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x40(%rbp,%rax,1),%eax
cmp    $0xa,%eax
jne    1464 <main+0x2f4>
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x40(%rbp,%rax,1)
jmp    1469 <main+0x2f9>
lea    -0x40(%rbp),%rsi
lea    0xccd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x7,-0x14(%rbp)
jge    1532 <main+0x3c2>
lea    -0x40(%rbp),%rsi
mov    -0x14(%rbp),%edx
movslq -0x14(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rcx
ff
lea    0xca9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rsi
ff
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    151f <main+0x3af>
lea    0xc9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3,-0x18(%rbp)
jge    151a <main+0x3aa>
movslq -0x18(%rbp),%rcx
lea    -0x150(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
lea    0xb01(%rip),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14e1 <main+0x371>
jmp    151f <main+0x3af>
jmp    1524 <main+0x3b4>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1482 <main+0x312>
lea    0xbbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    15c0 <main+0x450>
movl   $0x0,-0x18(%rbp)
cmpl   $0x7,-0x18(%rbp)
jge    15ad <main+0x43d>
movslq -0x14(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
movslq -0x18(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rdx
ff
movslq -0x14(%rbp),%rcx
lea    -0x150(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xaf9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1558 <main+0x3e8>
jmp    15b2 <main+0x442>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1547 <main+0x3d7>
lea    0xb2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movl   $0x0,0x17(%rsp)
movq   $0x0,0x10(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x29(%rsp)
movaps %xmm0,0x20(%rsp)
lea    0xeeb(%rip),%rbp
lea    0xe53(%rip),%r13
lea    0xe62(%rip),%rdx
lea    0xed3(%rip),%r14
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe5b(%rip),%rdx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe56(%rip),%r12
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe4c(%rip),%rdx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe47(%rip),%rdx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe40(%rip),%rdx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe33(%rip),%r15
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda9(%rip),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xda7(%rip),%r13
mov    %r13,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xda4(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xd9c(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xd97(%rip),%r12
mov    %r12,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xd8d(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd06(%rip),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xd05(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xd00(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xcf9(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
lea    0xcf1(%rip),%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd04(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x5a,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     13f3 <main+0x283>
mov    %rbx,%rdi
call   1070 <clearInputStream@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    13f3 <main+0x283>
movb   $0x0,0xf(%rsp,%rax,1)
lea    0xcde(%rip),%r12
lea    0xbff(%rip),%rbx
lea    0x10(%rsp),%rbp
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
lea    0xc62(%rip),%r13
mov    %r14,%r15
cmove  %r13,%r15
lea    0xbd0(%rip),%rbx
mov    %r12,%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
mov    %r14,%rax
cmove  %r13,%rax
mov    %rax,0x8(%rsp)
lea    0xb9d(%rip),%rbx
mov    %r12,%rdi
mov    %rbp,%rsi
mov    $0x2,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
cmove  %r13,%r14
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xca9(%rip),%rdi
call   1040 <puts@plt>
lea    0xc3c(%rip),%rbx
lea    0xb5a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb60(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb61(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb60(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb61(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb60(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb59(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xbc3(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2aa7(%rip),%rax
mov    (%rax),%edx
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x5a,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     1578 <main+0x408>
mov    %rbx,%rdi
call   1070 <clearInputStream@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    1578 <main+0x408>
movb   $0x0,0x1f(%rsp,%rax,1)
lea    0xb9a(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb92(%rip),%rdi
lea    0xa7a(%rip),%rbp
mov    %rbx,%rsi
xor    %edx,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    0x8(%rsp),%r12
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    15e4 <main+0x474>
lea    0xb79(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xa2b(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0xa0(%rsp)
mov    %rdx,0xc0(%rsp)
mov    %rcx,0xd0(%rsp)
lea    0xb24(%rip),%rdi
lea    0xa23(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    1655 <main+0x4e5>
lea    0xb08(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x9ba(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0x88(%rsp)
mov    %rdx,0xb0(%rsp)
mov    %rcx,0xc8(%rsp)
lea    0xab3(%rip),%rdi
lea    0x9c4(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x2,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    16c6 <main+0x556>
lea    0xa97(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x949(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0x70(%rsp)
mov    %rdx,0x98(%rsp)
mov    %rcx,0xb8(%rsp)
lea    0xa45(%rip),%rdi
lea    0x966(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x3,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    1734 <main+0x5c4>
lea    0xa29(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x8db(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0x60(%rsp)
mov    %rdx,0x80(%rsp)
mov    %rcx,0xa8(%rsp)
lea    0x9d7(%rip),%rdi
lea    0x90a(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x4,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    17a2 <main+0x632>
lea    0x9bb(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x86d(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0x50(%rsp)
mov    %rdx,0x68(%rsp)
mov    %rcx,0x90(%rsp)
lea    0x96c(%rip),%rdi
lea    0x8af(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x5,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
mov    %r14,%rcx
mov    %r12,%rdx
mov    %r15,%rsi
test   %rax,%rax
jne    180d <main+0x69d>
lea    0x950(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x802(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rsi
mov    %rsi,0x48(%rsp)
mov    %rdx,0x58(%rsp)
mov    %rcx,0x78(%rsp)
lea    0x904(%rip),%rdi
lea    0x851(%rip),%rbx
lea    0x20(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x6,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
jne    186c <main+0x6fc>
lea    0x8f1(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x7a3(%rip),%r14
mov    %r14,%r12
mov    %r14,%r15
mov    %r12,0x8(%rsp)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x80f(%rip),%r13
lea    0x777(%rip),%r12
lea    0x786(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    0xa0(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x781(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x88(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x777(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x70(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x76e(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x60(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x767(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x50(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x75e(%rip),%rbx
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    0x48(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x74c(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x6c5(%rip),%rbp
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x6c3(%rip),%r15
mov    %r15,%rdx
mov    0xc0(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x6bb(%rip),%r12
mov    %r12,%rdx
mov    0xb0(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x6ae(%rip),%rdx
mov    0x98(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x6a2(%rip),%rdx
mov    0x80(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x698(%rip),%rdx
mov    0x68(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    0x58(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
lea    0x684(%rip),%rbp
mov    %rbp,%rdx
mov    0x8(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x601(%rip),%rbx
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    0xd0(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    0xc8(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
lea    0x5f5(%rip),%rdx
mov    0xb8(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
lea    0x5e9(%rip),%rdx
mov    0xa8(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
lea    0x5df(%rip),%rdx
mov    0x90(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
lea    0x5d3(%rip),%rdx
mov    0x78(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"instructor\00"
@.str.1 = [3 x i8] c"TA\00"
@.str.2 = [8 x i8] c"student\00"
@__const.main.users = [3 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0)]
@.str.3 = [23 x i8] c"Course Management Form\00"
@.str.4 = [18 x i8] c"Announcement Page\00"
@.str.5 = [16 x i8] c"Lab Information\00"
@.str.6 = [18 x i8] c"Lab Group Reports\00"
@.str.7 = [16 x i8] c"Discussion Page\00"
@.str.8 = [10 x i8] c"Lab Marks\00"
@.str.9 = [19 x i8] c"Master Course Mark\00"
@__const.main.objects = [7 x i8*] [i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i32 0, i32 0)]
@.str.10 = [3 x i8] c"rw\00"
@__const.main.privileges_matrix = [3 x [7 x i8*]] [[7 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0)]]
@.str.11 = [33 x i8] c"privileges_matrix[%s][%s] is %s\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [38 x i8] c"Which user would you like to change: \00"
@stdin = global i32 0
@.str.14 = [30 x i8] c"temp_user: %s; user[%d]: %s \0A\00"
@.str.15 = [2 x i8] c"w\00"
@.str.16 = [40 x i8] c"There are these objects in the system:\0A\00"
@.str.17 = [5 x i8] c"%s \0A\00"
@.str.18 = [35 x i8] c"Enter the one you want to change: \00"
@.str.19 = [14 x i8] c"Object is: %s\00"
@.str.20 = [34 x i8] c"temp_object: %s; object[%d]: %s \0A\00"
@.str.21 = [9 x i8] c"compared\00"
@.str.22 = [2 x i8] c"r\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 [11 x i8]
%9 = alloca [25 x i8]
%10 = alloca i32
%11 = alloca [3 x i8*]
%12 = alloca i32
%13 = alloca [7 x i8*]
%14 = alloca i32
%15 = alloca [3 x [7 x i8*]]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = bitcast [11 x i8]* %8 to i8*
%17 = bitcast [25 x i8]* %9 to i8*
%18 = bitcast [3 x i8*]* %11 to i8*
store i32 3, i32* %12
%19 = bitcast [7 x i8*]* %13 to i8*
store i32 7, i32* %14
%20 = bitcast [3 x [7 x i8*]]* %15 to i8*
store i32 0, i32* %6
br label %21
21: ; preds = %49, %2
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %52
24: ; preds = %21
store i32 0, i32* %7
br label %25
25: ; preds = %45, %24
%26 = load i32, i32* %7
%27 = icmp slt i32 %26, 7
br i1 %27, label %28, label %48
28: ; preds = %25
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 %30
%32 = load i8*, i8** %31
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [7 x i8*], [7 x i8*]* %13, i64 0, i64 %34
%36 = load i8*, i8** %35
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [3 x [7 x i8*]], [3 x [7 x i8*]]* %15, i64 0, i64 %38
%40 = load i32, i32* %7
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [7 x i8*], [7 x i8*]* %39, i64 0, i64 %41
%43 = load i8*, i8** %42
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* %32, i8* %36, i8* %43)
br label %45
45: ; preds = %28
%46 = load i32, i32* %7
%47 = add nsw i32 %46, 1
store i32 %47, i32* %7
br label %25
48: ; preds = %25
br label %49
49: ; preds = %48
%50 = load i32, i32* %6
%51 = add nsw i32 %50, 1
store i32 %51, i32* %6
br label %21
52: ; preds = %21
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%55 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%56 = load i32, i32* @stdin
%57 = call i32* @fgets(i8* %55, i32 90, i32 %56)
%58 = icmp ne i32* %57, null
br i1 %58, label %59, label %77
59: ; preds = %52
%60 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%61 = call i32 @clearInputStream(i8* %60)
%62 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
store i32 %63, i32* %10
%64 = load i32, i32* %10
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 10
br i1 %70, label %71, label %76
71: ; preds = %59
%72 = load i32, i32* %10
%73 = sub nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 %74
store i8 0, i8* %75
br label %76
76: ; preds = %71, %59
br label %77
77: ; preds = %76, %52
store i32 0, i32* %6
br label %78
78: ; preds = %112, %77
%79 = load i32, i32* %6
%80 = icmp slt i32 %79, 3
br i1 %80, label %81, label %115
81: ; preds = %78
%82 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%83 = load i32, i32* %6
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 %85
%87 = load i8*, i8** %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %82, i32 %83, i8* %87)
%89 = getelementptr inbounds [11 x i8], [11 x i8]* %8, i64 0, i64 0
%90 = load i32, i32* %6
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 %91
%93 = load i8*, i8** %92
%94 = call i64 @strcmp(i8* %89, i8* %93)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %111
96: ; preds = %81
store i32 0, i32* %7
br label %97
97: ; preds = %107, %96
%98 = load i32, i32* %7
%99 = icmp slt i32 %98, 7
br i1 %99, label %100, label %110
100: ; preds = %97
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [3 x [7 x i8*]], [3 x [7 x i8*]]* %15, i64 0, i64 %102
%104 = load i32, i32* %7
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [7 x i8*], [7 x i8*]* %103, i64 0, i64 %105
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8** %106
br label %107
107: ; preds = %100
%108 = load i32, i32* %7
%109 = add nsw i32 %108, 1
store i32 %109, i32* %7
br label %97
110: ; preds = %97
br label %111
111: ; preds = %110, %81
br label %112
112: ; preds = %111
%113 = load i32, i32* %6
%114 = add nsw i32 %113, 1
store i32 %114, i32* %6
br label %78
115: ; preds = %78
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %6
br label %118
118: ; preds = %127, %115
%119 = load i32, i32* %6
%120 = icmp slt i32 %119, 7
br i1 %120, label %121, label %130
121: ; preds = %118
%122 = load i32, i32* %6
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [7 x i8*], [7 x i8*]* %13, i64 0, i64 %123
%125 = load i8*, i8** %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* %125)
br label %127
127: ; preds = %121
%128 = load i32, i32* %6
%129 = add nsw i32 %128, 1
store i32 %129, i32* %6
br label %118
130: ; preds = %118
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
%132 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%133 = load i32, i32* @stdin
%134 = call i32* @fgets(i8* %132, i32 90, i32 %133)
%135 = icmp ne i32* %134, null
br i1 %135, label %136, label %154
136: ; preds = %130
%137 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%138 = call i32 @clearInputStream(i8* %137)
%139 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%140 = call i32 @strlen(i8* %139)
store i32 %140, i32* %10
%141 = load i32, i32* %10
%142 = sub nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 %143
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 10
br i1 %147, label %148, label %153
148: ; preds = %136
%149 = load i32, i32* %10
%150 = sub nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 %151
store i8 0, i8* %152
br label %153
153: ; preds = %148, %136
br label %154
154: ; preds = %153, %130
%155 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8* %155)
store i32 0, i32* %6
br label %157
157: ; preds = %192, %154
%158 = load i32, i32* %6
%159 = icmp slt i32 %158, 7
br i1 %159, label %160, label %195
160: ; preds = %157
%161 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%162 = load i32, i32* %6
%163 = load i32, i32* %6
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [7 x i8*], [7 x i8*]* %13, i64 0, i64 %164
%166 = load i8*, i8** %165
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %161, i32 %162, i8* %166)
%168 = getelementptr inbounds [25 x i8], [25 x i8]* %9, i64 0, i64 0
%169 = load i32, i32* %6
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [7 x i8*], [7 x i8*]* %13, i64 0, i64 %170
%172 = load i8*, i8** %171
%173 = call i64 @strcmp(i8* %168, i8* %172)
%174 = icmp eq i64 %173, 0
br i1 %174, label %175, label %191
175: ; preds = %160
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
store i32 0, i32* %7
br label %177
177: ; preds = %187, %175
%178 = load i32, i32* %7
%179 = icmp slt i32 %178, 3
br i1 %179, label %180, label %190
180: ; preds = %177
%181 = load i32, i32* %7
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [3 x [7 x i8*]], [3 x [7 x i8*]]* %15, i64 0, i64 %182
%184 = load i32, i32* %6
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds [7 x i8*], [7 x i8*]* %183, i64 0, i64 %185
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i8** %186
br label %187
187: ; preds = %180
%188 = load i32, i32* %7
%189 = add nsw i32 %188, 1
store i32 %189, i32* %7
br label %177
190: ; preds = %177
br label %191
191: ; preds = %190, %160
br label %192
192: ; preds = %191
%193 = load i32, i32* %6
%194 = add nsw i32 %193, 1
store i32 %194, i32* %6
br label %157
195: ; preds = %157
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %6
br label %197
197: ; preds = %225, %195
%198 = load i32, i32* %6
%199 = icmp slt i32 %198, 3
br i1 %199, label %200, label %228
200: ; preds = %197
store i32 0, i32* %7
br label %201
201: ; preds = %221, %200
%202 = load i32, i32* %7
%203 = icmp slt i32 %202, 7
br i1 %203, label %204, label %224
204: ; preds = %201
%205 = load i32, i32* %6
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [3 x i8*], [3 x i8*]* %11, i64 0, i64 %206
%208 = load i8*, i8** %207
%209 = load i32, i32* %7
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [7 x i8*], [7 x i8*]* %13, i64 0, i64 %210
%212 = load i8*, i8** %211
%213 = load i32, i32* %6
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [3 x [7 x i8*]], [3 x [7 x i8*]]* %15, i64 0, i64 %214
%216 = load i32, i32* %7
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [7 x i8*], [7 x i8*]* %215, i64 0, i64 %217
%219 = load i8*, i8** %218
%220 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* %208, i8* %212, i8* %219)
br label %221
221: ; preds = %204
%222 = load i32, i32* %7
%223 = add nsw i32 %222, 1
store i32 %223, i32* %7
br label %201
224: ; preds = %201
br label %225
225: ; preds = %224
%226 = load i32, i32* %6
%227 = add nsw i32 %226, 1
store i32 %227, i32* %6
br label %197
228: ; preds = %197
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"instructor\00"
@.str.1 = [3 x i8] c"TA\00"
@.str.2 = [8 x i8] c"student\00"
@.str.3 = [23 x i8] c"Course Management Form\00"
@.str.4 = [18 x i8] c"Announcement Page\00"
@.str.5 = [16 x i8] c"Lab Information\00"
@.str.6 = [18 x i8] c"Lab Group Reports\00"
@.str.7 = [16 x i8] c"Discussion Page\00"
@.str.8 = [10 x i8] c"Lab Marks\00"
@.str.9 = [19 x i8] c"Master Course Mark\00"
@.str.10 = [3 x i8] c"rw\00"
@.str.11 = [33 x i8] c"privileges_matrix[%s][%s] is %s\0A\00"
@.str.13 = [38 x i8] c"Which user would you like to change: \00"
@stdin = global i32 0
@.str.14 = [30 x i8] c"temp_user: %s; user[%d]: %s \0A\00"
@.str.15 = [2 x i8] c"w\00"
@.str.17 = [5 x i8] c"%s \0A\00"
@.str.18 = [35 x i8] c"Enter the one you want to change: \00"
@.str.19 = [14 x i8] c"Object is: %s\00"
@.str.20 = [34 x i8] c"temp_object: %s; object[%d]: %s \0A\00"
@.str.21 = [9 x i8] c"compared\00"
@.str.22 = [2 x i8] c"r\00"
@str = [39 x i8] c"There are these objects in the system:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [11 x i8]
%4 = alloca [25 x i8]
%5 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%28 = tail call i32 @putchar(i32 10)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.13, i64 0, i64 0))
%30 = load i32, i32* @stdin
%31 = call i32* @fgets(i8* %5, i32 90, i32 %30)
%32 = icmp eq i32* %31, null
br i1 %32, label %42, label %33
33: ; preds = %2
%34 = call i32 @clearInputStream(i8* %5)
%35 = call i32 @strlen(i8* %5)
%36 = add nsw i32 %35, -1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = icmp eq i8 %39, 10
br i1 %40, label %41, label %42
41: ; preds = %33
store i8 0, i8* %38
br label %42
42: ; preds = %33, %41, %2
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %5, i32 0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%44 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
%46 = select i1 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %5, i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%48 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
%50 = select i1 %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %5, i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%52 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
%54 = select i1 %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0)
%55 = call i32 @putchar(i32 10)
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
%65 = load i32, i32* @stdin
%66 = call i32* @fgets(i8* %6, i32 90, i32 %65)
%67 = icmp eq i32* %66, null
br i1 %67, label %77, label %68
68: ; preds = %42
%69 = call i32 @clearInputStream(i8* %6)
%70 = call i32 @strlen(i8* %6)
%71 = add nsw i32 %70, -1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [25 x i8], [25 x i8]* %4, i64 0, i64 %72
%74 = load i8, i8* %73
%75 = icmp eq i8 %74, 10
br i1 %75, label %76, label %77
76: ; preds = %68
store i8 0, i8* %73
br label %77
77: ; preds = %68, %76, %42
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8* %6)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%80 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %84
84: ; preds = %82, %77
%85 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %82 ], [ %54, %77 ]
%86 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %82 ], [ %50, %77 ]
%87 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %82 ], [ %46, %77 ]
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%89 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %84
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %93
93: ; preds = %91, %84
%94 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %91 ], [ %54, %84 ]
%95 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %91 ], [ %50, %84 ]
%96 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %91 ], [ %46, %84 ]
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%98 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %102
100: ; preds = %93
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %102
102: ; preds = %100, %93
%103 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %100 ], [ %54, %93 ]
%104 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %100 ], [ %50, %93 ]
%105 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %100 ], [ %46, %93 ]
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%107 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %102
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %111
111: ; preds = %109, %102
%112 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %109 ], [ %54, %102 ]
%113 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %109 ], [ %50, %102 ]
%114 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %109 ], [ %46, %102 ]
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 4, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%116 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %120
118: ; preds = %111
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %120
120: ; preds = %118, %111
%121 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %118 ], [ %54, %111 ]
%122 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %118 ], [ %50, %111 ]
%123 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %118 ], [ %46, %111 ]
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%125 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %129
127: ; preds = %120
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %129
129: ; preds = %127, %120
%130 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %127 ], [ %54, %120 ]
%131 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %127 ], [ %50, %120 ]
%132 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %127 ], [ %46, %120 ]
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.20, i64 0, i64 0), i8* %6, i32 6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%134 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %138
136: ; preds = %129
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
br label %138
138: ; preds = %136, %129
%139 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %136 ], [ %54, %129 ]
%140 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %136 ], [ %50, %129 ]
%141 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), %136 ], [ %46, %129 ]
%142 = call i32 @putchar(i32 10)
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %87)
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %96)
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %105)
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %114)
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %123)
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %132)
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* %141)
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %86)
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %95)
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %104)
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %113)
%154 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %122)
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %131)
%156 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* %140)
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %85)
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %94)
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %103)
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %112)
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %121)
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* %130)
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* %139)
%164 = call i32 @putchar(i32 10)
ret i32 0
}