#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 long long const, unsigned char const *);
int test5() {
  unsigned long long mlen = 52;
  const unsigned long long clen = 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] = {
      0xCE, 0x4F, 0x04, 0xF8, 0xC4, 0x42, 0x70, 0xC9, 0x57, 0xBF, 0x24,
      0xFC, 0xDA, 0x43, 0xB3, 0x6E, 0xF5, 0x43, 0xBD, 0xD5, 0xF5, 0x82,
      0xA9, 0x71, 0x09, 0xFB, 0xE8, 0xAD, 0xFD, 0x1A, 0x67, 0x52, 0xD2,
      0xFF, 0x67, 0x34, 0x02, 0xB2, 0xCE, 0x1C, 0x74, 0x38, 0xF1, 0x23,
      0xC0, 0x1C, 0xD9, 0xC6, 0xAD, 0xC3, 0x33, 0x9E};
  const unsigned char t[16] = {0x3B, 0x48, 0xC8, 0xD1, 0x1A, 0xCB, 0x57, 0x67,
                               0xAB, 0xBF, 0x3D, 0xDF, 0x28, 0x56, 0xA4, 0x00};
  return run_test(k, h, hlen, m, mlen, c, clen, t);
}


x86 assembly (clang, -O0):
<test5>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movq   $0x34,-0x8(%rbp)
movq   $0x34,-0x10(%rbp)
movq   $0x18,-0x18(%rbp)
mov    0xeb6(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xead(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xeaa(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xea8(%rip),%rsi
mov    $0x34,%edx
call   1030 <memcpy@plt>
lea    -0xd0(%rbp),%rdi
lea    0xed0(%rip),%rsi
mov    $0x34,%edx
call   1030 <memcpy@plt>
mov    0xeff(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xef9(%rip),%rax
mov    %rax,-0xd8(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x90(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0xd0(%rbp),%r9
lea    -0xe0(%rbp),%rax
mov    $0x18,%edx
movq   $0x34,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <run_test@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test5>:
sub    $0xb8,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0xbebaafdeefbeadde,%rax
af ba be
mov    %rax,0x20(%rsp)
movaps 0xf0b(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xeec(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movl   $0xbebafefe,0xb0(%rsp)
fe fe ba be
movaps 0xf13(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movl   $0x9e33c3ad,0x70(%rsp)
9e
movaps 0xf07(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rax
lea    0x30(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x80(%rsp),%rcx
lea    0x40(%rsp),%r9
mov    $0x18,%edx
mov    $0x34,%r8d
push   %rax
push   $0x34
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"\CEO\04\F8\C4Bp\C9W\BF$\FC\DAC\B3n\F5C\BD\D5\F5\82\A9q\09\FB\E8\AD\FD\1AgR\D2\FFg4\02\B2\CE\1Ct8\F1#\C0\1C\D9\C6\AD\C33\9E"
@__const.test5.t = [16 x i8] c";H\C8\D1\1A\CBWg\AB\BF=\DF(V\A4\00"
define i32 @test5() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca [16 x i8]
%5 = alloca [24 x i8]
%6 = alloca [52 x i8]
%7 = alloca [52 x i8]
%8 = alloca [16 x i8]
store i64 52, i64* %1
store i64 52, i64* %2
store i64 24, i64* %3
%9 = bitcast [16 x i8]* %4 to i8*
%10 = bitcast [24 x i8]* %5 to i8*
%11 = bitcast [52 x i8]* %6 to i8*
%12 = bitcast [52 x i8]* %7 to i8*
%13 = bitcast [16 x i8]* %8 to i8*
%14 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%15 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 0
%16 = getelementptr inbounds [52 x i8], [52 x i8]* %6, i64 0, i64 0
%17 = load i64, i64* %1
%18 = getelementptr inbounds [52 x i8], [52 x i8]* %7, i64 0, i64 0
%19 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%20 = call i32 @run_test(i8* %14, i8* %15, i64 24, i8* %16, i64 %17, i8* %18, i64 52, i8* %19)
ret i32 %20
}

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"\CEO\04\F8\C4Bp\C9W\BF$\FC\DAC\B3n\F5C\BD\D5\F5\82\A9q\09\FB\E8\AD\FD\1AgR\D2\FFg4\02\B2\CE\1Ct8\F1#\C0\1C\D9\C6\AD\C33\9E"
@__const.test5.t = [16 x i8] c";H\C8\D1\1A\CBWg\AB\BF=\DF(V\A4\00"
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, i64 52, i8* %10)
ret i32 %11
}