#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 test9() {
  unsigned long long mlen = 4 * 16;
  const unsigned long long clen = mlen;
  const unsigned long long hlen = 2 * 16;
  const unsigned char k[16] = {1, 2,  3,  4,  5,  6,  7,  8,
                               9, 10, 11, 12, 13, 14, 15, 16};
  const unsigned char h[2 * 16] = {
      0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa,
      0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
      0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
  const unsigned char m[4 * 16] = {
      0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa,
      0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
      0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x00,
      0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb,
      0xcc, 0xdd, 0xee, 0xff, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66,
      0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
  const unsigned char c[4 * 16] = {
      0x1e, 0x50, 0xa9, 0xc6, 0xa4, 0x73, 0x0f, 0xcb, 0x07, 0x22, 0x4c,
      0xfe, 0x34, 0x77, 0xc1, 0x33, 0x0e, 0x5b, 0xb4, 0xfc, 0xfd, 0xe7,
      0x0d, 0xb5, 0xf3, 0xce, 0x76, 0x12, 0xbc, 0x8b, 0xc7, 0x5d, 0xc7,
      0xd4, 0x40, 0xf9, 0xd8, 0x05, 0x3e, 0x50, 0xd6, 0xcf, 0x38, 0x99,
      0x1f, 0x16, 0x8c, 0x18, 0xbf, 0xe1, 0x89, 0x1e, 0xe0, 0x65, 0x51,
      0xf0, 0x59, 0xa2, 0x8d, 0xa8, 0xa2, 0xb2, 0x79, 0x82};
  const unsigned char t[16] = {0x29, 0xa6, 0x28, 0xd4, 0x8b, 0xd3, 0x33, 0xcd,
                               0x99, 0xe1, 0xca, 0x49, 0x7e, 0x08, 0x9f, 0xaa};
  return run_test(k, h, hlen, m, mlen, c, clen, t);
}


x86 assembly (clang, -O0):
<test9>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movq   $0x40,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movq   $0x20,-0x18(%rbp)
mov    0xeb6(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xead(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0xd0(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
mov    0xe54(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0xe4e(%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
mov    -0x10(%rbp),%r10
lea    -0xe0(%rbp),%rax
mov    $0x20,%edx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <run_test@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test9>:
sub    $0xc8,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xf2e(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xf0f(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xf32(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf16(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe62(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rax
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x80(%rsp),%rcx
lea    0x40(%rsp),%r9
mov    $0x20,%edx
mov    $0x40,%r8d
push   %rax
push   $0x40
call   1030 <run_test@plt>
add    $0xd8,%rsp
ret

LLVM IR (-O0):
@__const.test9.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test9.h = [32 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test9.m = [64 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test9.c = [64 x i8] c"\1EP\A9\C6\A4s\0F\CB\07\22L\FE4w\C13\0E[\B4\FC\FD\E7\0D\B5\F3\CEv\12\BC\8B\C7]\C7\D4@\F9\D8\05>P\D6\CF8\99\1F\16\8C\18\BF\E1\89\1E\E0eQ\F0Y\A2\8D\A8\A2\B2y\82"
@__const.test9.t = [16 x i8] c")\A6(\D4\8B\D33\CD\99\E1\CAI~\08\9F\AA"
define i32 @test9() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca [16 x i8]
%5 = alloca [32 x i8]
%6 = alloca [64 x i8]
%7 = alloca [64 x i8]
%8 = alloca [16 x i8]
store i64 64, i64* %1
%9 = load i64, i64* %1
store i64 %9, i64* %2
store i64 32, i64* %3
%10 = bitcast [16 x i8]* %4 to i8*
%11 = bitcast [32 x i8]* %5 to i8*
%12 = bitcast [64 x i8]* %6 to i8*
%13 = bitcast [64 x i8]* %7 to i8*
%14 = bitcast [16 x i8]* %8 to i8*
%15 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%16 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [64 x i8], [64 x i8]* %6, i64 0, i64 0
%18 = load i64, i64* %1
%19 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%20 = load i64, i64* %2
%21 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%22 = call i32 @run_test(i8* %15, i8* %16, i64 32, i8* %17, i64 %18, i8* %19, i64 %20, i8* %21)
ret i32 %22
}

LLVM IR (-O2):
@__const.test9.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test9.h = [32 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test9.m = [64 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF"
@__const.test9.c = [64 x i8] c"\1EP\A9\C6\A4s\0F\CB\07\22L\FE4w\C13\0E[\B4\FC\FD\E7\0D\B5\F3\CEv\12\BC\8B\C7]\C7\D4@\F9\D8\05>P\D6\CF8\99\1F\16\8C\18\BF\E1\89\1E\E0eQ\F0Y\A2\8D\A8\A2\B2y\82"
@__const.test9.t = [16 x i8] c")\A6(\D4\8B\D33\CD\99\E1\CAI~\08\9F\AA"
define i32 @test9() {
%1 = alloca [16 x i8]
%2 = alloca [32 x i8]
%3 = alloca [64 x i8]
%4 = alloca [64 x i8]
%5 = alloca [16 x i8]
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [64 x i8], [64 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 32, i8* %8, i64 64, i8* %9, i64 64, i8* %10)
ret i32 %11
}