#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*/ md5(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  char md5Hash[32];
  char *test;
  int i;
  if (argc < 2) {
    return 0;
  }
  test = argv[1];
  md5(test, md5Hash);
  for (i = 0; i < 32; i++) {
    printf("%c", md5Hash[i]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    114c <main+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    11b0 <main+0x90>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1040 <md5@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x20,-0x3c(%rbp)
jge    119b <main+0x7b>
movslq -0x3c(%rbp),%rax
movsbl -0x30(%rbp,%rax,1),%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116c <main+0x4c>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jl     1286 <main+0x166>
sub    $0x28,%rsp
mov    0x8(%rsi),%rdi
mov    %rsp,%rsi
call   1040 <md5@plt>
movsbl (%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x2(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x3(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x4(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x5(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x6(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x8(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x9(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xa(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xc(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xd(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xe(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0xf(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x10(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x11(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x12(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x13(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x14(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x15(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x16(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x17(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x18(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x19(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1a(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1b(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1c(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1d(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1e(%rsp),%edi
call   1030 <putchar@plt>
movsbl 0x1f(%rsp),%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x28,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [32 x i8]
%7 = alloca i8*
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, i32* %3
br label %34
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
store i8* %15, i8** %7
%16 = load i8*, i8** %7
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%18 = call i32 @md5(i8* %16, i8* %17)
store i32 0, i32* %8
br label %19
19: ; preds = %29, %12
%20 = load i32, i32* %8
%21 = icmp slt i32 %20, 32
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load i32, i32* %8
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 %24
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %22
%30 = load i32, i32* %8
%31 = add nsw i32 %30, 1
store i32 %31, i32* %8
br label %19
32: ; preds = %19
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %34
34: ; preds = %32, %11
%35 = load i32, i32* %3
ret i32 %35
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 2
br i1 %5, label %138, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = call i32 @md5(i8* %8, i8* %4)
%10 = load i8, i8* %4
%11 = sext i8 %10 to i32
%12 = call i32 @putchar(i32 %11)
%13 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 1
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = call i32 @putchar(i32 %15)
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = call i32 @putchar(i32 %19)
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 3
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = call i32 @putchar(i32 %23)
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 4
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = call i32 @putchar(i32 %27)
%29 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 5
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = call i32 @putchar(i32 %31)
%33 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 6
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = call i32 @putchar(i32 %35)
%37 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 7
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = call i32 @putchar(i32 %39)
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 8
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = call i32 @putchar(i32 %43)
%45 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 9
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = call i32 @putchar(i32 %47)
%49 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 10
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = call i32 @putchar(i32 %51)
%53 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 11
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = call i32 @putchar(i32 %55)
%57 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 12
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = call i32 @putchar(i32 %59)
%61 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 13
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 @putchar(i32 %63)
%65 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 14
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 @putchar(i32 %67)
%69 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 15
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = call i32 @putchar(i32 %71)
%73 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 16
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = call i32 @putchar(i32 %75)
%77 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 17
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = call i32 @putchar(i32 %79)
%81 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 18
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = call i32 @putchar(i32 %83)
%85 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 19
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i32 @putchar(i32 %87)
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 20
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = call i32 @putchar(i32 %91)
%93 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 21
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = call i32 @putchar(i32 %95)
%97 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 22
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = call i32 @putchar(i32 %99)
%101 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 23
%102 = load i8, i8* %101
%103 = sext i8 %102 to i32
%104 = call i32 @putchar(i32 %103)
%105 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 24
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = call i32 @putchar(i32 %107)
%109 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 25
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = call i32 @putchar(i32 %111)
%113 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 26
%114 = load i8, i8* %113
%115 = sext i8 %114 to i32
%116 = call i32 @putchar(i32 %115)
%117 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 27
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = call i32 @putchar(i32 %119)
%121 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 28
%122 = load i8, i8* %121
%123 = sext i8 %122 to i32
%124 = call i32 @putchar(i32 %123)
%125 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 29
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = call i32 @putchar(i32 %127)
%129 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 30
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = call i32 @putchar(i32 %131)
%133 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 31
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = call i32 @putchar(i32 %135)
%137 = call i32 @putchar(i32 10)
br label %138
138: ; preds = %2, %6
ret i32 0
}