; LLVM IR from AngoraFuzzer/Angora :: llvm_mode/dfsan_rt/sanitizer_common (sanitizer_stoptheworld_linux_libcdep)

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

%"struct.__sanitizer::__sanitizer_sigset_t" = type { [16 x i64] }
%"class.__sanitizer::StopTheWorldScope" = type { i32 }
%"struct.__sanitizer::TracerThreadArgument" = type { ptr, ptr, %"class.__sanitizer::BlockingMutex", %"struct.__sanitizer::atomic_uintptr_t", i64 }
%"class.__sanitizer::BlockingMutex" = type { [10 x i64], i64 }
%"struct.__sanitizer::atomic_uintptr_t" = type { i64 }
%"class.__sanitizer::ScopedStackSpaceWithGuard" = type { i64, i64, i64 }
%"struct.__sanitizer::ScopedSetTracerPID" = type { i8 }

@_ZN11__sanitizerL14blocked_sigsetE = external hidden global %"struct.__sanitizer::__sanitizer_sigset_t", align 8
@_ZN11__sanitizerL12kSyncSignalsE = external hidden constant [7 x i32], align 16
@_ZN11__sanitizerL10old_sigsetE = external hidden global %"struct.__sanitizer::__sanitizer_sigset_t", align 8
@.str.5 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 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

declare noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN11__sanitizer9VerbosityEv() #2

declare void @_ZN11__sanitizer6ReportEPKcz(ptr noundef, ...) #1

declare noundef i64 @_ZN11__sanitizer16internal_waitpidEiPii(i32 noundef, ptr noundef, i32 noundef) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12StopTheWorldEPFvRKNS_20SuspendedThreadsListEPvES3_(ptr noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__sanitizer::StopTheWorldScope", align 4
  %6 = alloca %"struct.__sanitizer::TracerThreadArgument", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.__sanitizer::ScopedStackSpaceWithGuard", align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.__sanitizer::ScopedSetTracerPID", align 1
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  call void @_ZN11__sanitizer17StopTheWorldScopeC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 120, ptr %6) #9
  invoke void @_ZN11__sanitizer20TracerThreadArgumentC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6)
          to label %20 unwind label %38

20:                                               ; preds = %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 0
  store ptr %21, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 1
  store ptr %23, ptr %24, align 8, !tbaa !14
  %25 = invoke noundef i64 @_ZN11__sanitizer15internal_getpidEv()
          to label %26 unwind label %38

26:                                               ; preds = %20
  %27 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 4
  store i64 %25, ptr %27, align 8, !tbaa !15
  %28 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 3
  invoke void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef %28, i64 noundef 0, i32 noundef 1)
          to label %29 unwind label %38

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store i64 2097152, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  invoke void @_ZN11__sanitizer25ScopedStackSpaceWithGuardC2Em(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 2097152)
          to label %30 unwind label %42

30:                                               ; preds = %29
  %31 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 2
  invoke void @_ZN11__sanitizer13BlockingMutex4LockEv(ptr noundef nonnull align 8 dereferenceable(88) %31)
          to label %32 unwind label %46

32:                                               ; preds = %30
  invoke void @_ZN11__sanitizer19internal_sigfillsetEPNS_20__sanitizer_sigset_tE(ptr noundef @_ZN11__sanitizerL14blocked_sigsetE)
          to label %33 unwind label %46

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  store i64 0, ptr %11, align 8, !tbaa !16
  br label %34

34:                                               ; preds = %55, %33
  %35 = load i64, ptr %11, align 8, !tbaa !16
  %36 = icmp ult i64 %35, 7
  br i1 %36, label %50, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %62

38:                                               ; preds = %26, %20, %2
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %7, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %8, align 4
  br label %188

42:                                               ; preds = %29
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  br label %187

46:                                               ; preds = %32, %30
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %186

50:                                               ; preds = %34
  %51 = load i64, ptr %11, align 8, !tbaa !16
  %52 = getelementptr inbounds [7 x i32], ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !17
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %53)
          to label %54 unwind label %58

54:                                               ; preds = %50
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %11, align 8, !tbaa !16
  %57 = add i64 %56, 1
  store i64 %57, ptr %11, align 8, !tbaa !16
  br label %34, !llvm.loop !19

