#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ auth_LMhash(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ auth_md4Sum(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ buff_to_upper(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ char_ptrs_clear(char **, int);
char *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ memcpy(char *, unsigned char *, int);
int /*<<< orphan*/ mk_readable(unsigned char *, int);
int /*<<< orphan*/ parse_args(int, char **, unsigned int *);
int /*<<< orphan*/ printf(char *, unsigned char *, char *);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main(int argc, char **argv) {
  int len, i, max;
  unsigned int args;
  char plain[1024];
  char *ptrs[16] = {0};
  char plainbuffer[1024];
  unsigned char buffer[1024];
  unsigned char dest[1024];
  unsigned char lmdest[1024];
  args = 0;
  parse_args(argc, argv, &args);
  if (!args) {
    return 0;
  }
  ptrs[0] = (char *)&buffer[0];
  ptrs[1] = (char *)&dest[0];
  ptrs[2] = (char *)&plain[0];
  ptrs[3] = (char *)&lmdest[0];
  char_ptrs_clear(&ptrs[0], 4);
  for (i = 1; fgets((char *)buffer, 1024, stdin) == (char *)buffer; i++) {
    if ('\n' == buffer[len - 1])
      buffer[len--] = '\0';
    memcpy(plainbuffer, buffer, 1024);
    len = (strlen((char *)buffer) > 14) ? 14 : strlen((char *)buffer);
    if ('\n' == buffer[len - 1])
      buffer[len--] = '\0';
    max = (len > 14) ? 14 : len;
    buffer[max] = 0;
    memcpy(plain, buffer, strlen((char *)buffer));
    buff_to_upper(&lmdest[0], &buffer[0], max);
    auth_LMhash((unsigned char *)&lmdest[0], (unsigned char *)lmdest, len);
    mk_readable(&lmdest[0], 1024);
    max = (len > (1024 / 2) ? (1024 / 2) : len);
    buffer[(2 * max) - 1] = 0;
    for (i = max - 1; i > 0; i--) {
      buffer[(i * 2)] = buffer[i];
      buffer[(i * 2) - 1] = 0;
    }
    auth_md4Sum(dest, buffer, 2 * max);
    mk_readable(&dest[0], 1024);
    printf("%s:%s\n", lmdest, plain);
    char_ptrs_clear(&ptrs[0], 4);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x14c0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x4a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1080 <parse_args@plt>
cmpl   $0x0,-0x20(%rbp)
jne    1209 <main+0x59>
movl   $0x0,-0x4(%rbp)
jmp    14eb <main+0x33b>
lea    -0xca0(%rbp),%rax
mov    %rax,-0x4a0(%rbp)
lea    -0x10a0(%rbp),%rax
mov    %rax,-0x498(%rbp)
lea    -0x420(%rbp),%rax
mov    %rax,-0x490(%rbp)
lea    -0x14a0(%rbp),%rax
mov    %rax,-0x488(%rbp)
lea    -0x4a0(%rbp),%rdi
mov    $0x4,%esi
call   10a0 <char_ptrs_clear@plt>
movl   $0x1,-0x18(%rbp)
lea    -0xca0(%rbp),%rdi
mov    0x2d81(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1090 <fgets@plt>
lea    -0xca0(%rbp),%rcx
cmp    %rcx,%rax
jne    14e4 <main+0x334>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
movzbl -0xca0(%rbp,%rax,1),%ecx
ff
mov    $0xa,%eax
cmp    %ecx,%eax
jne    12b5 <main+0x105>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cltq
movb   $0x0,-0xca0(%rbp,%rax,1)
lea    -0x8a0(%rbp),%rdi
lea    -0xca0(%rbp),%rsi
mov    $0x400,%edx
call   10b0 <memcpy@plt>
lea    -0xca0(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0xe,%eax
jle    12f2 <main+0x142>
mov    $0xe,%eax
mov    %eax,-0x14a4(%rbp)
jmp    1304 <main+0x154>
lea    -0xca0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14a4(%rbp)
mov    -0x14a4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
movzbl -0xca0(%rbp,%rax,1),%ecx
ff
mov    $0xa,%eax
cmp    %ecx,%eax
jne    133f <main+0x18f>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cltq
movb   $0x0,-0xca0(%rbp,%rax,1)
cmpl   $0xe,-0x14(%rbp)
jle    1359 <main+0x1a9>
mov    $0xe,%eax
mov    %eax,-0x14a8(%rbp)
jmp    1362 <main+0x1b2>
mov    -0x14(%rbp),%eax
mov    %eax,-0x14a8(%rbp)
mov    -0x14a8(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
movb   $0x0,-0xca0(%rbp,%rax,1)
lea    -0x420(%rbp),%rax
mov    %rax,-0x14b8(%rbp)
lea    -0xca0(%rbp),%rax
mov    %rax,-0x14b0(%rbp)
lea    -0xca0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x14b8(%rbp),%rdi
mov    -0x14b0(%rbp),%rsi
mov    %eax,%edx
call   10b0 <memcpy@plt>
lea    -0x14a0(%rbp),%rdi
lea    -0xca0(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <buff_to_upper@plt>
lea    -0x14a0(%rbp),%rdi
lea    -0x14a0(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1060 <auth_LMhash@plt>
lea    -0x14a0(%rbp),%rdi
mov    $0x400,%esi
call   10d0 <mk_readable@plt>
cmpl   $0x200,-0x14(%rbp)
jle    140e <main+0x25e>
mov    $0x200,%eax
mov    %eax,-0x14bc(%rbp)
jmp    1417 <main+0x267>
mov    -0x14(%rbp),%eax
mov    %eax,-0x14bc(%rbp)
mov    -0x14bc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0xca0(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    1481 <main+0x2d1>
movslq -0x18(%rbp),%rax
mov    -0xca0(%rbp,%rax,1),%cl
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
cltq
mov    %cl,-0xca0(%rbp,%rax,1)
mov    -0x18(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
cltq
movb   $0x0,-0xca0(%rbp,%rax,1)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    143c <main+0x28c>
lea    -0x10a0(%rbp),%rdi
lea    -0xca0(%rbp),%rsi
mov    -0x1c(%rbp),%edx
shl    $0x1,%edx
call   10c0 <auth_md4Sum@plt>
lea    -0x10a0(%rbp),%rdi
mov    $0x400,%esi
call   10d0 <mk_readable@plt>
lea    -0x14a0(%rbp),%rsi
lea    -0x420(%rbp),%rdx
lea    0xb40(%rip),%rdi
call   1050 <printf@plt>
lea    -0x4a0(%rbp),%rdi
mov    $0x4,%esi
call   10a0 <char_ptrs_clear@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1259 <main+0xa9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x14c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1498,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rdx
call   1070 <parse_args@plt>
cmpl   $0x0,0xc(%rsp)
je     124c <main+0xac>
lea    0x90(%rsp),%r15
mov    %r15,0x10(%rsp)
lea    0x890(%rsp),%rax
mov    %rax,0x18(%rsp)
lea    0xc90(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x490(%rsp),%rax
mov    %rax,0x28(%rsp)
lea    0x10(%rsp),%rdi
mov    $0x4,%esi
call   1090 <char_ptrs_clear@plt>
mov    0x2db0(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
cmp    %r15,%rax
je     1260 <main+0xc0>
xor    %eax,%eax
add    $0x1498,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc90(%rsp),%rbx
lea    0x490(%rsp),%r12
jmp    12e3 <main+0x143>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x890(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10b0 <auth_md4Sum@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
call   10c0 <mk_readable@plt>
lea    0xd59(%rip),%rdi
mov    %r12,%rsi
mov    %r13,%rbx
mov    %r13,%rdx
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
mov    $0x4,%esi
call   1090 <char_ptrs_clear@plt>
mov    0x2d1d(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
cmp    %r15,%rax
jne    124c <main+0xac>
movslq %ebp,%rax
cmpb   $0xa,-0x1(%rax,%r15,1)
jne    12f6 <main+0x156>
movb   $0x0,0x90(%rsp,%rax,1)
lea    0x1090(%rsp),%rdi
mov    %r15,%rsi
mov    $0x400,%edx
call   10a0 <memcpy@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    $0xe,%ebp
cmp    $0xe,%eax
jg     1327 <main+0x187>
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
movslq %ebp,%rax
cmpb   $0xa,0x8f(%rsp,%rax,1)
0a
jne    1342 <main+0x1a2>
movb   $0x0,0x90(%rsp,%rax,1)
add    $0xffffffffffffffff,%rax
mov    %eax,%ebp
cmp    $0xe,%ebp
mov    $0xe,%eax
cmovl  %ebp,%eax
movslq %eax,%r14
movb   $0x0,0x90(%rsp,%r14,1)
mov    %r15,%rdi
call   1040 <strlen@plt>
mov    %rbx,%r13
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %eax,%edx
call   10a0 <memcpy@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1030 <buff_to_upper@plt>
mov    %r12,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1060 <auth_LMhash@plt>
mov    %r12,%rdi
mov    $0x400,%esi
call   10c0 <mk_readable@plt>
cmp    $0x200,%ebp
mov    $0x200,%ecx
cmovl  %ebp,%ecx
movslq %ecx,%rax
lea    (%rax,%rax,1),%rdx
movb   $0x0,0x8f(%rsp,%rax,2)
cmp    $0x2,%eax
jl     1280 <main+0xe0>
mov    %ecx,%eax
add    $0x1,%rax
add    %ecx,%ecx
add    $0xfffffffd,%ecx
nopw   0x0(%rax,%rax,1)
movzbl 0x8e(%rsp,%rax,1),%ebx
lea    0x1(%rcx),%esi
movslq %esi,%rsi
mov    %bl,0x90(%rsp,%rsi,1)
movslq %ecx,%rcx
movb   $0x0,0x90(%rsp,%rcx,1)
add    $0xffffffffffffffff,%rax
add    $0xfffffffe,%ecx
cmp    $0x2,%rax
ja     13d0 <main+0x230>
jmp    1280 <main+0xe0>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [7 x i8] c"%s:%s\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 [1024 x i8]
%11 = alloca [16 x i8*]
%12 = alloca [1024 x i8]
%13 = alloca [1024 x i8]
%14 = alloca [1024 x i8]
%15 = alloca [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = bitcast [16 x i8*]* %11 to i8*
store i32 0, i32* %9
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = call i32 @parse_args(i32 %17, i8** %18, i32* %9)
%20 = load i32, i32* %9
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %2
store i32 0, i32* %3
br label %155
23: ; preds = %2
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%25 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 0
store i8* %24, i8** %25
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%27 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 1
store i8* %26, i8** %27
%28 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%29 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 2
store i8* %28, i8** %29
%30 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%31 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 3
store i8* %30, i8** %31
%32 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 0
%33 = call i32 @char_ptrs_clear(i8** %32, i32 4)
store i32 1, i32* %7
br label %34
34: ; preds = %151, %23
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%36 = load i32, i32* @stdin
%37 = call i8* @fgets(i8* %35, i32 1024, i32 %36)
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%39 = icmp eq i8* %37, %38
br i1 %39, label %40, label %154
40: ; preds = %34
%41 = load i32, i32* %6
%42 = sub nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = icmp eq i32 10, %46
br i1 %47, label %48, label %53
48: ; preds = %40
%49 = load i32, i32* %6
%50 = add nsw i32 %49, -1
store i32 %50, i32* %6
%51 = sext i32 %49 to i64
%52 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %51
store i8 0, i8* %52
br label %53
53: ; preds = %48, %40
%54 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%56 = call i32 @memcpy(i8* %54, i8* %55, i32 1024)
%57 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%58 = call i32 @strlen(i8* %57)
%59 = icmp sgt i32 %58, 14
br i1 %59, label %60, label %61
60: ; preds = %53
br label %64
61: ; preds = %53
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
br label %64
64: ; preds = %61, %60
%65 = phi i32 [ 14, %60 ], [ %63, %61 ]
store i32 %65, i32* %6
%66 = load i32, i32* %6
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %68
%70 = load i8, i8* %69
%71 = zext i8 %70 to i32
%72 = icmp eq i32 10, %71
br i1 %72, label %73, label %78
73: ; preds = %64
%74 = load i32, i32* %6
%75 = add nsw i32 %74, -1
store i32 %75, i32* %6
%76 = sext i32 %74 to i64
%77 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %76
store i8 0, i8* %77
br label %78
78: ; preds = %73, %64
%79 = load i32, i32* %6
%80 = icmp sgt i32 %79, 14
br i1 %80, label %81, label %82
81: ; preds = %78
br label %84
82: ; preds = %78
%83 = load i32, i32* %6
br label %84
84: ; preds = %82, %81
%85 = phi i32 [ 14, %81 ], [ %83, %82 ]
store i32 %85, i32* %8
%86 = load i32, i32* %8
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %87
store i8 0, i8* %88
%89 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%90 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%91 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%92 = call i32 @strlen(i8* %91)
%93 = call i32 @memcpy(i8* %89, i8* %90, i32 %92)
%94 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%95 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%96 = load i32, i32* %8
%97 = call i32 @buff_to_upper(i8* %94, i8* %95, i32 %96)
%98 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%99 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%100 = load i32, i32* %6
%101 = call i32 @auth_LMhash(i8* %98, i8* %99, i32 %100)
%102 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%103 = call i32 @mk_readable(i8* %102, i32 1024)
%104 = load i32, i32* %6
%105 = icmp sgt i32 %104, 512
br i1 %105, label %106, label %107
106: ; preds = %84
br label %109
107: ; preds = %84
%108 = load i32, i32* %6
br label %109
109: ; preds = %107, %106
%110 = phi i32 [ 512, %106 ], [ %108, %107 ]
store i32 %110, i32* %8
%111 = load i32, i32* %8
%112 = mul nsw i32 2, %111
%113 = sub nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %114
store i8 0, i8* %115
%116 = load i32, i32* %8
%117 = sub nsw i32 %116, 1
store i32 %117, i32* %7
br label %118
118: ; preds = %135, %109
%119 = load i32, i32* %7
%120 = icmp sgt i32 %119, 0
br i1 %120, label %121, label %138
121: ; preds = %118
%122 = load i32, i32* %7
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %123
%125 = load i8, i8* %124
%126 = load i32, i32* %7
%127 = mul nsw i32 %126, 2
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %128
store i8 %125, i8* %129
%130 = load i32, i32* %7
%131 = mul nsw i32 %130, 2
%132 = sub nsw i32 %131, 1
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %133
store i8 0, i8* %134
br label %135
135: ; preds = %121
%136 = load i32, i32* %7
%137 = add nsw i32 %136, -1
store i32 %137, i32* %7
br label %118
138: ; preds = %118
%139 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%140 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%141 = load i32, i32* %8
%142 = mul nsw i32 2, %141
%143 = call i32 @auth_md4Sum(i8* %139, i8* %140, i32 %142)
%144 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%145 = call i32 @mk_readable(i8* %144, i32 1024)
%146 = getelementptr inbounds [1024 x i8], [1024 x i8]* %15, i64 0, i64 0
%147 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%148 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %146, i8* %147)
%149 = getelementptr inbounds [16 x i8*], [16 x i8*]* %11, i64 0, i64 0
%150 = call i32 @char_ptrs_clear(i8** %149, i32 4)
br label %151
151: ; preds = %138
%152 = load i32, i32* %7
%153 = add nsw i32 %152, 1
store i32 %153, i32* %7
br label %34
154: ; preds = %34
store i32 0, i32* %3
br label %155
155: ; preds = %154, %22
%156 = load i32, i32* %3
ret i32 %156
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [7 x i8] c"%s:%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca [1024 x i8]
%5 = alloca [16 x i8*]
%6 = alloca [1024 x i8]
%7 = alloca [1024 x i8]
%8 = alloca [1024 x i8]
%9 = alloca [1024 x i8]
%10 = bitcast i32* %3 to i8*
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%12 = bitcast [16 x i8*]* %5 to i8*
%13 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 4
%14 = bitcast i8** %13 to i8*
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
store i32 0, i32* %3
%19 = call i32 @parse_args(i32 %0, i8** %1, i32* %3)
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, 0
br i1 %21, label %98, label %22
22: ; preds = %2
%23 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 0
store i8* %16, i8** %23
%24 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 1
store i8* %17, i8** %24
%25 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 2
store i8* %11, i8** %25
%26 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 3
store i8* %18, i8** %26
%27 = call i32 @char_ptrs_clear(i8** %23, i32 4)
%28 = load i32, i32* @stdin
%29 = call i8* @fgets(i8* %16, i32 1024, i32 %28)
%30 = icmp eq i8* %29, %16
br i1 %30, label %31, label %98
31: ; preds = %22, %90
%32 = phi i32 [ %58, %90 ], [ undef, %22 ]
%33 = add nsw i32 %32, -1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = icmp eq i8 %36, 10
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = sext i32 %32 to i64
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %39
store i8 0, i8* %40
br label %41
41: ; preds = %38, %31
%42 = call i32 @memcpy(i8* %15, i8* %16, i32 1024)
%43 = call i32 @strlen(i8* %16)
%44 = icmp sgt i32 %43, 14
br i1 %44, label %47, label %45
45: ; preds = %41
%46 = call i32 @strlen(i8* %16)
br label %47
47: ; preds = %41, %45
%48 = phi i32 [ %46, %45 ], [ 14, %41 ]
%49 = add nsw i32 %48, -1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %50
%52 = load i8, i8* %51
%53 = icmp eq i8 %52, 10
br i1 %53, label %54, label %57
54: ; preds = %47
%55 = sext i32 %48 to i64
%56 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %55
store i8 0, i8* %56
br label %57
57: ; preds = %54, %47
%58 = phi i32 [ %49, %54 ], [ %48, %47 ]
%59 = icmp slt i32 %58, 14
%60 = select i1 %59, i32 %58, i32 14
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %61
store i8 0, i8* %62
%63 = call i32 @strlen(i8* %16)
%64 = call i32 @memcpy(i8* %11, i8* %16, i32 %63)
%65 = call i32 @buff_to_upper(i8* %18, i8* %16, i32 %60)
%66 = call i32 @auth_LMhash(i8* %18, i8* %18, i32 %58)
%67 = call i32 @mk_readable(i8* %18, i32 1024)
%68 = icmp slt i32 %58, 512
%69 = select i1 %68, i32 %58, i32 512
%70 = shl nsw i32 %69, 1
%71 = add nsw i32 %70, -1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %72
store i8 0, i8* %73
%74 = icmp sgt i32 %69, 1
br i1 %74, label %75, label %90
75: ; preds = %57
%76 = zext i32 %69 to i64
br label %77
77: ; preds = %75, %77
%78 = phi i64 [ %76, %75 ], [ %79, %77 ]
%79 = add nsw i64 %78, -1
%80 = trunc i64 %79 to i32
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %79
%82 = load i8, i8* %81
%83 = shl nuw nsw i32 %80, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %84
store i8 %82, i8* %85
%86 = add nsw i32 %83, -1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %87
store i8 0, i8* %88
%89 = icmp ugt i64 %78, 2
br i1 %89, label %77, label %90
90: ; preds = %77, %57
%91 = call i32 @auth_md4Sum(i8* %17, i8* %16, i32 %70)
%92 = call i32 @mk_readable(i8* %17, i32 1024)
%93 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %11)
%94 = call i32 @char_ptrs_clear(i8** %23, i32 4)
%95 = load i32, i32* @stdin
%96 = call i8* @fgets(i8* %16, i32 1024, i32 %95)
%97 = icmp eq i8* %96, %16
br i1 %97, label %31, label %98
98: ; preds = %90, %22, %2
ret i32 0
}