#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 run_test(unsigned char const *, int /*<<< orphan*/ *,
             unsigned long long const, unsigned char const *,
             unsigned long long, unsigned char const *,
             unsigned long long const, unsigned char const *);
int test1() {
  unsigned long long mlen = 16;
  const unsigned long long clen = 16;
  const unsigned long long hlen = 0;
  const unsigned char k[16] = {1, 2,  3,  4,  5,  6,  7,  8,
                               9, 10, 11, 12, 13, 14, 15, 16};
  const unsigned char m[16] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
                               0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
  const unsigned char c[16] = {0x6C, 0xAE, 0xC4, 0x40, 0x53, 0xEF, 0x03, 0x7A,
                               0xCD, 0x13, 0x01, 0x39, 0x06, 0xAF, 0xDF, 0xF9};
  const unsigned char t[16] = {0x82, 0xC5, 0x94, 0xF1, 0x2B, 0x15, 0xB1, 0x6E,
                               0x31, 0x72, 0x45, 0xDC, 0x8F, 0x9D, 0xBC, 0x67};
  return run_test(k, NULL, hlen, m, mlen, c, clen, t);
}


x86 assembly (clang, -O0):
<test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movq   $0x10,-0x8(%rbp)
movq   $0x10,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0xec9(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec6(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x40(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0x50(%rbp),%r9
lea    -0x60(%rbp),%rax
xor    %edx,%edx
mov    %rdx,%rsi
movq   $0x10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <run_test@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test1>:
sub    $0x48,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rax
lea    0x30(%rsp),%rdi
lea    0x20(%rsp),%rcx
lea    0x10(%rsp),%r9
mov    $0x10,%r8d
xor    %esi,%esi
xor    %edx,%edx
push   %rax
push   $0x10
call   1030 <run_test@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
@__const.test1.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test1.m = [16 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test1.c = [16 x i8] c"l\AE\C4@S\EF\03z\CD\13\019\06\AF\DF\F9"
@__const.test1.t = [16 x i8] c"\82\C5\94\F1+\15\B1n1rE\DC\8F\9D\BCg"
define i32 @test1() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca [16 x i8]
%5 = alloca [16 x i8]
%6 = alloca [16 x i8]
%7 = alloca [16 x i8]
store i64 16, i64* %1
store i64 16, i64* %2
store i64 0, i64* %3
%8 = bitcast [16 x i8]* %4 to i8*
%9 = bitcast [16 x i8]* %5 to i8*
%10 = bitcast [16 x i8]* %6 to i8*
%11 = bitcast [16 x i8]* %7 to i8*
%12 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%14 = load i64, i64* %1
%15 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%17 = call i32 @run_test(i8* %12, i32* null, i64 0, i8* %13, i64 %14, i8* %15, i64 16, i8* %16)
ret i32 %17
}

LLVM IR (-O2):
@__const.test1.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test1.m = [16 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test1.c = [16 x i8] c"l\AE\C4@S\EF\03z\CD\13\019\06\AF\DF\F9"
@__const.test1.t = [16 x i8] c"\82\C5\94\F1+\15\B1n1rE\DC\8F\9D\BCg"
define i32 @test1() {
%1 = alloca [16 x i8]
%2 = alloca [16 x i8]
%3 = alloca [16 x i8]
%4 = alloca [16 x i8]
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%9 = call i32 @run_test(i8* %5, i32* null, i64 0, i8* %6, i64 16, i8* %7, i64 16, i8* %8)
ret i32 %9
}