#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 *, unsigned char const *,
             unsigned long long const, unsigned char const *,
             unsigned long long, unsigned char const *, unsigned char const *);
int test5() {
  unsigned long long mlen = 52;
  const unsigned long long hlen = 24;
  const unsigned char k[16] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
                               0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
  const unsigned char h[24] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
                               0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff,
                               0xde, 0xad, 0xbe, 0xef, 0xde, 0xaf, 0xba, 0xbe};
  const unsigned char m[52] = {
      0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
      0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15,
      0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20,
      0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b,
      0x2c, 0x2d, 0x2e, 0x2f, 0xfe, 0xfe, 0xba, 0xbe};
  const unsigned char c[52] = {
      0x06, 0xca, 0xe6, 0xdc, 0x68, 0x16, 0x54, 0x2d, 0x63, 0x17, 0x9f,
      0xcc, 0x2f, 0xb7, 0xfa, 0x64, 0x77, 0xf7, 0x7f, 0x1f, 0xcf, 0x13,
      0x16, 0x3b, 0xd0, 0xd6, 0x70, 0xd4, 0x21, 0xe1, 0x36, 0x0b, 0x9a,
      0x70, 0xa3, 0xed, 0x7e, 0x26, 0x07, 0x16, 0x48, 0xe8, 0x52, 0x7c,
      0x3e, 0x44, 0x92, 0x13, 0x50, 0x55, 0x5a, 0x23};
  const unsigned char t[16] = {0x39, 0xc7, 0xf1, 0x45, 0x0d, 0x1e, 0xd8, 0xd5,
                               0xa1, 0x3f, 0xf4, 0x42, 0xaf, 0xe0, 0xb8, 0x96};
  return run_test(k, h, hlen, m, mlen, c, t);
}


x86 assembly (clang, -O0):
<test5>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movq   $0x34,-0x8(%rbp)
movq   $0x18,-0x10(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec8(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x34,%edx
call   1030 <memcpy@plt>
lea    -0xc0(%rbp),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x34,%edx
call   1030 <memcpy@plt>
mov    0xe6a(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe64(%rip),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x80(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0xc0(%rbp),%r9
lea    -0xd0(%rbp),%rax
mov    $0x18,%edx
mov    %rax,(%rsp)
call   1040 <run_test@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test5>:
sub    $0xc8,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0xbebaafdeefbeadde,%rax
af ba be
mov    %rax,0x30(%rsp)
movaps 0xf1b(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movl   $0xbebafefe,0xc0(%rsp)
fe fe ba be
movaps 0xf23(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf07(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeeb(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movl   $0x235a5550,0x80(%rsp)
50 55 5a 23
movaps 0xe64(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x40(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x90(%rsp),%rcx
lea    0x50(%rsp),%r9
mov    $0x18,%edx
mov    $0x34,%r8d
call   1030 <run_test@plt>
add    $0xc8,%rsp
ret

LLVM IR (-O0):
@__const.test5.k = [16 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test5.h = [24 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\DE\AD\BE\EF\DE\AF\BA\BE"
@__const.test5.m = [52 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./\FE\FE\BA\BE"
@__const.test5.c = [52 x i8] c"\06\CA\E6\DCh\16T-c\17\9F\CC/\B7\FAdw\F7\7F\1F\CF\13\16;\D0\D6p\D4!\E16\0B\9Ap\A3\ED~&\07\16H\E8R|>D\92\13PUZ#"
@__const.test5.t = [16 x i8] c"9\C7\F1E\0D\1E\D8\D5\A1?\F4B\AF\E0\B8\96"
define i32 @test5() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca [16 x i8]
%4 = alloca [24 x i8]
%5 = alloca [52 x i8]
%6 = alloca [52 x i8]
%7 = alloca [16 x i8]
store i64 52, i64* %1
store i64 24, i64* %2
%8 = bitcast [16 x i8]* %3 to i8*
%9 = bitcast [24 x i8]* %4 to i8*
%10 = bitcast [52 x i8]* %5 to i8*
%11 = bitcast [52 x i8]* %6 to i8*
%12 = bitcast [16 x i8]* %7 to i8*
%13 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%14 = getelementptr inbounds [24 x i8], [24 x i8]* %4, i64 0, i64 0
%15 = getelementptr inbounds [52 x i8], [52 x i8]* %5, i64 0, i64 0
%16 = load i64, i64* %1
%17 = getelementptr inbounds [52 x i8], [52 x i8]* %6, i64 0, i64 0
%18 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%19 = call i32 @run_test(i8* %13, i8* %14, i64 24, i8* %15, i64 %16, i8* %17, i8* %18)
ret i32 %19
}

LLVM IR (-O2):
@__const.test5.k = [16 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test5.h = [24 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\DE\AD\BE\EF\DE\AF\BA\BE"
@__const.test5.m = [52 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./\FE\FE\BA\BE"
@__const.test5.c = [52 x i8] c"\06\CA\E6\DCh\16T-c\17\9F\CC/\B7\FAdw\F7\7F\1F\CF\13\16;\D0\D6p\D4!\E16\0B\9Ap\A3\ED~&\07\16H\E8R|>D\92\13PUZ#"
@__const.test5.t = [16 x i8] c"9\C7\F1E\0D\1E\D8\D5\A1?\F4B\AF\E0\B8\96"
define i32 @test5() {
%1 = alloca [16 x i8]
%2 = alloca [24 x i8]
%3 = alloca [52 x i8]
%4 = alloca [52 x i8]
%5 = alloca [16 x i8]
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [24 x i8], [24 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [52 x i8], [52 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [52 x i8], [52 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%11 = call i32 @run_test(i8* %6, i8* %7, i64 24, i8* %8, i64 52, i8* %9, i8* %10)
ret i32 %11
}