; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_tbb_fork.ll (Z8TestMainv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"struct.std::nothrow_t" = type { i8 }
%struct.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }
%"class.tbb::task_scheduler_init" = type { ptr }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@_ZL9MinThread = external hidden global i32, align 4
@_ZL9MaxThread = external hidden global i32, align 4
@_ZL7Verbose = external hidden global i8, align 1
@.str.19 = external hidden unnamed_addr constant [89 x i8], align 1
@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [23 x i8], align 1
@__FUNCTION__._Z8TestMainv = external hidden unnamed_addr constant [9 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8TestMainv() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i8, align 1
  %2 = alloca %struct.sigaction, align 8
  %3 = alloca %struct.__sigset_t, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.tbb::task_scheduler_init", align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.tbb::task_scheduler_init", align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.__sigset_t, align 8
  call void @_Z14TestNestingTSIv()
  call void @_Z17TestBlockNonblockv()
  call void @_Z17TestTasksInThreadv()
  call void @_Z21TestSchedulerMemLeaksv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %1) #6
  store i8 0, ptr %1, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 152, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %3) #6
  %17 = getelementptr inbounds %struct.sigaction, ptr %2, i32 0, i32 1
  %18 = call i32 @sigemptyset(ptr noundef %17) #6
  %19 = getelementptr inbounds %struct.sigaction, ptr %2, i32 0, i32 2
  store i32 0, ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.sigaction, ptr %2, i32 0, i32 0
  store ptr @_Z10SigHandleri, ptr %20, align 8, !tbaa !14
  %21 = call i32 @sigaction(i32 noundef 17, ptr noundef %2, ptr noundef null) #6
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %0
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 245, ptr noundef @.str.38, ptr noundef @.str.39)
  br label %24

24:                                               ; preds = %23, %0
  %25 = call i32 @sigaction(i32 noundef 14, ptr noundef %2, ptr noundef null) #6
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 247, ptr noundef @.str.38, ptr noundef @.str.39)
  br label %28

28:                                               ; preds = %27, %24
  %29 = call i32 @sigemptyset(ptr noundef %3) #6
  %30 = call i32 @sigaddset(ptr noundef %3, i32 noundef 17) #6
  %31 = call i32 @sigaddset(ptr noundef %3, i32 noundef 14) #6
  %32 = call i32 @pthread_sigmask(i32 noundef 0, ptr noundef %3, ptr noundef null) #6
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %28
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 253, ptr noundef @.str.38, ptr noundef @.str.40)
  br label %35

35:                                               ; preds = %34, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %36 = load i32, ptr @_ZL9MinThread, align 4, !tbaa !15
  store i32 %36, ptr %4, align 4, !tbaa !15
  br label %37

37:                                               ; preds = %174, %35
  %38 = load i32, ptr %4, align 4, !tbaa !15
  %39 = load i32, ptr @_ZL9MaxThread, align 4, !tbaa !15
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %178

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %43

43:                                               ; preds = %167, %42
  %44 = load i32, ptr %6, align 4, !tbaa !15
  %45 = icmp slt i32 %44, 20
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %173

47:                                               ; preds = %43
  %48 = load i8, ptr %1, align 1, !tbaa !5, !range !16, !noundef !17
  %49 = trunc i8 %48 to i1
  br i1 %49, label %59, label %50

50:                                               ; preds = %47
  %51 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !5, !range !16, !noundef !17
  %52 = trunc i8 %51 to i1
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  br label %58

54:                                               ; preds = %50
  %55 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str.19, i64 noundef 258, ptr noundef @__FUNCTION__._Z8TestMainv)
  %56 = load i32, ptr %4, align 4, !tbaa !15
  %57 = load i32, ptr %6, align 4, !tbaa !15
  call void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %55, ptr noundef @.str.41, i32 noundef %56, i32 noundef %57)
  br label %58

58:                                               ; preds = %54, %53
  br label %59

59:                                               ; preds = %58, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %60 = load i32, ptr %4, align 4, !tbaa !15
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %7, i32 noundef %60, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  %61 = call noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #6
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %8, align 1, !tbaa !5
  %63 = load i8, ptr %8, align 1, !tbaa !5, !range !16, !noundef !17
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %66

65:                                               ; preds = %59
  br label %68