58:                                               ; preds = %50
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %186

62:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %63 = invoke noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef 0, ptr noundef @_ZN11__sanitizerL14blocked_sigsetE, ptr noundef @_ZN11__sanitizerL10old_sigsetE)
          to label %64 unwind label %82

64:                                               ; preds = %62
  %65 = trunc i64 %63 to i32
  store i32 %65, ptr %12, align 4, !tbaa !17
  br label %66

66:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %67 = load i32, ptr %12, align 4, !tbaa !17
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %13, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store i64 0, ptr %14, align 8, !tbaa !21
  %69 = load i64, ptr %13, align 8, !tbaa !21
  %70 = load i64, ptr %14, align 8, !tbaa !21
  %71 = icmp eq i64 %69, %70
  %72 = xor i1 %71, true
  %73 = xor i1 %72, true
  %74 = xor i1 %73, true
  %75 = zext i1 %74 to i64
  %76 = call i64 @llvm.expect.i64(i64 %75, i64 0)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %90

78:                                               ; preds = %66
  %79 = load i64, ptr %13, align 8, !tbaa !21
  %80 = load i64, ptr %14, align 8, !tbaa !21
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 411, ptr noundef @.str.6, i64 noundef %79, i64 noundef %80) #10
          to label %81 unwind label %86

81:                                               ; preds = %78
  unreachable

82:                                               ; preds = %62
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  br label %185

86:                                               ; preds = %78
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %185

90:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %93 = invoke noundef ptr @_ZNK11__sanitizer25ScopedStackSpaceWithGuard6BottomEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %94 unwind label %111

94:                                               ; preds = %92
  %95 = invoke noundef i64 @_ZN11__sanitizer14internal_cloneEPFiPvES0_iS0_PiS0_S3_(ptr noundef @_ZN11__sanitizerL12TracerThreadEPv, ptr noundef %93, i32 noundef 8390400, ptr noundef %6, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %96 unwind label %111

96:                                               ; preds = %94
  store i64 %95, ptr %15, align 8, !tbaa !16
  %97 = invoke noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef 2, ptr noundef @_ZN11__sanitizerL10old_sigsetE, ptr noundef null)
          to label %98 unwind label %111

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !17
  %99 = load i64, ptr %15, align 8, !tbaa !16
  %100 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %99, ptr noundef %16)
          to label %101 unwind label %115

101:                                              ; preds = %98
  br i1 %100, label %102, label %124

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  %104 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %105 unwind label %115

105:                                              ; preds = %103
  %106 = sext i32 %104 to i64
  %107 = icmp uge i64 %106, 1
  br i1 %107, label %108, label %119

108:                                              ; preds = %105
  %109 = load i32, ptr %16, align 4, !tbaa !17
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.7, i32 noundef %109)
          to label %110 unwind label %115

110:                                              ; preds = %108
  br label %119

111:                                              ; preds = %96, %94, %92
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  br label %184

115:                                              ; preds = %121, %108, %103, %98
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %7, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %8, align 4
  br label %183

119:                                              ; preds = %110, %105
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  %122 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 2
  invoke void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88) %122)
          to label %123 unwind label %115

123:                                              ; preds = %121
  br label %182

124:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  %125 = load i64, ptr %15, align 8, !tbaa !16
  invoke void @_ZN11__sanitizer18ScopedSetTracerPIDC2Em(ptr noundef nonnull align 1 dereferenceable(1) %17, i64 noundef %125)
          to label %126 unwind label %139

126:                                              ; preds = %124
  %127 = load i64, ptr %15, align 8, !tbaa !16
  %128 = invoke noundef i64 @_ZN11__sanitizer14internal_prctlEimmmm(i32 noundef 1499557217, i64 noundef %127, i64 noundef 0, i64 noundef 0, i64 noundef 0)
          to label %129 unwind label %143

129:                                              ; preds = %126
  %130 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 2
  invoke void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88) %130)
          to label %131 unwind label %143

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %137, %131
  %133 = getelementptr inbounds %"struct.__sanitizer::TracerThreadArgument", ptr %6, i32 0, i32 3
  %134 = invoke noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef %133, i32 noundef 1)
          to label %135 unwind label %143

