; LLVM IR from AngoraFuzzer/Angora :: llvm_mode/dfsan_rt/sanitizer_common (sanitizer_symbolizer_posix_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"

%"class.__sanitizer::SymbolizerProcess" = type <{ ptr, ptr, i32, i32, [16384 x i8], i64, i8, i8, i8, [5 x i8] }>

@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11__sanitizer17SymbolizerProcess25StartSymbolizerSubprocessEv(ptr noundef nonnull align 8 dereferenceable(16419) %0) #1 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [5 x [2 x i32]], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca [6 x ptr], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  %20 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call noundef zeroext i1 @_ZN11__sanitizer10FileExistsEPKc(ptr noundef %21)
  br i1 %22, label %30, label %23

23:                                               ; preds = %1
  %24 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 7
  %25 = load i8, ptr %24, align 1, !tbaa !14, !range !15, !noundef !16
  %26 = trunc i8 %25 to i1
  br i1 %26, label %29, label %27

27:                                               ; preds = %23
  call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str)
  %28 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 7
  store i8 1, ptr %28, align 1, !tbaa !14
  br label %29

29:                                               ; preds = %27, %23
  store i1 false, ptr %2, align 1
  br label %238

30:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %31 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 8
  %32 = load i8, ptr %31, align 2, !tbaa !17, !range !15, !noundef !16
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %54

34:                                               ; preds = %30
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !18
  %37 = load i64, ptr %5, align 8, !tbaa !18
  %38 = load i64, ptr %6, align 8, !tbaa !18
  %39 = icmp ne i64 %37, %38
  %40 = xor i1 %39, true
  %41 = xor i1 %40, true
  %42 = xor i1 %41, true
  %43 = zext i1 %42 to i64
  %44 = call i64 @llvm.expect.i64(i64 %43, i64 0)
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %36
  %47 = load i64, ptr %5, align 8, !tbaa !18
  %48 = load i64, ptr %6, align 8, !tbaa !18
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.1, i32 noundef 156, ptr noundef @.str.2, i64 noundef %47, i64 noundef %48) #8
  unreachable

49:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  call void @_ZN11__sanitizer3DieEv() #8
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52
  br label %232

54:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !20
  br label %55

55:                                               ; preds = %151, %54
  %56 = load i32, ptr %10, align 4, !tbaa !20
  %57 = icmp slt i32 %56, 5
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 6, ptr %11, align 4
  br label %154

59:                                               ; preds = %55
  %60 = load i32, ptr %10, align 4, !tbaa !20
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %61
  %63 = getelementptr inbounds [2 x i32], ptr %62, i64 0, i64 0
  %64 = call i32 @pipe(ptr noundef %63) #7
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %91

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !20
  br label %67

67:                                               ; preds = %85, %66
  %68 = load i32, ptr %12, align 4, !tbaa !20
  %69 = load i32, ptr %10, align 4, !tbaa !20
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 9, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %88

72:                                               ; preds = %67
  %73 = load i32, ptr %12, align 4, !tbaa !20
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %74
  %76 = getelementptr inbounds [2 x i32], ptr %75, i64 0, i64 0
  %77 = load i32, ptr %76, align 8, !tbaa !20
  %78 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %77)
  %79 = load i32, ptr %12, align 4, !tbaa !20
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %80
  %82 = getelementptr inbounds [2 x i32], ptr %81, i64 0, i64 1
  %83 = load i32, ptr %82, align 4, !tbaa !20
  %84 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %83)
  br label %85

85:                                               ; preds = %72
  %86 = load i32, ptr %12, align 4, !tbaa !20
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %12, align 4, !tbaa !20
  br label %67, !llvm.loop !21

88:                                               ; preds = %71
  %89 = call ptr @__errno_location() #9
  %90 = load i32, ptr %89, align 4, !tbaa !20
  call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.3, i32 noundef %90)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %11, align 4
  br label %154

