#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _2OperandFunc(int /*<<< orphan*/ *, char *, int, float);
int /*<<< orphan*/ _3OperandFunc(int /*<<< orphan*/ *, char *, int, int, char);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ io(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ jmp(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ ldi(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ load(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ lsf(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ save(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ tst(int /*<<< orphan*/ *, char *, int);
int main() {
  char input[200];
  int counter = 0;
  int trueCounter = 1;
  FILE *fi = fopen("input.txt", "r");
  FILE *fo = fopen("output.txt", "w");
  if (fi == NULL || fo == NULL) {
    printf("Failed to open one or more files, make sure you have input.txt in "
           "the parent folder! Press any key to exit. ");
    scanf("%c", input);
    return 2;
  }
  while (fgets(input, 199, fi) != NULL) {
    switch (input[0]) {
    case '/':
      --trueCounter;
      break;
    case 'j':
      jmp(fo, input, counter);
      break;
    case 'i':
      if (input[1] == 'n' && input[2] == 'c')
        _2OperandFunc(fo, input, counter, '7');
      else if (input[1] == 'o')
        io(fo, input, counter);
      else
        goto FAILURE;
      break;
    case 'd':
      if (input[1] == 'e' && input[2] == 'c')
        _2OperandFunc(fo, input, counter, 'f');
      else
        goto FAILURE;
      break;
    case 'a':
      if (input[1] == 'd' && input[2] == 'd')
        _3OperandFunc(fo, input, counter, 3, '1');
      else if (input[1] == 'n' && input[2] == 'd')
        _3OperandFunc(fo, input, counter, 3, '3');
      else
        goto FAILURE;
      break;
    case 's':
      if (input[1] == 'u' && input[2] == 'b')
        _3OperandFunc(fo, input, counter, 3, '2');
      else if (input[1] == 'a' && input[2] == 'v' && input[3] == 'e')
        save(fo, input, counter);
      else
        goto FAILURE;
      break;
    case 'x':
      if (input[1] == 'o' && input[2] == 'r')
        _3OperandFunc(fo, input, counter, 3, '5');
      else
        goto FAILURE;
      break;
    case 'l':
      if (input[1] == 'd' && input[2] == 'i')
        ldi(fo, input, counter);
      else if (input[1] == 's' && input[2] == 'f')
        lsf(fo, input, counter);
      else if (input[1] == 'o' && input[2] == 'a' && input[3] == 'd')
        load(fo, input, counter);
      else
        goto FAILURE;
      break;
    case 'o':
      if (input[1] == 'r')
        _3OperandFunc(fo, input, counter, 2, '6');
      else
        goto FAILURE;
      break;
    case 'm':
      if (input[1] == 'o' && input[2] == 'v')
        _2OperandFunc(fo, input, counter, '0');
      else
        goto FAILURE;
      break;
    case 'n':
      if (input[1] == 'o' && input[2] == 'p')
        fprintf(fo, "0000 ");
      else if (input[1] == 'o' && input[2] == 't')
        not(fo, input, counter);
      else
        goto FAILURE;
      break;
    case 't':
      if (input[1] == 's' && input[2] == 't')
        tst(fo, input, counter);
      else
        goto FAILURE;
      break;
    default:
    FAILURE:
      printf("Unable to resolve code written at line %d\n", counter);
    }
    if (trueCounter % 8 == 0)
      fputc('\n', fo);
    ++counter;
    ++trueCounter;
  }
  fclose(fi);
  fclose(fo);
  printf("\n\n\nAll Done! Click any key to exit.");
  scanf("%c", input);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xd4(%rbp)
movl   $0x1,-0xd8(%rbp)
lea    0xef7(%rip),%rdi
lea    0xefa(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0xe0(%rbp)
lea    0xee9(%rip),%rdi
lea    0xeed(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0xe8(%rbp)
cmpq   $0x0,-0xe0(%rbp)
je     1286 <main+0x76>
cmpq   $0x0,-0xe8(%rbp)
jne    12b3 <main+0xa3>
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xd0(%rbp),%rsi
lea    0xf18(%rip),%rdi
call   10f0 <scanf@plt>
movl   $0x2,-0x4(%rbp)
jmp    1890 <main+0x680>
jmp    12b8 <main+0xa8>
lea    -0xd0(%rbp),%rdi
mov    -0xe0(%rbp),%rdx
mov    $0xc7,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1850 <main+0x640>
movsbl -0xd0(%rbp),%eax
add    $0xffffffd1,%eax
mov    %eax,%ecx
mov    %rcx,-0xf0(%rbp)
sub    $0x49,%eax
ja     17ec <main+0x5dc>
mov    -0xf0(%rbp),%rax
lea    0xd08(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0xd8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xd8(%rbp)
jmp    1805 <main+0x5f5>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   1130 <jmp@plt>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x6e,%eax
jne    1385 <main+0x175>
movsbl -0xce(%rbp),%eax
cmp    $0x63,%eax
jne    1385 <main+0x175>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
movss  0xc8d(%rip),%xmm0
call   10d0 <_2OperandFunc@plt>
jmp    13bd <main+0x1ad>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    13b3 <main+0x1a3>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   10b0 <io@plt>
jmp    13b8 <main+0x1a8>
jmp    17f1 <main+0x5e1>
jmp    13bd <main+0x1ad>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x65,%eax
jne    1408 <main+0x1f8>
movsbl -0xce(%rbp),%eax
cmp    $0x63,%eax
jne    1408 <main+0x1f8>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
movss  0xc06(%rip),%xmm0
call   10d0 <_2OperandFunc@plt>
jmp    140d <main+0x1fd>
jmp    17f1 <main+0x5e1>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x64,%eax
jne    145b <main+0x24b>
movsbl -0xce(%rbp),%eax
cmp    $0x64,%eax
jne    145b <main+0x24b>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x3,%ecx
mov    $0x31,%r8d
call   10c0 <_3OperandFunc@plt>
jmp    14ae <main+0x29e>
movsbl -0xcf(%rbp),%eax
cmp    $0x6e,%eax
jne    14a4 <main+0x294>
movsbl -0xce(%rbp),%eax
cmp    $0x64,%eax
jne    14a4 <main+0x294>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x3,%ecx
mov    $0x33,%r8d
call   10c0 <_3OperandFunc@plt>
jmp    14a9 <main+0x299>
jmp    17f1 <main+0x5e1>
jmp    14ae <main+0x29e>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x75,%eax
jne    14fc <main+0x2ec>
movsbl -0xce(%rbp),%eax
cmp    $0x62,%eax
jne    14fc <main+0x2ec>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x3,%ecx
mov    $0x32,%r8d
call   10c0 <_3OperandFunc@plt>
jmp    1554 <main+0x344>
movsbl -0xcf(%rbp),%eax
cmp    $0x61,%eax
jne    154a <main+0x33a>
movsbl -0xce(%rbp),%eax
cmp    $0x76,%eax
jne    154a <main+0x33a>
movsbl -0xcd(%rbp),%eax
cmp    $0x65,%eax
jne    154a <main+0x33a>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   1070 <save@plt>
jmp    154f <main+0x33f>
jmp    17f1 <main+0x5e1>
jmp    1554 <main+0x344>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    15a2 <main+0x392>
movsbl -0xce(%rbp),%eax
cmp    $0x72,%eax
jne    15a2 <main+0x392>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x3,%ecx
mov    $0x35,%r8d
call   10c0 <_3OperandFunc@plt>
jmp    15a7 <main+0x397>
jmp    17f1 <main+0x5e1>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x64,%eax
jne    15ea <main+0x3da>
movsbl -0xce(%rbp),%eax
cmp    $0x69,%eax
jne    15ea <main+0x3da>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   1120 <ldi@plt>
jmp    1685 <main+0x475>
movsbl -0xcf(%rbp),%eax
cmp    $0x73,%eax
jne    1628 <main+0x418>
movsbl -0xce(%rbp),%eax
cmp    $0x66,%eax
jne    1628 <main+0x418>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   10e0 <lsf@plt>
jmp    1680 <main+0x470>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    1676 <main+0x466>
movsbl -0xce(%rbp),%eax
cmp    $0x61,%eax
jne    1676 <main+0x466>
movsbl -0xcd(%rbp),%eax
cmp    $0x64,%eax
jne    1676 <main+0x466>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   1110 <load@plt>
jmp    167b <main+0x46b>
jmp    17f1 <main+0x5e1>
jmp    1680 <main+0x470>
jmp    1685 <main+0x475>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x72,%eax
jne    16c3 <main+0x4b3>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x2,%ecx
mov    $0x36,%r8d
call   10c0 <_3OperandFunc@plt>
jmp    16c8 <main+0x4b8>
jmp    17f1 <main+0x5e1>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    1713 <main+0x503>
movsbl -0xce(%rbp),%eax
cmp    $0x76,%eax
jne    1713 <main+0x503>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
movss  0x8f7(%rip),%xmm0
call   10d0 <_2OperandFunc@plt>
jmp    1718 <main+0x508>
jmp    17f1 <main+0x5e1>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    1755 <main+0x545>
movsbl -0xce(%rbp),%eax
cmp    $0x70,%eax
jne    1755 <main+0x545>
mov    -0xe8(%rbp),%rdi
lea    0xa72(%rip),%rsi
call   10a0 <fprintf@plt>
jmp    179f <main+0x58f>
movsbl -0xcf(%rbp),%eax
cmp    $0x6f,%eax
jne    1795 <main+0x585>
movsbl -0xce(%rbp),%eax
cmp    $0x74,%eax
jne    1795 <main+0x585>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
mov    $0x0,%al
call   1060 <not@plt>
jmp    179a <main+0x58a>
jmp    17f1 <main+0x5e1>
jmp    179f <main+0x58f>
jmp    1805 <main+0x5f5>
movsbl -0xcf(%rbp),%eax
cmp    $0x73,%eax
jne    17e2 <main+0x5d2>
movsbl -0xce(%rbp),%eax
cmp    $0x74,%eax
jne    17e2 <main+0x5d2>
mov    -0xe8(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
call   1030 <tst@plt>
jmp    17e7 <main+0x5d7>
jmp    17f1 <main+0x5e1>
jmp    1805 <main+0x5f5>
jmp    17f1 <main+0x5e1>
mov    -0xd4(%rbp),%esi
lea    0x9c5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xd8(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    182d <main+0x61d>
mov    -0xe8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    12b8 <main+0xa8>
mov    -0xe0(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0xe8(%rbp),%rdi
call   1040 <fclose@plt>
lea    0x97f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xd0(%rbp),%rsi
lea    0x936(%rip),%rdi
call   10f0 <scanf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
lea    0xf0c(%rip),%rdi
lea    0xf0f(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,%rbx
lea    0xf02(%rip),%rdi
lea    0xf06(%rip),%rsi
call   10f0 <fopen@plt>
test   %rbx,%rbx
je     15bc <main+0x3ac>
mov    %rax,%r14
test   %rax,%rax
je     15bc <main+0x3ac>
mov    %rsp,%rdi
mov    $0xc7,%esi
mov    %rbx,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     15d1 <main+0x3c1>
mov    $0x1,%r13d
mov    %rsp,%r12
lea    0xd84(%rip),%r15
xor    %ebp,%ebp
jmp    12b0 <main+0xa0>
nopl   0x0(%rax)
add    $0x1,%ebp
add    $0x1,%r13d
mov    %r12,%rdi
mov    $0xc7,%esi
mov    %rbx,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
je     15d1 <main+0x3c1>
movsbl (%rsp),%eax
add    $0xffffffd1,%eax
cmp    $0x49,%eax
ja     1590 <main+0x380>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
add    $0xffffffff,%r13d
jmp    15a0 <main+0x390>
cmpb   $0x73,0x1(%rsp)
jne    1590 <main+0x380>
cmpb   $0x74,0x2(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1030 <tst@plt>
jmp    15a0 <main+0x390>
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%eax
cmp    $0x64,%cl
jne    14cf <main+0x2bf>
cmp    $0x64,%al
jne    14cf <main+0x2bf>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    $0x3,%ecx
mov    $0x31,%r8d
call   10b0 <_3OperandFunc@plt>
jmp    15a0 <main+0x390>
cmpb   $0x65,0x1(%rsp)
jne    1590 <main+0x380>
cmpb   $0x63,0x2(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
movss  0xcac(%rip),%xmm0
call   10c0 <_2OperandFunc@plt>
jmp    15a0 <main+0x390>
movzbl 0x1(%rsp),%eax
cmp    $0x6e,%al
jne    14fd <main+0x2ed>
cmpb   $0x63,0x2(%rsp)
jne    14fd <main+0x2ed>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
movss  0xc7e(%rip),%xmm0
call   10c0 <_2OperandFunc@plt>
jmp    15a0 <main+0x390>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1130 <jmp@plt>
jmp    15a0 <main+0x390>
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%eax
cmp    $0x64,%cl
jne    1517 <main+0x307>
cmp    $0x69,%al
jne    1517 <main+0x307>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1110 <ldi@plt>
jmp    15a0 <main+0x390>
cmpb   $0x6f,0x1(%rsp)
jne    1590 <main+0x380>
cmpb   $0x76,0x2(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
movss  0xc07(%rip),%xmm0
call   10c0 <_2OperandFunc@plt>
jmp    15a0 <main+0x390>
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%eax
cmp    $0x6f,%cl
jne    152f <main+0x31f>
cmp    $0x70,%al
jne    152f <main+0x31f>
mov    $0x5,%esi
mov    $0x1,%edx
lea    0xd8e(%rip),%rdi
mov    %r14,%rcx
call   1120 <fwrite@plt>
jmp    15a0 <main+0x390>
cmpb   $0x72,0x1(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    $0x2,%ecx
mov    $0x36,%r8d
call   10b0 <_3OperandFunc@plt>
jmp    15a0 <main+0x390>
movzbl 0x1(%rsp),%ecx
movzbl 0x2(%rsp),%eax
cmp    $0x75,%cl
jne    1549 <main+0x339>
cmp    $0x62,%al
jne    1549 <main+0x339>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    $0x3,%ecx
mov    $0x32,%r8d
call   10b0 <_3OperandFunc@plt>
jmp    15a0 <main+0x390>
cmpb   $0x6f,0x1(%rsp)
jne    1590 <main+0x380>
cmpb   $0x72,0x2(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    $0x3,%ecx
mov    $0x35,%r8d
call   10b0 <_3OperandFunc@plt>
jmp    15a0 <main+0x390>
cmp    $0x6e,%cl
jne    1590 <main+0x380>
cmp    $0x64,%al
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    $0x3,%ecx
mov    $0x33,%r8d
call   10b0 <_3OperandFunc@plt>
jmp    15a0 <main+0x390>
cmp    $0x6f,%al
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   10a0 <io@plt>
jmp    15a0 <main+0x390>
cmp    $0x73,%cl
jne    1568 <main+0x358>
cmp    $0x66,%al
jne    1568 <main+0x358>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   10d0 <lsf@plt>
jmp    15a0 <main+0x390>
cmp    $0x6f,%cl
jne    1590 <main+0x380>
cmp    $0x74,%al
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <not@plt>
jmp    15a0 <main+0x390>
cmp    $0x61,%cl
jne    1590 <main+0x380>
cmp    $0x76,%al
jne    1590 <main+0x380>
cmpb   $0x65,0x3(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1070 <save@plt>
jmp    15a0 <main+0x390>
cmp    $0x6f,%cl
jne    1590 <main+0x380>
cmp    $0x61,%al
jne    1590 <main+0x380>
cmpb   $0x64,0x3(%rsp)
jne    1590 <main+0x380>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1100 <load@plt>
jmp    15a0 <main+0x390>
nopw   0x0(%rax,%rax,1)
lea    0xc2c(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x7,%r13b
jne    1290 <main+0x80>
mov    $0xa,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
jmp    1290 <main+0x80>
lea    0xb8a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2,%ebx
jmp    15f1 <main+0x3e1>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
lea    0xc06(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbc2(%rip),%rdi
mov    %rsp,%rsi
call   10e0 <scanf@plt>
mov    %ebx,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"input.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"output.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [109 x i8] c"Failed to open one or more files, make sure you have input.txt in the parent folder! Press any key to exit. \00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [6 x i8] c"0000 \00"
@.str.7 = [43 x i8] c"Unable to resolve code written at line %d\0A\00"
@.str.8 = [36 x i8] c"\0A\0A\0AAll Done! Click any key to exit.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %3
store i32 1, i32* %4
%7 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %5
%8 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %8, i32** %6
%9 = load i32*, i32** %5
%10 = icmp eq i32* %9, null
br i1 %10, label %14, label %11
11: ; preds = %0
%12 = load i32*, i32** %6
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %18
14: ; preds = %11, %0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.4, i64 0, i64 0))
%16 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %16)
store i32 2, i32* %1
br label %324
18: ; preds = %11
br label %19
19: ; preds = %311, %18
%20 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%21 = load i32*, i32** %5
%22 = call i32* @fgets(i8* %20, i32 199, i32* %21)
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %316
24: ; preds = %19
%25 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
switch i32 %27, label %300 [
i32 47, label %28
i32 106, label %31
i32 105, label %36
i32 100, label %64
i32 97, label %81
i32 115, label %114
i32 120, label %152
i32 108, label %169
i32 111, label %223
i32 109, label %235
i32 110, label %252
i32 116, label %283
]
28: ; preds = %24
%29 = load i32, i32* %4
%30 = add nsw i32 %29, -1
store i32 %30, i32* %4
br label %304
31: ; preds = %24
%32 = load i32*, i32** %6
%33 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%34 = load i32, i32* %3
%35 = call i32 @jmp(i32* %32, i8* %33, i32 %34)
br label %304
36: ; preds = %24
%37 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 110
br i1 %40, label %41, label %51
41: ; preds = %36
%42 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 99
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load i32*, i32** %6
%48 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%49 = load i32, i32* %3
%50 = call i32 @_2OperandFunc(i32* %47, i8* %48, i32 %49, float 5.500000e+01)
br label %63
51: ; preds = %41, %36
%52 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 111
br i1 %55, label %56, label %61
56: ; preds = %51
%57 = load i32*, i32** %6
%58 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%59 = load i32, i32* %3
%60 = call i32 @io(i32* %57, i8* %58, i32 %59)
br label %62
61: ; preds = %51
br label %301
62: ; preds = %56
br label %63
63: ; preds = %62, %46
br label %304
64: ; preds = %24
%65 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 101
br i1 %68, label %69, label %79
69: ; preds = %64
%70 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 99
br i1 %73, label %74, label %79
74: ; preds = %69
%75 = load i32*, i32** %6
%76 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%77 = load i32, i32* %3
%78 = call i32 @_2OperandFunc(i32* %75, i8* %76, i32 %77, float 1.020000e+02)
br label %80
79: ; preds = %69, %64
br label %301
80: ; preds = %74
br label %304
81: ; preds = %24
%82 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 100
br i1 %85, label %86, label %96
86: ; preds = %81
%87 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 100
br i1 %90, label %91, label %96
91: ; preds = %86
%92 = load i32*, i32** %6
%93 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%94 = load i32, i32* %3
%95 = call i32 @_3OperandFunc(i32* %92, i8* %93, i32 %94, i32 3, i8 signext 49)
br label %113
96: ; preds = %86, %81
%97 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 110
br i1 %100, label %101, label %111
101: ; preds = %96
%102 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 100
br i1 %105, label %106, label %111
106: ; preds = %101
%107 = load i32*, i32** %6
%108 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%109 = load i32, i32* %3
%110 = call i32 @_3OperandFunc(i32* %107, i8* %108, i32 %109, i32 3, i8 signext 51)
br label %112
111: ; preds = %101, %96
br label %301
112: ; preds = %106
br label %113
113: ; preds = %112, %91
br label %304
114: ; preds = %24
%115 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp eq i32 %117, 117
br i1 %118, label %119, label %129
119: ; preds = %114
%120 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 98
br i1 %123, label %124, label %129
124: ; preds = %119
%125 = load i32*, i32** %6
%126 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%127 = load i32, i32* %3
%128 = call i32 @_3OperandFunc(i32* %125, i8* %126, i32 %127, i32 3, i8 signext 50)
br label %151
129: ; preds = %119, %114
%130 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 97
br i1 %133, label %134, label %149
134: ; preds = %129
%135 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 118
br i1 %138, label %139, label %149
139: ; preds = %134
%140 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 3
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 101
br i1 %143, label %144, label %149
144: ; preds = %139
%145 = load i32*, i32** %6
%146 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%147 = load i32, i32* %3
%148 = call i32 @save(i32* %145, i8* %146, i32 %147)
br label %150
149: ; preds = %139, %134, %129
br label %301
150: ; preds = %144
br label %151
151: ; preds = %150, %124
br label %304
152: ; preds = %24
%153 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 111
br i1 %156, label %157, label %167
157: ; preds = %152
%158 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%159 = load i8, i8* %158
%160 = sext i8 %159 to i32
%161 = icmp eq i32 %160, 114
br i1 %161, label %162, label %167
162: ; preds = %157
%163 = load i32*, i32** %6
%164 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%165 = load i32, i32* %3
%166 = call i32 @_3OperandFunc(i32* %163, i8* %164, i32 %165, i32 3, i8 signext 53)
br label %168
167: ; preds = %157, %152
br label %301
168: ; preds = %162
br label %304
169: ; preds = %24
%170 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 100
br i1 %173, label %174, label %184
174: ; preds = %169
%175 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%176 = load i8, i8* %175
%177 = sext i8 %176 to i32
%178 = icmp eq i32 %177, 105
br i1 %178, label %179, label %184
179: ; preds = %174
%180 = load i32*, i32** %6
%181 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%182 = load i32, i32* %3
%183 = call i32 @ldi(i32* %180, i8* %181, i32 %182)
br label %222
184: ; preds = %174, %169
%185 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%186 = load i8, i8* %185
%187 = sext i8 %186 to i32
%188 = icmp eq i32 %187, 115
br i1 %188, label %189, label %199
189: ; preds = %184
%190 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 102
br i1 %193, label %194, label %199
194: ; preds = %189
%195 = load i32*, i32** %6
%196 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%197 = load i32, i32* %3
%198 = call i32 @lsf(i32* %195, i8* %196, i32 %197)
br label %221
199: ; preds = %189, %184
%200 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%201 = load i8, i8* %200
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 111
br i1 %203, label %204, label %219
204: ; preds = %199
%205 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%206 = load i8, i8* %205
%207 = sext i8 %206 to i32
%208 = icmp eq i32 %207, 97
br i1 %208, label %209, label %219
209: ; preds = %204
%210 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 3
%211 = load i8, i8* %210
%212 = sext i8 %211 to i32
%213 = icmp eq i32 %212, 100
br i1 %213, label %214, label %219
214: ; preds = %209
%215 = load i32*, i32** %6
%216 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%217 = load i32, i32* %3
%218 = call i32 @load(i32* %215, i8* %216, i32 %217)
br label %220
219: ; preds = %209, %204, %199
br label %301
220: ; preds = %214
br label %221
221: ; preds = %220, %194
br label %222
222: ; preds = %221, %179
br label %304
223: ; preds = %24
%224 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%225 = load i8, i8* %224
%226 = sext i8 %225 to i32
%227 = icmp eq i32 %226, 114
br i1 %227, label %228, label %233
228: ; preds = %223
%229 = load i32*, i32** %6
%230 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%231 = load i32, i32* %3
%232 = call i32 @_3OperandFunc(i32* %229, i8* %230, i32 %231, i32 2, i8 signext 54)
br label %234
233: ; preds = %223
br label %301
234: ; preds = %228
br label %304
235: ; preds = %24
%236 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%237 = load i8, i8* %236
%238 = sext i8 %237 to i32
%239 = icmp eq i32 %238, 111
br i1 %239, label %240, label %250
240: ; preds = %235
%241 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%242 = load i8, i8* %241
%243 = sext i8 %242 to i32
%244 = icmp eq i32 %243, 118
br i1 %244, label %245, label %250
245: ; preds = %240
%246 = load i32*, i32** %6
%247 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%248 = load i32, i32* %3
%249 = call i32 @_2OperandFunc(i32* %246, i8* %247, i32 %248, float 4.800000e+01)
br label %251
250: ; preds = %240, %235
br label %301
251: ; preds = %245
br label %304
252: ; preds = %24
%253 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%254 = load i8, i8* %253
%255 = sext i8 %254 to i32
%256 = icmp eq i32 %255, 111
br i1 %256, label %257, label %265
257: ; preds = %252
%258 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%259 = load i8, i8* %258
%260 = sext i8 %259 to i32
%261 = icmp eq i32 %260, 112
br i1 %261, label %262, label %265
262: ; preds = %257
%263 = load i32*, i32** %6
%264 = call i32 @fprintf(i32* %263, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %282
265: ; preds = %257, %252
%266 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%267 = load i8, i8* %266
%268 = sext i8 %267 to i32
%269 = icmp eq i32 %268, 111
br i1 %269, label %270, label %280
270: ; preds = %265
%271 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%272 = load i8, i8* %271
%273 = sext i8 %272 to i32
%274 = icmp eq i32 %273, 116
br i1 %274, label %275, label %280
275: ; preds = %270
%276 = load i32*, i32** %6
%277 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%278 = load i32, i32* %3
%279 = call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @not to i32 (i32*, i8*, i32, ...)*)(i32* %276, i8* %277, i32 %278)
br label %281
280: ; preds = %270, %265
br label %301
281: ; preds = %275
br label %282
282: ; preds = %281, %262
br label %304
283: ; preds = %24
%284 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 1
%285 = load i8, i8* %284
%286 = sext i8 %285 to i32
%287 = icmp eq i32 %286, 115
br i1 %287, label %288, label %298
288: ; preds = %283
%289 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 2
%290 = load i8, i8* %289
%291 = sext i8 %290 to i32
%292 = icmp eq i32 %291, 116
br i1 %292, label %293, label %298
293: ; preds = %288
%294 = load i32*, i32** %6
%295 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%296 = load i32, i32* %3
%297 = call i32 @tst(i32* %294, i8* %295, i32 %296)
br label %299
298: ; preds = %288, %283
br label %301
299: ; preds = %293
br label %304
300: ; preds = %24
br label %301
301: ; preds = %300, %298, %280, %250, %233, %219, %167, %149, %111, %79, %61
%302 = load i32, i32* %3
%303 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i32 %302)
br label %304
304: ; preds = %301, %299, %282, %251, %234, %222, %168, %151, %113, %80, %63, %31, %28
%305 = load i32, i32* %4
%306 = srem i32 %305, 8
%307 = icmp eq i32 %306, 0
br i1 %307, label %308, label %311
308: ; preds = %304
%309 = load i32*, i32** %6
%310 = call i32 @fputc(i8 signext 10, i32* %309)
br label %311
311: ; preds = %308, %304
%312 = load i32, i32* %3
%313 = add nsw i32 %312, 1
store i32 %313, i32* %3
%314 = load i32, i32* %4
%315 = add nsw i32 %314, 1
store i32 %315, i32* %4
br label %19
316: ; preds = %19
%317 = load i32*, i32** %5
%318 = call i32 @fclose(i32* %317)
%319 = load i32*, i32** %6
%320 = call i32 @fclose(i32* %319)
%321 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%322 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%323 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %322)
store i32 0, i32* %1
br label %324
324: ; preds = %316, %14
%325 = load i32, i32* %1
ret i32 %325
}

LLVM IR (-O2):
@.str = [10 x i8] c"input.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"output.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [109 x i8] c"Failed to open one or more files, make sure you have input.txt in the parent folder! Press any key to exit. \00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [6 x i8] c"0000 \00"
@.str.7 = [43 x i8] c"Unable to resolve code written at line %d\0A\00"
@.str.8 = [36 x i8] c"\0A\0A\0AAll Done! Click any key to exit.\00"
define i32 @main() {
%1 = alloca [200 x i8]
%2 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%5 = icmp eq i32* %3, null
%6 = icmp eq i32* %4, null
%7 = or i1 %5, %6
br i1 %7, label %15, label %8
8: ; preds = %0
%9 = call i32* @fgets(i8* %2, i32 199, i32* %3)
%10 = icmp eq i32* %9, null
br i1 %10, label %154, label %11
11: ; preds = %8
%12 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 1
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 2
%14 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 3
br label %17
15: ; preds = %0
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @.str.4, i64 0, i64 0))
br label %158
17: ; preds = %11, %149
%18 = phi i32 [ 0, %11 ], [ %150, %149 ]
%19 = phi i32 [ 1, %11 ], [ %151, %149 ]
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
switch i32 %21, label %141 [
i32 47, label %22
i32 106, label %24
i32 105, label %26
i32 100, label %38
i32 97, label %46
i32 115, label %59
i32 120, label %76
i32 108, label %84
i32 111, label %107
i32 109, label %112
i32 110, label %120
i32 116, label %133
]
22: ; preds = %17
%23 = add nsw i32 %19, -1
br label %143
24: ; preds = %17
%25 = call i32 @jmp(i32* %4, i8* %2, i32 %18)
br label %143
26: ; preds = %17
%27 = load i8, i8* %12
%28 = icmp eq i8 %27, 110
%29 = load i8, i8* %13
%30 = icmp eq i8 %29, 99
%31 = select i1 %28, i1 %30, i1 false
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 @_2OperandFunc(i32* %4, i8* %2, i32 %18, float 5.500000e+01)
br label %143
34: ; preds = %26
%35 = icmp eq i8 %27, 111
br i1 %35, label %36, label %141
36: ; preds = %34
%37 = call i32 @io(i32* %4, i8* %2, i32 %18)
br label %143
38: ; preds = %17
%39 = load i8, i8* %12
%40 = icmp eq i8 %39, 101
%41 = load i8, i8* %13
%42 = icmp eq i8 %41, 99
%43 = select i1 %40, i1 %42, i1 false
br i1 %43, label %44, label %141
44: ; preds = %38
%45 = call i32 @_2OperandFunc(i32* %4, i8* %2, i32 %18, float 1.020000e+02)
br label %143
46: ; preds = %17
%47 = load i8, i8* %12
%48 = icmp eq i8 %47, 100
%49 = load i8, i8* %13
%50 = icmp eq i8 %49, 100
%51 = select i1 %48, i1 %50, i1 false
br i1 %51, label %52, label %54
52: ; preds = %46
%53 = call i32 @_3OperandFunc(i32* %4, i8* %2, i32 %18, i32 3, i8 signext 49)
br label %143
54: ; preds = %46
%55 = icmp eq i8 %47, 110
%56 = select i1 %55, i1 %50, i1 false
br i1 %56, label %57, label %141
57: ; preds = %54
%58 = call i32 @_3OperandFunc(i32* %4, i8* %2, i32 %18, i32 3, i8 signext 51)
br label %143
59: ; preds = %17
%60 = load i8, i8* %12
%61 = icmp eq i8 %60, 117
%62 = load i8, i8* %13
%63 = icmp eq i8 %62, 98
%64 = select i1 %61, i1 %63, i1 false
br i1 %64, label %65, label %67
65: ; preds = %59
%66 = call i32 @_3OperandFunc(i32* %4, i8* %2, i32 %18, i32 3, i8 signext 50)
br label %143
67: ; preds = %59
%68 = icmp eq i8 %60, 97
%69 = icmp eq i8 %62, 118
%70 = select i1 %68, i1 %69, i1 false
%71 = load i8, i8* %14
%72 = icmp eq i8 %71, 101
%73 = select i1 %70, i1 %72, i1 false
br i1 %73, label %74, label %141
74: ; preds = %67
%75 = call i32 @save(i32* %4, i8* %2, i32 %18)
br label %143
76: ; preds = %17
%77 = load i8, i8* %12
%78 = icmp eq i8 %77, 111
%79 = load i8, i8* %13
%80 = icmp eq i8 %79, 114
%81 = select i1 %78, i1 %80, i1 false
br i1 %81, label %82, label %141
82: ; preds = %76
%83 = call i32 @_3OperandFunc(i32* %4, i8* %2, i32 %18, i32 3, i8 signext 53)
br label %143
84: ; preds = %17
%85 = load i8, i8* %12
%86 = icmp eq i8 %85, 100
%87 = load i8, i8* %13
%88 = icmp eq i8 %87, 105
%89 = select i1 %86, i1 %88, i1 false
br i1 %89, label %90, label %92
90: ; preds = %84
%91 = call i32 @ldi(i32* %4, i8* %2, i32 %18)
br label %143
92: ; preds = %84
%93 = icmp eq i8 %85, 115
%94 = icmp eq i8 %87, 102
%95 = select i1 %93, i1 %94, i1 false
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 @lsf(i32* %4, i8* %2, i32 %18)
br label %143
98: ; preds = %92
%99 = icmp eq i8 %85, 111
%100 = icmp eq i8 %87, 97
%101 = select i1 %99, i1 %100, i1 false
%102 = load i8, i8* %14
%103 = icmp eq i8 %102, 100
%104 = select i1 %101, i1 %103, i1 false
br i1 %104, label %105, label %141
105: ; preds = %98
%106 = call i32 @load(i32* %4, i8* %2, i32 %18)
br label %143
107: ; preds = %17
%108 = load i8, i8* %12
%109 = icmp eq i8 %108, 114
br i1 %109, label %110, label %141
110: ; preds = %107
%111 = call i32 @_3OperandFunc(i32* %4, i8* %2, i32 %18, i32 2, i8 signext 54)
br label %143
112: ; preds = %17
%113 = load i8, i8* %12
%114 = icmp eq i8 %113, 111
%115 = load i8, i8* %13
%116 = icmp eq i8 %115, 118
%117 = select i1 %114, i1 %116, i1 false
br i1 %117, label %118, label %141
118: ; preds = %112
%119 = call i32 @_2OperandFunc(i32* %4, i8* %2, i32 %18, float 4.800000e+01)
br label %143
120: ; preds = %17
%121 = load i8, i8* %12
%122 = icmp eq i8 %121, 111
%123 = load i8, i8* %13
%124 = icmp eq i8 %123, 112
%125 = select i1 %122, i1 %124, i1 false
br i1 %125, label %126, label %128
126: ; preds = %120
%127 = call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i64 5, i64 1, i32* %4)
br label %143
128: ; preds = %120
%129 = icmp eq i8 %123, 116
%130 = select i1 %122, i1 %129, i1 false
br i1 %130, label %131, label %141
131: ; preds = %128
%132 = call i32 (i32*, i8*, i32, ...) bitcast (i32 (...)* @not to i32 (i32*, i8*, i32, ...)*)(i32* %4, i8* %2, i32 %18)
br label %143
133: ; preds = %17
%134 = load i8, i8* %12
%135 = icmp eq i8 %134, 115
%136 = load i8, i8* %13
%137 = icmp eq i8 %136, 116
%138 = select i1 %135, i1 %137, i1 false
br i1 %138, label %139, label %141
139: ; preds = %133
%140 = call i32 @tst(i32* %4, i8* %2, i32 %18)
br label %143
141: ; preds = %17, %133, %128, %112, %107, %98, %76, %67, %54, %38, %34
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i32 %18)
br label %143
143: ; preds = %126, %131, %90, %105, %96, %65, %74, %52, %57, %32, %36, %141, %139, %118, %110, %82, %44, %24, %22
%144 = phi i32 [ %19, %141 ], [ %19, %139 ], [ %19, %126 ], [ %19, %131 ], [ %19, %118 ], [ %19, %110 ], [ %19, %90 ], [ %19, %96 ], [ %19, %105 ], [ %19, %82 ], [ %19, %65 ], [ %19, %74 ], [ %19, %52 ], [ %19, %57 ], [ %19, %44 ], [ %19, %32 ], [ %19, %36 ], [ %19, %24 ], [ %23, %22 ]
%145 = and i32 %144, 7
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %143
%148 = call i32 @fputc(i8 signext 10, i32* %4)
br label %149
149: ; preds = %147, %143
%150 = add nuw nsw i32 %18, 1
%151 = add nsw i32 %144, 1
%152 = call i32* @fgets(i8* %2, i32 199, i32* %3)
%153 = icmp eq i32* %152, null
br i1 %153, label %154, label %17
154: ; preds = %149, %8
%155 = call i32 @fclose(i32* %3)
%156 = call i32 @fclose(i32* %4)
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
br label %158
158: ; preds = %154, %15
%159 = phi i32 [ 2, %15 ], [ 0, %154 ]
%160 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %2)
ret i32 %159
}