#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;
int /*<<< orphan*/ SIG_BLOCK;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sigaddset(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int sigismember(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ sigprocmask(int /*<<< orphan*/, int /*<<< orphan*/ *,
                               int /*<<< orphan*/ *);
int main(void) {
  sigset_t oactl, tempset;
  int i, j, test_failed = 0;
  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++) {
    sigemptyset(&oactl);
    sigemptyset(&tempset);
    sigaddset(&tempset, siglist[i]);
    sigprocmask(SIG_BLOCK, &tempset, &oactl);
    if (i > 0) {
      for (j = 0; j < i; j++) {
        if (sigismember(&oactl, siglist[j]) != 1) {
          test_failed = 1;
        }
      }
    }
  }
  if (test_failed != 0) {
    printf("Old set is missing a signal\n");
    return 1;
  }
  printf("Test PASSED: oactl did contain all signals that were added to the "
         "signal mask.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
mov    0x2e3c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x7c(%rbp)
mov    0x2e60(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x78(%rbp)
mov    0x2df4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x74(%rbp)
mov    0x2e28(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x70(%rbp)
mov    0x2dec(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    0x2e38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x68(%rbp)
mov    0x2dac(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    0x2de0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
mov    0x2d74(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2dcc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2da8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2d74(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2d60(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x48(%rbp)
mov    0x2db4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2d1c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2d00(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2ccc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2ce0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2cf4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    0x2cb8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    0x2d0c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x18,-0x10(%rbp)
jge    133c <main+0x1ec>
lea    -0x8(%rbp),%rdi
call   1050 <sigemptyset@plt>
lea    -0xc(%rbp),%rdi
call   1050 <sigemptyset@plt>
movslq -0x10(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%esi
lea    -0xc(%rbp),%rdi
call   1070 <sigaddset@plt>
mov    0x2c74(%rip),%rax
mov    (%rax),%edi
lea    -0xc(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1030 <sigprocmask@plt>
cmpl   $0x0,-0x10(%rbp)
jle    1329 <main+0x1d9>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1324 <main+0x1d4>
movslq -0x14(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%esi
lea    -0x8(%rbp),%rdi
call   1060 <sigismember@plt>
cmp    $0x1,%eax
je     1311 <main+0x1c1>
movl   $0x1,-0x18(%rbp)
jmp    1316 <main+0x1c6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e4 <main+0x194>
jmp    1329 <main+0x1d9>
jmp    132e <main+0x1de>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1290 <main+0x140>
cmpl   $0x0,-0x18(%rbp)
je     135e <main+0x20e>
lea    0xcb3(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1371 <main+0x221>
lea    0xcb8(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    0x2dc3(%rip),%rax
mov    (%rax),%eax
mov    %eax,(%rsp)
mov    0x2e47(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4(%rsp)
mov    0x2e6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x8(%rsp)
mov    0x2dfd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0xc(%rsp)
mov    0x2e30(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    0x2df3(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x14(%rsp)
mov    0x2e3e(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
mov    0x2db1(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2de4(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x20(%rsp)
mov    0x2d77(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x24(%rsp)
mov    0x2dba(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
mov    0x2dcd(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x2c(%rsp)
mov    0x2da8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
mov    0x2d73(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x34(%rsp)
mov    0x2d5e(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x38(%rsp)
mov    0x2db1(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x3c(%rsp)
mov    0x2d9c(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x40(%rsp)
mov    0x2d17(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x44(%rsp)
mov    0x2cfa(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x48(%rsp)
mov    0x2cc5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x4c(%rsp)
mov    0x2cd8(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x50(%rsp)
mov    0x2ceb(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x54(%rsp)
mov    0x2cae(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x58(%rsp)
mov    0x2d01(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x5c(%rsp)
xor    %ebx,%ebx
lea    0x64(%rsp),%r15
lea    0x60(%rsp),%r14
mov    $0x1,%r13d
xor    %ebp,%ebp
jmp    12ba <main+0x16a>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x18,%rbx
je     131e <main+0x1ce>
mov    %r15,%rdi
call   1050 <sigemptyset@plt>
mov    %r14,%rdi
call   1050 <sigemptyset@plt>
mov    (%rsp,%rbx,4),%esi
mov    %r14,%rdi
call   1070 <sigaddset@plt>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <sigprocmask@plt>
test   %rbx,%rbx
je     12b0 <main+0x160>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rsp,%r12,4),%esi
mov    %r15,%rdi
call   1060 <sigismember@plt>
cmp    $0x1,%eax
cmovne %r13d,%ebp
add    $0x1,%r12
cmp    %r12,%rbx
jne    1300 <main+0x1b0>
jmp    12b0 <main+0x160>
xor    %ebx,%ebx
test   %ebp,%ebp
setne  %bl
lea    0xcd4(%rip),%rax
lea    0xd1c(%rip),%rdi
cmove  %rax,%rdi
call   1040 <puts@plt>
mov    %ebx,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
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
@SIG_BLOCK = global i32 0
@.str = [29 x i8] c"Old set is missing a signal\0A\00"
@.str.1 = [80 x i8] c"Test PASSED: oactl did contain all signals that were added to the signal mask.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [24 x i32]
store i32 0, i32* %1
store i32 0, i32* %6
%8 = getelementptr inbounds [24 x i32], [24 x i32]* %7, i64 0, i64 0
%9 = load i32, i32* @SIGABRT
store i32 %9, i32* %8
%10 = getelementptr inbounds i32, i32* %8, i64 1
%11 = load i32, i32* @SIGALRM
store i32 %11, i32* %10
%12 = getelementptr inbounds i32, i32* %10, i64 1
%13 = load i32, i32* @SIGBUS
store i32 %13, i32* %12
%14 = getelementptr inbounds i32, i32* %12, i64 1
%15 = load i32, i32* @SIGCHLD
store i32 %15, i32* %14
%16 = getelementptr inbounds i32, i32* %14, i64 1
%17 = load i32, i32* @SIGCONT
store i32 %17, i32* %16
%18 = getelementptr inbounds i32, i32* %16, i64 1
%19 = load i32, i32* @SIGFPE
store i32 %19, i32* %18
%20 = getelementptr inbounds i32, i32* %18, i64 1
%21 = load i32, i32* @SIGHUP
store i32 %21, i32* %20
%22 = getelementptr inbounds i32, i32* %20, i64 1
%23 = load i32, i32* @SIGILL
store i32 %23, i32* %22
%24 = getelementptr inbounds i32, i32* %22, i64 1
%25 = load i32, i32* @SIGINT
store i32 %25, i32* %24
%26 = getelementptr inbounds i32, i32* %24, i64 1
%27 = load i32, i32* @SIGPIPE
store i32 %27, i32* %26
%28 = getelementptr inbounds i32, i32* %26, i64 1
%29 = load i32, i32* @SIGQUIT
store i32 %29, i32* %28
%30 = getelementptr inbounds i32, i32* %28, i64 1
%31 = load i32, i32* @SIGSEGV
store i32 %31, i32* %30
%32 = getelementptr inbounds i32, i32* %30, i64 1
%33 = load i32, i32* @SIGTERM
store i32 %33, i32* %32
%34 = getelementptr inbounds i32, i32* %32, i64 1
%35 = load i32, i32* @SIGTSTP
store i32 %35, i32* %34
%36 = getelementptr inbounds i32, i32* %34, i64 1
%37 = load i32, i32* @SIGTTIN
store i32 %37, i32* %36
%38 = getelementptr inbounds i32, i32* %36, i64 1
%39 = load i32, i32* @SIGTTOU
store i32 %39, i32* %38
%40 = getelementptr inbounds i32, i32* %38, i64 1
%41 = load i32, i32* @SIGUSR1
store i32 %41, i32* %40
%42 = getelementptr inbounds i32, i32* %40, i64 1
%43 = load i32, i32* @SIGUSR2
store i32 %43, i32* %42
%44 = getelementptr inbounds i32, i32* %42, i64 1
%45 = load i32, i32* @SIGSYS
store i32 %45, i32* %44
%46 = getelementptr inbounds i32, i32* %44, i64 1
%47 = load i32, i32* @SIGTRAP
store i32 %47, i32* %46
%48 = getelementptr inbounds i32, i32* %46, i64 1
%49 = load i32, i32* @SIGURG
store i32 %49, i32* %48
%50 = getelementptr inbounds i32, i32* %48, i64 1
%51 = load i32, i32* @SIGVTALRM
store i32 %51, i32* %50
%52 = getelementptr inbounds i32, i32* %50, i64 1
%53 = load i32, i32* @SIGXCPU
store i32 %53, i32* %52
%54 = getelementptr inbounds i32, i32* %52, i64 1
%55 = load i32, i32* @SIGXFSZ
store i32 %55, i32* %54
store i32 0, i32* %4
br label %56
56: ; preds = %90, %0
%57 = load i32, i32* %4
%58 = icmp slt i32 %57, 24
br i1 %58, label %59, label %93
59: ; preds = %56
%60 = call i32 @sigemptyset(i32* %2)
%61 = call i32 @sigemptyset(i32* %3)
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [24 x i32], [24 x i32]* %7, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = call i32 @sigaddset(i32* %3, i32 %65)
%67 = load i32, i32* @SIG_BLOCK
%68 = call i32 @sigprocmask(i32 %67, i32* %3, i32* %2)
%69 = load i32, i32* %4
%70 = icmp sgt i32 %69, 0
br i1 %70, label %71, label %89
71: ; preds = %59
store i32 0, i32* %5
br label %72
72: ; preds = %85, %71
%73 = load i32, i32* %5
%74 = load i32, i32* %4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %88
76: ; preds = %72
%77 = load i32, i32* %5
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [24 x i32], [24 x i32]* %7, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = call i32 @sigismember(i32* %2, i32 %80)
%82 = icmp ne i32 %81, 1
br i1 %82, label %83, label %84
83: ; preds = %76
store i32 1, i32* %6
br label %84
84: ; preds = %83, %76
br label %85
85: ; preds = %84
%86 = load i32, i32* %5
%87 = add nsw i32 %86, 1
store i32 %87, i32* %5
br label %72
88: ; preds = %72
br label %89
89: ; preds = %88, %59
br label %90
90: ; preds = %89
%91 = load i32, i32* %4
%92 = add nsw i32 %91, 1
store i32 %92, i32* %4
br label %56
93: ; preds = %56
%94 = load i32, i32* %6
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %100
98: ; preds = %93
%99 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %100
100: ; preds = %98, %96
%101 = load i32, i32* %1
ret i32 %101
}

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
@SIG_BLOCK = global i32 0
@str = [79 x i8] c"Test PASSED: oactl did contain all signals that were added to the signal mask.\00"
@str.2 = [28 x i8] c"Old set is missing a signal\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [24 x i32]
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast [24 x i32]* %3 to i8*
%7 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 0
%8 = load i32, i32* @SIGABRT
store i32 %8, i32* %7
%9 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 1
%10 = load i32, i32* @SIGALRM
store i32 %10, i32* %9
%11 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 2
%12 = load i32, i32* @SIGBUS
store i32 %12, i32* %11
%13 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 3
%14 = load i32, i32* @SIGCHLD
store i32 %14, i32* %13
%15 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 4
%16 = load i32, i32* @SIGCONT
store i32 %16, i32* %15
%17 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 5
%18 = load i32, i32* @SIGFPE
store i32 %18, i32* %17
%19 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 6
%20 = load i32, i32* @SIGHUP
store i32 %20, i32* %19
%21 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 7
%22 = load i32, i32* @SIGILL
store i32 %22, i32* %21
%23 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 8
%24 = load i32, i32* @SIGINT
store i32 %24, i32* %23
%25 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 9
%26 = load i32, i32* @SIGPIPE
store i32 %26, i32* %25
%27 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 10
%28 = load i32, i32* @SIGQUIT
store i32 %28, i32* %27
%29 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 11
%30 = load i32, i32* @SIGSEGV
store i32 %30, i32* %29
%31 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 12
%32 = load i32, i32* @SIGTERM
store i32 %32, i32* %31
%33 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 13
%34 = load i32, i32* @SIGTSTP
store i32 %34, i32* %33
%35 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 14
%36 = load i32, i32* @SIGTTIN
store i32 %36, i32* %35
%37 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 15
%38 = load i32, i32* @SIGTTOU
store i32 %38, i32* %37
%39 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 16
%40 = load i32, i32* @SIGUSR1
store i32 %40, i32* %39
%41 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 17
%42 = load i32, i32* @SIGUSR2
store i32 %42, i32* %41
%43 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 18
%44 = load i32, i32* @SIGSYS
store i32 %44, i32* %43
%45 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 19
%46 = load i32, i32* @SIGTRAP
store i32 %46, i32* %45
%47 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 20
%48 = load i32, i32* @SIGURG
store i32 %48, i32* %47
%49 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 21
%50 = load i32, i32* @SIGVTALRM
store i32 %50, i32* %49
%51 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 22
%52 = load i32, i32* @SIGXCPU
store i32 %52, i32* %51
%53 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 23
%54 = load i32, i32* @SIGXFSZ
store i32 %54, i32* %53
br label %55
55: ; preds = %0, %76
%56 = phi i64 [ 0, %0 ], [ %78, %76 ]
%57 = phi i32 [ 0, %0 ], [ %77, %76 ]
%58 = call i32 @sigemptyset(i32* %1)
%59 = call i32 @sigemptyset(i32* %2)
%60 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 %56
%61 = load i32, i32* %60
%62 = call i32 @sigaddset(i32* %2, i32 %61)
%63 = load i32, i32* @SIG_BLOCK
%64 = call i32 @sigprocmask(i32 %63, i32* %2, i32* %1)
%65 = icmp eq i64 %56, 0
br i1 %65, label %76, label %66
66: ; preds = %55, %66
%67 = phi i64 [ %74, %66 ], [ 0, %55 ]
%68 = phi i32 [ %73, %66 ], [ %57, %55 ]
%69 = getelementptr inbounds [24 x i32], [24 x i32]* %3, i64 0, i64 %67
%70 = load i32, i32* %69
%71 = call i32 @sigismember(i32* %1, i32 %70)
%72 = icmp eq i32 %71, 1
%73 = select i1 %72, i32 %68, i32 1
%74 = add nuw nsw i64 %67, 1
%75 = icmp eq i64 %74, %56
br i1 %75, label %76, label %66
76: ; preds = %66, %55
%77 = phi i32 [ %57, %55 ], [ %73, %66 ]
%78 = add nuw nsw i64 %56, 1
%79 = icmp eq i64 %78, 24
br i1 %79, label %80, label %55
80: ; preds = %76
%81 = icmp eq i32 %77, 0
%82 = select i1 %81, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @str.2, i64 0, i64 0)
%83 = xor i1 %81, true
%84 = zext i1 %83 to i32
%85 = call i32 @puts(i8* dereferenceable(1) %82)
ret i32 %84
}