66:                                               ; preds = %59
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 262, ptr noundef @.str.21, ptr noundef null)
          to label %67 unwind label %82

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %69 = load i32, ptr %4, align 4, !tbaa !15
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef %69, i64 noundef 0)
  invoke void @_Z15CallParallelForv()
          to label %70 unwind label %86

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %71 = call noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #6
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %12, align 1, !tbaa !5
  %73 = load i8, ptr %12, align 1, !tbaa !5, !range !16, !noundef !17
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  br label %78

76:                                               ; preds = %70
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 268, ptr noundef @.str.21, ptr noundef null)
          to label %77 unwind label %90

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %75
  %79 = load i8, ptr %1, align 1, !tbaa !5, !range !16, !noundef !17
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %94

81:                                               ; preds = %78
  call void @exit(i32 noundef 0) #7
  unreachable

82:                                               ; preds = %66
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %9, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %172

86:                                               ; preds = %68
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %171

90:                                               ; preds = %76
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  br label %170

94:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %95 = call i32 @fork() #6
  store i32 %95, ptr %13, align 4, !tbaa !15
  %96 = load i32, ptr %13, align 4, !tbaa !15
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 -1, ptr %6, align 4, !tbaa !15
  store i8 1, ptr %1, align 1, !tbaa !5
  br label %165

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !15
  %100 = call i32 @alarm(i32 noundef 30) #6
  %101 = invoke i32 @sigwait(ptr noundef %3, ptr noundef %14)
          to label %102 unwind label %106

102:                                              ; preds = %99
  %103 = icmp ne i32 0, %101
  br i1 %103, label %104, label %110

104:                                              ; preds = %102
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 293, ptr noundef @.str.38, ptr noundef @.str.42)
          to label %105 unwind label %106

105:                                              ; preds = %104
  br label %110

106:                                              ; preds = %139, %137, %130, %128, %118, %110, %104, %99
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  br label %164

110:                                              ; preds = %105, %102
  %111 = call i32 @alarm(i32 noundef 0) #6
  %112 = load i32, ptr %13, align 4, !tbaa !15
  %113 = invoke i32 @waitpid(i32 noundef %112, ptr noundef null, i32 noundef 1)
          to label %114 unwind label %106

114:                                              ; preds = %110
  store i32 %113, ptr %15, align 4, !tbaa !15
  %115 = load i32, ptr %15, align 4, !tbaa !15
  %116 = icmp sge i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  br label %120

118:                                              ; preds = %114
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 296, ptr noundef @.str.43, ptr noundef @.str.44)
          to label %119 unwind label %106

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119, %117
  %121 = load i32, ptr %15, align 4, !tbaa !15
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %141, label %123

123:                                              ; preds = %120
  %124 = load i32, ptr %13, align 4, !tbaa !15
  %125 = call i32 @kill(i32 noundef %124, i32 noundef 9) #6
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  br label %130

128:                                              ; preds = %123
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 298, ptr noundef @.str.45, ptr noundef null)
          to label %129 unwind label %106

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129, %127
  %131 = load i32, ptr %13, align 4, !tbaa !15
  %132 = invoke i32 @waitpid(i32 noundef %131, ptr noundef null, i32 noundef 0)
          to label %133 unwind label %106

133:                                              ; preds = %130
  store i32 %132, ptr %15, align 4, !tbaa !15
  %134 = load i32, ptr %15, align 4, !tbaa !15
  %135 = icmp ne i32 %134, -1
  br i1 %135, label %136, label %137

136:                                              ; preds = %133
  br label %139

137:                                              ; preds = %133
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 300, ptr noundef @.str.46, ptr noundef @.str.44)
          to label %138 unwind label %106

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138, %136
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 302, ptr noundef @.str.38, ptr noundef @.str.47)
          to label %140 unwind label %106

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %120
  call void @llvm.lifetime.start.p0(i64 128, ptr %16) #6
  br label %142

142:                                              ; preds = %162, %141
  %143 = call i32 @sigemptyset(ptr noundef %16) #6
  %144 = call i32 @sigpending(ptr noundef %16) #6
  %145 = call i32 @sigismember(ptr noundef %16, i32 noundef 14) #6
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %150, label %147

147:                                              ; preds = %142
  %148 = call i32 @sigismember(ptr noundef %16, i32 noundef 17) #6
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %161

150:                                              ; preds = %147, %142
  %151 = invoke i32 @sigwait(ptr noundef %16, ptr noundef %14)
          to label %152 unwind label %156

