#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*/ exit(int);
scalar_t__ testit(char *, char *);
int main(int argc, char **argv) {
  int ret = 7;
  ret -= testit("", "d41d8cd98f00b204e9800998ecf8427e");
  ret -= testit("a", "0cc175b9c0f1b6a831c399e269772661");
  ret -= testit("abc", "900150983cd24fb0d6963f7d28e17f72");
  ret -= testit("message digest", "f96b697d7cb7938d525a2f31aaf161d0");
  ret -=
      testit("abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b");
  ret -=
      testit("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
             "d174ab98d277d9f5a5611c2c9f419d9f");
  ret -= testit("12345678901234567890123456789012345678901234567890123456789012"
                "345678901234567890",
                "57edf4a22be3c955ac49da2e2107b67a");
  exit(ret);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x7,-0x14(%rbp)
lea    0x103f(%rip),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0x103f(%rip),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xebe(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xec3(%rip),%rdi
lea    0xecb(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xed3(%rip),%rdi
lea    0xee7(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xeef(%rip),%rdi
lea    0xf27(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    0xf2f(%rip),%rdi
lea    0xf79(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x1051(%rip),%rdi
lea    0xec7(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%r14
lea    0x105b(%rip),%rdi
lea    0xed2(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%r15
lea    0xee4(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%r12
lea    0xef3(%rip),%rdi
lea    0xefb(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%r13
lea    0xf0d(%rip),%rdi
lea    0xf21(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rbx
lea    0xf33(%rip),%rdi
lea    0xf6b(%rip),%rsi
call   1030 <testit@plt>
mov    %rax,%rbp
lea    0xf7d(%rip),%rdi
lea    0xfc7(%rip),%rsi
call   1030 <testit@plt>
add    %r14d,%r15d
add    %r15d,%r12d
add    %r12d,%r13d
add    %r13d,%ebx
add    %ebx,%ebp
shl    $0x20,%rbp
movabs $0x700000000,%rdi
sub    %rbp,%rdi
shr    $0x20,%rdi
sub    %eax,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [33 x i8] c"d41d8cd98f00b204e9800998ecf8427e\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [33 x i8] c"0cc175b9c0f1b6a831c399e269772661\00"
@.str.4 = [4 x i8] c"abc\00"
@.str.5 = [33 x i8] c"900150983cd24fb0d6963f7d28e17f72\00"
@.str.6 = [15 x i8] c"message digest\00"
@.str.7 = [33 x i8] c"f96b697d7cb7938d525a2f31aaf161d0\00"
@.str.8 = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.9 = [33 x i8] c"c3fcd3d76192e4007dfb496cca67e13b\00"
@.str.10 = [63 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\00"
@.str.11 = [33 x i8] c"d174ab98d277d9f5a5611c2c9f419d9f\00"
@.str.12 = [81 x i8] c"12345678901234567890123456789012345678901234567890123456789012345678901234567890\00"
@.str.13 = [33 x i8] c"57edf4a22be3c955ac49da2e2107b67a\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 7, i32* %6
%7 = call i64 @testit(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %6
%9 = sext i32 %8 to i64
%10 = sub nsw i64 %9, %7
%11 = trunc i64 %10 to i32
store i32 %11, i32* %6
%12 = call i64 @testit(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32, i32* %6
%14 = sext i32 %13 to i64
%15 = sub nsw i64 %14, %12
%16 = trunc i64 %15 to i32
store i32 %16, i32* %6
%17 = call i64 @testit(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = sub nsw i64 %19, %17
%21 = trunc i64 %20 to i32
store i32 %21, i32* %6
%22 = call i64 @testit(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = sub nsw i64 %24, %22
%26 = trunc i64 %25 to i32
store i32 %26, i32* %6
%27 = call i64 @testit(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = sub nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, i32* %6
%32 = call i64 @testit(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = sub nsw i64 %34, %32
%36 = trunc i64 %35 to i32
store i32 %36, i32* %6
%37 = call i64 @testit(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = sub nsw i64 %39, %37
%41 = trunc i64 %40 to i32
store i32 %41, i32* %6
%42 = load i32, i32* %6
%43 = call i32 @exit(i32 %42)
unreachable
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [33 x i8] c"d41d8cd98f00b204e9800998ecf8427e\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [33 x i8] c"0cc175b9c0f1b6a831c399e269772661\00"
@.str.4 = [4 x i8] c"abc\00"
@.str.5 = [33 x i8] c"900150983cd24fb0d6963f7d28e17f72\00"
@.str.6 = [15 x i8] c"message digest\00"
@.str.7 = [33 x i8] c"f96b697d7cb7938d525a2f31aaf161d0\00"
@.str.8 = [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00"
@.str.9 = [33 x i8] c"c3fcd3d76192e4007dfb496cca67e13b\00"
@.str.10 = [63 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\00"
@.str.11 = [33 x i8] c"d174ab98d277d9f5a5611c2c9f419d9f\00"
@.str.12 = [81 x i8] c"12345678901234567890123456789012345678901234567890123456789012345678901234567890\00"
@.str.13 = [33 x i8] c"57edf4a22be3c955ac49da2e2107b67a\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @testit(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i64 @testit(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i64 @testit(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i64 @testit(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%7 = tail call i64 @testit(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i64 @testit(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i64 @testit(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%10 = add i64 %4, %3
%11 = add i64 %10, %5
%12 = add i64 %11, %6
%13 = add i64 %12, %7
%14 = add i64 %13, %8
%15 = mul i64 %14, -4294967296
%16 = add i64 %15, 30064771072
%17 = lshr exact i64 %16, 32
%18 = sub i64 %17, %9
%19 = trunc i64 %18 to i32
%20 = tail call i32 @exit(i32 %19)
unreachable
}