#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 *, int /*<<< orphan*/ *,
             unsigned long long const, unsigned char const *,
             unsigned long long, unsigned char const *, unsigned char const *);
int test7() {
  unsigned long long mlen = 2 * 16;
  const unsigned long long hlen = 0;
  const unsigned char k[16] = {1, 2,  3,  4,  5,  6,  7,  8,
                               9, 10, 11, 12, 13, 14, 15, 16};
  const unsigned char m[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 c[2 * 16] = {
      0xb8, 0xb2, 0x57, 0x9f, 0x33, 0x21, 0x95, 0x2f, 0x05, 0x16, 0x70,
      0xe0, 0xaf, 0xa4, 0x7f, 0xea, 0x95, 0x74, 0xfd, 0x08, 0x87, 0x61,
      0x67, 0x0f, 0xd4, 0x73, 0x6a, 0xad, 0xcc, 0xdd, 0x5c, 0x73};
  const unsigned char t[16] = {0xd1, 0x4f, 0x79, 0x4e, 0xe7, 0x00, 0x9f, 0xf6,
                               0x72, 0xeb, 0x00, 0x37, 0x37, 0xc2, 0x77, 0xf7};
  return run_test(k, NULL, hlen, m, mlen, c, t);
}


x86 assembly (clang, -O0):
<test7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movq   $0x20,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed8(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xed5(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xed2(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xecf(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xecc(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xec9(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xec6(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe70(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xe6d(%rip),%rax
mov    %rax,-0x68(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x70(%rbp),%rax
xor    %edx,%edx
mov    %rdx,%rsi
mov    %rax,(%rsp)
call   1030 <run_test@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test7>:
sub    $0x78,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xf09(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xf11(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x20(%rsp),%rdi
lea    0x50(%rsp),%rcx
lea    0x30(%rsp),%r9
mov    $0x20,%r8d
xor    %esi,%esi
xor    %edx,%edx
call   1030 <run_test@plt>
add    $0x78,%rsp
ret

LLVM IR (-O0):
@__const.test7.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test7.m = [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.test7.c = [32 x i8] c"\B8\B2W\9F3!\95/\05\16p\E0\AF\A4\7F\EA\95t\FD\08\87ag\0F\D4sj\AD\CC\DD\\s"
@__const.test7.t = [16 x i8] c"\D1OyN\E7\00\9F\F6r\EB\0077\C2w\F7"
define i32 @test7() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca [16 x i8]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [16 x i8]
store i64 32, i64* %1
store i64 0, i64* %2
%7 = bitcast [16 x i8]* %3 to i8*
%8 = bitcast [32 x i8]* %4 to i8*
%9 = bitcast [32 x i8]* %5 to i8*
%10 = bitcast [16 x i8]* %6 to i8*
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%13 = load i64, i64* %1
%14 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%16 = call i32 @run_test(i8* %11, i32* null, i64 0, i8* %12, i64 %13, i8* %14, i8* %15)
ret i32 %16
}

LLVM IR (-O2):
@__const.test7.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test7.m = [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.test7.c = [32 x i8] c"\B8\B2W\9F3!\95/\05\16p\E0\AF\A4\7F\EA\95t\FD\08\87ag\0F\D4sj\AD\CC\DD\\s"
@__const.test7.t = [16 x i8] c"\D1OyN\E7\00\9F\F6r\EB\0077\C2w\F7"
define i32 @test7() {
%1 = alloca [16 x i8]
%2 = alloca [32 x i8]
%3 = alloca [32 x i8]
%4 = alloca [16 x i8]
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%9 = call i32 @run_test(i8* %5, i32* null, i64 0, i8* %6, i64 32, i8* %7, i8* %8)
ret i32 %9
}