#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 test9() {
  unsigned long long mlen = 4 * 16;
  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] = {
      0x52, 0x28, 0x72, 0x54, 0xc9, 0xf8, 0x95, 0x95, 0xf9, 0x61, 0x82,
      0x3a, 0x82, 0x0f, 0x4f, 0x19, 0x3d, 0xbe, 0x57, 0x43, 0x66, 0x2a,
      0x5d, 0x82, 0x75, 0x73, 0x1a, 0xf1, 0x99, 0x88, 0x2c, 0x77, 0x79,
      0x7a, 0x08, 0xad, 0x58, 0xff, 0x15, 0xf6, 0x0c, 0xf1, 0x61, 0xaf,
      0x6a, 0x62, 0x93, 0x72, 0x38, 0x55, 0x39, 0x0a, 0xb4, 0xcc, 0x53,
      0xde, 0xda, 0x49, 0x52, 0x1c, 0xf4, 0xfe, 0xce, 0x0b};
  const unsigned char t[16] = {0x0e, 0xbb, 0x76, 0x72, 0x3b, 0x8c, 0xc8, 0x81,
                               0xf3, 0x57, 0x2a, 0x77, 0x87, 0xa3, 0x4c, 0xfe};
  return run_test(k, h, hlen, m, mlen, c, t);
}


x86 assembly (clang, -O0):
<test9>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movq   $0x40,-0x8(%rbp)
movq   $0x20,-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)
mov    0xebf(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xeb8(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0xc0(%rbp),%rdi
lea    0xee0(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
mov    0xe5f(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xe59(%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    $0x20,%edx
mov    %rax,(%rsp)
call   1040 <run_test@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test9>:
sub    $0xd8,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xf2e(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xf0f(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xf32(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xf13(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xef7(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe5f(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x20(%rsp),%rdi
lea    0x30(%rsp),%rsi
lea    0x90(%rsp),%rcx
lea    0x50(%rsp),%r9
mov    $0x20,%edx
mov    $0x40,%r8d
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"R(rT\C9\F8\95\95\F9a\82:\82\0FO\19=\BEWCf*]\82us\1A\F1\99\88,wyz\08\ADX\FF\15\F6\0C\F1a\AFjb\93r8U9\0A\B4\CCS\DE\DAIR\1C\F4\FE\CE\0B"
@__const.test9.t = [16 x i8] c"\0E\BBvr;\8C\C8\81\F3W*w\87\A3L\FE"
define i32 @test9() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca [16 x i8]
%4 = alloca [32 x i8]
%5 = alloca [64 x i8]
%6 = alloca [64 x i8]
%7 = alloca [16 x i8]
store i64 64, i64* %1
store i64 32, i64* %2
%8 = bitcast [16 x i8]* %3 to i8*
%9 = bitcast [32 x i8]* %4 to i8*
%10 = bitcast [64 x i8]* %5 to i8*
%11 = bitcast [64 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 [32 x i8], [32 x i8]* %4, i64 0, i64 0
%15 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%16 = load i64, i64* %1
%17 = getelementptr inbounds [64 x i8], [64 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 32, i8* %15, i64 %16, i8* %17, i8* %18)
ret i32 %19
}

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"R(rT\C9\F8\95\95\F9a\82:\82\0FO\19=\BEWCf*]\82us\1A\F1\99\88,wyz\08\ADX\FF\15\F6\0C\F1a\AFjb\93r8U9\0A\B4\CCS\DE\DAIR\1C\F4\FE\CE\0B"
@__const.test9.t = [16 x i8] c"\0E\BBvr;\8C\C8\81\F3W*w\87\A3L\FE"
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, i8* %10)
ret i32 %11
}