#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*/ AppendFooter(int /*<<< orphan*/ *, unsigned int,
                                unsigned int);
int /*<<< orphan*/ AppendHeader(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ CmpCryptWord(char *, char *, char *);
int /*<<< orphan*/ DispUsage();
char *GetPass(char *);
char *GetSalt(char *);
char *GetUser(char *);
int /*<<< orphan*/ OutputEntry(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ RecordTime(int /*<<< orphan*/ *);
int /*<<< orphan*/ StartClock();
int /*<<< orphan*/ StopClock();
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int strlen(char *);
int main(int argc, char *argv[]) {
  char line[100];
  char dicWord[10];
  char guess[10];
  char *username;
  char *salt;
  char *pass;
  char ascii;
  int len;
  int length;
  int pos;
  unsigned int match;
  unsigned int matchCounter;
  unsigned int update_next;
  unsigned int isfull;
  unsigned int shadowCounter;
  double guessCounter;
  FILE *fpDictionary;
  FILE *fpShadow;
  FILE *fpResults;
  len = matchCounter = shadowCounter = pos = update_next = isfull =
      guessCounter = 0;
  switch (argc) {
  case 2:
    if ((fpShadow = fopen(argv[1], "r")) == NULL) {
      printf("Cannot open %s for reading. Quiting...\n", argv[1]);
      exit(1);
    }
    printf("-> Shadow file opened : %s [ro]\n", argv[1]);
    if ((fpResults = fopen("Results", "a")) == NULL) {
      printf("Cannot open Results file for Writing. Quiting...\n");
      exit(1);
    }
    printf("-> Results file created / appended\n");
    AppendHeader(fpResults, "Brute Force Attack");
    StartClock();
    while (fgets(line, 100, fpShadow) != NULL) {
      shadowCounter++;
      len = strlen(line);
      line[len - 1] = '\0';
      length = 1;
      guess[length] = '\0';
      match = 0;
      username = GetUser(line);
      salt = GetSalt(line);
      pass = GetPass(line);
      printf("-> Guessing password for username : %s\n", username);
      while (length <= 2 && !match) {
        ascii = 32;
        while (ascii <= 126 && !match) {
          guess[0] = ascii;
          if (CmpCryptWord(salt, guess, pass)) {
            OutputEntry(fpResults, username, guess);
            matchCounter++;
            match = 1;
            break;
          }
          ascii++;
        }
        if (!match) {
          isfull = 1;
          for (pos = 0; pos < length; pos++)
            if (guess[pos] != 126)
              isfull = 0;
          if (isfull) {
            length++;
            guess[length - 1] = 32 - 1;
            guess[length] = '\0';
          }
          update_next = 0;
          for (pos = 0; pos < length; pos++) {
            if (guess[pos] != 126 && update_next) {
              guess[pos]++;
              update_next = 0;
              break;
            }
            if (guess[pos] == 126) {
              guess[pos] = 32;
              update_next = 1;
            }
          }
        }
      }
    }
    StopClock();
    AppendFooter(fpResults, matchCounter, shadowCounter);
    RecordTime(fpResults);
    fclose(fpResults);
    fclose(fpShadow);
    break;
  case 3:
    if ((fpDictionary = fopen(argv[2], "r")) == NULL) {
      printf("Cannot open %s for reading. Quiting...\n", argv[2]);
      exit(1);
    }
    printf("-> Dictionary opened : %s [ro]\n", argv[2]);
    if ((fpShadow = fopen(argv[1], "r")) == NULL) {
      printf("Cannot open %s for reading. Quiting...\n", argv[1]);
      exit(1);
    }
    printf("-> Shadow file opened : %s [ro]\n", argv[1]);
    if ((fpResults = fopen("Results", "a")) == NULL) {
      printf("Cannot open Results file for Writing. Quiting...\n");
      exit(1);
    }
    printf("-> Results file created / appended\n");
    AppendHeader(fpResults, "Dictionary Attack");
    StartClock();
    while (fgets(line, 100, fpShadow) != NULL) {
      match = 0;
      shadowCounter++;
      len = strlen(line);
      line[len - 1] = '\0';
      username = GetUser(line);
      salt = GetSalt(line);
      pass = GetPass(line);
      printf("-> Guessing password for username : %s\n", username);
      while ((fgets(dicWord, 10, fpDictionary) != NULL) && (!match)) {
        len = strlen(dicWord);
        dicWord[len - 1] = '\0';
        if (CmpCryptWord(salt, dicWord, pass)) {
          OutputEntry(fpResults, username, dicWord);
          matchCounter++;
          match = 1;
        }
      }
      rewind(fpDictionary);
    }
    StopClock();
    AppendFooter(fpResults, matchCounter, shadowCounter);
    RecordTime(fpResults);
    fclose(fpResults);
    fclose(fpDictionary);
    fclose(fpShadow);
    break;
  default:
    DispUsage();
    return 0;
  }
  printf("\nTOTAL PASSWORDS FOUND %d/%d\n", matchCounter, shadowCounter);
  printf("See Results file for details.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0xe0(%rbp)
movl   $0x0,-0xd0(%rbp)
movl   $0x0,-0xcc(%rbp)
movl   $0x0,-0xc0(%rbp)
movl   $0x0,-0xd4(%rbp)
movl   $0x0,-0xc8(%rbp)
movl   $0x0,-0xb8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xfc(%rbp)
sub    $0x2,%eax
je     12ab <main+0x8b>
jmp    1297 <main+0x77>
mov    -0xfc(%rbp),%eax
sub    $0x3,%eax
je     16d6 <main+0x4b6>
jmp    19c3 <main+0x7a3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd46(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xf0(%rbp)
cmp    $0x0,%rax
jne    12f0 <main+0xd0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xd3e(%rip),%rdi
lea    0xd3f(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xf8(%rbp)
cmp    $0x0,%rax
jne    1342 <main+0x122>
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0xf8(%rbp),%rdi
lea    0xd4d(%rip),%rsi
call   1040 <AppendHeader@plt>
mov    $0x0,%al
call   1140 <StartClock@plt>
lea    -0x80(%rbp),%rdi
mov    -0xf0(%rbp),%rdx
mov    $0x64,%esi
call   10d0 <fgets@plt>
cmp    $0x0,%rax
je     168e <main+0x46e>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
lea    -0x80(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x80(%rbp,%rax,1)
movl   $0x1,-0xbc(%rbp)
movslq -0xbc(%rbp),%rax
movb   $0x0,-0x94(%rbp,%rax,1)
movl   $0x0,-0xc4(%rbp)
lea    -0x80(%rbp),%rdi
call   1050 <GetUser@plt>
mov    %rax,-0xa0(%rbp)
lea    -0x80(%rbp),%rdi
call   1030 <GetSalt@plt>
mov    %rax,-0xa8(%rbp)
lea    -0x80(%rbp),%rdi
call   10a0 <GetPass@plt>
mov    %rax,-0xb0(%rbp)
mov    -0xa0(%rbp),%rsi
lea    0xca6(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
xor    %eax,%eax
cmpl   $0x2,-0xbc(%rbp)
mov    %al,-0xfd(%rbp)
jg     1446 <main+0x226>
cmpl   $0x0,-0xc4(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0xfd(%rbp)
mov    -0xfd(%rbp),%al
test   $0x1,%al
jne    1459 <main+0x239>
jmp    1689 <main+0x469>
movb   $0x20,-0xb1(%rbp)
movsbl -0xb1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x7e,%ecx
mov    %al,-0xfe(%rbp)
jg     148a <main+0x26a>
cmpl   $0x0,-0xc4(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0xfe(%rbp)
mov    -0xfe(%rbp),%al
test   $0x1,%al
jne    149d <main+0x27d>
jmp    1517 <main+0x2f7>
mov    -0xb1(%rbp),%al
mov    %al,-0x94(%rbp)
mov    -0xa8(%rbp),%rdi
lea    -0x94(%rbp),%rsi
mov    -0xb0(%rbp),%rdx
call   10c0 <CmpCryptWord@plt>
cmp    $0x0,%eax
je     1504 <main+0x2e4>
mov    -0xf8(%rbp),%rdi
mov    -0xa0(%rbp),%rsi
lea    -0x94(%rbp),%rdx
call   1120 <OutputEntry@plt>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
movl   $0x1,-0xc4(%rbp)
jmp    1517 <main+0x2f7>
mov    -0xb1(%rbp),%al
add    $0x1,%al
mov    %al,-0xb1(%rbp)
jmp    1460 <main+0x240>
cmpl   $0x0,-0xc4(%rbp)
jne    1684 <main+0x464>
movl   $0x1,-0xd0(%rbp)
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    1585 <main+0x365>
movslq -0xc0(%rbp),%rax
movsbl -0x94(%rbp,%rax,1),%eax
ff
cmp    $0x7e,%eax
je     156c <main+0x34c>
movl   $0x0,-0xd0(%rbp)
jmp    1571 <main+0x351>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    1538 <main+0x318>
cmpl   $0x0,-0xd0(%rbp)
je     15c3 <main+0x3a3>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x1f,-0x94(%rbp,%rax,1)
1f
movslq -0xbc(%rbp),%rax
movb   $0x0,-0x94(%rbp,%rax,1)
movl   $0x0,-0xcc(%rbp)
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xbc(%rbp),%eax
jge    167f <main+0x45f>
movslq -0xc0(%rbp),%rax
movsbl -0x94(%rbp,%rax,1),%eax
ff
cmp    $0x7e,%eax
je     1635 <main+0x415>
cmpl   $0x0,-0xcc(%rbp)
je     1635 <main+0x415>
movslq -0xc0(%rbp),%rax
mov    -0x94(%rbp,%rax,1),%cl
add    $0x1,%cl
mov    %cl,-0x94(%rbp,%rax,1)
movl   $0x0,-0xcc(%rbp)
jmp    167f <main+0x45f>
movslq -0xc0(%rbp),%rax
movsbl -0x94(%rbp,%rax,1),%eax
ff
cmp    $0x7e,%eax
jne    1666 <main+0x446>
movslq -0xc0(%rbp),%rax
movb   $0x20,-0x94(%rbp,%rax,1)
20
movl   $0x1,-0xcc(%rbp)
jmp    166b <main+0x44b>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    15d7 <main+0x3b7>
jmp    1684 <main+0x464>
jmp    141f <main+0x1ff>
jmp    136a <main+0x14a>
mov    $0x0,%al
call   10e0 <StopClock@plt>
mov    -0xf8(%rbp),%rdi
mov    -0xc8(%rbp),%esi
mov    -0xd4(%rbp),%edx
call   1110 <AppendFooter@plt>
mov    -0xf8(%rbp),%rdi
call   1130 <RecordTime@plt>
mov    -0xf8(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0xf0(%rbp),%rdi
call   1060 <fclose@plt>
jmp    19d6 <main+0x7b6>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0x91b(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xe8(%rbp)
cmp    $0x0,%rax
jne    171b <main+0x4fb>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0x8f8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0x9bc(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x8c0(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xf0(%rbp)
cmp    $0x0,%rax
jne    1776 <main+0x556>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0x89d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0x8a5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0x8b8(%rip),%rdi
lea    0x8b9(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xf8(%rbp)
cmp    $0x0,%rax
jne    17c8 <main+0x5a8>
lea    0x89e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    0x8b8(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0xf8(%rbp),%rdi
lea    0x922(%rip),%rsi
call   1040 <AppendHeader@plt>
mov    $0x0,%al
call   1140 <StartClock@plt>
lea    -0x80(%rbp),%rdi
mov    -0xf0(%rbp),%rdx
mov    $0x64,%esi
call   10d0 <fgets@plt>
cmp    $0x0,%rax
je     196f <main+0x74f>
movl   $0x0,-0xc4(%rbp)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
lea    -0x80(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x80(%rbp,%rax,1)
lea    -0x80(%rbp),%rdi
call   1050 <GetUser@plt>
mov    %rax,-0xa0(%rbp)
lea    -0x80(%rbp),%rdi
call   1030 <GetSalt@plt>
mov    %rax,-0xa8(%rbp)
lea    -0x80(%rbp),%rdi
call   10a0 <GetPass@plt>
mov    %rax,-0xb0(%rbp)
mov    -0xa0(%rbp),%rsi
lea    0x839(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x8a(%rbp),%rdi
mov    -0xe8(%rbp),%rdx
mov    $0xa,%esi
call   10d0 <fgets@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0xff(%rbp)
je     18cb <main+0x6ab>
cmpl   $0x0,-0xc4(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0xff(%rbp)
mov    -0xff(%rbp),%al
test   $0x1,%al
jne    18de <main+0x6be>
jmp    195e <main+0x73e>
lea    -0x8a(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0x8a(%rbp,%rax,1)
mov    -0xa8(%rbp),%rdi
lea    -0x8a(%rbp),%rsi
mov    -0xb0(%rbp),%rdx
call   10c0 <CmpCryptWord@plt>
cmp    $0x0,%eax
je     1959 <main+0x739>
mov    -0xf8(%rbp),%rdi
mov    -0xa0(%rbp),%rsi
lea    -0x8a(%rbp),%rdx
call   1120 <OutputEntry@plt>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
movl   $0x1,-0xc4(%rbp)
jmp    188c <main+0x66c>
mov    -0xe8(%rbp),%rdi
call   1090 <rewind@plt>
jmp    17f0 <main+0x5d0>
mov    $0x0,%al
call   10e0 <StopClock@plt>
mov    -0xf8(%rbp),%rdi
mov    -0xc8(%rbp),%esi
mov    -0xd4(%rbp),%edx
call   1110 <AppendFooter@plt>
mov    -0xf8(%rbp),%rdi
call   1130 <RecordTime@plt>
mov    -0xf8(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0xe8(%rbp),%rdi
call   1060 <fclose@plt>
mov    -0xf0(%rbp),%rdi
call   1060 <fclose@plt>
jmp    19d6 <main+0x7b6>
mov    $0x0,%al
call   10b0 <DispUsage@plt>
movl   $0x0,-0x4(%rbp)
jmp    1a05 <main+0x7e5>
mov    -0xc8(%rbp),%esi
mov    -0xd4(%rbp),%edx
lea    0x72f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0x73f(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
je     15a8 <main+0x378>
cmp    $0x2,%edi
jne    17ba <main+0x58a>
mov    0x8(%rbx),%rdi
lea    0xdbf(%rip),%rsi
call   1100 <fopen@plt>
mov    0x8(%rbx),%rsi
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     185d <main+0x62d>
lea    0xdcb(%rip),%rdi
xor    %r15d,%r15d
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xddb(%rip),%rdi
lea    0xddc(%rip),%rsi
call   1100 <fopen@plt>
test   %rax,%rax
je     1875 <main+0x645>
mov    %rax,%rbp
lea    0xe6f(%rip),%rdi
call   1040 <puts@plt>
lea    0xdba(%rip),%rsi
mov    %rbp,%rdi
call   1050 <AppendHeader@plt>
xor    %eax,%eax
call   1150 <StartClock@plt>
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
mov    0x20(%rsp),%rdx
call   10e0 <fgets@plt>
mov    $0x0,%r14d
test   %rax,%rax
je     17c6 <main+0x596>
lea    0x16(%rsp),%r13
xor    %r14d,%r14d
xor    %r15d,%r15d
mov    %rbp,0x28(%rsp)
mov    %r14d,0x10(%rsp)
mov    %r15d,0xc(%rsp)
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
movb   $0x0,0x17(%rsp)
mov    %rbx,%rdi
call   1060 <GetUser@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1030 <GetSalt@plt>
mov    %rax,%r15
mov    %rbx,%rdi
call   10b0 <GetPass@plt>
mov    %rax,%r12
lea    0xd42(%rip),%rdi
mov    %rbp,0x30(%rsp)
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x1,%r14d
mov    $0x20,%bl
nopl   (%rax)
mov    %bl,0x16(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
call   10d0 <CmpCryptWord@plt>
test   %eax,%eax
jne    1550 <main+0x320>
add    $0x1,%bl
cmp    $0x7f,%bl
jne    1360 <main+0x130>
test   %r14d,%r14d
mov    $0x0,%ebx
movdqa 0xc7e(%rip),%xmm6
jle    14c5 <main+0x295>
mov    %r14d,%eax
cmp    $0x8,%r14d
jae    13ad <main+0x17d>
mov    $0x1,%edx
xor    %ecx,%ecx
jmp    14b0 <main+0x280>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     152b <main+0x2fb>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
movdqa 0xc25(%rip),%xmm1
movdqa %xmm1,%xmm0
nop
movd   0x16(%rsp,%rsi,1),%xmm2
movd   0x1a(%rsp,%rsi,1),%xmm3
pcmpeqb %xmm6,%xmm2
pcmpeqb %xmm6,%xmm3
movd   0x1e(%rsp,%rsi,1),%xmm4
movd   0x22(%rsp,%rsi,1),%xmm5
pcmpeqb %xmm6,%xmm4
pand   %xmm2,%xmm4
punpcklbw %xmm4,%xmm2
punpcklwd %xmm2,%xmm2
pcmpeqb %xmm6,%xmm5
pand   %xmm3,%xmm5
punpcklbw %xmm5,%xmm3
punpcklwd %xmm3,%xmm3
psrad  $0x18,%xmm2
pand   %xmm2,%xmm0
psrad  $0x18,%xmm3
pand   %xmm3,%xmm1
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    13e0 <main+0x1b0>
test   $0x1,%dl
je     1477 <main+0x247>
movd   0x16(%rsp,%rsi,1),%xmm2
movd   0x1a(%rsp,%rsi,1),%xmm3
pcmpeqb %xmm6,%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
psrad  $0x18,%xmm2
pand   %xmm2,%xmm0
pcmpeqb %xmm6,%xmm3
punpcklbw %xmm3,%xmm2
punpcklwd %xmm2,%xmm2
psrad  $0x18,%xmm2
pand   %xmm2,%xmm1
movdqa %xmm0,%xmm2
movdqa 0xb7d(%rip),%xmm3
pcmpeqd %xmm3,%xmm2
pand   %xmm2,%xmm1
pandn  %xmm0,%xmm2
por    %xmm1,%xmm2
pcmpeqd %xmm3,%xmm2
movmskps %xmm2,%esi
xor    %edx,%edx
cmp    $0xf,%esi
sete   %dl
cmp    %rax,%rcx
je     14c1 <main+0x291>
nopw   0x0(%rax,%rax,1)
cmpb   $0x7e,0x16(%rsp,%rcx,1)
cmovne %ebx,%edx
add    $0x1,%rcx
cmp    %rcx,%rax
jne    14b0 <main+0x280>
test   %edx,%edx
je     14d3 <main+0x2a3>
movslq %r14d,%rax
add    $0x1,%r14d
movw   $0x1f,0x16(%rsp,%rax,1)
test   %r14d,%r14d
jle    151f <main+0x2ef>
mov    %r14d,%ecx
xor    %eax,%eax
xor    %edx,%edx
jmp    14f9 <main+0x2c9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    %rax,%rcx
je     151f <main+0x2ef>
movzbl 0x16(%rsp,%rax,1),%ebx
cmp    $0x7e,%bl
je     1507 <main+0x2d7>
test   %edx,%edx
jne    1518 <main+0x2e8>
cmp    $0x7e,%bl
jne    14f0 <main+0x2c0>
movb   $0x20,0x16(%rsp,%rax,1)
mov    $0x1,%edx
jmp    14f0 <main+0x2c0>
add    $0x1,%bl
mov    %bl,0x16(%rsp,%rax,1)
cmp    $0x3,%r14d
jl     135b <main+0x12b>
jmp    159c <main+0x36c>
xor    %esi,%esi
movdqa 0xacb(%rip),%xmm1
movdqa %xmm1,%xmm0
test   $0x1,%dl
jne    1441 <main+0x211>
jmp    1477 <main+0x247>
nopw   0x0(%rax,%rax,1)
mov    0x28(%rsp),%rbp
mov    %rbp,%rdi
mov    0x30(%rsp),%rsi
mov    %r13,%rdx
call   1130 <OutputEntry@plt>
mov    0xc(%rsp),%r15d
add    $0x1,%r15d
mov    0x10(%rsp),%r14d
add    $0x1,%r14d
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
mov    0x20(%rsp),%rdx
call   10e0 <fgets@plt>
test   %rax,%rax
jne    1300 <main+0xd0>
jmp    17c6 <main+0x596>
mov    0x28(%rsp),%rbp
mov    0xc(%rsp),%r15d
jmp    156e <main+0x33e>
mov    0x10(%rbx),%rdi
lea    0xa6d(%rip),%rsi
call   1100 <fopen@plt>
mov    0x10(%rbx),%rsi
test   %rax,%rax
je     185d <main+0x62d>
mov    %rax,%rbp
lea    0xae1(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0xa3f(%rip),%rsi
call   1100 <fopen@plt>
mov    0x8(%rbx),%rsi
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     185d <main+0x62d>
mov    %rbp,%r13
lea    0xa48(%rip),%rdi
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xa53(%rip),%rdi
lea    0xa54(%rip),%rsi
call   1100 <fopen@plt>
test   %rax,%rax
je     1875 <main+0x645>
mov    %rax,%rbx
lea    0xae7(%rip),%rdi
call   1040 <puts@plt>
lea    0xa8d(%rip),%rsi
mov    %rbx,0x38(%rsp)
mov    %rbx,%rdi
call   1050 <AppendHeader@plt>
xor    %eax,%eax
call   1150 <StartClock@plt>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
mov    0x20(%rsp),%rdx
call   10e0 <fgets@plt>
mov    $0x0,%r14d
test   %rax,%rax
je     17e5 <main+0x5b5>
lea    0x16(%rsp),%rbx
xor    %r14d,%r14d
movl   $0x0,0xc(%rsp)
mov    %r13,0x28(%rsp)
jmp    16fb <main+0x4cb>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x38(%rsp),%rdi
mov    0x30(%rsp),%rsi
mov    %rbx,%rdx
call   1130 <OutputEntry@plt>
addl   $0x1,0xc(%rsp)
mov    %rbx,%rdi
mov    $0xa,%esi
mov    %rbp,%r13
mov    %rbp,%rdx
call   10e0 <fgets@plt>
mov    0x10(%rsp),%r14d
add    $0x1,%r14d
mov    %r13,%rdi
call   10a0 <rewind@plt>
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x64,%esi
mov    0x20(%rsp),%rdx
call   10e0 <fgets@plt>
test   %rax,%rax
je     17e5 <main+0x5b5>
mov    %rbp,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbp,1)
mov    %rbp,%rdi
call   1060 <GetUser@plt>
mov    %rax,%r13
mov    %rbp,%rdi
call   1030 <GetSalt@plt>
mov    %rax,%r12
mov    %rbp,%rdi
call   10b0 <GetPass@plt>
mov    %rax,%r15
lea    0x956(%rip),%rdi
mov    %r13,0x30(%rsp)
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    0x28(%rsp),%r13
mov    %r13,%rdx
call   10e0 <fgets@plt>
test   %rax,%rax
je     16cf <main+0x49f>
mov    %r14d,0x10(%rsp)
mov    %r13,%rbp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
call   10d0 <CmpCryptWord@plt>
test   %eax,%eax
jne    16a0 <main+0x470>
mov    %eax,%r14d
mov    %rbx,%rdi
mov    $0xa,%esi
mov    %rbp,%rdx
call   10e0 <fgets@plt>
test   %r14d,%r14d
jne    17b2 <main+0x582>
test   %rax,%rax
jne    1770 <main+0x540>
mov    %rbp,%r13
jmp    16ca <main+0x49a>
xor    %eax,%eax
call   10c0 <DispUsage@plt>
jmp    1849 <main+0x619>
xor    %eax,%eax
call   10f0 <StopClock@plt>
mov    %rbp,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
call   1120 <AppendFooter@plt>
mov    %rbp,%rdi
call   1140 <RecordTime@plt>
jmp    1817 <main+0x5e7>
xor    %eax,%eax
call   10f0 <StopClock@plt>
mov    0x38(%rsp),%rbx
mov    %rbx,%rdi
mov    0xc(%rsp),%r15d
mov    %r15d,%esi
mov    %r14d,%edx
call   1120 <AppendFooter@plt>
mov    %rbx,%rdi
call   1140 <RecordTime@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
mov    %r13,%rbp
mov    %rbp,%rdi
call   1070 <fclose@plt>
mov    0x20(%rsp),%rdi
call   1070 <fclose@plt>
lea    0x8b2(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1090 <printf@plt>
lea    0x8bc(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x7be(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
lea    0x8c5(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [40 x i8] c"Cannot open %s for reading. Quiting...\0A\00"
@.str.2 = [33 x i8] c"-> Shadow file opened : %s [ro]\0A\00"
@.str.3 = [8 x i8] c"Results\00"
@.str.4 = [2 x i8] c"a\00"
@.str.5 = [50 x i8] c"Cannot open Results file for Writing. Quiting...\0A\00"
@.str.6 = [36 x i8] c"-> Results file created / appended\0A\00"
@.str.7 = [19 x i8] c"Brute Force Attack\00"
@.str.8 = [40 x i8] c"-> Guessing password for username : %s\0A\00"
@.str.9 = [32 x i8] c"-> Dictionary opened : %s [ro]\0A\00"
@.str.10 = [18 x i8] c"Dictionary Attack\00"
@.str.11 = [30 x i8] c"\0ATOTAL PASSWORDS FOUND %d/%d\0A\00"
@.str.12 = [31 x i8] c"See Results file for details.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i8]
%7 = alloca [10 x i8]
%8 = alloca [10 x i8]
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca double
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %21
store i32 0, i32* %19
store i32 0, i32* %18
store i32 0, i32* %15
store i32 0, i32* %20
store i32 0, i32* %17
store i32 0, i32* %13
%25 = load i32, i32* %4
switch i32 %25, label %313 [
i32 2, label %26
i32 3, label %200
]
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %30, i32** %23
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %38
32: ; preds = %26
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %35)
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %26
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %41)
%43 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %43, i32** %24
%44 = icmp eq i32* %43, null
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %38
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%50 = load i32*, i32** %24
%51 = call i32 @AppendHeader(i32* %50, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%52 = call i32 (...) @StartClock()
br label %53
53: ; preds = %187, %48
%54 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%55 = load i32*, i32** %23
%56 = call i32* @fgets(i8* %54, i32 100, i32* %55)
%57 = icmp ne i32* %56, null
br i1 %57, label %58, label %188
58: ; preds = %53
%59 = load i32, i32* %20
%60 = add i32 %59, 1
store i32 %60, i32* %20
%61 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%62 = call i32 @strlen(i8* %61)
store i32 %62, i32* %13
%63 = load i32, i32* %13
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 %65
store i8 0, i8* %66
store i32 1, i32* %14
%67 = load i32, i32* %14
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %68
store i8 0, i8* %69
store i32 0, i32* %16
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%71 = call i8* @GetUser(i8* %70)
store i8* %71, i8** %9
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%73 = call i8* @GetSalt(i8* %72)
store i8* %73, i8** %10
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%75 = call i8* @GetPass(i8* %74)
store i8* %75, i8** %11
%76 = load i8*, i8** %9
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %76)
br label %78
78: ; preds = %186, %58
%79 = load i32, i32* %14
%80 = icmp sle i32 %79, 2
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = load i32, i32* %16
%83 = icmp ne i32 %82, 0
%84 = xor i1 %83, true
br label %85
85: ; preds = %81, %78
%86 = phi i1 [ false, %78 ], [ %84, %81 ]
br i1 %86, label %87, label %187
87: ; preds = %85
store i8 32, i8* %12
br label %88
88: ; preds = %113, %87
%89 = load i8, i8* %12
%90 = sext i8 %89 to i32
%91 = icmp sle i32 %90, 126
br i1 %91, label %92, label %96
92: ; preds = %88
%93 = load i32, i32* %16
%94 = icmp ne i32 %93, 0
%95 = xor i1 %94, true
br label %96
96: ; preds = %92, %88
%97 = phi i1 [ false, %88 ], [ %95, %92 ]
br i1 %97, label %98, label %116
98: ; preds = %96
%99 = load i8, i8* %12
%100 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
store i8 %99, i8* %100
%101 = load i8*, i8** %10
%102 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%103 = load i8*, i8** %11
%104 = call i32 @CmpCryptWord(i8* %101, i8* %102, i8* %103)
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %113
106: ; preds = %98
%107 = load i32*, i32** %24
%108 = load i8*, i8** %9
%109 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%110 = call i32 @OutputEntry(i32* %107, i8* %108, i8* %109)
%111 = load i32, i32* %17
%112 = add i32 %111, 1
store i32 %112, i32* %17
store i32 1, i32* %16
br label %116
113: ; preds = %98
%114 = load i8, i8* %12
%115 = add i8 %114, 1
store i8 %115, i8* %12
br label %88
116: ; preds = %106, %96
%117 = load i32, i32* %16
%118 = icmp ne i32 %117, 0
br i1 %118, label %186, label %119
119: ; preds = %116
store i32 1, i32* %19
store i32 0, i32* %15
br label %120
120: ; preds = %133, %119
%121 = load i32, i32* %15
%122 = load i32, i32* %14
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %136
124: ; preds = %120
%125 = load i32, i32* %15
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %126
%128 = load i8, i8* %127
%129 = sext i8 %128 to i32
%130 = icmp ne i32 %129, 126
br i1 %130, label %131, label %132
131: ; preds = %124
store i32 0, i32* %19
br label %132
132: ; preds = %131, %124
br label %133
133: ; preds = %132
%134 = load i32, i32* %15
%135 = add nsw i32 %134, 1
store i32 %135, i32* %15
br label %120
136: ; preds = %120
%137 = load i32, i32* %19
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %149
139: ; preds = %136
%140 = load i32, i32* %14
%141 = add nsw i32 %140, 1
store i32 %141, i32* %14
%142 = load i32, i32* %14
%143 = sub nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %144
store i8 31, i8* %145
%146 = load i32, i32* %14
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %147
store i8 0, i8* %148
br label %149
149: ; preds = %139, %136
store i32 0, i32* %18
store i32 0, i32* %15
br label %150
150: ; preds = %182, %149
%151 = load i32, i32* %15
%152 = load i32, i32* %14
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %185
154: ; preds = %150
%155 = load i32, i32* %15
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %156
%158 = load i8, i8* %157
%159 = sext i8 %158 to i32
%160 = icmp ne i32 %159, 126
br i1 %160, label %161, label %170
161: ; preds = %154
%162 = load i32, i32* %18
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %170
164: ; preds = %161
%165 = load i32, i32* %15
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %166
%168 = load i8, i8* %167
%169 = add i8 %168, 1
store i8 %169, i8* %167
store i32 0, i32* %18
br label %185
170: ; preds = %161, %154
%171 = load i32, i32* %15
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %172
%174 = load i8, i8* %173
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 126
br i1 %176, label %177, label %181
177: ; preds = %170
%178 = load i32, i32* %15
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %179
store i8 32, i8* %180
store i32 1, i32* %18
br label %181
181: ; preds = %177, %170
br label %182
182: ; preds = %181
%183 = load i32, i32* %15
%184 = add nsw i32 %183, 1
store i32 %184, i32* %15
br label %150
185: ; preds = %164, %150
br label %186
186: ; preds = %185, %116
br label %78
187: ; preds = %85
br label %53
188: ; preds = %53
%189 = call i32 (...) @StopClock()
%190 = load i32*, i32** %24
%191 = load i32, i32* %17
%192 = load i32, i32* %20
%193 = call i32 @AppendFooter(i32* %190, i32 %191, i32 %192)
%194 = load i32*, i32** %24
%195 = call i32 @RecordTime(i32* %194)
%196 = load i32*, i32** %24
%197 = call i32 @fclose(i32* %196)
%198 = load i32*, i32** %23
%199 = call i32 @fclose(i32* %198)
br label %315
200: ; preds = %2
%201 = load i8**, i8*** %5
%202 = getelementptr inbounds i8*, i8** %201, i64 2
%203 = load i8*, i8** %202
%204 = call i32* @fopen(i8* %203, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %204, i32** %22
%205 = icmp eq i32* %204, null
br i1 %205, label %206, label %212
206: ; preds = %200
%207 = load i8**, i8*** %5
%208 = getelementptr inbounds i8*, i8** %207, i64 2
%209 = load i8*, i8** %208
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %209)
%211 = call i32 @exit(i32 1)
unreachable
212: ; preds = %200
%213 = load i8**, i8*** %5
%214 = getelementptr inbounds i8*, i8** %213, i64 2
%215 = load i8*, i8** %214
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i8* %215)
%217 = load i8**, i8*** %5
%218 = getelementptr inbounds i8*, i8** %217, i64 1
%219 = load i8*, i8** %218
%220 = call i32* @fopen(i8* %219, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %220, i32** %23
%221 = icmp eq i32* %220, null
br i1 %221, label %222, label %228
222: ; preds = %212
%223 = load i8**, i8*** %5
%224 = getelementptr inbounds i8*, i8** %223, i64 1
%225 = load i8*, i8** %224
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %225)
%227 = call i32 @exit(i32 1)
unreachable
228: ; preds = %212
%229 = load i8**, i8*** %5
%230 = getelementptr inbounds i8*, i8** %229, i64 1
%231 = load i8*, i8** %230
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %231)
%233 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %233, i32** %24
%234 = icmp eq i32* %233, null
br i1 %234, label %235, label %238
235: ; preds = %228
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%237 = call i32 @exit(i32 1)
unreachable
238: ; preds = %228
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%240 = load i32*, i32** %24
%241 = call i32 @AppendHeader(i32* %240, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%242 = call i32 (...) @StartClock()
br label %243
243: ; preds = %296, %238
%244 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%245 = load i32*, i32** %23
%246 = call i32* @fgets(i8* %244, i32 100, i32* %245)
%247 = icmp ne i32* %246, null
br i1 %247, label %248, label %299
248: ; preds = %243
store i32 0, i32* %16
%249 = load i32, i32* %20
%250 = add i32 %249, 1
store i32 %250, i32* %20
%251 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%252 = call i32 @strlen(i8* %251)
store i32 %252, i32* %13
%253 = load i32, i32* %13
%254 = sub nsw i32 %253, 1
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 %255
store i8 0, i8* %256
%257 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%258 = call i8* @GetUser(i8* %257)
store i8* %258, i8** %9
%259 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%260 = call i8* @GetSalt(i8* %259)
store i8* %260, i8** %10
%261 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%262 = call i8* @GetPass(i8* %261)
store i8* %262, i8** %11
%263 = load i8*, i8** %9
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %263)
br label %265
265: ; preds = %295, %248
%266 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%267 = load i32*, i32** %22
%268 = call i32* @fgets(i8* %266, i32 10, i32* %267)
%269 = icmp ne i32* %268, null
br i1 %269, label %270, label %274
270: ; preds = %265
%271 = load i32, i32* %16
%272 = icmp ne i32 %271, 0
%273 = xor i1 %272, true
br label %274
274: ; preds = %270, %265
%275 = phi i1 [ false, %265 ], [ %273, %270 ]
br i1 %275, label %276, label %296
276: ; preds = %274
%277 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%278 = call i32 @strlen(i8* %277)
store i32 %278, i32* %13
%279 = load i32, i32* %13
%280 = sub nsw i32 %279, 1
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 %281
store i8 0, i8* %282
%283 = load i8*, i8** %10
%284 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%285 = load i8*, i8** %11
%286 = call i32 @CmpCryptWord(i8* %283, i8* %284, i8* %285)
%287 = icmp ne i32 %286, 0
br i1 %287, label %288, label %295
288: ; preds = %276
%289 = load i32*, i32** %24
%290 = load i8*, i8** %9
%291 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%292 = call i32 @OutputEntry(i32* %289, i8* %290, i8* %291)
%293 = load i32, i32* %17
%294 = add i32 %293, 1
store i32 %294, i32* %17
store i32 1, i32* %16
br label %295
295: ; preds = %288, %276
br label %265
296: ; preds = %274
%297 = load i32*, i32** %22
%298 = call i32 @rewind(i32* %297)
br label %243
299: ; preds = %243
%300 = call i32 (...) @StopClock()
%301 = load i32*, i32** %24
%302 = load i32, i32* %17
%303 = load i32, i32* %20
%304 = call i32 @AppendFooter(i32* %301, i32 %302, i32 %303)
%305 = load i32*, i32** %24
%306 = call i32 @RecordTime(i32* %305)
%307 = load i32*, i32** %24
%308 = call i32 @fclose(i32* %307)
%309 = load i32*, i32** %22
%310 = call i32 @fclose(i32* %309)
%311 = load i32*, i32** %23
%312 = call i32 @fclose(i32* %311)
br label %315
313: ; preds = %2
%314 = call i32 (...) @DispUsage()
store i32 0, i32* %3
br label %320
315: ; preds = %299, %188
%316 = load i32, i32* %17
%317 = load i32, i32* %20
%318 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 %316, i32 %317)
%319 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %3
br label %320
320: ; preds = %315, %313
%321 = load i32, i32* %3
ret i32 %321
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [40 x i8] c"Cannot open %s for reading. Quiting...\0A\00"
@.str.2 = [33 x i8] c"-> Shadow file opened : %s [ro]\0A\00"
@.str.3 = [8 x i8] c"Results\00"
@.str.4 = [2 x i8] c"a\00"
@.str.7 = [19 x i8] c"Brute Force Attack\00"
@.str.8 = [40 x i8] c"-> Guessing password for username : %s\0A\00"
@.str.9 = [32 x i8] c"-> Dictionary opened : %s [ro]\0A\00"
@.str.10 = [18 x i8] c"Dictionary Attack\00"
@.str.11 = [30 x i8] c"\0ATOTAL PASSWORDS FOUND %d/%d\0A\00"
@str.13 = [30 x i8] c"See Results file for details.\00"
@str.15 = [35 x i8] c"-> Results file created / appended\00"
@str.16 = [49 x i8] c"Cannot open Results file for Writing. Quiting...\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [100 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
switch i32 %0, label %256 [
i32 2, label %9
i32 3, label %183
]
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32* %12, null
%14 = load i8*, i8** %10
br i1 %13, label %15, label %18
15: ; preds = %9
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %9
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%20 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.16, i64 0, i64 0))
%24 = tail call i32 @exit(i32 1)
unreachable
25: ; preds = %18
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.15, i64 0, i64 0))
%27 = tail call i32 @AppendHeader(i32* %20, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%28 = tail call i32 (...) @StartClock()
%29 = call i32* @fgets(i8* %6, i32 100, i32* %12)
%30 = icmp eq i32* %29, null
br i1 %30, label %177, label %31
31: ; preds = %25
%32 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 1
br label %38
33: ; preds = %175, %58
%34 = phi i32 [ %60, %58 ], [ %40, %175 ]
%35 = add i32 %39, 1
%36 = call i32* @fgets(i8* %6, i32 100, i32* %12)
%37 = icmp eq i32* %36, null
br i1 %37, label %177, label %38
38: ; preds = %31, %33
%39 = phi i32 [ 0, %31 ], [ %35, %33 ]
%40 = phi i32 [ 0, %31 ], [ %34, %33 ]
%41 = call i32 @strlen(i8* %6)
%42 = add nsw i32 %41, -1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %43
store i8 0, i8* %44
store i8 0, i8* %32
%45 = call i8* @GetUser(i8* %6)
%46 = call i8* @GetSalt(i8* %6)
%47 = call i8* @GetPass(i8* %6)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %45)
br label %49
49: ; preds = %38, %175
%50 = phi i32 [ 1, %38 ], [ %154, %175 ]
br label %53
51: ; preds = %53
%52 = icmp eq i8 %57, 127
br i1 %52, label %61, label %53
53: ; preds = %49, %51
%54 = phi i8 [ 32, %49 ], [ %57, %51 ]
store i8 %54, i8* %8
%55 = call i32 @CmpCryptWord(i8* %46, i8* %8, i8* %47)
%56 = icmp eq i32 %55, 0
%57 = add nuw nsw i8 %54, 1
br i1 %56, label %51, label %58
58: ; preds = %53
%59 = call i32 @OutputEntry(i32* %20, i8* %45, i8* %8)
%60 = add i32 %40, 1
br label %33
61: ; preds = %51
%62 = icmp sgt i32 %50, 0
br i1 %62, label %63, label %147
63: ; preds = %61
%64 = zext i32 %50 to i64
%65 = icmp ult i32 %50, 8
br i1 %65, label %132, label %66
66: ; preds = %63
%67 = and i64 %64, 4294967288
%68 = add nsw i64 %67, -8
%69 = lshr exact i64 %68, 3
%70 = add nuw nsw i64 %69, 1
%71 = and i64 %70, 1
%72 = icmp eq i64 %68, 0
br i1 %72, label %104, label %73
73: ; preds = %66
%74 = and i64 %70, 4611686018427387902
br label %75
75: ; preds = %75, %73
%76 = phi i64 [ 0, %73 ], [ %101, %75 ]
%77 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %73 ], [ %98, %75 ]
%78 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %73 ], [ %100, %75 ]
%79 = phi i64 [ 0, %73 ], [ %102, %75 ]
%80 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %76
%81 = bitcast i8* %80 to <4 x i8>*
%82 = load <4 x i8>, <4 x i8>* %81
%83 = getelementptr inbounds i8, i8* %80, i64 4
%84 = bitcast i8* %83 to <4 x i8>*
%85 = load <4 x i8>, <4 x i8>* %84
%86 = icmp eq <4 x i8> %82, <i8 126, i8 126, i8 126, i8 126>
%87 = icmp eq <4 x i8> %85, <i8 126, i8 126, i8 126, i8 126>
%88 = or i64 %76, 8
%89 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %88
%90 = bitcast i8* %89 to <4 x i8>*
%91 = load <4 x i8>, <4 x i8>* %90
%92 = getelementptr inbounds i8, i8* %89, i64 4
%93 = bitcast i8* %92 to <4 x i8>*
%94 = load <4 x i8>, <4 x i8>* %93
%95 = icmp eq <4 x i8> %91, <i8 126, i8 126, i8 126, i8 126>
%96 = icmp eq <4 x i8> %94, <i8 126, i8 126, i8 126, i8 126>
%97 = select <4 x i1> %95, <4 x i1> %86, <4 x i1> zeroinitializer
%98 = select <4 x i1> %97, <4 x i32> %77, <4 x i32> zeroinitializer
%99 = select <4 x i1> %96, <4 x i1> %87, <4 x i1> zeroinitializer
%100 = select <4 x i1> %99, <4 x i32> %78, <4 x i32> zeroinitializer
%101 = add nuw i64 %76, 16
%102 = add i64 %79, 2
%103 = icmp eq i64 %102, %74
br i1 %103, label %104, label %75
104: ; preds = %75, %66
%105 = phi <4 x i32> [ undef, %66 ], [ %98, %75 ]
%106 = phi <4 x i32> [ undef, %66 ], [ %100, %75 ]
%107 = phi i64 [ 0, %66 ], [ %101, %75 ]
%108 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %66 ], [ %98, %75 ]
%109 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %66 ], [ %100, %75 ]
%110 = icmp eq i64 %71, 0
br i1 %110, label %122, label %111
111: ; preds = %104
%112 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %107
%113 = bitcast i8* %112 to <4 x i8>*
%114 = load <4 x i8>, <4 x i8>* %113
%115 = getelementptr inbounds i8, i8* %112, i64 4
%116 = bitcast i8* %115 to <4 x i8>*
%117 = load <4 x i8>, <4 x i8>* %116
%118 = icmp eq <4 x i8> %114, <i8 126, i8 126, i8 126, i8 126>
%119 = icmp eq <4 x i8> %117, <i8 126, i8 126, i8 126, i8 126>
%120 = select <4 x i1> %118, <4 x i32> %108, <4 x i32> zeroinitializer
%121 = select <4 x i1> %119, <4 x i32> %109, <4 x i32> zeroinitializer
br label %122
122: ; preds = %104, %111
%123 = phi <4 x i32> [ %105, %104 ], [ %120, %111 ]
%124 = phi <4 x i32> [ %106, %104 ], [ %121, %111 ]
%125 = icmp eq <4 x i32> %123, <i32 1, i32 1, i32 1, i32 1>
%126 = select <4 x i1> %125, <4 x i32> %124, <4 x i32> %123
%127 = icmp ne <4 x i32> %126, <i32 1, i32 1, i32 1, i32 1>
%128 = bitcast <4 x i1> %127 to i4
%129 = icmp eq i4 %128, 0
%130 = zext i1 %129 to i32
%131 = icmp eq i64 %67, %64
br i1 %131, label %144, label %132
132: ; preds = %63, %122
%133 = phi i64 [ 0, %63 ], [ %67, %122 ]
%134 = phi i32 [ 1, %63 ], [ %130, %122 ]
br label %135
135: ; preds = %132, %135
%136 = phi i64 [ %142, %135 ], [ %133, %132 ]
%137 = phi i32 [ %141, %135 ], [ %134, %132 ]
%138 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %136
%139 = load i8, i8* %138
%140 = icmp eq i8 %139, 126
%141 = select i1 %140, i32 %137, i32 0
%142 = add nuw nsw i64 %136, 1
%143 = icmp eq i64 %142, %64
br i1 %143, label %144, label %135
144: ; preds = %135, %122
%145 = phi i32 [ %130, %122 ], [ %141, %135 ]
%146 = icmp eq i32 %145, 0
br i1 %146, label %153, label %147
147: ; preds = %61, %144
%148 = add nsw i32 %50, 1
%149 = sext i32 %50 to i64
%150 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %149
store i8 31, i8* %150
%151 = sext i32 %148 to i64
%152 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %151
store i8 0, i8* %152
br label %153
153: ; preds = %147, %144
%154 = phi i32 [ %148, %147 ], [ %50, %144 ]
%155 = icmp sgt i32 %154, 0
br i1 %155, label %156, label %175
156: ; preds = %153
%157 = zext i32 %154 to i64
br label %158
158: ; preds = %156, %171
%159 = phi i64 [ 0, %156 ], [ %173, %171 ]
%160 = phi i32 [ 0, %156 ], [ %172, %171 ]
%161 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 %159
%162 = load i8, i8* %161
%163 = icmp ne i8 %162, 126
%164 = icmp ne i32 %160, 0
%165 = select i1 %163, i1 %164, i1 false
br i1 %165, label %166, label %168
166: ; preds = %158
%167 = add i8 %162, 1
store i8 %167, i8* %161
br label %175
168: ; preds = %158
%169 = icmp eq i8 %162, 126
br i1 %169, label %170, label %171
170: ; preds = %168
store i8 32, i8* %161
br label %171
171: ; preds = %168, %170
%172 = phi i32 [ 1, %170 ], [ %160, %168 ]
%173 = add nuw nsw i64 %159, 1
%174 = icmp eq i64 %173, %157
br i1 %174, label %175, label %158
175: ; preds = %171, %153, %166
%176 = icmp slt i32 %154, 3
br i1 %176, label %49, label %33
177: ; preds = %33, %25
%178 = phi i32 [ 0, %25 ], [ %34, %33 ]
%179 = phi i32 [ 0, %25 ], [ %35, %33 ]
%180 = call i32 (...) @StopClock()
%181 = call i32 @AppendFooter(i32* %20, i32 %178, i32 %179)
%182 = call i32 @RecordTime(i32* %20)
br label %258
183: ; preds = %2
%184 = getelementptr inbounds i8*, i8** %1, i64 2
%185 = load i8*, i8** %184
%186 = tail call i32* @fopen(i8* %185, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%187 = icmp eq i32* %186, null
%188 = load i8*, i8** %184
br i1 %187, label %189, label %192
189: ; preds = %183
%190 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %188)
%191 = tail call i32 @exit(i32 1)
unreachable
192: ; preds = %183
%193 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i8* %188)
%194 = getelementptr inbounds i8*, i8** %1, i64 1
%195 = load i8*, i8** %194
%196 = tail call i32* @fopen(i8* %195, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%197 = icmp eq i32* %196, null
%198 = load i8*, i8** %194
br i1 %197, label %199, label %202
199: ; preds = %192
%200 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8* %198)
%201 = tail call i32 @exit(i32 1)
unreachable
202: ; preds = %192
%203 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %198)
%204 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%205 = icmp eq i32* %204, null
br i1 %205, label %206, label %209
206: ; preds = %202
%207 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.16, i64 0, i64 0))
%208 = tail call i32 @exit(i32 1)
unreachable
209: ; preds = %202
%210 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.15, i64 0, i64 0))
%211 = tail call i32 @AppendHeader(i32* %204, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%212 = tail call i32 (...) @StartClock()
%213 = call i32* @fgets(i8* %6, i32 100, i32* %196)
%214 = icmp eq i32* %213, null
br i1 %214, label %249, label %215
215: ; preds = %209, %244
%216 = phi i32 [ %218, %244 ], [ 0, %209 ]
%217 = phi i32 [ %245, %244 ], [ 0, %209 ]
%218 = add i32 %216, 1
%219 = call i32 @strlen(i8* %6)
%220 = add nsw i32 %219, -1
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %221
store i8 0, i8* %222
%223 = call i8* @GetUser(i8* %6)
%224 = call i8* @GetSalt(i8* %6)
%225 = call i8* @GetPass(i8* %6)
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %223)
%227 = call i32* @fgets(i8* %7, i32 10, i32* %186)
%228 = icmp eq i32* %227, null
br i1 %228, label %244, label %229
229: ; preds = %215, %240
%230 = call i32 @strlen(i8* %7)
%231 = add nsw i32 %230, -1
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 %232
store i8 0, i8* %233
%234 = call i32 @CmpCryptWord(i8* %224, i8* %7, i8* %225)
%235 = icmp eq i32 %234, 0
br i1 %235, label %240, label %236
236: ; preds = %229
%237 = call i32 @OutputEntry(i32* %204, i8* %223, i8* %7)
%238 = add i32 %217, 1
%239 = call i32* @fgets(i8* %7, i32 10, i32* %186)
br label %244
240: ; preds = %229
%241 = call i32* @fgets(i8* %7, i32 10, i32* %186)
%242 = icmp ne i32* %241, null
%243 = and i1 %235, %242
br i1 %243, label %229, label %244
244: ; preds = %240, %236, %215
%245 = phi i32 [ %217, %215 ], [ %238, %236 ], [ %217, %240 ]
%246 = call i32 @rewind(i32* %186)
%247 = call i32* @fgets(i8* %6, i32 100, i32* %196)
%248 = icmp eq i32* %247, null
br i1 %248, label %249, label %215
249: ; preds = %244, %209
%250 = phi i32 [ 0, %209 ], [ %245, %244 ]
%251 = phi i32 [ 0, %209 ], [ %218, %244 ]
%252 = call i32 (...) @StopClock()
%253 = call i32 @AppendFooter(i32* %204, i32 %250, i32 %251)
%254 = call i32 @RecordTime(i32* %204)
%255 = call i32 @fclose(i32* %204)
br label %258
256: ; preds = %2
%257 = tail call i32 (...) @DispUsage()
br label %267
258: ; preds = %249, %177
%259 = phi i32* [ %186, %249 ], [ %20, %177 ]
%260 = phi i32* [ %196, %249 ], [ %12, %177 ]
%261 = phi i32 [ %250, %249 ], [ %178, %177 ]
%262 = phi i32 [ %251, %249 ], [ %179, %177 ]
%263 = call i32 @fclose(i32* %259)
%264 = call i32 @fclose(i32* %260)
%265 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 %261, i32 %262)
%266 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.13, i64 0, i64 0))
br label %267
267: ; preds = %258, %256
ret i32 0
}