#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*/ set_3;
typedef int /*<<< orphan*/ set_2;
typedef int /*<<< orphan*/ set_1;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int is_special_sum_set(int *, int);
void is_special_sum_set_test(void) {
  int set_1[] = {2, 3, 4};
  assert(is_special_sum_set(set_1, (sizeof(set_1) / sizeof((set_1)[0]))));
  int set_2[] = {2, 3, 6};
  assert(!is_special_sum_set(set_2, (sizeof(set_2) / sizeof((set_2)[0]))));
  int set_3[] = {42, 65, 75, 81, 84, 86, 87, 88};
  assert(!is_special_sum_set(set_3, (sizeof(set_3) / sizeof((set_3)[0]))));
}


x86 assembly (clang, -O0):
<is_special_sum_set_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0xc(%rbp)
mov    0xecf(%rip),%eax
mov    %eax,-0x4(%rbp)
lea    -0xc(%rbp),%rdi
mov    $0x3,%esi
call   1030 <is_special_sum_set@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    0xeb4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeb2(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x18(%rbp),%rdi
mov    $0x3,%esi
call   1030 <is_special_sum_set@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    0xe94(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe91(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe8e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe8b(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0x8,%esi
call   1030 <is_special_sum_set@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_special_sum_set_test>:
sub    $0x48,%rsp
mov    0xede(%rip),%eax
mov    %eax,0x18(%rsp)
mov    0xecb(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0x10(%rsp),%rdi
mov    $0x3,%esi
call   1030 <is_special_sum_set@plt>
mov    %eax,%edi
call   1040 <assert@plt>
mov    0xebe(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xeab(%rip),%rax
mov    %rax,(%rsp)
mov    %rsp,%rdi
mov    $0x3,%esi
call   1030 <is_special_sum_set@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe8e(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x8,%esi
call   1030 <is_special_sum_set@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1040 <assert@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.is_special_sum_set_test.set_1 = [3 x i32] [i32 2, i32 3, i32 4]
@__const.is_special_sum_set_test.set_2 = [3 x i32] [i32 2, i32 3, i32 6]
@__const.is_special_sum_set_test.set_3 = [8 x i32] [i32 42, i32 65, i32 75, i32 81, i32 84, i32 86, i32 87, i32 88]
define void @is_special_sum_set_test() {
%1 = alloca [3 x i32]
%2 = alloca [3 x i32]
%3 = alloca [8 x i32]
%4 = bitcast [3 x i32]* %1 to i8*
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%6 = call i32 @is_special_sum_set(i32* %5, i32 3)
%7 = call i32 @assert(i32 %6)
%8 = bitcast [3 x i32]* %2 to i8*
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%10 = call i32 @is_special_sum_set(i32* %9, i32 3)
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = bitcast [8 x i32]* %3 to i8*
%16 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%17 = call i32 @is_special_sum_set(i32* %16, i32 8)
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
ret void
}

LLVM IR (-O2):
@__const.is_special_sum_set_test.set_1 = [3 x i32] [i32 2, i32 3, i32 4]
@__const.is_special_sum_set_test.set_2 = [3 x i32] [i32 2, i32 3, i32 6]
@__const.is_special_sum_set_test.set_3 = [8 x i32] [i32 42, i32 65, i32 75, i32 81, i32 84, i32 86, i32 87, i32 88]
define void @is_special_sum_set_test() {
%1 = alloca [3 x i32]
%2 = alloca [3 x i32]
%3 = alloca [8 x i32]
%4 = bitcast [3 x i32]* %1 to i8*
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%6 = call i32 @is_special_sum_set(i32* %5, i32 3)
%7 = call i32 @assert(i32 %6)
%8 = bitcast [3 x i32]* %2 to i8*
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%10 = call i32 @is_special_sum_set(i32* %9, i32 3)
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = bitcast [8 x i32]* %3 to i8*
%15 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%16 = call i32 @is_special_sum_set(i32* %15, i32 8)
%17 = icmp eq i32 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
ret void
}