91:                                               ; preds = %59
  %92 = load i32, ptr %10, align 4, !tbaa !20
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %93
  %95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 0
  %96 = load i32, ptr %95, align 8, !tbaa !20
  %97 = icmp sgt i32 %96, 2
  br i1 %97, label %98, label %149

98:                                               ; preds = %91
  %99 = load i32, ptr %10, align 4, !tbaa !20
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %100
  %102 = getelementptr inbounds [2 x i32], ptr %101, i64 0, i64 1
  %103 = load i32, ptr %102, align 4, !tbaa !20
  %104 = icmp sgt i32 %103, 2
  br i1 %104, label %105, label %149

105:                                              ; preds = %98
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %113

108:                                              ; preds = %105
  %109 = load i32, ptr %10, align 4, !tbaa !20
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %110
  %112 = getelementptr inbounds [2 x i32], ptr %111, i64 0, i64 0
  store ptr %112, ptr %7, align 8, !tbaa !5
  br label %148

113:                                              ; preds = %105
  %114 = load i32, ptr %10, align 4, !tbaa !20
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %115
  %117 = getelementptr inbounds [2 x i32], ptr %116, i64 0, i64 0
  store ptr %117, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !20
  br label %118

118:                                              ; preds = %144, %113
  %119 = load i32, ptr %13, align 4, !tbaa !20
  %120 = load i32, ptr %10, align 4, !tbaa !20
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 12, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %147

123:                                              ; preds = %118
  %124 = load i32, ptr %13, align 4, !tbaa !20
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %125
  %127 = getelementptr inbounds [2 x i32], ptr %126, i64 0, i64 0
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = icmp eq ptr %127, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %123
  br label %144

131:                                              ; preds = %123
  %132 = load i32, ptr %13, align 4, !tbaa !20
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %133
  %135 = getelementptr inbounds [2 x i32], ptr %134, i64 0, i64 0
  %136 = load i32, ptr %135, align 8, !tbaa !20
  %137 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %136)
  %138 = load i32, ptr %13, align 4, !tbaa !20
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [5 x [2 x i32]], ptr %9, i64 0, i64 %139
  %141 = getelementptr inbounds [2 x i32], ptr %140, i64 0, i64 1
  %142 = load i32, ptr %141, align 4, !tbaa !20
  %143 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %142)
  br label %144

144:                                              ; preds = %131, %130
  %145 = load i32, ptr %13, align 4, !tbaa !20
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %13, align 4, !tbaa !20
  br label %118, !llvm.loop !23

147:                                              ; preds = %122
  store i32 6, ptr %11, align 4
  br label %154

148:                                              ; preds = %108
  br label %149

149:                                              ; preds = %148, %98, %91
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %10, align 4, !tbaa !20
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %10, align 4, !tbaa !20
  br label %55, !llvm.loop !24

154:                                              ; preds = %147, %88, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %155 = load i32, ptr %11, align 4
  switch i32 %155, label %229 [
    i32 6, label %156
  ]

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = ptrtoint ptr %158 to i64
  store i64 %159, ptr %14, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !18
  %160 = load i64, ptr %14, align 8, !tbaa !18
  %161 = load i64, ptr %15, align 8, !tbaa !18
  %162 = icmp ne i64 %160, %161
  %163 = xor i1 %162, true
  %164 = xor i1 %163, true
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i64
  %167 = call i64 @llvm.expect.i64(i64 %166, i64 0)
  %168 = icmp ne i64 %167, 0
  br i1 %168, label %169, label %172

169:                                              ; preds = %157
  %170 = load i64, ptr %14, align 8, !tbaa !18
  %171 = load i64, ptr %15, align 8, !tbaa !18
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.1, i32 noundef 191, ptr noundef @.str.4, i64 noundef %170, i64 noundef %171) #8
  unreachable

172:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = ptrtoint ptr %176 to i64
  store i64 %177, ptr %16, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !18
  %178 = load i64, ptr %16, align 8, !tbaa !18
  %179 = load i64, ptr %17, align 8, !tbaa !18
  %180 = icmp ne i64 %178, %179
  %181 = xor i1 %180, true
  %182 = xor i1 %181, true
  %183 = xor i1 %182, true
  %184 = zext i1 %183 to i64
  %185 = call i64 @llvm.expect.i64(i64 %184, i64 0)
  %186 = icmp ne i64 %185, 0
  br i1 %186, label %187, label %190

187:                                              ; preds = %175
  %188 = load i64, ptr %16, align 8, !tbaa !18
  %189 = load i64, ptr %17, align 8, !tbaa !18
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.1, i32 noundef 192, ptr noundef @.str.5, i64 noundef %188, i64 noundef %189) #8
  unreachable

190:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #7
  %193 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = load ptr, ptr %19, align 8, !tbaa !25
  %196 = getelementptr inbounds ptr, ptr %195, i64 1
  %197 = load ptr, ptr %196, align 8
  call void %197(ptr noundef nonnull align 8 dereferenceable(16419) %19, ptr noundef %194, ptr noundef nonnull align 8 dereferenceable(48) %18)
  %198 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !9
  %200 = getelementptr inbounds [6 x ptr], ptr %18, i64 0, i64 0
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds i32, ptr %201, i64 0
  %203 = load i32, ptr %202, align 4, !tbaa !20
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds i32, ptr %204, i64 1
  %206 = load i32, ptr %205, align 4, !tbaa !20
  %207 = call noundef i32 @_ZN11__sanitizer15StartSubprocessEPKcPKS1_iii(ptr noundef %199, ptr noundef %200, i32 noundef %203, i32 noundef %206, i32 noundef -1)
  store i32 %207, ptr %4, align 4, !tbaa !20
  %208 = load i32, ptr %4, align 4, !tbaa !20
  %209 = icmp slt i32 %208, 0
  br i1 %209, label %210, label %219

210:                                              ; preds = %192
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds i32, ptr %211, i64 0
  %213 = load i32, ptr %212, align 4, !tbaa !20
  %214 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %213)
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds i32, ptr %215, i64 1
  %217 = load i32, ptr %216, align 4, !tbaa !20
  %218 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %217)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %11, align 4
  br label %228

219:                                              ; preds = %192
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = getelementptr inbounds i32, ptr %220, i64 0
  %222 = load i32, ptr %221, align 4, !tbaa !20
  %223 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 2
  store i32 %222, ptr %223, align 8, !tbaa !27
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds i32, ptr %224, i64 1
  %226 = load i32, ptr %225, align 4, !tbaa !20
  %227 = getelementptr inbounds %"class.__sanitizer::SymbolizerProcess", ptr %19, i32 0, i32 3
  store i32 %226, ptr %227, align 4, !tbaa !28
  store i32 0, ptr %11, align 4
  br label %228

228:                                              ; preds = %219, %210
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  br label %229

229:                                              ; preds = %228, %154
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %230 = load i32, ptr %11, align 4
  switch i32 %230, label %237 [
    i32 0, label %231
  ]

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231, %53
  call void @_ZN11__sanitizer14SleepForMillisEi(i32 noundef 10)
  %233 = load i32, ptr %4, align 4, !tbaa !20
  %234 = call noundef zeroext i1 @_ZN11__sanitizer16IsProcessRunningEi(i32 noundef %233)
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.6)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %11, align 4
  br label %237

236:                                              ; preds = %232
  store i1 true, ptr %2, align 1
  store i32 1, ptr %11, align 4
  br label %237

237:                                              ; preds = %236, %235, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %238

238:                                              ; preds = %237, %29
  %239 = load i1, ptr %2, align 1
  ret i1 %239
}

declare noundef zeroext i1 @_ZN11__sanitizer10FileExistsEPKc(ptr noundef) #2

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

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

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

