#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;

/* Variables and functions */
int SIGABRT;
int SIGALRM;
int SIGBUS;
int SIGCHLD;
int SIGCONT;
int SIGFPE;
int SIGHUP;
int SIGILL;
int SIGINT;
int SIGKILL;
int SIGPIPE;
int SIGQUIT;
int SIGSEGV;
int SIGSTOP;
int SIGTERM;
int SIGTSTP;
int SIGTTIN;
int SIGTTOU;
int SIGURG;
int SIGUSR1;
int SIGUSR2;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ sigaddset(int /*<<< orphan*/ *, int);
int sigemptyset(int /*<<< orphan*/ *);
int sigismember(int /*<<< orphan*/ *, int);
int main() {
  sigset_t signalset;
  int signallist[21];
  int i;
  int f = 0;
  signallist[0] = SIGABRT;
  signallist[1] = SIGALRM;
  signallist[2] = SIGBUS;
  signallist[3] = SIGCHLD;
  signallist[4] = SIGCONT;
  signallist[5] = SIGFPE;
  signallist[6] = SIGHUP;
  signallist[7] = SIGILL;
  signallist[8] = SIGINT;
  signallist[9] = SIGKILL;
  signallist[10] = SIGPIPE;
  signallist[11] = SIGQUIT;
  signallist[12] = SIGSEGV;
  signallist[13] = SIGSTOP;
  signallist[14] = SIGTERM;
  signallist[15] = SIGTSTP;
  signallist[16] = SIGTTIN;
  signallist[17] = SIGTTOU;
  signallist[18] = SIGUSR1;
  signallist[19] = SIGUSR2;
  signallist[20] = SIGURG;
  if (sigemptyset(&signalset) == -1) {
    perror("sigemptyset failed -- test aborting\n");
    return -1;
  }
  for (i = 0; i < 21; i++) {
    if (sigaddset(&signalset, signallist[i]) == 0) {
      if (sigismember(&signalset, signallist[i]) == 1) {
      } else {
        f = -1;
        printf("Signal - %d\n", signallist[i]);
      }
    } else {
      f = -1;
      printf("Signal - %d\n", signallist[i]);
    }
  }
  if (0 == f) {
    printf("All signals added\n");
    return 0;
  } else {
    printf("Some signals not added -- see above\n");
    return -1;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x68(%rbp)
mov    0x2ddb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2e3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2e63(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2dff(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2e2b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2def(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2e3b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2db7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2de3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2d77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2daf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2dc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2d37(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2d93(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d67(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    0x2d53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    0x2d9f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2d8b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    0x2d17(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    0x2cfb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
lea    -0x8(%rbp),%rdi
call   1040 <sigemptyset@plt>
cmp    $0xffffffff,%eax
jne    128c <main+0x13c>
lea    0xd85(%rip),%rdi
call   1050 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1363 <main+0x213>
movl   $0x0,-0x64(%rbp)
cmpl   $0x15,-0x64(%rbp)
jge    1329 <main+0x1d9>
movslq -0x64(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    -0x8(%rbp),%rdi
call   1070 <sigaddset@plt>
cmp    $0x0,%rax
jne    12f9 <main+0x1a9>
movslq -0x64(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    -0x8(%rbp),%rdi
call   1060 <sigismember@plt>
cmp    $0x1,%eax
jne    12d7 <main+0x187>
jmp    12f4 <main+0x1a4>
movl   $0xffffffff,-0x68(%rbp)
movslq -0x64(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1316 <main+0x1c6>
movl   $0xffffffff,-0x68(%rbp)
movslq -0x64(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%esi
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131b <main+0x1cb>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1293 <main+0x143>
xor    %eax,%eax
cmp    -0x68(%rbp),%eax
jne    134e <main+0x1fe>
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1363 <main+0x213>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    0x2dd7(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2e3a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2e5d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2df8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2e23(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2de6(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2e31(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2dac(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2dd7(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2d6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2da0(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
mov    0x2db3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2d26(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x44(%rsp)
mov    0x2d81(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x48(%rsp)
mov    0x2d54(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4c(%rsp)
mov    0x2d3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x50(%rsp)
mov    0x2d8a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x54(%rsp)
mov    0x2d75(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x58(%rsp)
mov    0x2d00(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x5c(%rsp)
mov    0x2ce3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x60(%rsp)
lea    0xc(%rsp),%rdi
call   1050 <sigemptyset@plt>
cmp    $0xffffffff,%eax
je     1311 <main+0x1b1>
lea    0xc(%rsp),%r15
lea    0xd8b(%rip),%r14
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    12b9 <main+0x159>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%ebp
add    $0x1,%rbx
cmp    $0x15,%rbx
je     12e1 <main+0x181>
mov    0x10(%rsp,%rbx,4),%esi
mov    %r15,%rdi
call   1080 <sigaddset@plt>
mov    0x10(%rsp,%rbx,4),%esi
test   %rax,%rax
jne    12a0 <main+0x140>
mov    %r15,%rdi
call   1070 <sigismember@plt>
cmp    $0x1,%eax
je     12af <main+0x14f>
mov    0x10(%rsp,%rbx,4),%esi
jmp    12a0 <main+0x140>
test   %ebp,%ebp
je     12f8 <main+0x198>
lea    0xd46(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%eax
jmp    1306 <main+0x1a6>
lea    0xd57(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xce8(%rip),%rdi
call   1060 <perror@plt>
jmp    12f1 <main+0x191>

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
@SIGKILL = global i32 0
@SIGPIPE = global i32 0
@SIGQUIT = global i32 0
@SIGSEGV = global i32 0
@SIGSTOP = 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
@SIGURG = global i32 0
@.str = [37 x i8] c"sigemptyset failed -- test aborting\0A\00"
@.str.1 = [13 x i8] c"Signal - %d\0A\00"
@.str.2 = [19 x i8] c"All signals added\0A\00"
@.str.3 = [37 x i8] c"Some signals not added -- see above\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [21 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
%6 = load i32, i32* @SIGABRT
%7 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 0
store i32 %6, i32* %7
%8 = load i32, i32* @SIGALRM
%9 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 1
store i32 %8, i32* %9
%10 = load i32, i32* @SIGBUS
%11 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 2
store i32 %10, i32* %11
%12 = load i32, i32* @SIGCHLD
%13 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 3
store i32 %12, i32* %13
%14 = load i32, i32* @SIGCONT
%15 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 4
store i32 %14, i32* %15
%16 = load i32, i32* @SIGFPE
%17 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 5
store i32 %16, i32* %17
%18 = load i32, i32* @SIGHUP
%19 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 6
store i32 %18, i32* %19
%20 = load i32, i32* @SIGILL
%21 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 7
store i32 %20, i32* %21
%22 = load i32, i32* @SIGINT
%23 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 8
store i32 %22, i32* %23
%24 = load i32, i32* @SIGKILL
%25 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 9
store i32 %24, i32* %25
%26 = load i32, i32* @SIGPIPE
%27 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 10
store i32 %26, i32* %27
%28 = load i32, i32* @SIGQUIT
%29 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 11
store i32 %28, i32* %29
%30 = load i32, i32* @SIGSEGV
%31 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 12
store i32 %30, i32* %31
%32 = load i32, i32* @SIGSTOP
%33 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 13
store i32 %32, i32* %33
%34 = load i32, i32* @SIGTERM
%35 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 14
store i32 %34, i32* %35
%36 = load i32, i32* @SIGTSTP
%37 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 15
store i32 %36, i32* %37
%38 = load i32, i32* @SIGTTIN
%39 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 16
store i32 %38, i32* %39
%40 = load i32, i32* @SIGTTOU
%41 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 17
store i32 %40, i32* %41
%42 = load i32, i32* @SIGUSR1
%43 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 18
store i32 %42, i32* %43
%44 = load i32, i32* @SIGUSR2
%45 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 19
store i32 %44, i32* %45
%46 = load i32, i32* @SIGURG
%47 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 20
store i32 %46, i32* %47
%48 = call i32 @sigemptyset(i32* %2)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %0
%51 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %1
br label %95
52: ; preds = %0
store i32 0, i32* %4
br label %53
53: ; preds = %85, %52
%54 = load i32, i32* %4
%55 = icmp slt i32 %54, 21
br i1 %55, label %56, label %88
56: ; preds = %53
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = call i64 @sigaddset(i32* %2, i32 %60)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %78
63: ; preds = %56
%64 = load i32, i32* %4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = call i32 @sigismember(i32* %2, i32 %67)
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %71
70: ; preds = %63
br label %77
71: ; preds = %63
store i32 -1, i32* %5
%72 = load i32, i32* %4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %71, %70
br label %84
78: ; preds = %56
store i32 -1, i32* %5
%79 = load i32, i32* %4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [21 x i32], [21 x i32]* %3, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %82)
br label %84
84: ; preds = %78, %77
br label %85
85: ; preds = %84
%86 = load i32, i32* %4
%87 = add nsw i32 %86, 1
store i32 %87, i32* %4
br label %53
88: ; preds = %53
%89 = load i32, i32* %5
%90 = icmp eq i32 0, %89
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %95
93: ; preds = %88
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %1
br label %95
95: ; preds = %93, %91, %50
%96 = load i32, i32* %1
ret i32 %96
}

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
@SIGKILL = global i32 0
@SIGPIPE = global i32 0
@SIGQUIT = global i32 0
@SIGSEGV = global i32 0
@SIGSTOP = 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
@SIGURG = global i32 0
@.str = [37 x i8] c"sigemptyset failed -- test aborting\0A\00"
@.str.1 = [13 x i8] c"Signal - %d\0A\00"
@str = [36 x i8] c"Some signals not added -- see above\00"
@str.4 = [18 x i8] c"All signals added\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [21 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [21 x i32]* %2 to i8*
%5 = load i32, i32* @SIGABRT
%6 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 0
store i32 %5, i32* %6
%7 = load i32, i32* @SIGALRM
%8 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 1
store i32 %7, i32* %8
%9 = load i32, i32* @SIGBUS
%10 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 2
store i32 %9, i32* %10
%11 = load i32, i32* @SIGCHLD
%12 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 3
store i32 %11, i32* %12
%13 = load i32, i32* @SIGCONT
%14 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 4
store i32 %13, i32* %14
%15 = load i32, i32* @SIGFPE
%16 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 5
store i32 %15, i32* %16
%17 = load i32, i32* @SIGHUP
%18 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 6
store i32 %17, i32* %18
%19 = load i32, i32* @SIGILL
%20 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 7
store i32 %19, i32* %20
%21 = load i32, i32* @SIGINT
%22 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 8
store i32 %21, i32* %22
%23 = load i32, i32* @SIGKILL
%24 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 9
store i32 %23, i32* %24
%25 = load i32, i32* @SIGPIPE
%26 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 10
store i32 %25, i32* %26
%27 = load i32, i32* @SIGQUIT
%28 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 11
store i32 %27, i32* %28
%29 = load i32, i32* @SIGSEGV
%30 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 12
store i32 %29, i32* %30
%31 = load i32, i32* @SIGSTOP
%32 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 13
store i32 %31, i32* %32
%33 = load i32, i32* @SIGTERM
%34 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 14
store i32 %33, i32* %34
%35 = load i32, i32* @SIGTSTP
%36 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 15
store i32 %35, i32* %36
%37 = load i32, i32* @SIGTTIN
%38 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 16
store i32 %37, i32* %38
%39 = load i32, i32* @SIGTTOU
%40 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 17
store i32 %39, i32* %40
%41 = load i32, i32* @SIGUSR1
%42 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 18
store i32 %41, i32* %42
%43 = load i32, i32* @SIGUSR2
%44 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 19
store i32 %43, i32* %44
%45 = load i32, i32* @SIGURG
%46 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 20
store i32 %45, i32* %46
%47 = call i32 @sigemptyset(i32* %1)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %51
49: ; preds = %0
%50 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
br label %77
51: ; preds = %0, %67
%52 = phi i64 [ %69, %67 ], [ 0, %0 ]
%53 = phi i32 [ %68, %67 ], [ 0, %0 ]
%54 = getelementptr inbounds [21 x i32], [21 x i32]* %2, i64 0, i64 %52
%55 = load i32, i32* %54
%56 = call i64 @sigaddset(i32* %1, i32 %55)
%57 = icmp eq i64 %56, 0
%58 = load i32, i32* %54
br i1 %57, label %59, label %64
59: ; preds = %51
%60 = call i32 @sigismember(i32* %1, i32 %58)
%61 = icmp eq i32 %60, 1
br i1 %61, label %67, label %62
62: ; preds = %59
%63 = load i32, i32* %54
br label %64
64: ; preds = %51, %62
%65 = phi i32 [ %63, %62 ], [ %58, %51 ]
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %65)
br label %67
67: ; preds = %64, %59
%68 = phi i32 [ %53, %59 ], [ -1, %64 ]
%69 = add nuw nsw i64 %52, 1
%70 = icmp eq i64 %69, 21
br i1 %70, label %71, label %51
71: ; preds = %67
%72 = icmp eq i32 %68, 0
br i1 %72, label %73, label %75
73: ; preds = %71
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.4, i64 0, i64 0))
br label %77
75: ; preds = %71
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
br label %77
77: ; preds = %75, %73, %49
%78 = phi i32 [ -1, %49 ], [ 0, %73 ], [ -1, %75 ]
ret i32 %78
}