#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_set1_epi32(int);
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;
  xmm = _mm_set1_epi32(1);
  if (memcmp(&xmm, &x0, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(2);
  if (memcmp(&xmm, &x1, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(3);
  if (memcmp(&xmm, &x2, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(4);
  if (memcmp(&xmm, &x3, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(5);
  if (memcmp(&xmm, &x4, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(6);
  if (memcmp(&xmm, &x5, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(7);
  if (memcmp(&xmm, &x6, sizeof(xmm)))
    abort();
  xmm = _mm_set1_epi32(8);
  if (memcmp(&xmm, &x7, sizeof(xmm)))
    abort();
  return _mm_setzero_si128();
}


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    $0x1,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1192 <audit_test+0x52>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x2,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     11c2 <audit_test+0x82>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x3,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     11f2 <audit_test+0xb2>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x4,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1222 <audit_test+0xe2>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x5,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1252 <audit_test+0x112>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x6,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     1282 <audit_test+0x142>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x7,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    0x10(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     12b2 <audit_test+0x172>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x8,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x1c(%rbp),%rdi
lea    0x18(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
cmp    $0x0,%rax
je     12e2 <audit_test+0x1a2>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x0,%al
call   1040 <_mm_setzero_si128@plt>
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)
mov    $0x1,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x24(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x2,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x3,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x1c(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x4,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x18(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x5,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x14(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x6,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x7,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
mov    $0x8,%edi
call   1060 <_mm_set1_epi32@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
lea    0x38(%rsp),%rsi
mov    $0x4,%edx
call   1050 <memcmp@plt>
test   %rax,%rax
jne    12b6 <audit_test+0x176>
xor    %eax,%eax
call   1040 <_mm_setzero_si128@plt>
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_set1_epi32(i32 1)
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 %21, label %23
21: ; preds = %8
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %8
%24 = call i32 @_mm_set1_epi32(i32 2)
store i32 %24, i32* %17
%25 = call i64 @memcmp(i32* %17, i32* %10, i32 4)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = call i32 (...) @abort()
unreachable
29: ; preds = %23
%30 = call i32 @_mm_set1_epi32(i32 3)
store i32 %30, i32* %17
%31 = call i64 @memcmp(i32* %17, i32* %11, i32 4)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 (...) @abort()
unreachable
35: ; preds = %29
%36 = call i32 @_mm_set1_epi32(i32 4)
store i32 %36, i32* %17
%37 = call i64 @memcmp(i32* %17, i32* %12, i32 4)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 (...) @abort()
unreachable
41: ; preds = %35
%42 = call i32 @_mm_set1_epi32(i32 5)
store i32 %42, i32* %17
%43 = call i64 @memcmp(i32* %17, i32* %13, i32 4)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 (...) @abort()
unreachable
47: ; preds = %41
%48 = call i32 @_mm_set1_epi32(i32 6)
store i32 %48, i32* %17
%49 = call i64 @memcmp(i32* %17, i32* %14, i32 4)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = call i32 (...) @abort()
unreachable
53: ; preds = %47
%54 = call i32 @_mm_set1_epi32(i32 7)
store i32 %54, i32* %17
%55 = call i64 @memcmp(i32* %17, i32* %15, i32 4)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = call i32 (...) @abort()
unreachable
59: ; preds = %53
%60 = call i32 @_mm_set1_epi32(i32 8)
store i32 %60, i32* %17
%61 = call i64 @memcmp(i32* %17, i32* %16, i32 4)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 (...) @abort()
unreachable
65: ; preds = %59
%66 = call i32 (...) @_mm_setzero_si128()
ret i32 %66
}

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_set1_epi32(i32 1)
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 %24, label %22
22: ; preds = %8
%23 = call i32 (...) @abort()
unreachable
24: ; preds = %8
%25 = call i32 @_mm_set1_epi32(i32 2)
store i32 %25, i32* %17
%26 = call i64 @memcmp(i32* %17, i32* %10, i32 4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %24
%29 = call i32 (...) @abort()
unreachable
30: ; preds = %24
%31 = call i32 @_mm_set1_epi32(i32 3)
store i32 %31, i32* %17
%32 = call i64 @memcmp(i32* %17, i32* %11, i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %30
%35 = call i32 (...) @abort()
unreachable
36: ; preds = %30
%37 = call i32 @_mm_set1_epi32(i32 4)
store i32 %37, i32* %17
%38 = call i64 @memcmp(i32* %17, i32* %12, i32 4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %42, label %40
40: ; preds = %36
%41 = call i32 (...) @abort()
unreachable
42: ; preds = %36
%43 = call i32 @_mm_set1_epi32(i32 5)
store i32 %43, i32* %17
%44 = call i64 @memcmp(i32* %17, i32* %13, i32 4)
%45 = icmp eq i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %42
%47 = call i32 (...) @abort()
unreachable
48: ; preds = %42
%49 = call i32 @_mm_set1_epi32(i32 6)
store i32 %49, i32* %17
%50 = call i64 @memcmp(i32* %17, i32* %14, i32 4)
%51 = icmp eq i64 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %48
%53 = call i32 (...) @abort()
unreachable
54: ; preds = %48
%55 = call i32 @_mm_set1_epi32(i32 7)
store i32 %55, i32* %17
%56 = call i64 @memcmp(i32* %17, i32* %15, i32 4)
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %54
%59 = call i32 (...) @abort()
unreachable
60: ; preds = %54
%61 = call i32 @_mm_set1_epi32(i32 8)
store i32 %61, i32* %17
%62 = call i64 @memcmp(i32* %17, i32* %16, i32 4)
%63 = icmp eq i64 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %60
%65 = call i32 (...) @abort()
unreachable
66: ; preds = %60
%67 = call i32 (...) @_mm_setzero_si128()
ret i32 %67
}