; Function Attrs: noreturn
declare void @_ZN11__sanitizer3DieEv() #4

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) #5

declare noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

declare noundef i32 @_ZN11__sanitizer15StartSubprocessEPKcPKS1_iii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @_ZN11__sanitizer14SleepForMillisEi(i32 noundef) #2

declare noundef zeroext i1 @_ZN11__sanitizer16IsProcessRunningEi(i32 noundef) #2

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

!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 8}
!10 = !{!"_ZTSN11__sanitizer17SymbolizerProcessE", !6, i64 8, !11, i64 16, !11, i64 20, !7, i64 24, !12, i64 16408, !13, i64 16416, !13, i64 16417, !13, i64 16418}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !13, i64 16417}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !13, i64 16418}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}
!27 = !{!10, !11, i64 16}
!28 = !{!10, !11, i64 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"

@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11__sanitizer17SymbolizerProcess25StartSymbolizerSubprocessEv(ptr noundef nonnull align 8 dereferenceable(16419) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca [5 x [2 x i32]], align 16
  %3 = alloca [6 x ptr], align 16
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call noundef zeroext i1 @_ZN11__sanitizer10FileExistsEPKc(ptr noundef %5)
  br i1 %6, label %12, label %7

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 16417
  %9 = load i8, ptr %8, align 1, !tbaa !13, !range !14, !noundef !15
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %112, label %11

11:                                               ; preds = %7
  tail call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str)
  store i8 1, ptr %8, align 1, !tbaa !13
  br label %112

12:                                               ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 16418
  %14 = load i8, ptr %13, align 2, !tbaa !16, !range !14, !noundef !15
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %17

16:                                               ; preds = %12
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.1, i32 noundef 156, ptr noundef nonnull @.str.2, i64 noundef 0, i64 noundef 0) #6
  unreachable

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  %18 = call i32 @pipe(ptr noundef nonnull %2) #7
  %19 = icmp eq i32 %18, -1
  br i1 %19, label %.thread67, label %26

.lr.ph81.preheader:                               ; preds = %74, %62, %50, %26
  %.05577.lcssa.wide.ph = phi i64 [ 4, %74 ], [ 3, %62 ], [ 2, %50 ], [ 1, %26 ]
  br label %.lr.ph81

.lr.ph81:                                         ; preds = %.lr.ph81.preheader, %.lr.ph81
  %indvars.iv91 = phi i64 [ 0, %.lr.ph81.preheader ], [ %indvars.iv.next92, %.lr.ph81 ]
  %20 = getelementptr inbounds [5 x [2 x i32]], ptr %2, i64 0, i64 %indvars.iv91
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %21)
  %23 = getelementptr inbounds i8, ptr %20, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !17
  %25 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %24)
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next92, %.05577.lcssa.wide.ph
  br i1 %exitcond95.not, label %.thread67, label %.lr.ph81, !llvm.loop !18

26:                                               ; preds = %17
  %27 = load i32, ptr %2, align 16, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %2, i64 4
  %29 = load i32, ptr %28, align 4
  %30 = getelementptr inbounds i8, ptr %2, i64 8
  %31 = call i32 @pipe(ptr noundef nonnull %30) #7
  %32 = icmp eq i32 %31, -1
  br i1 %32, label %.lr.ph81.preheader, label %42

.lr.ph.preheader:                                 ; preds = %42, %60, %72, %85
  %.04778.lcssa87 = phi ptr [ %.148.mux, %60 ], [ %.148.2, %72 ], [ %.148.3, %85 ], [ %.148, %42 ]
  %.05577.lcssa85.wide = phi i64 [ 2, %60 ], [ 3, %72 ], [ 4, %85 ], [ 1, %42 ]
  %.lcssa83 = phi ptr [ %51, %60 ], [ %63, %72 ], [ %75, %85 ], [ %30, %42 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %41
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %41 ]
  %33 = getelementptr inbounds [5 x [2 x i32]], ptr %2, i64 0, i64 %indvars.iv
  %34 = icmp eq ptr %33, %.04778.lcssa87
  br i1 %34, label %41, label %35

