#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 long long const, unsigned char const *);
int test8() {
  unsigned long long mlen = 3 * 16;
  const unsigned long long clen = mlen;
  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[3 * 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};
  const unsigned char c[3 * 16] = {
      0xb0, 0xac, 0x1a, 0xc1, 0x1d, 0xca, 0x1f, 0x64, 0xda, 0x20, 0xd1, 0x0a,
      0x58, 0x3b, 0x14, 0xa9, 0x79, 0x2a, 0xc9, 0x1e, 0xab, 0xd8, 0x0c, 0x1e,
      0x1e, 0x38, 0x81, 0x68, 0x0b, 0xc2, 0x2e, 0xc8, 0x51, 0xc9, 0xd7, 0x5d,
      0xe2, 0x69, 0x3b, 0x53, 0x81, 0x29, 0x1a, 0xac, 0xdc, 0x04, 0x2c, 0xc2};
  const unsigned char t[16] = {0x31, 0xe0, 0x78, 0x2b, 0x3a, 0xdd, 0xc2, 0x97,
                               0xbf, 0x6d, 0x55, 0x61, 0xc2, 0xf0, 0x43, 0xb1};
  return run_test(k, NULL, hlen, m, mlen, c, clen, t);
}


x86 assembly (clang, -O0):
<test8>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movq   $0x30,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0xeb6(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xebc(%rip),%rsi
mov    $0x30,%edx
call   1030 <memcpy@plt>
lea    -0x90(%rbp),%rdi
lea    0xed4(%rip),%rsi
mov    $0x30,%edx
call   1030 <memcpy@plt>
mov    0xe83(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe7d(%rip),%rax
mov    %rax,-0x98(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x60(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    -0x90(%rbp),%r9
mov    -0x10(%rbp),%r10
lea    -0xa0(%rbp),%rax
xor    %edx,%edx
mov    %rdx,%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <run_test@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test8>:
sub    $0x88,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xf16(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xefa(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xf22(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe9e(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rax
lea    0x10(%rsp),%rdi
lea    0x50(%rsp),%rcx
lea    0x20(%rsp),%r9
mov    $0x30,%r8d
xor    %esi,%esi
xor    %edx,%edx
push   %rax
push   $0x30
call   1030 <run_test@plt>
add    $0x98,%rsp
ret

LLVM IR (-O0):
@__const.test8.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test8.m = [48 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"
@__const.test8.c = [48 x i8] c"\B0\AC\1A\C1\1D\CA\1Fd\DA \D1\0AX;\14\A9y*\C9\1E\AB\D8\0C\1E\1E8\81h\0B\C2.\C8Q\C9\D7]\E2i;S\81)\1A\AC\DC\04,\C2"
@__const.test8.t = [16 x i8] c"1\E0x+:\DD\C2\97\BFmUa\C2\F0C\B1"
define i32 @test8() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca [16 x i8]
%5 = alloca [48 x i8]
%6 = alloca [48 x i8]
%7 = alloca [16 x i8]
store i64 48, i64* %1
%8 = load i64, i64* %1
store i64 %8, i64* %2
store i64 0, i64* %3
%9 = bitcast [16 x i8]* %4 to i8*
%10 = bitcast [48 x i8]* %5 to i8*
%11 = bitcast [48 x i8]* %6 to i8*
%12 = bitcast [16 x i8]* %7 to i8*
%13 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [48 x i8], [48 x i8]* %5, i64 0, i64 0
%15 = load i64, i64* %1
%16 = getelementptr inbounds [48 x i8], [48 x i8]* %6, i64 0, i64 0
%17 = load i64, i64* %2
%18 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%19 = call i32 @run_test(i8* %13, i32* null, i64 0, i8* %14, i64 %15, i8* %16, i64 %17, i8* %18)
ret i32 %19
}

LLVM IR (-O2):
@__const.test8.k = [16 x i8] c"\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10"
@__const.test8.m = [48 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"
@__const.test8.c = [48 x i8] c"\B0\AC\1A\C1\1D\CA\1Fd\DA \D1\0AX;\14\A9y*\C9\1E\AB\D8\0C\1E\1E8\81h\0B\C2.\C8Q\C9\D7]\E2i;S\81)\1A\AC\DC\04,\C2"
@__const.test8.t = [16 x i8] c"1\E0x+:\DD\C2\97\BFmUa\C2\F0C\B1"
define i32 @test8() {
%1 = alloca [16 x i8]
%2 = alloca [48 x i8]
%3 = alloca [48 x i8]
%4 = alloca [16 x i8]
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [48 x i8], [48 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [48 x i8], [48 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 48, i8* %7, i64 48, i8* %8)
ret i32 %9
}