152:                                              ; preds = %150
  %153 = icmp ne i32 0, %151
  br i1 %153, label %154, label %160

154:                                              ; preds = %152
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.19, i32 noundef 312, ptr noundef @.str.38, ptr noundef @.str.42)
          to label %155 unwind label %156

155:                                              ; preds = %154
  br label %160

156:                                              ; preds = %154, %150
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %16) #6
  br label %164

160:                                              ; preds = %155, %152
  br label %162

161:                                              ; preds = %147
  br label %163

162:                                              ; preds = %160
  br label %142, !llvm.loop !18

163:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 128, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %165

164:                                              ; preds = %156, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %170

165:                                              ; preds = %163, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %166

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %6, align 4, !tbaa !15
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %6, align 4, !tbaa !15
  br label %43, !llvm.loop !20

170:                                              ; preds = %164, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %171

171:                                              ; preds = %170, %86
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %172

172:                                              ; preds = %171, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 152, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %1) #6
  br label %179

173:                                              ; preds = %46
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr @_ZL9MinThread, align 4, !tbaa !15
  %176 = load i32, ptr %4, align 4, !tbaa !15
  %177 = add nsw i32 %176, %175
  store i32 %177, ptr %4, align 4, !tbaa !15
  br label %37, !llvm.loop !21

178:                                              ; preds = %41
  call void @_Z12TestAutoInitv()
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 128, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 152, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %1) #6
  ret i32 0

179:                                              ; preds = %172
  %180 = load ptr, ptr %9, align 8
  %181 = load i32, ptr %10, align 4
  %182 = insertvalue { ptr, i32 } poison, ptr %180, 0
  %183 = insertvalue { ptr, i32 } %182, i32 %181, 1
  resume { ptr, i32 } %183
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10SigHandleri(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15CallParallelForv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17TestBlockNonblockv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17TestTasksInThreadv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21TestSchedulerMemLeaksv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14TestNestingTSIv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12TestAutoInitv() #2

; Function Attrs: nounwind
declare i32 @sigemptyset(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @sigaddset(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fork() #3

; Function Attrs: nounwind
declare i32 @alarm(i32 noundef) #3

declare i32 @sigwait(ptr noundef, ptr noundef) #5

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #5

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @sigpending(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @sigismember(ptr noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 136}
!10 = !{!"_ZTS9sigaction", !7, i64 0, !11, i64 8, !12, i64 136, !13, i64 144}
!11 = !{!"_ZTS10__sigset_t", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"struct.std::nothrow_t" = type { i8 }
%struct.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }
%"class.tbb::task_scheduler_init" = type { ptr }

@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@_ZL9MinThread = external hidden local_unnamed_addr global i32, align 4
@_ZL9MaxThread = external hidden local_unnamed_addr global i32, align 4
@_ZL7Verbose = external hidden local_unnamed_addr global i8, align 1
@.str.19 = external hidden unnamed_addr constant [89 x i8], align 1
@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [23 x i8], align 1
@__FUNCTION__._Z8TestMainv = external hidden unnamed_addr constant [9 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z8TestMainv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %struct.sigaction, align 8
  %2 = alloca %struct.__sigset_t, align 8
  %3 = alloca %"class.tbb::task_scheduler_init", align 8
  %4 = alloca %"class.tbb::task_scheduler_init", align 8
  %5 = alloca i32, align 4
  %6 = alloca %struct.__sigset_t, align 8
  tail call void @_Z14TestNestingTSIv()
  tail call void @_Z17TestBlockNonblockv()
  tail call void @_Z17TestTasksInThreadv()
  tail call void @_Z21TestSchedulerMemLeaksv()
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #7
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = call i32 @sigemptyset(ptr noundef nonnull %7) #7
  %9 = getelementptr inbounds i8, ptr %1, i64 136
  store i32 0, ptr %9, align 8, !tbaa !5
  store ptr @_Z10SigHandleri, ptr %1, align 8, !tbaa !12
  %10 = call i32 @sigaction(i32 noundef 17, ptr noundef nonnull %1, ptr noundef null) #7
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %12, label %11

11:                                               ; preds = %0
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 245, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.39)
  br label %12

12:                                               ; preds = %11, %0
  %13 = call i32 @sigaction(i32 noundef 14, ptr noundef nonnull %1, ptr noundef null) #7
  %.not31 = icmp eq i32 %13, 0
  br i1 %.not31, label %15, label %14

14:                                               ; preds = %12
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 247, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.39)
  br label %15

15:                                               ; preds = %14, %12
  %16 = call i32 @sigemptyset(ptr noundef nonnull %2) #7
  %17 = call i32 @sigaddset(ptr noundef nonnull %2, i32 noundef 17) #7
  %18 = call i32 @sigaddset(ptr noundef nonnull %2, i32 noundef 14) #7
  %19 = call i32 @pthread_sigmask(i32 noundef 0, ptr noundef nonnull %2, ptr noundef null) #7
  %.not32 = icmp eq i32 %19, 0
  br i1 %.not32, label %21, label %20

20:                                               ; preds = %15
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 253, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.40)
  br label %21

21:                                               ; preds = %20, %15
  %22 = load i32, ptr @_ZL9MinThread, align 4, !tbaa !13
  %23 = load i32, ptr @_ZL9MaxThread, align 4, !tbaa !13
  %.not3355 = icmp sgt i32 %22, %23
  br i1 %.not3355, label %._crit_edge, label %.preheader

.preheader:                                       ; preds = %21, %24
  %.057 = phi i1 [ %.not34, %24 ], [ false, %21 ]
  %.02056 = phi i32 [ %26, %24 ], [ %22, %21 ]
  br label %28

._crit_edge:                                      ; preds = %24, %21
  call void @_Z12TestAutoInitv()
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %1) #7
  ret i32 0

24:                                               ; preds = %88
  %25 = load i32, ptr @_ZL9MinThread, align 4, !tbaa !13
  %26 = add nsw i32 %25, %.02056
  %27 = load i32, ptr @_ZL9MaxThread, align 4, !tbaa !13
  %.not33 = icmp sgt i32 %26, %27
  br i1 %.not33, label %._crit_edge, label %.preheader, !llvm.loop !14

28:                                               ; preds = %.preheader, %88
  %.154 = phi i1 [ %.057, %.preheader ], [ %.not34, %88 ]
  %.02853 = phi i32 [ 0, %.preheader ], [ %89, %88 ]
  br i1 %.154, label %34, label %29

29:                                               ; preds = %28
  %30 = load i8, ptr @_ZL7Verbose, align 1, !tbaa !16, !range !18, !noundef !19
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  %33 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str.19, i64 noundef 258, ptr noundef nonnull @__FUNCTION__._Z8TestMainv)
  call void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %33, ptr noundef nonnull @.str.41, i32 noundef %.02056, i32 noundef %.02853)
  br label %34

