#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);
    }
  }
  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);
    }
    printf("Open input files: success!\n");
    setvbuf(ptr_a, NULL, _IOFBF, 1024);
    setvbuf(ptr_b, NULL, _IOFBF, 1024);
    FILE *ptr_aba = fopen("A_and_B_A", "w");
    FILE *ptr_abb = fopen("A_and_B_B", "w");
    FILE *ptr_a_b = fopen("Only_in_A", "w");
    FILE *ptr_b_a = fopen("Only_in_B", "w");
    if ((ptr_aba == NULL) || (ptr_abb == NULL) || (ptr_a_b == NULL) ||
        (ptr_b_a == NULL)) {
      usage(5);
      exit(EXIT_FAILURE);
    }
    printf("Generate output files: success!\n");
    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);
        printf("Coordinate-based diff: done!\n");
      } 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);
        printf("Name-based diff: done!\n");
      } 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("Please check the output files...\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    174b <main+0x58b>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    174b <main+0x58b>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x61,%eax
jne    174b <main+0x58b>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    174b <main+0x58b>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x62,%eax
jne    174b <main+0x58b>
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>
lea    0xcef(%rip),%rdi
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    0x2cb5(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x28(%rbp),%rdi
mov    0x2c9a(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
lea    0xcc9(%rip),%rdi
lea    0xccc(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x30(%rbp)
lea    0xcbe(%rip),%rdi
lea    0xcb5(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x38(%rbp)
lea    0xcb1(%rip),%rdi
lea    0xc9e(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x40(%rbp)
lea    0xca4(%rip),%rdi
lea    0xc87(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     13d6 <main+0x216>
cmpq   $0x0,-0x38(%rbp)
je     13d6 <main+0x216>
cmpq   $0x0,-0x40(%rbp)
je     13d6 <main+0x216>
cmpq   $0x0,-0x48(%rbp)
jne    13ee <main+0x22e>
mov    $0x5,%edi
call   1080 <usage@plt>
mov    0x2bf9(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    0xc53(%rip),%rdi
call   1060 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    0x2bd3(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x38(%rbp),%rdi
mov    0x2bb8(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x40(%rbp),%rdi
mov    0x2b9d(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x400,%ecx
call   1090 <setvbuf@plt>
mov    -0x48(%rbp),%rdi
mov    0x2b82(%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    15ce <main+0x40e>
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     15b1 <main+0x3f1>
lea    -0x52(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     15b1 <main+0x3f1>
lea    -0x57(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     15b1 <main+0x3f1>
lea    -0x5c(%rbp),%rdi
call   10c0 <isInteger@plt>
cmp    $0x0,%eax
je     15b1 <main+0x3f1>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xb2c(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     15b1 <main+0x3f1>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
lea    0xb0e(%rip),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     15b1 <main+0x3f1>
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>
lea    0xac4(%rip),%rdi
call   1060 <printf@plt>
jmp    15c9 <main+0x409>
mov    $0x6,%edi
call   1080 <usage@plt>
mov    0x2a1e(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    1710 <main+0x550>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%eax
cmp    $0x6e,%eax
jne    16f3 <main+0x533>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    16d6 <main+0x516>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    16d6 <main+0x516>
movb   $0x9,-0x5d(%rbp)
movb   $0x9,-0x5e(%rbp)
cmpl   $0xa,-0x10(%rbp)
jne    1667 <main+0x4a7>
mov    -0x18(%rbp),%rax
mov    0x38(%rax),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1641 <main+0x481>
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    1662 <main+0x4a2>
mov    -0x18(%rbp),%rax
mov    0x40(%rax),%rax
mov    (%rax),%al
mov    %al,-0x5e(%rbp)
jmp    1667 <main+0x4a7>
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>
lea    0x9bd(%rip),%rdi
call   1060 <printf@plt>
jmp    16ee <main+0x52e>
mov    $0x2,%edi
call   1080 <usage@plt>
mov    0x28f9(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    170b <main+0x54b>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x28dc(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
jmp    1710 <main+0x550>
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    1763 <main+0x5a3>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x2884(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
lea    0x937(%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    15b8 <main+0x3f8>
mov    %rsi,%r12
mov    0x8(%rsi),%rax
cmpb   $0x2d,(%rax)
jne    15c2 <main+0x402>
mov    0x10(%r12),%rax
cmpb   $0x2d,(%rax)
jne    15c2 <main+0x402>
cmpb   $0x61,0x1(%rax)
jne    15c2 <main+0x402>
mov    0x20(%r12),%rax
cmpb   $0x2d,(%rax)
jne    15c2 <main+0x402>
cmpb   $0x62,0x1(%rax)
jne    15c2 <main+0x402>
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     15da <main+0x41a>
mov    %rax,%rbp
mov    %r14d,0x14(%rsp)
test   %rax,%rax
je     15e1 <main+0x421>
lea    0xdca(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d68(%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    0xd5d(%rip),%rdi
lea    0xd60(%rip),%rbp
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r15
lea    0xd50(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
lea    0xd48(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %rax,(%rsp)
lea    0xd3f(%rip),%rdi
mov    %rbp,%rsi
call   10a0 <fopen@plt>
mov    %r15,0x8(%rsp)
test   %r15,%r15
je     15e8 <main+0x428>
mov    %r13,%r15
test   %r13,%r13
je     15e8 <main+0x428>
cmpq   $0x0,(%rsp)
je     15e8 <main+0x428>
mov    %rax,%rbp
test   %rax,%rax
je     15e8 <main+0x428>
lea    0xd26(%rip),%rdi
call   1040 <puts@plt>
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     14ab <main+0x2eb>
cmp    $0x63,%al
mov    0x28(%rsp),%r14
mov    0x30(%rsp),%r13
jne    15c2 <main+0x402>
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     15b1 <main+0x3f1>
lea    0x23(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     15b1 <main+0x3f1>
lea    0x1e(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     15b1 <main+0x3f1>
lea    0x19(%rsp),%rdi
call   10c0 <isInteger@plt>
test   %eax,%eax
je     15b1 <main+0x3f1>
mov    0x18(%r12),%rdi
lea    0xbde(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     15b1 <main+0x3f1>
mov    0x28(%r12),%rdi
lea    0xbc4(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     15b1 <main+0x3f1>
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
lea    0xbfb(%rip),%rdi
jmp    155e <main+0x39e>
mov    %rbp,0x38(%rsp)
mov    0x18(%r12),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    15ef <main+0x42f>
mov    0x28(%r12),%rdi
call   10c0 <isInteger@plt>
cmp    $0x1,%eax
jne    15ef <main+0x42f>
mov    $0x9,%bpl
mov    $0x9,%r13b
cmpl   $0xa,0x14(%rsp)
jne    150a <main+0x34a>
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
lea    0xb0b(%rip),%rdi
call   1040 <puts@plt>
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    0xae5(%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    15c7 <main+0x407>
cmp    $0x1,%r14d
jne    15c2 <main+0x402>
xor    %edi,%edi
jmp    15c7 <main+0x407>
mov    $0x1,%edi
call   1080 <usage@plt>
mov    0x2a0d(%rip),%rax
mov    (%rax),%edi
call   10d0 <exit@plt>
mov    $0x3,%edi
jmp    15c7 <main+0x407>
mov    $0x4,%edi
jmp    15c7 <main+0x407>
mov    $0x5,%edi
jmp    15c7 <main+0x407>
mov    $0x2,%edi
jmp    15c7 <main+0x407>

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