135:                                              ; preds = %132
  %136 = icmp eq i64 %134, 0
  br i1 %136, label %137, label %147

137:                                              ; preds = %135
  %138 = call i32 @sched_yield() #9
  br label %132, !llvm.loop !23

139:                                              ; preds = %124
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %7, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %8, align 4
  br label %181

143:                                              ; preds = %132, %129, %126
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %7, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %8, align 4
  br label %180

147:                                              ; preds = %135
  br label %148

148:                                              ; preds = %177, %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %149 = load i64, ptr %15, align 8, !tbaa !16
  %150 = trunc i64 %149 to i32
  %151 = invoke noundef i64 @_ZN11__sanitizer16internal_waitpidEiPii(i32 noundef %150, ptr noundef null, i32 noundef 1073741824)
          to label %152 unwind label %157

152:                                              ; preds = %148
  store i64 %151, ptr %18, align 8, !tbaa !16
  %153 = load i64, ptr %18, align 8, !tbaa !16
  %154 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %153, ptr noundef %16)
          to label %155 unwind label %157

155:                                              ; preds = %152
  br i1 %154, label %161, label %156

156:                                              ; preds = %155
  store i32 11, ptr %19, align 4
  br label %177

157:                                              ; preds = %171, %166, %152, %148
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %7, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %180

161:                                              ; preds = %155
  %162 = load i32, ptr %16, align 4, !tbaa !17
  %163 = icmp eq i32 %162, 4
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  store i32 12, ptr %19, align 4
  br label %177, !llvm.loop !24

165:                                              ; preds = %161
  br label %166

166:                                              ; preds = %165
  %167 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %168 unwind label %157

168:                                              ; preds = %166
  %169 = sext i32 %167 to i64
  %170 = icmp uge i64 %169, 1
  br i1 %170, label %171, label %174

171:                                              ; preds = %168
  %172 = load i32, ptr %16, align 4, !tbaa !17
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.8, i32 noundef %172)
          to label %173 unwind label %157

173:                                              ; preds = %171
  br label %174

174:                                              ; preds = %173, %168
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  store i32 11, ptr %19, align 4
  br label %177

177:                                              ; preds = %176, %164, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  %178 = load i32, ptr %19, align 4
  switch i32 %178, label %194 [
    i32 11, label %179
    i32 12, label %148
  ]

179:                                              ; preds = %177
  call void @_ZN11__sanitizer18ScopedSetTracerPIDD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %182

180:                                              ; preds = %157, %143
  call void @_ZN11__sanitizer18ScopedSetTracerPIDD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  br label %181

181:                                              ; preds = %180, %139
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  br label %183

182:                                              ; preds = %179, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @_ZN11__sanitizer25ScopedStackSpaceWithGuardD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  ret void

183:                                              ; preds = %181, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %184

184:                                              ; preds = %183, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %185

185:                                              ; preds = %184, %86, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %186

186:                                              ; preds = %185, %58, %46
  call void @_ZN11__sanitizer25ScopedStackSpaceWithGuardD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  br label %187

187:                                              ; preds = %186, %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %188

188:                                              ; preds = %187, %38
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #9
  call void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %7, align 8
  %191 = load i32, ptr %8, align 4
  %192 = insertvalue { ptr, i32 } poison, ptr %190, 0
  %193 = insertvalue { ptr, i32 } %192, i32 %191, 1
  resume { ptr, i32 } %193

194:                                              ; preds = %177
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer17StopTheWorldScopeC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11__sanitizer20TracerThreadArgumentC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

declare noundef i64 @_ZN11__sanitizer15internal_getpidEv() #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef, i64 noundef, i32 noundef) #4

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

declare void @_ZN11__sanitizer13BlockingMutex4LockEv(ptr noundef nonnull align 8 dereferenceable(88)) #1

declare void @_ZN11__sanitizer19internal_sigfillsetEPNS_20__sanitizer_sigset_tE(ptr noundef) #1

declare void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef, i32 noundef) #1

declare noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

; Function Attrs: noreturn
declare void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) #6