34:                                               ; preds = %32, %29, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %.02056, i64 noundef 0)
  %35 = call noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #7
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 262, ptr noundef nonnull @.str.21, ptr noundef null)
          to label %37 unwind label %43

37:                                               ; preds = %36, %34
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %.02056, i64 noundef 0)
  invoke void @_Z15CallParallelForv()
          to label %38 unwind label %45

38:                                               ; preds = %37
  %39 = call noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #7
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 268, ptr noundef nonnull @.str.21, ptr noundef null)
          to label %41 unwind label %47

41:                                               ; preds = %40, %38
  br i1 %.154, label %42, label %49

42:                                               ; preds = %41
  call void @exit(i32 noundef 0) #8
  unreachable

43:                                               ; preds = %36
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %92

45:                                               ; preds = %37
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %91

47:                                               ; preds = %40
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %91

49:                                               ; preds = %41
  %50 = call i32 @fork() #7
  %.not34 = icmp eq i32 %50, 0
  br i1 %.not34, label %88, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %52 = call i32 @alarm(i32 noundef 30) #7
  %53 = invoke i32 @sigwait(ptr noundef nonnull %2, ptr noundef nonnull %5)
          to label %54 unwind label %56

54:                                               ; preds = %51
  %.not35 = icmp eq i32 %53, 0
  br i1 %.not35, label %58, label %55

55:                                               ; preds = %54
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 293, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.42)
          to label %58 unwind label %56

56:                                               ; preds = %.invoke, %70, %67, %66, %58, %55, %51
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %87

58:                                               ; preds = %55, %54
  %59 = call i32 @alarm(i32 noundef 0) #7
  %60 = invoke i32 @waitpid(i32 noundef %50, ptr noundef null, i32 noundef 1)
          to label %61 unwind label %56

