#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 test10() {
  unsigned long long mlen = 35;
  const unsigned long long hlen = 28;
  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[28] = {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};
  const unsigned char m[35] = {
      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};
  const unsigned char c[35] = {
      0xa6, 0x12, 0xb2, 0x9d, 0x91, 0x9b, 0xf5, 0xd4, 0xcc, 0xd7, 0x58, 0xd5,
      0xcc, 0x48, 0x31, 0x9d, 0xbc, 0xec, 0x95, 0x49, 0xd7, 0xd0, 0x06, 0xd4,
      0x88, 0x7b, 0x2c, 0x11, 0x52, 0x69, 0x4a, 0x71, 0xad, 0x11, 0x12};
  const unsigned char t[16] = {0xb5, 0x9b, 0x48, 0x38, 0x5a, 0x85, 0xe8, 0x22,
                               0xff, 0xbf, 0x87, 0x5a, 0x21, 0x17, 0xd9, 0xca};
  return run_test(k, h, hlen, m, mlen, c, t);
}


x86 assembly (clang, -O0):
<test10>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movq   $0x23,-0x8(%rbp)
movq   $0x1c,-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    0xec0(%rip),%eax
mov    %eax,-0x28(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xeba(%rip),%rsi
mov    $0x23,%edx
call   1030 <memcpy@plt>
lea    -0xa0(%rbp),%rdi
lea    0xed2(%rip),%rsi
mov    $0x23,%edx
call   1030 <memcpy@plt>
mov    0xe61(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe5b(%rip),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x70(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0xa0(%rbp),%r9
lea    -0xb0(%rbp),%rax
mov    $0x1c,%edx
mov    %rax,(%rsp)
call   1040 <run_test@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test10>:
sub    $0xb8,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movups 0xf02(%rip),%xmm0
movups %xmm0,0x9c(%rsp)
movaps 0xee7(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xeec(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movl   $0x221100ff,0x7f(%rsp)
22
movaps 0xf18(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movl   $0x1211ad71,0x4f(%rsp)
12
movaps 0xe88(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x20(%rsp),%rdi
lea    0x90(%rsp),%rsi
lea    0x60(%rsp),%rcx
lea    0x30(%rsp),%r9
mov    $0x1c,%edx
mov    $0x23,%r8d
call   1030 <run_test@plt>
add    $0xb8,%rsp
ret

LLVM IR (-O0):
@__const.test10.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test10.h = [28 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB"
@__const.test10.m = [35 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\22"
@__const.test10.c = [35 x i8] c"\A6\12\B2\9D\91\9B\F5\D4\CC\D7X\D5\CCH1\9D\BC\EC\95I\D7\D0\06\D4\88{,\11RiJq\AD\11\12"
@__const.test10.t = [16 x i8] c"\B5\9BH8Z\85\E8\22\FF\BF\87Z!\17\D9\CA"
define i32 @test10() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca [16 x i8]
%4 = alloca [28 x i8]
%5 = alloca [35 x i8]
%6 = alloca [35 x i8]
%7 = alloca [16 x i8]
store i64 35, i64* %1
store i64 28, i64* %2
%8 = bitcast [16 x i8]* %3 to i8*
%9 = bitcast [28 x i8]* %4 to i8*
%10 = bitcast [35 x i8]* %5 to i8*
%11 = bitcast [35 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 [28 x i8], [28 x i8]* %4, i64 0, i64 0
%15 = getelementptr inbounds [35 x i8], [35 x i8]* %5, i64 0, i64 0
%16 = load i64, i64* %1
%17 = getelementptr inbounds [35 x i8], [35 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 28, i8* %15, i64 %16, i8* %17, i8* %18)
ret i32 %19
}

LLVM IR (-O2):
@__const.test10.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test10.h = [28 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00\11\223DUfw\88\99\AA\BB"
@__const.test10.m = [35 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\22"
@__const.test10.c = [35 x i8] c"\A6\12\B2\9D\91\9B\F5\D4\CC\D7X\D5\CCH1\9D\BC\EC\95I\D7\D0\06\D4\88{,\11RiJq\AD\11\12"
@__const.test10.t = [16 x i8] c"\B5\9BH8Z\85\E8\22\FF\BF\87Z!\17\D9\CA"
define i32 @test10() {
%1 = alloca [16 x i8]
%2 = alloca [28 x i8]
%3 = alloca [35 x i8]
%4 = alloca [35 x i8]
%5 = alloca [16 x i8]
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [28 x i8], [28 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [35 x i8], [35 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 28, i8* %8, i64 35, i8* %9, i8* %10)
ret i32 %11
}