#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 */
typedef int /*<<< orphan*/ xmm;
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_setzero_si128();
int /*<<< orphan*/ abort();
scalar_t__ memcmp(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
__m128i audit_test(__m128i x0, __m128i x1, __m128i x2, __m128i x3, __m128i x4,
                   __m128i x5, __m128i x6, __m128i x7) {
  __m128i xmm = _mm_setzero_si128();
  if (memcmp(&xmm, &x0, sizeof(xmm)) || memcmp(&xmm, &x1, sizeof(xmm)) ||
      memcmp(&xmm, &x2, sizeof(xmm)) || memcmp(&xmm, &x3, sizeof(xmm)) ||
      memcmp(&xmm, &x4, sizeof(xmm)) || memcmp(&xmm, &x5, sizeof(xmm)) ||
      memcmp(&xmm, &x6, sizeof(xmm)) || memcmp(&xmm, &x7, sizeof(xmm)))
    abort();
  return xmm;
}


x86 assembly (clang, -O0):
<audit_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    $0x0,%al
call   1040 <_mm_setzero_si128@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
jne    123c <audit_test+0x10c>
lea    -0x1c(%rbp),%rdi
lea    0x18(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1243 <audit_test+0x113>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<audit_test>:
sub    $0x28,%rsp
mov    %edi,0x24(%rsp)
mov    %esi,0x20(%rsp)
mov    %edx,0x1c(%rsp)
mov    %ecx,0x18(%rsp)
mov    %r8d,0x14(%rsp)
mov    %r9d,0x10(%rsp)
xor    %eax,%eax
call   1040 <_mm_setzero_si128@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x24(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x1c(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x18(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x14(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
lea    0xc(%rsp),%rdi
lea    0x38(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    1236 <audit_test+0x106>
mov    0xc(%rsp),%eax
add    $0x28,%rsp
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @audit_test(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%18 = call i32 (...) @_mm_setzero_si128()
store i32 %18, i32* %17
%19 = call i64 @memcmp(i32* %17, i32* %9, i32 4)
%20 = icmp ne i64 %19, 0
br i1 %20, label %42, label %21
21: ; preds = %8
%22 = call i64 @memcmp(i32* %17, i32* %10, i32 4)
%23 = icmp ne i64 %22, 0
br i1 %23, label %42, label %24
24: ; preds = %21
%25 = call i64 @memcmp(i32* %17, i32* %11, i32 4)
%26 = icmp ne i64 %25, 0
br i1 %26, label %42, label %27
27: ; preds = %24
%28 = call i64 @memcmp(i32* %17, i32* %12, i32 4)
%29 = icmp ne i64 %28, 0
br i1 %29, label %42, label %30
30: ; preds = %27
%31 = call i64 @memcmp(i32* %17, i32* %13, i32 4)
%32 = icmp ne i64 %31, 0
br i1 %32, label %42, label %33
33: ; preds = %30
%34 = call i64 @memcmp(i32* %17, i32* %14, i32 4)
%35 = icmp ne i64 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %33
%37 = call i64 @memcmp(i32* %17, i32* %15, i32 4)
%38 = icmp ne i64 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = call i64 @memcmp(i32* %17, i32* %16, i32 4)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39, %36, %33, %30, %27, %24, %21, %8
%43 = call i32 (...) @abort()
unreachable
44: ; preds = %39
%45 = load i32, i32* %17
ret i32 %45
}

LLVM IR (-O2):
define i32 @audit_test(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%18 = bitcast i32* %17 to i8*
%19 = tail call i32 (...) @_mm_setzero_si128()
store i32 %19, i32* %17
%20 = call i64 @memcmp(i32* %17, i32* %9, i32 4)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %43
22: ; preds = %8
%23 = call i64 @memcmp(i32* %17, i32* %10, i32 4)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %22
%26 = call i64 @memcmp(i32* %17, i32* %11, i32 4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = call i64 @memcmp(i32* %17, i32* %12, i32 4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = call i64 @memcmp(i32* %17, i32* %13, i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %43
34: ; preds = %31
%35 = call i64 @memcmp(i32* %17, i32* %14, i32 4)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = call i64 @memcmp(i32* %17, i32* %15, i32 4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = call i64 @memcmp(i32* %17, i32* %16, i32 4)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40, %37, %34, %31, %28, %25, %22, %8
%44 = call i32 (...) @abort()
unreachable
45: ; preds = %40
%46 = load i32, i32* %17
ret i32 %46
}