declare noundef i64 @_ZN11__sanitizer14internal_cloneEPFiPvES0_iS0_PiS0_S3_(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN11__sanitizerL12TracerThreadEPv(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11__sanitizer25ScopedStackSpaceWithGuard6BottomEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

declare void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer18ScopedSetTracerPIDC2Em(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) unnamed_addr #3 align 2

declare noundef i64 @_ZN11__sanitizer14internal_prctlEimmmm(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind
declare i32 @sched_yield() #8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #7 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { inlinehint 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 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { noreturn "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 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN11__sanitizer20TracerThreadArgumentE", !6, i64 0, !6, i64 8, !11, i64 16, !13, i64 104, !12, i64 112}
!11 = !{!"_ZTSN11__sanitizer13BlockingMutexE", !7, i64 0, !12, i64 80}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSN11__sanitizer16atomic_uintptr_tE", !12, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !12, i64 112}
!16 = !{!12, !12, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !22, i64 0}
!22 = !{!"long long", !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


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

%"struct.__sanitizer::__sanitizer_sigset_t" = type { [16 x i64] }
%"class.__sanitizer::StopTheWorldScope" = type { i32 }
%"struct.__sanitizer::TracerThreadArgument" = type { ptr, ptr, %"class.__sanitizer::BlockingMutex", %"struct.__sanitizer::atomic_uintptr_t", i64 }
%"class.__sanitizer::BlockingMutex" = type { [10 x i64], i64 }
%"struct.__sanitizer::atomic_uintptr_t" = type { i64 }
%"class.__sanitizer::ScopedStackSpaceWithGuard" = type { i64, i64, i64 }
%"struct.__sanitizer::ScopedSetTracerPID" = type { i8 }

@_ZN11__sanitizerL14blocked_sigsetE = external hidden global %"struct.__sanitizer::__sanitizer_sigset_t", align 8
@_ZN11__sanitizerL12kSyncSignalsE = external hidden local_unnamed_addr constant [7 x i32], align 16
@_ZN11__sanitizerL10old_sigsetE = external hidden global %"struct.__sanitizer::__sanitizer_sigset_t", align 8
@.str.5 = external hidden unnamed_addr constant [129 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 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

declare noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN11__sanitizer9VerbosityEv() local_unnamed_addr #2

declare void @_ZN11__sanitizer6ReportEPKcz(ptr noundef, ...) local_unnamed_addr #1

declare noundef i64 @_ZN11__sanitizer16internal_waitpidEiPii(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12StopTheWorldEPFvRKNS_20SuspendedThreadsListEPvES3_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__sanitizer::StopTheWorldScope", align 4
  %4 = alloca %"struct.__sanitizer::TracerThreadArgument", align 8
  %5 = alloca %"class.__sanitizer::ScopedStackSpaceWithGuard", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.__sanitizer::ScopedSetTracerPID", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @_ZN11__sanitizer17StopTheWorldScopeC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #8
  invoke void @_ZN11__sanitizer20TracerThreadArgumentC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %4)
          to label %8 unwind label %18

8:                                                ; preds = %2
  store ptr %0, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %1, ptr %9, align 8, !tbaa !13
  %10 = invoke noundef i64 @_ZN11__sanitizer15internal_getpidEv()
          to label %11 unwind label %18

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %4, i64 112
  store i64 %10, ptr %12, align 8, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %4, i64 104
  call void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef nonnull %13, i64 noundef 0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  invoke void @_ZN11__sanitizer25ScopedStackSpaceWithGuardC2Em(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 2097152)
          to label %14 unwind label %20

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %4, i64 16
  invoke void @_ZN11__sanitizer13BlockingMutex4LockEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %16 unwind label %22

16:                                               ; preds = %14
  invoke void @_ZN11__sanitizer19internal_sigfillsetEPNS_20__sanitizer_sigset_tE(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE)
          to label %.preheader45.preheader unwind label %22

.preheader45.preheader:                           ; preds = %16
  %17 = load i32, ptr @_ZN11__sanitizerL12kSyncSignalsE, align 16, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %17)
          to label %.preheader45.1 unwind label %32

18:                                               ; preds = %8, %2
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %93

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %92

22:                                               ; preds = %16, %14
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %91

.preheader45.1:                                   ; preds = %.preheader45.preheader
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 4), align 4, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %24)
          to label %.preheader45.2 unwind label %32

.preheader45.2:                                   ; preds = %.preheader45.1
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 8), align 8, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %25)
          to label %.preheader45.3 unwind label %32