35:                                               ; preds = %.lr.ph
  %36 = load i32, ptr %33, align 8, !tbaa !17
  %37 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %36)
  %38 = getelementptr inbounds i8, ptr %33, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !17
  %40 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %39)
  br label %41

41:                                               ; preds = %.lr.ph, %35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %.05577.lcssa85.wide
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

42:                                               ; preds = %26
  %43 = icmp slt i32 %27, 3
  %44 = icmp slt i32 %29, 3
  %or.cond.not = select i1 %43, i1 true, i1 %44
  %.148 = select i1 %or.cond.not, ptr null, ptr %2
  %45 = load i32, ptr %30, align 8, !tbaa !17
  %46 = icmp slt i32 %45, 3
  %47 = getelementptr inbounds i8, ptr %2, i64 12
  %48 = load i32, ptr %47, align 4
  %49 = icmp slt i32 %48, 3
  %or.cond104.not116 = select i1 %46, i1 true, i1 %49
  %brmerge = select i1 %or.cond104.not116, i1 true, i1 %or.cond.not
  %.148.mux = select i1 %or.cond104.not116, ptr %.148, ptr %30
  br i1 %brmerge, label %50, label %.lr.ph.preheader

50:                                               ; preds = %42
  %51 = getelementptr inbounds i8, ptr %2, i64 16
  %52 = call i32 @pipe(ptr noundef nonnull %51) #7
  %53 = icmp eq i32 %52, -1
  br i1 %53, label %.lr.ph81.preheader, label %54

54:                                               ; preds = %50
  %55 = load i32, ptr %51, align 16, !tbaa !17
  %56 = icmp sgt i32 %55, 2
  %57 = getelementptr inbounds i8, ptr %2, i64 20
  %58 = load i32, ptr %57, align 4
  %59 = icmp sgt i32 %58, 2
  %or.cond107 = select i1 %56, i1 %59, i1 false
  br i1 %or.cond107, label %60, label %62

60:                                               ; preds = %54
  %61 = select i1 %or.cond104.not116, i1 %or.cond.not, i1 false
  br i1 %61, label %62, label %.lr.ph.preheader

62:                                               ; preds = %60, %54
  %.148.2 = phi ptr [ %.148.mux, %54 ], [ %51, %60 ]
  %63 = getelementptr inbounds i8, ptr %2, i64 24
  %64 = call i32 @pipe(ptr noundef nonnull %63) #7
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %.lr.ph81.preheader, label %66

66:                                               ; preds = %62
  %67 = load i32, ptr %63, align 8, !tbaa !17
  %68 = icmp sgt i32 %67, 2
  %69 = getelementptr inbounds i8, ptr %2, i64 28
  %70 = load i32, ptr %69, align 4
  %71 = icmp sgt i32 %70, 2
  %or.cond110 = select i1 %68, i1 %71, i1 false
  br i1 %or.cond110, label %72, label %74

72:                                               ; preds = %66
  %73 = icmp eq ptr %.148.2, null
  br i1 %73, label %74, label %.lr.ph.preheader

74:                                               ; preds = %72, %66
  %.148.3 = phi ptr [ %.148.2, %66 ], [ %63, %72 ]
  %75 = getelementptr inbounds i8, ptr %2, i64 32
  %76 = call i32 @pipe(ptr noundef nonnull %75) #7
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %.lr.ph81.preheader, label %78

78:                                               ; preds = %74
  %79 = load i32, ptr %75, align 16, !tbaa !17
  %80 = icmp sgt i32 %79, 2
  %81 = getelementptr inbounds i8, ptr %2, i64 36
  %82 = load i32, ptr %81, align 4
  %83 = icmp sgt i32 %82, 2
  %or.cond113 = select i1 %80, i1 %83, i1 false
  %84 = icmp eq ptr %.148.3, null
  br i1 %or.cond113, label %85, label %.thread

