#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*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ test_output(int, int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/, int, int /*<<< orphan*/, int,
                               int, int);
void simpletest(char *password, char *salt, char *data, uint32_t memlen) {
  test_output(64, (uint8_t *)password, strlen(password), (uint8_t *)salt,
              strlen(salt), (uint8_t *)data, strlen(data), memlen, 4096, 0,
              16384, 1, 1);
}


x86 assembly (clang, -O0):
<simpletest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%rcx
mov    -0x2c(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    %eax,%r10d
mov    -0x1c(%rbp),%eax
mov    $0x40,%edi
xor    %r11d,%r11d
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
movl   $0x1000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x4000,0x20(%rsp)
movl   $0x1,0x28(%rsp)
movl   $0x1,0x30(%rsp)
call   1030 <test_output@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simpletest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %eax,%r13d
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
sub    $0x8,%rsp
mov    $0x40,%edi
mov    %rbx,%rsi
mov    %r13d,%edx
mov    %r12,%rcx
mov    %ebp,%r8d
mov    %r15,%r9
push   $0x1
push   $0x1
push   $0x4000
push   $0x0
push   $0x1000
push   %r14
push   %rax
call   1030 <test_output@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @simpletest(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = bitcast i8* %9 to i32*
%11 = load i8*, i8** %5
%12 = call i32 @strlen(i8* %11)
%13 = load i8*, i8** %6
%14 = bitcast i8* %13 to i32*
%15 = load i8*, i8** %6
%16 = call i32 @strlen(i8* %15)
%17 = load i8*, i8** %7
%18 = bitcast i8* %17 to i32*
%19 = load i8*, i8** %7
%20 = call i32 @strlen(i8* %19)
%21 = load i32, i32* %8
%22 = call i32 @test_output(i32 64, i32* %10, i32 %12, i32* %14, i32 %16, i32* %18, i32 %20, i32 %21, i32 4096, i32 0, i32 16384, i32 1, i32 1)
ret void
}

LLVM IR (-O2):
define void @simpletest(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = bitcast i8* %0 to i32*
%6 = tail call i32 @strlen(i8* %0)
%7 = bitcast i8* %1 to i32*
%8 = tail call i32 @strlen(i8* %1)
%9 = bitcast i8* %2 to i32*
%10 = tail call i32 @strlen(i8* %2)
%11 = tail call i32 @test_output(i32 64, i32* %5, i32 %6, i32* %7, i32 %8, i32* %9, i32 %10, i32 %3, i32 4096, i32 0, i32 16384, i32 1, i32 1)
ret void
}