#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*/ EXIT_FAILURE;
int /*<<< orphan*/ _IOFBF;
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ cdiff(char *, char *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ getPattern(char *, char *, char, int);
int isInteger(char *);
int /*<<< orphan*/ ndiff(int /*<<< orphan*/, int /*<<< orphan*/, char, char,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                         int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                           int /*<<< orphan*/, int);
scalar_t__ strstr(char *, char *);
int /*<<< orphan*/ usage(int);
int main(int argc, char **argv) {
  if ((argc != 8) && (argc != 10)) {
    if (argc == 1) {
      usage(0);
      exit(EXIT_FAILURE);
    } else {
      usage(1);
      exit(EXIT_FAILURE);
    }
  } else {
    if (**++argv == '-' && *(*(argv + 1) + 0) == '-' &&
        *(*(argv + 1) + 1) == 'a' && *(*(argv + 3) + 0) == '-' &&
        *(*(argv + 3) + 1) == 'b') {
      FILE *ptr_a = fopen(*(argv + 5), "r");
      FILE *ptr_b = fopen(*(argv + 6), "r");
      if (ptr_a == NULL) {
        usage(3);
        exit(EXIT_FAILURE);
      }
      if (ptr_b == NULL) {
        usage(4);
        exit(EXIT_FAILURE);
      }
      setvbuf(ptr_a, NULL, _IOFBF, 1024);
      setvbuf(ptr_b, NULL, _IOFBF, 1024);
      FILE *ptr_aba = fopen("A&B_A", "w");
      FILE *ptr_abb = fopen("A&B_B", "w");
      FILE *ptr_a_b = fopen("A-B", "w");
      FILE *ptr_b_a = fopen("B-A", "w");
      if ((ptr_aba == NULL) || (ptr_abb == NULL) || (ptr_a_b == NULL) ||
          (ptr_b_a == NULL)) {
        usage(5);
        exit(EXIT_FAILURE);
      }
      setvbuf(ptr_aba, NULL, _IOFBF, 1024);
      setvbuf(ptr_abb, NULL, _IOFBF, 1024);
      setvbuf(ptr_a_b, NULL, _IOFBF, 1024);
      setvbuf(ptr_b_a, NULL, _IOFBF, 1024);
      if (*(*argv + 1) == 'c') {
        char col_a1[5], col_a2[5];
        char col_b1[5], col_b2[5];
        getPattern(*(argv + 2), col_a1, ',', 1);
        getPattern(*(argv + 2), col_a2, ',', 2);
        getPattern(*(argv + 4), col_b1, ',', 1);
        getPattern(*(argv + 4), col_b2, ',', 2);
        if (isInteger(col_a1) && isInteger(col_a2) && isInteger(col_b1) &&
            isInteger(col_b2) && strstr(*(argv + 2), ",") &&
            strstr(*(argv + 4), ",")) {
          cdiff(*(argv + 2), *(argv + 4), ptr_a, ptr_b, ptr_aba, ptr_abb,
                ptr_a_b, ptr_b_a);
        } else {
          usage(6);
          exit(EXIT_FAILURE);
        }
      } else if (*(*argv + 1) == 'n') {
        if (isInteger(*(argv + 2)) == 1 && isInteger(*(argv + 4)) == 1) {
          char token_a = '\t';
          char token_b = '\t';
          if (argc == 10) {
            if (*(*(argv + 7) + 0) == '"') {
              token_a = *(*(argv + 7) + 0);
            }
            if (*(*(argv + 8) + 0) == '"') {
              token_b = *(*(argv + 8) + 0);
            }
          }
          ndiff(atoi(*(argv + 2)), atoi(*(argv + 4)), token_a, token_b, ptr_a,
                ptr_b, ptr_aba, ptr_abb, ptr_a_b, ptr_b_a);
        } else {
          usage(2);
          exit(EXIT_FAILURE);
        }
      } else {
        usage(1);
        exit(EXIT_FAILURE);
      }
      fclose(ptr_a);
      fclose(ptr_b);
      fclose(ptr_aba);
      fclose(ptr_abb);
      fclose(ptr_a_b);
      fclose(ptr_b_a);
    } else {
      usage(1);
      exit(EXIT_FAILURE);
    }
  }
  printf("Comparation complete!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x88,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpl   $0x8,-0x10(%rbp)
je     1225 <main+0x65>
cmpl   $0xa,-0x10(%rbp)
je     1225 <main+0x65>
cmpl   $0x1,-0x10(%rbp)
jne    120d <main+0x4d>
xor    %edi,%edi
call   1080 <usage@plt>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x18(%rbp)
mov    0x8(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    171b <main+0x55b>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    171b <main+0x55b>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x61,%eax
jne    171b <main+0x55b>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    171b <main+0x55b>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x62,%eax
jne    171b <main+0x55b>
mov    -0x18(%rbp),%rax
mov    0x28(%rax),%rdi
lea    0xd5b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    0x30(%rax),%rdi
lea    0xd43(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12e9 <main+0x129>
mov    $0x3,%edi
call   1080 <usage@plt>
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
cmpq   $0x0,-0x28(%rbp)
jne    130c <main+0x14c>
mov    $0x4,%edi
call   1080 <usage@plt>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    -0x20(%rbp),%rdi
mov    0x2cc1(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x28(%rbp),%rdi
mov    0x2ca6(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
lea    0xcb9(%rip),%rdi
lea    0xcb8(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x30(%rbp)
lea    0xcaa(%rip),%rdi
lea    0xca1(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x38(%rbp)
lea    0xc99(%rip),%rdi
lea    0xc8a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x40(%rbp)
lea    0xc86(%rip),%rdi
lea    0xc73(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     13ca <main+0x20a>
cmpq   $0x0,-0x38(%rbp)
je     13ca <main+0x20a>
cmpq   $0x0,-0x40(%rbp)
je     13ca <main+0x20a>
cmpq   $0x0,-0x48(%rbp)
jne    13e2 <main+0x222>
mov    $0x5,%edi
call   1080 <usage@plt>
mov    0x2c05(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    -0x30(%rbp),%rdi
mov    0x2beb(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x38(%rbp),%rdi
mov    0x2bd0(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x40(%rbp),%rdi
mov    0x2bb5(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x48(%rbp),%rdi
mov    0x2b9a(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x63,%eax
jne    15aa <main+0x3ea>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x4d(%rbp),%rsi
mov    $0x2c,%edx
mov    $0x1,%ecx
call   1050 <getPattern@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x52(%rbp),%rsi
mov    $0x2c,%edx
mov    $0x2,%ecx
call   1050 <getPattern@plt>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
lea    -0x57(%rbp),%rsi
mov    $0x2c,%edx
mov    $0x1,%ecx
call   1050 <getPattern@plt>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
lea    -0x5c(%rbp),%rsi
mov    $0x2c,%edx
mov    $0x2,%ecx
call   1050 <getPattern@plt>
lea    -0x4d(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     158d <main+0x3cd>
lea    -0x52(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     158d <main+0x3cd>
lea    -0x57(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     158d <main+0x3cd>
lea    -0x5c(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     158d <main+0x3cd>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xaf3(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     158d <main+0x3cd>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xad5(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     158d <main+0x3cd>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%r9
mov    -0x40(%rbp),%r10
mov    -0x48(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1070 <cdiff@plt>
jmp    15a5 <main+0x3e5>
mov    $0x6,%edi
call   1080 <usage@plt>
mov    0x2a42(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    16e0 <main+0x520>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x6e,%eax
jne    16c3 <main+0x503>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    16a6 <main+0x4e6>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    16a6 <main+0x4e6>
movb   $0x9,-0x5d(%rbp)
movb   $0x9,-0x5e(%rbp)
cmpl   $0xa,-0x10(%rbp)
jne    1643 <main+0x483>
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    161d <main+0x45d>
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%rax
mov    (%rax),%al
mov    %al,-0x5d(%rbp)
mov    -0x18(%rbp),%rax
mov    0x40(%rax),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    163e <main+0x47e>
mov    -0x18(%rbp),%rax
mov    0x40(%rax),%rax
mov    (%rax),%al
mov    %al,-0x5e(%rbp)
jmp    1643 <main+0x483>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x64(%rbp)
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
call   10b0 <atoi@plt>
mov    -0x64(%rbp),%edi
mov    %eax,%esi
mov    -0x5d(%rbp),%dl
mov    -0x5e(%rbp),%cl
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x30(%rbp),%rbx
mov    -0x38(%rbp),%r11
mov    -0x40(%rbp),%r10
mov    -0x48(%rbp),%rax
movsbl %dl,%edx
movsbl %cl,%ecx
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <ndiff@plt>
jmp    16be <main+0x4fe>
mov    $0x2,%edi
call   1080 <usage@plt>
mov    0x2929(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    16db <main+0x51b>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x290c(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    16e0 <main+0x520>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x40(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
jmp    1733 <main+0x573>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x28b4(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    1738 <main+0x578>
lea    0x8db(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %edi,%r14d
mov    %edi,%eax
and    $0xfffffffd,%eax
cmp    $0x8,%eax
jne    158d <main+0x3cd>
mov    %rsi,%r12
mov    0x8(%rsi),%rax
cmpb   $0x2d,(%rax)
jne    1597 <main+0x3d7>
mov    0x10(%r12),%rax
cmpb   $0x2d,(%rax)
jne    1597 <main+0x3d7>
cmpb   $0x61,0x1(%rax)
jne    1597 <main+0x3d7>
mov    0x20(%r12),%rax
cmpb   $0x2d,(%rax)
jne    1597 <main+0x3d7>
cmpb   $0x62,0x1(%rax)
jne    1597 <main+0x3d7>
mov    0x30(%r12),%rdi
lea    0xdd5(%rip),%rbp
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbx
mov    0x38(%r12),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
test   %rbx,%rbx
je     15af <main+0x3ef>
mov    %rax,%rbp
mov    %r14d,0x14(%rsp)
test   %rax,%rax
je     15b6 <main+0x3f6>
mov    0x2d74(%rip),%r14
mov    (%r14),%edx
mov    %rbx,0x30(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    (%r14),%edx
mov    %rbp,0x28(%rsp)
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
lea    0xd69(%rip),%rdi
lea    0xd68(%rip),%rbp
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
lea    0xd58(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
lea    0xd4c(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,(%rsp)
lea    0xd3d(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %r15,0x8(%rsp)
test   %r15,%r15
je     15bd <main+0x3fd>
mov    %r13,%r15
test   %r13,%r13
je     15bd <main+0x3fd>
cmpq   $0x0,(%rsp)
je     15bd <main+0x3fd>
mov    %rax,%rbp
test   %rax,%rax
je     15bd <main+0x3fd>
mov    (%r14),%edx
mov    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    (%r14),%edx
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    (%r14),%edx
mov    (%rsp),%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    (%r14),%edx
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    0x8(%r12),%rax
mov    0x1(%rax),%al
cmp    $0x6e,%al
je     148c <main+0x2cc>
cmp    $0x63,%al
mov    0x28(%rsp),%r14
mov    0x30(%rsp),%r13
jne    1597 <main+0x3d7>
mov    0x18(%r12),%rdi
lea    0x43(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x2c,%edx
mov    $0x1,%ecx
call   1060 <getPattern@plt>
mov    0x18(%r12),%rdi
lea    0x23(%rsp),%rsi
mov    $0x2c,%edx
mov    $0x2,%ecx
call   1060 <getPattern@plt>
mov    0x28(%r12),%rdi
lea    0x1e(%rsp),%rsi
mov    $0x2c,%edx
mov    $0x1,%ecx
call   1060 <getPattern@plt>
mov    0x28(%r12),%rdi
lea    0x19(%rsp),%rsi
mov    $0x2c,%edx
mov    $0x2,%ecx
call   1060 <getPattern@plt>
mov    %rbx,%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     1586 <main+0x3c6>
lea    0x23(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     1586 <main+0x3c6>
lea    0x1e(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     1586 <main+0x3c6>
lea    0x19(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     1586 <main+0x3c6>
mov    0x18(%r12),%rdi
lea    0xbe2(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     1586 <main+0x3c6>
mov    0x28(%r12),%rdi
lea    0xbc8(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     1586 <main+0x3c6>
mov    0x18(%r12),%rdi
mov    0x28(%r12),%rsi
mov    %r13,%rdx
mov    %r14,%rcx
mov    0x8(%rsp),%rbx
mov    %rbx,%r8
mov    %r15,%r9
push   %rbp
push   0x8(%rsp)
call   1070 <cdiff@plt>
add    $0x10,%rsp
jmp    1538 <main+0x378>
mov    %rbp,0x38(%rsp)
mov    0x18(%r12),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    15c4 <main+0x404>
mov    0x28(%r12),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    15c4 <main+0x404>
mov    $0x9,%bpl
mov    $0x9,%r13b
cmpl   $0xa,0x14(%rsp)
jne    14eb <main+0x32b>
mov    0x40(%r12),%rax
mov    0x48(%r12),%rcx
cmpb   $0x22,(%rax)
mov    $0x22,%eax
mov    $0x9,%r13d
mov    $0x9,%ebp
cmove  %eax,%ebp
cmpb   $0x22,(%rcx)
cmove  %eax,%r13d
mov    0x18(%r12),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebx
mov    0x28(%r12),%rdi
call   10b0 <atoi@plt>
movzbl %bpl,%edx
movzbl %r13b,%ecx
mov    %ebx,%edi
mov    %eax,%esi
mov    0x30(%rsp),%r13
mov    %r13,%r8
mov    0x28(%rsp),%r14
mov    %r14,%r9
mov    0x38(%rsp),%rbp
push   %rbp
push   0x8(%rsp)
push   %r15
mov    0x20(%rsp),%rbx
push   %rbx
call   1030 <ndiff@plt>
add    $0x20,%rsp
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    (%rsp),%rdi
call   1050 <fclose@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
lea    0xaaa(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x6,%edi
jmp    159c <main+0x3dc>
cmp    $0x1,%r14d
jne    1597 <main+0x3d7>
xor    %edi,%edi
jmp    159c <main+0x3dc>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x2a38(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    $0x3,%edi
jmp    159c <main+0x3dc>
mov    $0x4,%edi
jmp    159c <main+0x3dc>
mov    $0x5,%edi
jmp    159c <main+0x3dc>
mov    $0x2,%edi
jmp    159c <main+0x3dc>

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

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [2 x i8] c"r\00"
@_IOFBF = global i32 0
@.str.1 = [6 x i8] c"A&B_A\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [6 x i8] c"A&B_B\00"
@.str.4 = [4 x i8] c"A-B\00"
@.str.5 = [4 x i8] c"B-A\00"
@.str.6 = [2 x i8] c",\00"
@str = [22 x i8] c"Comparation complete!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [5 x i8]
%4 = alloca [5 x i8]
%5 = alloca [5 x i8]
%6 = alloca [5 x i8]
%7 = and i32 %0, -3
%8 = icmp eq i32 %7, 8
br i1 %8, label %19, label %9
9: ; preds = %2
%10 = icmp eq i32 %0, 1
br i1 %10, label %11, label %15
11: ; preds = %9
%12 = tail call i32 @usage(i32 0)
%13 = load i32, i32* @EXIT_FAILURE
%14 = tail call i32 @exit(i32 %13)
unreachable
15: ; preds = %9
%16 = tail call i32 @usage(i32 1)
%17 = load i32, i32* @EXIT_FAILURE
%18 = tail call i32 @exit(i32 %17)
unreachable
19: ; preds = %2
%20 = getelementptr inbounds i8*, i8** %1, i64 1
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 45
br i1 %23, label %24, label %181
24: ; preds = %19
%25 = getelementptr inbounds i8*, i8** %1, i64 2
%26 = load i8*, i8** %25
%27 = load i8, i8* %26
%28 = icmp eq i8 %27, 45
br i1 %28, label %29, label %181
29: ; preds = %24
%30 = getelementptr inbounds i8, i8* %26, i64 1
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 97
br i1 %32, label %33, label %181
33: ; preds = %29
%34 = getelementptr inbounds i8*, i8** %1, i64 4
%35 = load i8*, i8** %34
%36 = load i8, i8* %35
%37 = icmp eq i8 %36, 45
br i1 %37, label %38, label %181
38: ; preds = %33
%39 = getelementptr inbounds i8, i8* %35, i64 1
%40 = load i8, i8* %39
%41 = icmp eq i8 %40, 98
br i1 %41, label %42, label %181
42: ; preds = %38
%43 = getelementptr inbounds i8*, i8** %1, i64 6
%44 = load i8*, i8** %43
%45 = tail call i32* @fopen(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%46 = getelementptr inbounds i8*, i8** %1, i64 7
%47 = load i8*, i8** %46
%48 = tail call i32* @fopen(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%49 = icmp eq i32* %45, null
br i1 %49, label %50, label %54
50: ; preds = %42
%51 = tail call i32 @usage(i32 3)
%52 = load i32, i32* @EXIT_FAILURE
%53 = tail call i32 @exit(i32 %52)
unreachable
54: ; preds = %42
%55 = icmp eq i32* %48, null
br i1 %55, label %56, label %60
56: ; preds = %54
%57 = tail call i32 @usage(i32 4)
%58 = load i32, i32* @EXIT_FAILURE
%59 = tail call i32 @exit(i32 %58)
unreachable
60: ; preds = %54
%61 = load i32, i32* @_IOFBF
%62 = tail call i32 @setvbuf(i32* %45, i32* null, i32 %61, i32 1024)
%63 = load i32, i32* @_IOFBF
%64 = tail call i32 @setvbuf(i32* %48, i32* null, i32 %63, i32 1024)
%65 = tail call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%66 = tail call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%67 = tail call i32* @fopen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%68 = tail call i32* @fopen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%69 = icmp eq i32* %65, null
%70 = icmp eq i32* %66, null
%71 = or i1 %69, %70
%72 = icmp eq i32* %67, null
%73 = or i1 %71, %72
%74 = icmp eq i32* %68, null
%75 = or i1 %73, %74
br i1 %75, label %76, label %80
76: ; preds = %60
%77 = tail call i32 @usage(i32 5)
%78 = load i32, i32* @EXIT_FAILURE
%79 = tail call i32 @exit(i32 %78)
unreachable
80: ; preds = %60
%81 = load i32, i32* @_IOFBF
%82 = tail call i32 @setvbuf(i32* %65, i32* null, i32 %81, i32 1024)
%83 = load i32, i32* @_IOFBF
%84 = tail call i32 @setvbuf(i32* %66, i32* null, i32 %83, i32 1024)
%85 = load i32, i32* @_IOFBF
%86 = tail call i32 @setvbuf(i32* %67, i32* null, i32 %85, i32 1024)
%87 = load i32, i32* @_IOFBF
%88 = tail call i32 @setvbuf(i32* %68, i32* null, i32 %87, i32 1024)
%89 = load i8*, i8** %20
%90 = getelementptr inbounds i8, i8* %89, i64 1
%91 = load i8, i8* %90
switch i8 %91, label %169 [
i8 99, label %92
i8 110, label %134
]
92: ; preds = %80
%93 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%94 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%95 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%96 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%97 = getelementptr inbounds i8*, i8** %1, i64 3
%98 = load i8*, i8** %97
%99 = call i32 @getPattern(i8* %98, i8* %93, i8 signext 44, i32 1)
%100 = load i8*, i8** %97
%101 = call i32 @getPattern(i8* %100, i8* %94, i8 signext 44, i32 2)
%102 = getelementptr inbounds i8*, i8** %1, i64 5
%103 = load i8*, i8** %102
%104 = call i32 @getPattern(i8* %103, i8* %95, i8 signext 44, i32 1)
%105 = load i8*, i8** %102
%106 = call i32 @getPattern(i8* %105, i8* %96, i8 signext 44, i32 2)
%107 = call i32 @isInteger(i8* %93)
%108 = icmp eq i32 %107, 0
br i1 %108, label %130, label %109
109: ; preds = %92
%110 = call i32 @isInteger(i8* %94)
%111 = icmp eq i32 %110, 0
br i1 %111, label %130, label %112
112: ; preds = %109
%113 = call i32 @isInteger(i8* %95)
%114 = icmp eq i32 %113, 0
br i1 %114, label %130, label %115
115: ; preds = %112
%116 = call i32 @isInteger(i8* %96)
%117 = icmp eq i32 %116, 0
br i1 %117, label %130, label %118
118: ; preds = %115
%119 = load i8*, i8** %97
%120 = call i64 @strstr(i8* %119, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %130, label %122
122: ; preds = %118
%123 = load i8*, i8** %102
%124 = call i64 @strstr(i8* %123, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %130, label %126
126: ; preds = %122
%127 = load i8*, i8** %97
%128 = load i8*, i8** %102
%129 = call i32 @cdiff(i8* %127, i8* %128, i32* %45, i32* %48, i32* %65, i32* %66, i32* %67, i32* %68)
br label %173
130: ; preds = %122, %118, %115, %112, %109, %92
%131 = call i32 @usage(i32 6)
%132 = load i32, i32* @EXIT_FAILURE
%133 = call i32 @exit(i32 %132)
unreachable
134: ; preds = %80
%135 = getelementptr inbounds i8*, i8** %1, i64 3
%136 = load i8*, i8** %135
%137 = tail call i32 @isInteger(i8* %136)
%138 = icmp eq i32 %137, 1
br i1 %138, label %139, label %165
139: ; preds = %134
%140 = getelementptr inbounds i8*, i8** %1, i64 5
%141 = load i8*, i8** %140
%142 = tail call i32 @isInteger(i8* %141)
%143 = icmp eq i32 %142, 1
br i1 %143, label %144, label %165
144: ; preds = %139
%145 = icmp eq i32 %0, 10
br i1 %145, label %146, label %157
146: ; preds = %144
%147 = getelementptr inbounds i8*, i8** %1, i64 8
%148 = load i8*, i8** %147
%149 = load i8, i8* %148
%150 = icmp eq i8 %149, 34
%151 = select i1 %150, i8 34, i8 9
%152 = getelementptr inbounds i8*, i8** %1, i64 9
%153 = load i8*, i8** %152
%154 = load i8, i8* %153
%155 = icmp eq i8 %154, 34
%156 = select i1 %155, i8 34, i8 9
br label %157
157: ; preds = %146, %144
%158 = phi i8 [ 9, %144 ], [ %151, %146 ]
%159 = phi i8 [ 9, %144 ], [ %156, %146 ]
%160 = load i8*, i8** %135
%161 = tail call i32 @atoi(i8* %160)
%162 = load i8*, i8** %140
%163 = tail call i32 @atoi(i8* %162)
%164 = tail call i32 @ndiff(i32 %161, i32 %163, i8 signext %158, i8 signext %159, i32* %45, i32* %48, i32* %65, i32* %66, i32* %67, i32* %68)
br label %173
165: ; preds = %139, %134
%166 = tail call i32 @usage(i32 2)
%167 = load i32, i32* @EXIT_FAILURE
%168 = tail call i32 @exit(i32 %167)
unreachable
169: ; preds = %80
%170 = tail call i32 @usage(i32 1)
%171 = load i32, i32* @EXIT_FAILURE
%172 = tail call i32 @exit(i32 %171)
unreachable
173: ; preds = %157, %126
%174 = call i32 @fclose(i32* %45)
%175 = call i32 @fclose(i32* %48)
%176 = call i32 @fclose(i32* %65)
%177 = call i32 @fclose(i32* %66)
%178 = call i32 @fclose(i32* %67)
%179 = call i32 @fclose(i32* %68)
%180 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
ret i32 0
181: ; preds = %38, %33, %29, %24, %19
%182 = tail call i32 @usage(i32 1)
%183 = load i32, i32* @EXIT_FAILURE
%184 = tail call i32 @exit(i32 %183)
unreachable
}