85:                                               ; preds = %78
  br i1 %84, label %.thread.thread, label %.lr.ph.preheader

.thread:                                          ; preds = %78
  br i1 %84, label %88, label %.thread.thread, !prof !21

.thread67:                                        ; preds = %.lr.ph81, %17
  %86 = tail call ptr @__errno_location() #8
  %87 = load i32, ptr %86, align 4, !tbaa !17
  call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.3, i32 noundef %87)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  br label %112

88:                                               ; preds = %.thread
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.1, i32 noundef 191, ptr noundef nonnull @.str.4, i64 noundef 0, i64 noundef 0) #6
  unreachable

.thread.thread:                                   ; preds = %85, %.thread
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.1, i32 noundef 192, ptr noundef nonnull @.str.5, i64 noundef 0, i64 noundef 0) #6
  unreachable

._crit_edge:                                      ; preds = %41
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %0, align 8, !tbaa !22
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8
  call void %92(ptr noundef nonnull align 8 dereferenceable(16419) %0, ptr noundef %89, ptr noundef nonnull align 8 dereferenceable(48) %3)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i32, ptr %.lcssa83, align 4, !tbaa !17
  %95 = getelementptr inbounds i8, ptr %.04778.lcssa87, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !17
  %97 = call noundef i32 @_ZN11__sanitizer15StartSubprocessEPKcPKS1_iii(ptr noundef %93, ptr noundef nonnull %3, i32 noundef %94, i32 noundef %96, i32 noundef -1)
  %98 = icmp sgt i32 %97, -1
  %99 = load i32, ptr %.04778.lcssa87, align 4, !tbaa !17
  br i1 %98, label %105, label %100

100:                                              ; preds = %._crit_edge
  %101 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %99)
  %102 = getelementptr inbounds i8, ptr %.lcssa83, i64 4
  %103 = load i32, ptr %102, align 4, !tbaa !17
  %104 = call noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef %103)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  br label %112

105:                                              ; preds = %._crit_edge
  %106 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %99, ptr %106, align 8, !tbaa !24
  %107 = getelementptr inbounds i8, ptr %.lcssa83, i64 4
  %108 = load i32, ptr %107, align 4, !tbaa !17
  %109 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %108, ptr %109, align 4, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  call void @_ZN11__sanitizer14SleepForMillisEi(i32 noundef 10)
  %110 = call noundef zeroext i1 @_ZN11__sanitizer16IsProcessRunningEi(i32 noundef %97)
  br i1 %110, label %112, label %111

111:                                              ; preds = %105
  call void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.6)
  br label %112

112:                                              ; preds = %100, %.thread67, %111, %105, %7, %11
  %.4 = phi i1 [ false, %11 ], [ false, %7 ], [ false, %111 ], [ false, %100 ], [ true, %105 ], [ false, %.thread67 ]
  ret i1 %.4
}

declare noundef zeroext i1 @_ZN11__sanitizer10FileExistsEPKc(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #4

declare noundef i64 @_ZN11__sanitizer14internal_closeEi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #5

declare noundef i32 @_ZN11__sanitizer15StartSubprocessEPKcPKS1_iii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN11__sanitizer14SleepForMillisEi(i32 noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11__sanitizer16IsProcessRunningEi(i32 noundef) local_unnamed_addr #2

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

!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 8}
!6 = !{!"_ZTSN11__sanitizer17SymbolizerProcessE", !7, i64 8, !10, i64 16, !10, i64 20, !8, i64 24, !11, i64 16408, !12, i64 16416, !12, i64 16417, !12, i64 16418}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!6, !12, i64 16417}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !12, i64 16418}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!"branch_weights", !"expected", i32 1609804, i32 2145873844}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !9, i64 0}
!24 = !{!6, !10, i64 16}
!25 = !{!6, !10, i64 20}


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