#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 Load_Mem(char *, int *);
int compare(int *, int *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  int Icons[1728];
  int Length, Match;
  if (argc != 2) {
    printf("usage: P1-4 valuefile\n");
    exit(1);
  }
  Length = Load_Mem(*++argv, Icons);
  if (Length != 1728) {
    printf("valuefiles does not contain enough data\n");
    exit(1);
  }
  int Icon_0[144], Icon_1[144], Icon_2[144], Icon_3[144], Icon_4[144],
      Icon_5[144], Icon_6[144], Icon_7[144];
  int Icon_A[144], Icon_B[144], Icon_C[144], Icon_D[144];
  int K;
  for (K = 0; K < 144; K++) {
    Icon_0[K] = Icons[K];
    Icon_1[K] = Icons[K + 144];
    Icon_2[K] = Icons[K + (144 * 2)];
    Icon_3[K] = Icons[K + (144 * 3)];
    Icon_4[K] = Icons[K + (144 * 4)];
    Icon_5[K] = Icons[K + (144 * 5)];
    Icon_6[K] = Icons[K + (144 * 6)];
    Icon_7[K] = Icons[K + (144 * 7)];
    Icon_A[K] = Icons[K + (144 * 8)];
    Icon_B[K] = Icons[K + (144 * 9)];
    Icon_C[K] = Icons[K + (144 * 10)];
    Icon_D[K] = Icons[K + (144 * 11)];
  }
  if (compare(Icon_A, Icon_0, 144) == 1 || compare(Icon_B, Icon_0, 144) == 1 ||
      compare(Icon_C, Icon_0, 144) == 1 || compare(Icon_D, Icon_0, 144) == 1)
    Match = 0;
  else if (compare(Icon_A, Icon_1, 144) == 1 ||
           compare(Icon_B, Icon_1, 144) == 1 ||
           compare(Icon_C, Icon_1, 144) == 1 ||
           compare(Icon_D, Icon_1, 144) == 1)
    Match = 1;
  else if (compare(Icon_A, Icon_2, 144) == 1 ||
           compare(Icon_B, Icon_2, 144) == 1 ||
           compare(Icon_C, Icon_2, 144) == 1 ||
           compare(Icon_D, Icon_2, 144) == 1)
    Match = 2;
  else if (compare(Icon_A, Icon_3, 144) == 1 ||
           compare(Icon_B, Icon_3, 144) == 1 ||
           compare(Icon_C, Icon_3, 144) == 1 ||
           compare(Icon_D, Icon_3, 144) == 1)
    Match = 3;
  else if (compare(Icon_A, Icon_4, 144) == 1 ||
           compare(Icon_B, Icon_4, 144) == 1 ||
           compare(Icon_C, Icon_4, 144) == 1 ||
           compare(Icon_D, Icon_4, 144) == 1)
    Match = 4;
  else if (compare(Icon_A, Icon_5, 144) == 1 ||
           compare(Icon_B, Icon_5, 144) == 1 ||
           compare(Icon_C, Icon_5, 144) == 1 ||
           compare(Icon_D, Icon_5, 144) == 1)
    Match = 5;
  else if (compare(Icon_A, Icon_6, 144) == 1 ||
           compare(Icon_B, Icon_6, 144) == 1 ||
           compare(Icon_C, Icon_6, 144) == 1 ||
           compare(Icon_D, Icon_6, 144) == 1)
    Match = 6;
  else
    Match = 7;
  printf("Icon Match:\n");
  printf("The matching reference icon is %d\n", Match);
  return Match;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3630,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     117b <main+0x3b>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    0x8(%rax),%rdi
lea    -0x1b10(%rbp),%rsi
call   1040 <Load_Mem@plt>
mov    %eax,-0x1b14(%rbp)
cmpl   $0x6c0,-0x1b14(%rbp)
je     11c8 <main+0x88>
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
movl   $0x0,-0x3624(%rbp)
cmpl   $0x90,-0x3624(%rbp)
jge    1388 <main+0x248>
movslq -0x3624(%rbp),%rax
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x1d60(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x90,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x1fa0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x120,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x21e0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x1b0,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x2420(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x240,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x2660(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x2d0,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x28a0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x360,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x2ae0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x3f0,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x2d20(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x480,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x2f60(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x510,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x31a0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x5a0,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x33e0(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x630,%eax
cltq
mov    -0x1b10(%rbp,%rax,4),%ecx
movslq -0x3624(%rbp),%rax
mov    %ecx,-0x3620(%rbp,%rax,4)
mov    -0x3624(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3624(%rbp)
jmp    11d2 <main+0x92>
lea    -0x2f60(%rbp),%rdi
lea    -0x1d60(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     140c <main+0x2cc>
lea    -0x31a0(%rbp),%rdi
lea    -0x1d60(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     140c <main+0x2cc>
lea    -0x33e0(%rbp),%rdi
lea    -0x1d60(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     140c <main+0x2cc>
lea    -0x3620(%rbp),%rdi
lea    -0x1d60(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    141b <main+0x2db>
movl   $0x0,-0x1b18(%rbp)
jmp    17b5 <main+0x675>
lea    -0x2f60(%rbp),%rdi
lea    -0x1fa0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     149f <main+0x35f>
lea    -0x31a0(%rbp),%rdi
lea    -0x1fa0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     149f <main+0x35f>
lea    -0x33e0(%rbp),%rdi
lea    -0x1fa0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     149f <main+0x35f>
lea    -0x3620(%rbp),%rdi
lea    -0x1fa0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    14ae <main+0x36e>
movl   $0x1,-0x1b18(%rbp)
jmp    17b0 <main+0x670>
lea    -0x2f60(%rbp),%rdi
lea    -0x21e0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1532 <main+0x3f2>
lea    -0x31a0(%rbp),%rdi
lea    -0x21e0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1532 <main+0x3f2>
lea    -0x33e0(%rbp),%rdi
lea    -0x21e0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1532 <main+0x3f2>
lea    -0x3620(%rbp),%rdi
lea    -0x21e0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    1541 <main+0x401>
movl   $0x2,-0x1b18(%rbp)
jmp    17ab <main+0x66b>
lea    -0x2f60(%rbp),%rdi
lea    -0x2420(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     15c5 <main+0x485>
lea    -0x31a0(%rbp),%rdi
lea    -0x2420(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     15c5 <main+0x485>
lea    -0x33e0(%rbp),%rdi
lea    -0x2420(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     15c5 <main+0x485>
lea    -0x3620(%rbp),%rdi
lea    -0x2420(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    15d4 <main+0x494>
movl   $0x3,-0x1b18(%rbp)
jmp    17a6 <main+0x666>
lea    -0x2f60(%rbp),%rdi
lea    -0x2660(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1658 <main+0x518>
lea    -0x31a0(%rbp),%rdi
lea    -0x2660(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1658 <main+0x518>
lea    -0x33e0(%rbp),%rdi
lea    -0x2660(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     1658 <main+0x518>
lea    -0x3620(%rbp),%rdi
lea    -0x2660(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    1667 <main+0x527>
movl   $0x4,-0x1b18(%rbp)
jmp    17a1 <main+0x661>
lea    -0x2f60(%rbp),%rdi
lea    -0x28a0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     16eb <main+0x5ab>
lea    -0x31a0(%rbp),%rdi
lea    -0x28a0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     16eb <main+0x5ab>
lea    -0x33e0(%rbp),%rdi
lea    -0x28a0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     16eb <main+0x5ab>
lea    -0x3620(%rbp),%rdi
lea    -0x28a0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    16fa <main+0x5ba>
movl   $0x5,-0x1b18(%rbp)
jmp    179c <main+0x65c>
lea    -0x2f60(%rbp),%rdi
lea    -0x2ae0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     177e <main+0x63e>
lea    -0x31a0(%rbp),%rdi
lea    -0x2ae0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     177e <main+0x63e>
lea    -0x33e0(%rbp),%rdi
lea    -0x2ae0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
je     177e <main+0x63e>
lea    -0x3620(%rbp),%rdi
lea    -0x2ae0(%rbp),%rsi
mov    $0x90,%edx
call   1060 <compare@plt>
cmp    $0x1,%eax
jne    178d <main+0x64d>
movl   $0x6,-0x1b18(%rbp)
jmp    1797 <main+0x657>
movl   $0x7,-0x1b18(%rbp)
jmp    179c <main+0x65c>
jmp    17a1 <main+0x661>
jmp    17a6 <main+0x666>
jmp    17ab <main+0x66b>
jmp    17b0 <main+0x670>
jmp    17b5 <main+0x675>
lea    0x884(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b18(%rbp),%esi
lea    0x87d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b18(%rbp),%eax
add    $0x3630,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x33c8,%rsp
cmp    $0x2,%edi
jne    1694 <main+0x534>
mov    0x8(%rsi),%rdi
lea    0x18c0(%rsp),%rsi
call   1050 <Load_Mem@plt>
cmp    $0x6c0,%eax
jne    169d <main+0x53d>
lea    0x1680(%rsp),%r14
lea    0x18c0(%rsp),%rsi
mov    $0x240,%edx
mov    %r14,%rdi
call   1060 <memcpy@plt>
lea    0x1b00(%rsp),%rsi
lea    0x1440(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x1d40(%rsp),%rsi
lea    0x1200(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x1f80(%rsp),%rsi
lea    0xfc0(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x21c0(%rsp),%rsi
lea    0xd80(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x2400(%rsp),%rsi
lea    0xb40(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x2640(%rsp),%rsi
lea    0x900(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x2ac0(%rsp),%rsi
lea    0x6c0(%rsp),%rbx
mov    $0x240,%edx
mov    %rbx,%rdi
call   1060 <memcpy@plt>
lea    0x2d00(%rsp),%rsi
lea    0x480(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x2f40(%rsp),%rsi
lea    0x240(%rsp),%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
lea    0x3180(%rsp),%rsi
mov    %rsp,%rdi
mov    $0x240,%edx
call   1060 <memcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
xor    %ebx,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0x1680(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0x1680(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0x1680(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0x1440(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x1,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0x1440(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0x1440(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0x1440(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0x1200(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x2,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0x1200(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0x1200(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0x1200(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0xfc0(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x3,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0xfc0(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0xfc0(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0xfc0(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0xd80(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x4,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0xd80(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0xd80(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0xd80(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0xb40(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x5,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0xb40(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0xb40(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0xb40(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x6c0(%rsp),%rdi
lea    0x900(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
mov    $0x6,%ebx
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x480(%rsp),%rdi
lea    0x900(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
lea    0x240(%rsp),%rdi
lea    0x900(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
cmp    $0x1,%eax
je     166b <main+0x50b>
mov    %rsp,%rdi
lea    0x900(%rsp),%rsi
mov    $0x90,%edx
call   1080 <compare@plt>
xor    %ebx,%ebx
cmp    $0x1,%eax
sete   %bl
xor    $0x7,%ebx
lea    0x9b1(%rip),%rdi
call   1030 <puts@plt>
lea    0x982(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebx,%eax
add    $0x33c8,%rsp
pop    %rbx
pop    %r14
ret
lea    0x9bc(%rip),%rdi
jmp    16a4 <main+0x544>
lea    0x98b(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"usage: P1-4 valuefile\0A\00"
@.str.1 = [41 x i8] c"valuefiles does not contain enough data\0A\00"
@.str.2 = [13 x i8] c"Icon Match:\0A\00"
@.str.3 = [35 x i8] c"The matching reference icon is %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1728 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca [144 x i32]
%10 = alloca [144 x i32]
%11 = alloca [144 x i32]
%12 = alloca [144 x i32]
%13 = alloca [144 x i32]
%14 = alloca [144 x i32]
%15 = alloca [144 x i32]
%16 = alloca [144 x i32]
%17 = alloca [144 x i32]
%18 = alloca [144 x i32]
%19 = alloca [144 x i32]
%20 = alloca [144 x i32]
%21 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%22 = load i32, i32* %4
%23 = icmp ne i32 %22, 2
br i1 %23, label %24, label %27
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i32 1
store i8** %29, i8*** %5
%30 = load i8*, i8** %29
%31 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 0
%32 = call i32 @Load_Mem(i8* %30, i32* %31)
store i32 %32, i32* %7
%33 = load i32, i32* %7
%34 = icmp ne i32 %33, 1728
br i1 %34, label %35, label %38
35: ; preds = %27
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %27
store i32 0, i32* %21
br label %39
39: ; preds = %138, %38
%40 = load i32, i32* %21
%41 = icmp slt i32 %40, 144
br i1 %41, label %42, label %141
42: ; preds = %39
%43 = load i32, i32* %21
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = load i32, i32* %21
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 %48
store i32 %46, i32* %49
%50 = load i32, i32* %21
%51 = add nsw i32 %50, 144
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = load i32, i32* %21
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [144 x i32], [144 x i32]* %10, i64 0, i64 %56
store i32 %54, i32* %57
%58 = load i32, i32* %21
%59 = add nsw i32 %58, 288
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = load i32, i32* %21
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 %64
store i32 %62, i32* %65
%66 = load i32, i32* %21
%67 = add nsw i32 %66, 432
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = load i32, i32* %21
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [144 x i32], [144 x i32]* %12, i64 0, i64 %72
store i32 %70, i32* %73
%74 = load i32, i32* %21
%75 = add nsw i32 %74, 576
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = load i32, i32* %21
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 %80
store i32 %78, i32* %81
%82 = load i32, i32* %21
%83 = add nsw i32 %82, 720
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = load i32, i32* %21
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [144 x i32], [144 x i32]* %14, i64 0, i64 %88
store i32 %86, i32* %89
%90 = load i32, i32* %21
%91 = add nsw i32 %90, 864
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %92
%94 = load i32, i32* %93
%95 = load i32, i32* %21
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 %96
store i32 %94, i32* %97
%98 = load i32, i32* %21
%99 = add nsw i32 %98, 1008
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = load i32, i32* %21
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [144 x i32], [144 x i32]* %16, i64 0, i64 %104
store i32 %102, i32* %105
%106 = load i32, i32* %21
%107 = add nsw i32 %106, 1152
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = load i32, i32* %21
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 %112
store i32 %110, i32* %113
%114 = load i32, i32* %21
%115 = add nsw i32 %114, 1296
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %116
%118 = load i32, i32* %117
%119 = load i32, i32* %21
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 %120
store i32 %118, i32* %121
%122 = load i32, i32* %21
%123 = add nsw i32 %122, 1440
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %124
%126 = load i32, i32* %125
%127 = load i32, i32* %21
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 %128
store i32 %126, i32* %129
%130 = load i32, i32* %21
%131 = add nsw i32 %130, 1584
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [1728 x i32], [1728 x i32]* %6, i64 0, i64 %132
%134 = load i32, i32* %133
%135 = load i32, i32* %21
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 %136
store i32 %134, i32* %137
br label %138
138: ; preds = %42
%139 = load i32, i32* %21
%140 = add nsw i32 %139, 1
store i32 %140, i32* %21
br label %39
141: ; preds = %39
%142 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%143 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 0
%144 = call i32 @compare(i32* %142, i32* %143, i32 144)
%145 = icmp eq i32 %144, 1
br i1 %145, label %161, label %146
146: ; preds = %141
%147 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%148 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 0
%149 = call i32 @compare(i32* %147, i32* %148, i32 144)
%150 = icmp eq i32 %149, 1
br i1 %150, label %161, label %151
151: ; preds = %146
%152 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%153 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 0
%154 = call i32 @compare(i32* %152, i32* %153, i32 144)
%155 = icmp eq i32 %154, 1
br i1 %155, label %161, label %156
156: ; preds = %151
%157 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%158 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 0
%159 = call i32 @compare(i32* %157, i32* %158, i32 144)
%160 = icmp eq i32 %159, 1
br i1 %160, label %161, label %162
161: ; preds = %156, %151, %146, %141
store i32 0, i32* %8
br label %295
162: ; preds = %156
%163 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%164 = getelementptr inbounds [144 x i32], [144 x i32]* %10, i64 0, i64 0
%165 = call i32 @compare(i32* %163, i32* %164, i32 144)
%166 = icmp eq i32 %165, 1
br i1 %166, label %182, label %167
167: ; preds = %162
%168 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%169 = getelementptr inbounds [144 x i32], [144 x i32]* %10, i64 0, i64 0
%170 = call i32 @compare(i32* %168, i32* %169, i32 144)
%171 = icmp eq i32 %170, 1
br i1 %171, label %182, label %172
172: ; preds = %167
%173 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%174 = getelementptr inbounds [144 x i32], [144 x i32]* %10, i64 0, i64 0
%175 = call i32 @compare(i32* %173, i32* %174, i32 144)
%176 = icmp eq i32 %175, 1
br i1 %176, label %182, label %177
177: ; preds = %172
%178 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%179 = getelementptr inbounds [144 x i32], [144 x i32]* %10, i64 0, i64 0
%180 = call i32 @compare(i32* %178, i32* %179, i32 144)
%181 = icmp eq i32 %180, 1
br i1 %181, label %182, label %183
182: ; preds = %177, %172, %167, %162
store i32 1, i32* %8
br label %294
183: ; preds = %177
%184 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%185 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 0
%186 = call i32 @compare(i32* %184, i32* %185, i32 144)
%187 = icmp eq i32 %186, 1
br i1 %187, label %203, label %188
188: ; preds = %183
%189 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%190 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 0
%191 = call i32 @compare(i32* %189, i32* %190, i32 144)
%192 = icmp eq i32 %191, 1
br i1 %192, label %203, label %193
193: ; preds = %188
%194 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%195 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 0
%196 = call i32 @compare(i32* %194, i32* %195, i32 144)
%197 = icmp eq i32 %196, 1
br i1 %197, label %203, label %198
198: ; preds = %193
%199 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%200 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 0
%201 = call i32 @compare(i32* %199, i32* %200, i32 144)
%202 = icmp eq i32 %201, 1
br i1 %202, label %203, label %204
203: ; preds = %198, %193, %188, %183
store i32 2, i32* %8
br label %293
204: ; preds = %198
%205 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%206 = getelementptr inbounds [144 x i32], [144 x i32]* %12, i64 0, i64 0
%207 = call i32 @compare(i32* %205, i32* %206, i32 144)
%208 = icmp eq i32 %207, 1
br i1 %208, label %224, label %209
209: ; preds = %204
%210 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%211 = getelementptr inbounds [144 x i32], [144 x i32]* %12, i64 0, i64 0
%212 = call i32 @compare(i32* %210, i32* %211, i32 144)
%213 = icmp eq i32 %212, 1
br i1 %213, label %224, label %214
214: ; preds = %209
%215 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%216 = getelementptr inbounds [144 x i32], [144 x i32]* %12, i64 0, i64 0
%217 = call i32 @compare(i32* %215, i32* %216, i32 144)
%218 = icmp eq i32 %217, 1
br i1 %218, label %224, label %219
219: ; preds = %214
%220 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%221 = getelementptr inbounds [144 x i32], [144 x i32]* %12, i64 0, i64 0
%222 = call i32 @compare(i32* %220, i32* %221, i32 144)
%223 = icmp eq i32 %222, 1
br i1 %223, label %224, label %225
224: ; preds = %219, %214, %209, %204
store i32 3, i32* %8
br label %292
225: ; preds = %219
%226 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%227 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 0
%228 = call i32 @compare(i32* %226, i32* %227, i32 144)
%229 = icmp eq i32 %228, 1
br i1 %229, label %245, label %230
230: ; preds = %225
%231 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%232 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 0
%233 = call i32 @compare(i32* %231, i32* %232, i32 144)
%234 = icmp eq i32 %233, 1
br i1 %234, label %245, label %235
235: ; preds = %230
%236 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%237 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 0
%238 = call i32 @compare(i32* %236, i32* %237, i32 144)
%239 = icmp eq i32 %238, 1
br i1 %239, label %245, label %240
240: ; preds = %235
%241 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%242 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 0
%243 = call i32 @compare(i32* %241, i32* %242, i32 144)
%244 = icmp eq i32 %243, 1
br i1 %244, label %245, label %246
245: ; preds = %240, %235, %230, %225
store i32 4, i32* %8
br label %291
246: ; preds = %240
%247 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%248 = getelementptr inbounds [144 x i32], [144 x i32]* %14, i64 0, i64 0
%249 = call i32 @compare(i32* %247, i32* %248, i32 144)
%250 = icmp eq i32 %249, 1
br i1 %250, label %266, label %251
251: ; preds = %246
%252 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%253 = getelementptr inbounds [144 x i32], [144 x i32]* %14, i64 0, i64 0
%254 = call i32 @compare(i32* %252, i32* %253, i32 144)
%255 = icmp eq i32 %254, 1
br i1 %255, label %266, label %256
256: ; preds = %251
%257 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%258 = getelementptr inbounds [144 x i32], [144 x i32]* %14, i64 0, i64 0
%259 = call i32 @compare(i32* %257, i32* %258, i32 144)
%260 = icmp eq i32 %259, 1
br i1 %260, label %266, label %261
261: ; preds = %256
%262 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%263 = getelementptr inbounds [144 x i32], [144 x i32]* %14, i64 0, i64 0
%264 = call i32 @compare(i32* %262, i32* %263, i32 144)
%265 = icmp eq i32 %264, 1
br i1 %265, label %266, label %267
266: ; preds = %261, %256, %251, %246
store i32 5, i32* %8
br label %290
267: ; preds = %261
%268 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%269 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 0
%270 = call i32 @compare(i32* %268, i32* %269, i32 144)
%271 = icmp eq i32 %270, 1
br i1 %271, label %287, label %272
272: ; preds = %267
%273 = getelementptr inbounds [144 x i32], [144 x i32]* %18, i64 0, i64 0
%274 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 0
%275 = call i32 @compare(i32* %273, i32* %274, i32 144)
%276 = icmp eq i32 %275, 1
br i1 %276, label %287, label %277
277: ; preds = %272
%278 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%279 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 0
%280 = call i32 @compare(i32* %278, i32* %279, i32 144)
%281 = icmp eq i32 %280, 1
br i1 %281, label %287, label %282
282: ; preds = %277
%283 = getelementptr inbounds [144 x i32], [144 x i32]* %20, i64 0, i64 0
%284 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 0
%285 = call i32 @compare(i32* %283, i32* %284, i32 144)
%286 = icmp eq i32 %285, 1
br i1 %286, label %287, label %288
287: ; preds = %282, %277, %272, %267
store i32 6, i32* %8
br label %289
288: ; preds = %282
store i32 7, i32* %8
br label %289
289: ; preds = %288, %287
br label %290
290: ; preds = %289, %266
br label %291
291: ; preds = %290, %245
br label %292
292: ; preds = %291, %224
br label %293
293: ; preds = %292, %203
br label %294
294: ; preds = %293, %182
br label %295
295: ; preds = %294, %161
%296 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%297 = load i32, i32* %8
%298 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %297)
%299 = load i32, i32* %8
ret i32 %299
}

LLVM IR (-O2):
@.str.3 = [35 x i8] c"The matching reference icon is %d\0A\00"
@str = [12 x i8] c"Icon Match:\00"
@str.4 = [40 x i8] c"valuefiles does not contain enough data\00"
@str.5 = [22 x i8] c"usage: P1-4 valuefile\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1728 x i32]
%4 = bitcast [1728 x i32]* %3 to i8*
%5 = alloca [144 x i32]
%6 = bitcast [144 x i32]* %5 to i8*
%7 = alloca [144 x i32]
%8 = bitcast [144 x i32]* %7 to i8*
%9 = alloca [144 x i32]
%10 = bitcast [144 x i32]* %9 to i8*
%11 = alloca [144 x i32]
%12 = bitcast [144 x i32]* %11 to i8*
%13 = alloca [144 x i32]
%14 = bitcast [144 x i32]* %13 to i8*
%15 = alloca [144 x i32]
%16 = bitcast [144 x i32]* %15 to i8*
%17 = alloca [144 x i32]
%18 = bitcast [144 x i32]* %17 to i8*
%19 = alloca [144 x i32]
%20 = bitcast [144 x i32]* %19 to i8*
%21 = alloca [144 x i32]
%22 = bitcast [144 x i32]* %21 to i8*
%23 = alloca [144 x i32]
%24 = bitcast [144 x i32]* %23 to i8*
%25 = alloca [144 x i32]
%26 = bitcast [144 x i32]* %25 to i8*
%27 = icmp eq i32 %0, 2
br i1 %27, label %31, label %28
28: ; preds = %2
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.5, i64 0, i64 0))
%30 = tail call i32 @exit(i32 1)
unreachable
31: ; preds = %2
%32 = getelementptr inbounds i8*, i8** %1, i64 1
%33 = load i8*, i8** %32
%34 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 0
%35 = call i32 @Load_Mem(i8* %33, i32* %34)
%36 = icmp eq i32 %35, 1728
br i1 %36, label %40, label %37
37: ; preds = %31
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.4, i64 0, i64 0))
%39 = call i32 @exit(i32 1)
unreachable
40: ; preds = %31
%41 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 144
%42 = bitcast i32* %41 to i8*
%43 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 288
%44 = bitcast i32* %43 to i8*
%45 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 432
%46 = bitcast i32* %45 to i8*
%47 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 576
%48 = bitcast i32* %47 to i8*
%49 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 720
%50 = bitcast i32* %49 to i8*
%51 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 864
%52 = bitcast i32* %51 to i8*
%53 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 1152
%54 = bitcast i32* %53 to i8*
%55 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 1296
%56 = bitcast i32* %55 to i8*
%57 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 1440
%58 = bitcast i32* %57 to i8*
%59 = getelementptr inbounds [1728 x i32], [1728 x i32]* %3, i64 0, i64 1584
%60 = bitcast i32* %59 to i8*
%61 = getelementptr inbounds [144 x i32], [144 x i32]* %19, i64 0, i64 0
%62 = getelementptr inbounds [144 x i32], [144 x i32]* %5, i64 0, i64 0
%63 = call i32 @compare(i32* %61, i32* %62, i32 144)
%64 = icmp eq i32 %63, 1
br i1 %64, label %156, label %65
65: ; preds = %40
%66 = getelementptr inbounds [144 x i32], [144 x i32]* %21, i64 0, i64 0
%67 = call i32 @compare(i32* %66, i32* %62, i32 144)
%68 = icmp eq i32 %67, 1
br i1 %68, label %156, label %69
69: ; preds = %65
%70 = getelementptr inbounds [144 x i32], [144 x i32]* %23, i64 0, i64 0
%71 = call i32 @compare(i32* %70, i32* %62, i32 144)
%72 = icmp eq i32 %71, 1
br i1 %72, label %156, label %73
73: ; preds = %69
%74 = getelementptr inbounds [144 x i32], [144 x i32]* %25, i64 0, i64 0
%75 = call i32 @compare(i32* %74, i32* %62, i32 144)
%76 = icmp eq i32 %75, 1
br i1 %76, label %156, label %77
77: ; preds = %73
%78 = getelementptr inbounds [144 x i32], [144 x i32]* %7, i64 0, i64 0
%79 = call i32 @compare(i32* %61, i32* %78, i32 144)
%80 = icmp eq i32 %79, 1
br i1 %80, label %156, label %81
81: ; preds = %77
%82 = call i32 @compare(i32* %66, i32* %78, i32 144)
%83 = icmp eq i32 %82, 1
br i1 %83, label %156, label %84
84: ; preds = %81
%85 = call i32 @compare(i32* %70, i32* %78, i32 144)
%86 = icmp eq i32 %85, 1
br i1 %86, label %156, label %87
87: ; preds = %84
%88 = call i32 @compare(i32* %74, i32* %78, i32 144)
%89 = icmp eq i32 %88, 1
br i1 %89, label %156, label %90
90: ; preds = %87
%91 = getelementptr inbounds [144 x i32], [144 x i32]* %9, i64 0, i64 0
%92 = call i32 @compare(i32* %61, i32* %91, i32 144)
%93 = icmp eq i32 %92, 1
br i1 %93, label %156, label %94
94: ; preds = %90
%95 = call i32 @compare(i32* %66, i32* %91, i32 144)
%96 = icmp eq i32 %95, 1
br i1 %96, label %156, label %97
97: ; preds = %94
%98 = call i32 @compare(i32* %70, i32* %91, i32 144)
%99 = icmp eq i32 %98, 1
br i1 %99, label %156, label %100
100: ; preds = %97
%101 = call i32 @compare(i32* %74, i32* %91, i32 144)
%102 = icmp eq i32 %101, 1
br i1 %102, label %156, label %103
103: ; preds = %100
%104 = getelementptr inbounds [144 x i32], [144 x i32]* %11, i64 0, i64 0
%105 = call i32 @compare(i32* %61, i32* %104, i32 144)
%106 = icmp eq i32 %105, 1
br i1 %106, label %156, label %107
107: ; preds = %103
%108 = call i32 @compare(i32* %66, i32* %104, i32 144)
%109 = icmp eq i32 %108, 1
br i1 %109, label %156, label %110
110: ; preds = %107
%111 = call i32 @compare(i32* %70, i32* %104, i32 144)
%112 = icmp eq i32 %111, 1
br i1 %112, label %156, label %113
113: ; preds = %110
%114 = call i32 @compare(i32* %74, i32* %104, i32 144)
%115 = icmp eq i32 %114, 1
br i1 %115, label %156, label %116
116: ; preds = %113
%117 = getelementptr inbounds [144 x i32], [144 x i32]* %13, i64 0, i64 0
%118 = call i32 @compare(i32* %61, i32* %117, i32 144)
%119 = icmp eq i32 %118, 1
br i1 %119, label %156, label %120
120: ; preds = %116
%121 = call i32 @compare(i32* %66, i32* %117, i32 144)
%122 = icmp eq i32 %121, 1
br i1 %122, label %156, label %123
123: ; preds = %120
%124 = call i32 @compare(i32* %70, i32* %117, i32 144)
%125 = icmp eq i32 %124, 1
br i1 %125, label %156, label %126
126: ; preds = %123
%127 = call i32 @compare(i32* %74, i32* %117, i32 144)
%128 = icmp eq i32 %127, 1
br i1 %128, label %156, label %129
129: ; preds = %126
%130 = getelementptr inbounds [144 x i32], [144 x i32]* %15, i64 0, i64 0
%131 = call i32 @compare(i32* %61, i32* %130, i32 144)
%132 = icmp eq i32 %131, 1
br i1 %132, label %156, label %133
133: ; preds = %129
%134 = call i32 @compare(i32* %66, i32* %130, i32 144)
%135 = icmp eq i32 %134, 1
br i1 %135, label %156, label %136
136: ; preds = %133
%137 = call i32 @compare(i32* %70, i32* %130, i32 144)
%138 = icmp eq i32 %137, 1
br i1 %138, label %156, label %139
139: ; preds = %136
%140 = call i32 @compare(i32* %74, i32* %130, i32 144)
%141 = icmp eq i32 %140, 1
br i1 %141, label %156, label %142
142: ; preds = %139
%143 = getelementptr inbounds [144 x i32], [144 x i32]* %17, i64 0, i64 0
%144 = call i32 @compare(i32* %61, i32* %143, i32 144)
%145 = icmp eq i32 %144, 1
br i1 %145, label %156, label %146
146: ; preds = %142
%147 = call i32 @compare(i32* %66, i32* %143, i32 144)
%148 = icmp eq i32 %147, 1
br i1 %148, label %156, label %149
149: ; preds = %146
%150 = call i32 @compare(i32* %70, i32* %143, i32 144)
%151 = icmp eq i32 %150, 1
br i1 %151, label %156, label %152
152: ; preds = %149
%153 = call i32 @compare(i32* %74, i32* %143, i32 144)
%154 = icmp eq i32 %153, 1
%155 = select i1 %154, i32 6, i32 7
br label %156
156: ; preds = %152, %142, %146, %149, %129, %133, %136, %139, %116, %120, %123, %126, %103, %107, %110, %113, %90, %94, %97, %100, %77, %81, %84, %87, %40, %65, %69, %73
%157 = phi i32 [ 0, %73 ], [ 0, %69 ], [ 0, %65 ], [ 0, %40 ], [ 1, %87 ], [ 1, %84 ], [ 1, %81 ], [ 1, %77 ], [ 2, %100 ], [ 2, %97 ], [ 2, %94 ], [ 2, %90 ], [ 3, %113 ], [ 3, %110 ], [ 3, %107 ], [ 3, %103 ], [ 4, %126 ], [ 4, %123 ], [ 4, %120 ], [ 4, %116 ], [ 5, %139 ], [ 5, %136 ], [ 5, %133 ], [ 5, %129 ], [ 6, %149 ], [ 6, %146 ], [ 6, %142 ], [ %155, %152 ]
%158 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %157)
ret i32 %157
}