.preheader45.3:                                   ; preds = %.preheader45.2
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 12), align 4, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %26)
          to label %.preheader45.4 unwind label %32

.preheader45.4:                                   ; preds = %.preheader45.3
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 16), align 16, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %27)
          to label %.preheader45.5 unwind label %32

.preheader45.5:                                   ; preds = %.preheader45.4
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 20), align 4, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %28)
          to label %.preheader45.6 unwind label %32

.preheader45.6:                                   ; preds = %.preheader45.5
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN11__sanitizerL12kSyncSignalsE, i64 24), align 8, !tbaa !15
  invoke void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, i32 noundef %29)
          to label %30 unwind label %32

30:                                               ; preds = %.preheader45.6
  %31 = invoke noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef 0, ptr noundef nonnull @_ZN11__sanitizerL14blocked_sigsetE, ptr noundef nonnull @_ZN11__sanitizerL10old_sigsetE)
          to label %34 unwind label %38

32:                                               ; preds = %.preheader45.6, %.preheader45.5, %.preheader45.4, %.preheader45.3, %.preheader45.2, %.preheader45.1, %.preheader45.preheader
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %91

34:                                               ; preds = %30
  %sext = shl i64 %31, 32
  %.not = icmp eq i64 %sext, 0
  br i1 %.not, label %42, label %35, !prof !17

35:                                               ; preds = %34
  %36 = ashr exact i64 %sext, 32
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 411, ptr noundef nonnull @.str.6, i64 noundef %36, i64 noundef 0) #9
          to label %37 unwind label %40

37:                                               ; preds = %35
  unreachable

38:                                               ; preds = %30
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %91

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

42:                                               ; preds = %34
  %43 = call noundef ptr @_ZNK11__sanitizer25ScopedStackSpaceWithGuard6BottomEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %44 = invoke noundef i64 @_ZN11__sanitizer14internal_cloneEPFiPvES0_iS0_PiS0_S3_(ptr noundef nonnull @_ZN11__sanitizerL12TracerThreadEPv, ptr noundef %43, i32 noundef 8390400, ptr noundef nonnull %4, ptr noundef null, ptr noundef null, ptr noundef null)
          to label %45 unwind label %55

45:                                               ; preds = %42
  %46 = invoke noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef 2, ptr noundef nonnull @_ZN11__sanitizerL10old_sigsetE, ptr noundef null)
          to label %47 unwind label %55

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  store i32 0, ptr %6, align 4, !tbaa !15
  %48 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %44, ptr noundef nonnull %6)
          to label %49 unwind label %57

49:                                               ; preds = %47
  br i1 %48, label %50, label %60

50:                                               ; preds = %49
  %51 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %52 unwind label %57

52:                                               ; preds = %50
  %.not30 = icmp eq i32 %51, 0
  br i1 %.not30, label %59, label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %6, align 4, !tbaa !15
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.7, i32 noundef %54)
          to label %59 unwind label %57

55:                                               ; preds = %45, %42
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %91

57:                                               ; preds = %59, %53, %50, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %90

59:                                               ; preds = %53, %52
  invoke void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %89 unwind label %57

60:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  invoke void @_ZN11__sanitizer18ScopedSetTracerPIDC2Em(ptr noundef nonnull align 1 dereferenceable(1) %7, i64 noundef %44)
          to label %61 unwind label %70

61:                                               ; preds = %60
  %62 = invoke noundef i64 @_ZN11__sanitizer14internal_prctlEimmmm(i32 noundef 1499557217, i64 noundef %44, i64 noundef 0, i64 noundef 0, i64 noundef 0)
          to label %63 unwind label %72

63:                                               ; preds = %61
  invoke void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %.preheader44 unwind label %72

.preheader44:                                     ; preds = %63
  %64 = call noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef nonnull %13, i32 noundef 1)
  %65 = icmp eq i64 %64, 0
  br i1 %65, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %.preheader44
  %66 = trunc i64 %44 to i32
  br label %74

.lr.ph:                                           ; preds = %.preheader44, %.lr.ph
  %67 = call i32 @sched_yield() #8
  %68 = call noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef nonnull %13, i32 noundef 1)
  %69 = icmp eq i64 %68, 0
  br i1 %69, label %.lr.ph, label %.preheader, !llvm.loop !18

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %88