61:                                               ; preds = %58
  %62 = icmp sgt i32 %60, -1
  br i1 %62, label %63, label %.invoke

63:                                               ; preds = %61
  %.not36 = icmp eq i32 %60, 0
  br i1 %.not36, label %64, label %.thread

64:                                               ; preds = %63
  %65 = call i32 @kill(i32 noundef %50, i32 noundef 9) #7
  %.not37 = icmp eq i32 %65, 0
  br i1 %.not37, label %67, label %66

66:                                               ; preds = %64
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 298, ptr noundef nonnull @.str.45, ptr noundef null)
          to label %67 unwind label %56

67:                                               ; preds = %66, %64
  %68 = invoke i32 @waitpid(i32 noundef %50, ptr noundef null, i32 noundef 0)
          to label %69 unwind label %56

69:                                               ; preds = %67
  %.not38 = icmp eq i32 %68, -1
  br i1 %.not38, label %70, label %.invoke

70:                                               ; preds = %69
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 300, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.44)
          to label %.invoke unwind label %56

.invoke:                                          ; preds = %69, %70, %61
  %71 = phi i32 [ 296, %61 ], [ 302, %70 ], [ 302, %69 ]
  %72 = phi ptr [ @.str.43, %61 ], [ @.str.38, %70 ], [ @.str.38, %69 ]
  %73 = phi ptr [ @.str.44, %61 ], [ @.str.47, %70 ], [ @.str.47, %69 ]
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef %71, ptr noundef nonnull %72, ptr noundef nonnull %73)
          to label %.thread unwind label %56

.thread:                                          ; preds = %.invoke, %63
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #7
  br label %74

74:                                               ; preds = %.backedge, %.thread
  %75 = call i32 @sigemptyset(ptr noundef nonnull %6) #7
  %76 = call i32 @sigpending(ptr noundef nonnull %6) #7
  %77 = call i32 @sigismember(ptr noundef nonnull %6, i32 noundef 14) #7
  %.not39 = icmp eq i32 %77, 0
  br i1 %.not39, label %78, label %80

78:                                               ; preds = %74
  %79 = call i32 @sigismember(ptr noundef nonnull %6, i32 noundef 17) #7
  %.not40 = icmp eq i32 %79, 0
  br i1 %.not40, label %86, label %80

80:                                               ; preds = %78, %74
  %81 = invoke i32 @sigwait(ptr noundef nonnull %6, ptr noundef nonnull %5)
          to label %82 unwind label %84

82:                                               ; preds = %80
  %.not41 = icmp eq i32 %81, 0
  br i1 %.not41, label %.backedge, label %83

.backedge:                                        ; preds = %82, %83
  br label %74, !llvm.loop !20

83:                                               ; preds = %82
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.19, i32 noundef 312, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.42)
          to label %.backedge unwind label %84

84:                                               ; preds = %83, %80
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  br label %87

86:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %88

87:                                               ; preds = %84, %56
  %.pn = phi { ptr, i32 } [ %85, %84 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %91

88:                                               ; preds = %49, %86
  %.129 = phi i32 [ %.02853, %86 ], [ -1, %49 ]
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %89 = add nsw i32 %.129, 1
  %90 = icmp slt i32 %.129, 19
  br i1 %90, label %28, label %24, !llvm.loop !21

91:                                               ; preds = %47, %87, %45
  %.pn.pn.pn = phi { ptr, i32 } [ %46, %45 ], [ %.pn, %87 ], [ %48, %47 ]
  call void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %92

92:                                               ; preds = %91, %43
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %91 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10SigHandleri(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15CallParallelForv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17TestBlockNonblockv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17TestTasksInThreadv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb19task_scheduler_initC2Eim(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i64 noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3tbb19task_scheduler_init18blocking_terminateERKSt9nothrow_t(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb19task_scheduler_initD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21TestSchedulerMemLeaksv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14TestNestingTSIv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12TestAutoInitv() local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @sigemptyset(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @sigaddset(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @alarm(i32 noundef) local_unnamed_addr #3

declare i32 @sigwait(ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @kill(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @sigpending(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @sigismember(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 136}
!6 = !{!"_ZTS9sigaction", !7, i64 0, !9, i64 8, !10, i64 136, !11, i64 144}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTS10__sigset_t", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass