#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 /*<<< orphan*/ abort();
int /*<<< orphan*/ check_vect();
int condition_reduction(int *, int);
int main(void) {
  int a[30] = {67, 32, 45, 43, 21, -11, 12, 3,  4,  5,  6,  76, -32, 56, -32,
               -1, 4,  5,  6,  99, 43,  22, -3, 22, 16, 34, 55, 31,  87, 324};
  check_vect();
  int ret = condition_reduction(a, 16);
  if (ret != -3)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x78,%edx
call   1050 <memcpy@plt>
mov    $0x0,%al
call   1040 <check_vect@plt>
lea    -0x80(%rbp),%rdi
mov    $0x10,%esi
call   1060 <condition_reduction@plt>
mov    %eax,-0x84(%rbp)
cmpl   $0xfffffffd,-0x84(%rbp)
je     1196 <main+0x56>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
mov    0xf35(%rip),%rax
mov    %rax,0x70(%rsp)
movaps 0xf19(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xefd(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee1(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe8d(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe71(%rip),%xmm0
movaps %xmm0,(%rsp)
xor    %eax,%eax
call   1040 <check_vect@plt>
mov    %rsp,%rdi
mov    $0x10,%esi
call   1050 <condition_reduction@plt>
cmp    $0xfffffffd,%eax
jne    11b3 <main+0x83>
xor    %eax,%eax
add    $0x78,%rsp
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@__const.main.a = [30 x i32] [i32 67, i32 32, i32 45, i32 43, i32 21, i32 -11, i32 12, i32 3, i32 4, i32 5, i32 6, i32 76, i32 -32, i32 56, i32 -32, i32 -1, i32 4, i32 5, i32 6, i32 99, i32 43, i32 22, i32 -3, i32 22, i32 16, i32 34, i32 55, i32 31, i32 87, i32 324]
define i32 @main() {
%1 = alloca i32
%2 = alloca [30 x i32]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [30 x i32]* %2 to i8*
%5 = call i32 (...) @check_vect()
%6 = getelementptr inbounds [30 x i32], [30 x i32]* %2, i64 0, i64 0
%7 = call i32 @condition_reduction(i32* %6, i32 16)
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = icmp ne i32 %8, -3
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [30 x i32] [i32 67, i32 32, i32 45, i32 43, i32 21, i32 -11, i32 12, i32 3, i32 4, i32 5, i32 6, i32 76, i32 -32, i32 56, i32 -32, i32 -1, i32 4, i32 5, i32 6, i32 99, i32 43, i32 22, i32 -3, i32 22, i32 16, i32 34, i32 55, i32 31, i32 87, i32 324]
define i32 @main() {
%1 = alloca [30 x i32]
%2 = bitcast [30 x i32]* %1 to i8*
%3 = tail call i32 (...) @check_vect()
%4 = getelementptr inbounds [30 x i32], [30 x i32]* %1, i64 0, i64 0
%5 = call i32 @condition_reduction(i32* %4, i32 16)
%6 = icmp eq i32 %5, -3
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %0
ret i32 0
}