72:                                               ; preds = %63, %61
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %87

74:                                               ; preds = %.preheader, %79
  %75 = invoke noundef i64 @_ZN11__sanitizer16internal_waitpidEiPii(i32 noundef %66, ptr noundef null, i32 noundef 1073741824)
          to label %76 unwind label %.loopexit

76:                                               ; preds = %74
  %77 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %75, ptr noundef nonnull %6)
          to label %78 unwind label %.loopexit

78:                                               ; preds = %76
  br i1 %77, label %79, label %.loopexit43

.loopexit:                                        ; preds = %74, %76
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %87

.loopexit.split-lp:                               ; preds = %82, %85
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %87

79:                                               ; preds = %78
  %80 = load i32, ptr %6, align 4, !tbaa !15
  %81 = icmp eq i32 %80, 4
  br i1 %81, label %74, label %82, !llvm.loop !20

82:                                               ; preds = %79
  %83 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %84 unwind label %.loopexit.split-lp

84:                                               ; preds = %82
  %.not27 = icmp eq i32 %83, 0
  br i1 %.not27, label %.loopexit43, label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %6, align 4, !tbaa !15
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.8, i32 noundef %86)
          to label %.loopexit43 unwind label %.loopexit.split-lp

.loopexit43:                                      ; preds = %78, %85, %84
  call void @_ZN11__sanitizer18ScopedSetTracerPIDD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %89

87:                                               ; preds = %.loopexit, %.loopexit.split-lp, %72
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN11__sanitizer18ScopedSetTracerPIDD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  br label %88

88:                                               ; preds = %87, %70
  %.pn.pn = phi { ptr, i32 } [ %.pn, %87 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %90

89:                                               ; preds = %59, %.loopexit43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @_ZN11__sanitizer25ScopedStackSpaceWithGuardD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #8
  call void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  ret void

90:                                               ; preds = %88, %57
  %.pn31 = phi { ptr, i32 } [ %58, %57 ], [ %.pn.pn, %88 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %91

91:                                               ; preds = %38, %40, %90, %55, %32, %22
  %.pn36 = phi { ptr, i32 } [ %33, %32 ], [ %23, %22 ], [ %41, %40 ], [ %39, %38 ], [ %.pn31, %90 ], [ %56, %55 ]
  call void @_ZN11__sanitizer25ScopedStackSpaceWithGuardD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %92

92:                                               ; preds = %91, %20
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %91 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %93

93:                                               ; preds = %92, %18
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %92 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #8
  call void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn36.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer17StopTheWorldScopeC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11__sanitizer20TracerThreadArgumentC2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2 align 2

declare noundef i64 @_ZN11__sanitizer15internal_getpidEv() local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

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

declare void @_ZN11__sanitizer13BlockingMutex4LockEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

declare void @_ZN11__sanitizer19internal_sigfillsetEPNS_20__sanitizer_sigset_tE(ptr noundef) local_unnamed_addr #1

declare void @_ZN11__sanitizer18internal_sigdelsetEPNS_20__sanitizer_sigset_tEi(ptr noundef, i32 noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11__sanitizer20internal_sigprocmaskEiPNS_20__sanitizer_sigset_tES1_(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: noreturn
declare void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

declare noundef i64 @_ZN11__sanitizer14internal_cloneEPFiPvES0_iS0_PiS0_S3_(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN11__sanitizerL12TracerThreadEPv(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11__sanitizer25ScopedStackSpaceWithGuard6BottomEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

declare void @_ZN11__sanitizer13BlockingMutex6UnlockEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer18ScopedSetTracerPIDC2Em(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) unnamed_addr #3 align 2

declare noundef i64 @_ZN11__sanitizer14internal_prctlEimmmm(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @sched_yield() local_unnamed_addr #7

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer17StopTheWorldScopeD2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #6 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { inlinehint 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 = { 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 #4 = { inlinehint 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 #5 = { noreturn "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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN11__sanitizer20TracerThreadArgumentE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 104, !11, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11__sanitizer13BlockingMutexE", !8, i64 0, !11, i64 80}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSN11__sanitizer16atomic_uintptr_tE", !11, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !11, i64 112}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass