#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*/ sigset_t;
typedef int /*<<< orphan*/ siglist;

/* Variables and functions */
int SIGABRT;
int SIGALRM;
int SIGBUS;
int SIGCHLD;
int SIGCONT;
int SIGFPE;
int SIGHUP;
int SIGILL;
int SIGINT;
int SIGPIPE;
int SIGQUIT;
int SIGSEGV;
int SIGSYS;
int SIGTERM;
int SIGTRAP;
int SIGTSTP;
int SIGTTIN;
int SIGTTOU;
int SIGURG;
int SIGUSR1;
int SIGUSR2;
int SIGVTALRM;
int SIGXCPU;
int SIGXFSZ;
scalar_t__ sigismember(int /*<<< orphan*/ *, int);
int is_empty(sigset_t *set) {
  int i;
  int siglist[] = {SIGABRT, SIGALRM, SIGBUS,  SIGCHLD,   SIGCONT, SIGFPE,
                   SIGHUP,  SIGILL,  SIGINT,  SIGPIPE,   SIGQUIT, SIGSEGV,
                   SIGTERM, SIGTSTP, SIGTTIN, SIGTTOU,   SIGUSR1, SIGUSR2,
                   SIGSYS,  SIGTRAP, SIGURG,  SIGVTALRM, SIGXCPU, SIGXFSZ};
  for (i = 0; i < (int)(sizeof(siglist) / sizeof(siglist[0])); i++) {
    if (sigismember(set, siglist[i]) != 0)
      return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<is_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    0x2e0a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
mov    0x2e86(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x7c(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
mov    0x2e3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    0x2e72(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2e36(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x68(%rbp)
mov    0x2df6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    0x2e2a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2dbe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2e02(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2e16(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2df2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2dbe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2daa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2dfe(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2dea(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2d66(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d4a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2d1e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2d2a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2d3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2d0a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d56(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x18,-0x14(%rbp)
jge    128a <is_empty+0x17a>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%esi
call   1030 <sigismember@plt>
cmp    $0x0,%rax
je     1277 <is_empty+0x167>
movl   $0x0,-0x4(%rbp)
jmp    1291 <is_empty+0x181>
jmp    127c <is_empty+0x16c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1246 <is_empty+0x136>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_empty>:
push   %rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    %rdi,%rbx
mov    0x2e0e(%rip),%rax
mov    (%rax),%esi
mov    %esi,(%rsp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x2ead(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2e40(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2e36(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2e81(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2df4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2e27(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2dba(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2dfd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2e10(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2deb(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2db6(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2da1(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2df4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
mov    0x2ddf(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2d5a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x44(%rsp)
mov    0x2d3d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x48(%rsp)
mov    0x2d10(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4c(%rsp)
mov    0x2d1b(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x50(%rsp)
mov    0x2d2e(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x54(%rsp)
mov    0x2cf9(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x58(%rsp)
mov    0x2d44(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x5c(%rsp)
call   1030 <sigismember@plt>
xor    %r14d,%r14d
test   %rax,%rax
jne    1292 <is_empty+0x182>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    $0x18,%rbp
je     128c <is_empty+0x17c>
mov    (%rsp,%rbp,4),%esi
mov    %rbx,%rdi
call   1030 <sigismember@plt>
add    $0x1,%rbp
test   %rax,%rax
je     1270 <is_empty+0x160>
jmp    1292 <is_empty+0x182>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@SIGABRT = global i32 0
@SIGALRM = global i32 0
@SIGBUS = global i32 0
@SIGCHLD = global i32 0
@SIGCONT = global i32 0
@SIGFPE = global i32 0
@SIGHUP = global i32 0
@SIGILL = global i32 0
@SIGINT = global i32 0
@SIGPIPE = global i32 0
@SIGQUIT = global i32 0
@SIGSEGV = global i32 0
@SIGTERM = global i32 0
@SIGTSTP = global i32 0
@SIGTTIN = global i32 0
@SIGTTOU = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
@SIGSYS = global i32 0
@SIGTRAP = global i32 0
@SIGURG = global i32 0
@SIGVTALRM = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
define i32 @is_empty(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca [24 x i32]
store i32* %0, i32** %3
%6 = getelementptr inbounds [24 x i32], [24 x i32]* %5, i64 0, i64 0
%7 = load i32, i32* @SIGABRT
store i32 %7, i32* %6
%8 = getelementptr inbounds i32, i32* %6, i64 1
%9 = load i32, i32* @SIGALRM
store i32 %9, i32* %8
%10 = getelementptr inbounds i32, i32* %8, i64 1
%11 = load i32, i32* @SIGBUS
store i32 %11, i32* %10
%12 = getelementptr inbounds i32, i32* %10, i64 1
%13 = load i32, i32* @SIGCHLD
store i32 %13, i32* %12
%14 = getelementptr inbounds i32, i32* %12, i64 1
%15 = load i32, i32* @SIGCONT
store i32 %15, i32* %14
%16 = getelementptr inbounds i32, i32* %14, i64 1
%17 = load i32, i32* @SIGFPE
store i32 %17, i32* %16
%18 = getelementptr inbounds i32, i32* %16, i64 1
%19 = load i32, i32* @SIGHUP
store i32 %19, i32* %18
%20 = getelementptr inbounds i32, i32* %18, i64 1
%21 = load i32, i32* @SIGILL
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
%23 = load i32, i32* @SIGINT
store i32 %23, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* @SIGPIPE
store i32 %25, i32* %24
%26 = getelementptr inbounds i32, i32* %24, i64 1
%27 = load i32, i32* @SIGQUIT
store i32 %27, i32* %26
%28 = getelementptr inbounds i32, i32* %26, i64 1
%29 = load i32, i32* @SIGSEGV
store i32 %29, i32* %28
%30 = getelementptr inbounds i32, i32* %28, i64 1
%31 = load i32, i32* @SIGTERM
store i32 %31, i32* %30
%32 = getelementptr inbounds i32, i32* %30, i64 1
%33 = load i32, i32* @SIGTSTP
store i32 %33, i32* %32
%34 = getelementptr inbounds i32, i32* %32, i64 1
%35 = load i32, i32* @SIGTTIN
store i32 %35, i32* %34
%36 = getelementptr inbounds i32, i32* %34, i64 1
%37 = load i32, i32* @SIGTTOU
store i32 %37, i32* %36
%38 = getelementptr inbounds i32, i32* %36, i64 1
%39 = load i32, i32* @SIGUSR1
store i32 %39, i32* %38
%40 = getelementptr inbounds i32, i32* %38, i64 1
%41 = load i32, i32* @SIGUSR2
store i32 %41, i32* %40
%42 = getelementptr inbounds i32, i32* %40, i64 1
%43 = load i32, i32* @SIGSYS
store i32 %43, i32* %42
%44 = getelementptr inbounds i32, i32* %42, i64 1
%45 = load i32, i32* @SIGTRAP
store i32 %45, i32* %44
%46 = getelementptr inbounds i32, i32* %44, i64 1
%47 = load i32, i32* @SIGURG
store i32 %47, i32* %46
%48 = getelementptr inbounds i32, i32* %46, i64 1
%49 = load i32, i32* @SIGVTALRM
store i32 %49, i32* %48
%50 = getelementptr inbounds i32, i32* %48, i64 1
%51 = load i32, i32* @SIGXCPU
store i32 %51, i32* %50
%52 = getelementptr inbounds i32, i32* %50, i64 1
%53 = load i32, i32* @SIGXFSZ
store i32 %53, i32* %52
store i32 0, i32* %4
br label %54
54: ; preds = %67, %1
%55 = load i32, i32* %4
%56 = icmp slt i32 %55, 24
br i1 %56, label %57, label %70
57: ; preds = %54
%58 = load i32*, i32** %3
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [24 x i32], [24 x i32]* %5, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = call i64 @sigismember(i32* %58, i32 %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %57
store i32 0, i32* %2
br label %71
66: ; preds = %57
br label %67
67: ; preds = %66
%68 = load i32, i32* %4
%69 = add nsw i32 %68, 1
store i32 %69, i32* %4
br label %54
70: ; preds = %54
store i32 1, i32* %2
br label %71
71: ; preds = %70, %65
%72 = load i32, i32* %2
ret i32 %72
}

LLVM IR (-O2):
@SIGABRT = global i32 0
@SIGALRM = global i32 0
@SIGBUS = global i32 0
@SIGCHLD = global i32 0
@SIGCONT = global i32 0
@SIGFPE = global i32 0
@SIGHUP = global i32 0
@SIGILL = global i32 0
@SIGINT = global i32 0
@SIGPIPE = global i32 0
@SIGQUIT = global i32 0
@SIGSEGV = global i32 0
@SIGTERM = global i32 0
@SIGTSTP = global i32 0
@SIGTTIN = global i32 0
@SIGTTOU = global i32 0
@SIGUSR1 = global i32 0
@SIGUSR2 = global i32 0
@SIGSYS = global i32 0
@SIGTRAP = global i32 0
@SIGURG = global i32 0
@SIGVTALRM = global i32 0
@SIGXCPU = global i32 0
@SIGXFSZ = global i32 0
define i32 @is_empty(i32* %0) {
%2 = alloca [24 x i32]
%3 = bitcast [24 x i32]* %2 to i8*
%4 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 0
%5 = load i32, i32* @SIGABRT
store i32 %5, i32* %4
%6 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 1
%7 = load i32, i32* @SIGALRM
store i32 %7, i32* %6
%8 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 2
%9 = load i32, i32* @SIGBUS
store i32 %9, i32* %8
%10 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 3
%11 = load i32, i32* @SIGCHLD
store i32 %11, i32* %10
%12 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 4
%13 = load i32, i32* @SIGCONT
store i32 %13, i32* %12
%14 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 5
%15 = load i32, i32* @SIGFPE
store i32 %15, i32* %14
%16 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 6
%17 = load i32, i32* @SIGHUP
store i32 %17, i32* %16
%18 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 7
%19 = load i32, i32* @SIGILL
store i32 %19, i32* %18
%20 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 8
%21 = load i32, i32* @SIGINT
store i32 %21, i32* %20
%22 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 9
%23 = load i32, i32* @SIGPIPE
store i32 %23, i32* %22
%24 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 10
%25 = load i32, i32* @SIGQUIT
store i32 %25, i32* %24
%26 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 11
%27 = load i32, i32* @SIGSEGV
store i32 %27, i32* %26
%28 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 12
%29 = load i32, i32* @SIGTERM
store i32 %29, i32* %28
%30 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 13
%31 = load i32, i32* @SIGTSTP
store i32 %31, i32* %30
%32 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 14
%33 = load i32, i32* @SIGTTIN
store i32 %33, i32* %32
%34 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 15
%35 = load i32, i32* @SIGTTOU
store i32 %35, i32* %34
%36 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 16
%37 = load i32, i32* @SIGUSR1
store i32 %37, i32* %36
%38 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 17
%39 = load i32, i32* @SIGUSR2
store i32 %39, i32* %38
%40 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 18
%41 = load i32, i32* @SIGSYS
store i32 %41, i32* %40
%42 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 19
%43 = load i32, i32* @SIGTRAP
store i32 %43, i32* %42
%44 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 20
%45 = load i32, i32* @SIGURG
store i32 %45, i32* %44
%46 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 21
%47 = load i32, i32* @SIGVTALRM
store i32 %47, i32* %46
%48 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 22
%49 = load i32, i32* @SIGXCPU
store i32 %49, i32* %48
%50 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 23
%51 = load i32, i32* @SIGXFSZ
store i32 %51, i32* %50
%52 = tail call i64 @sigismember(i32* %0, i32 %5)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %63
54: ; preds = %1, %58
%55 = phi i64 [ %56, %58 ], [ 0, %1 ]
%56 = add nuw nsw i64 %55, 1
%57 = icmp eq i64 %56, 24
br i1 %57, label %63, label %58
58: ; preds = %54
%59 = getelementptr inbounds [24 x i32], [24 x i32]* %2, i64 0, i64 %56
%60 = load i32, i32* %59
%61 = tail call i64 @sigismember(i32* %0, i32 %60)
%62 = icmp eq i64 %61, 0
br i1 %62, label %54, label %63
63: ; preds = %58, %54, %1
%64 = phi i32 [ 0, %1 ], [ 0, %58 ], [ 1, %54 ]
ret i32 %64
}