; LLVM IR from AngoraFuzzer/Angora :: llvm_mode/dfsan_rt/sanitizer_common (sanitizer_coverage_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::GenericScopedLock" = type { ptr }
%"struct.__sanitizer::CommonFlags" = type { i8, ptr, i8, ptr, i8, i8, i8, i8, i32, ptr, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, ptr, i8, i8, i8, i64, i64, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, i8, i8, i8, i8, i8, i8, i32, ptr, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i8, i8, i8, i8, ptr }
%"class.__sanitizer::CoverageData" = type <{ ptr, %"struct.__sanitizer::atomic_uintptr_t", %"struct.__sanitizer::atomic_uintptr_t", i64, i32, [4 x i8], %"class.__sanitizer::InternalMmapVectorNoCtor", %"class.__sanitizer::InternalMmapVectorNoCtor.0", %"class.__sanitizer::InternalMmapVectorNoCtor.0", %"class.__sanitizer::InternalMmapVectorNoCtor.1", i64, ptr, %"struct.__sanitizer::atomic_uintptr_t", %"struct.__sanitizer::atomic_uintptr_t", ptr, i64, ptr, %"class.__sanitizer::StaticSpinMutex", [7 x i8] }>
%"class.__sanitizer::InternalMmapVectorNoCtor" = type { ptr, i64, i64 }
%"class.__sanitizer::InternalMmapVectorNoCtor.0" = type { ptr, i64, i64 }
%"class.__sanitizer::InternalMmapVectorNoCtor.1" = type { ptr, i64, i64 }
%"struct.__sanitizer::atomic_uintptr_t" = type { i64 }
%"class.__sanitizer::StaticSpinMutex" = type { %"struct.__sanitizer::atomic_uint8_t" }
%"struct.__sanitizer::atomic_uint8_t" = type { i8 }

@_ZL16coverage_enabled = external hidden global i8, align 1
@.str.5 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer12CoverageData10DirectOpenEv(ptr noundef nonnull align 8 dereferenceable(193)) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11__sanitizer12common_flagsEv() #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12CoverageData6ExtendEm(ptr noundef nonnull align 8 dereferenceable(193) %0, i64 noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.__sanitizer::GenericScopedLock", align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %20 = load ptr, ptr %3, align 8
  %21 = call noundef ptr @_ZN11__sanitizer12common_flagsEv()
  %22 = getelementptr inbounds %"struct.__sanitizer::CommonFlags", ptr %21, i32 0, i32 41
  %23 = load i8, ptr %22, align 8, !tbaa !11, !range !15, !noundef !16
  %24 = trunc i8 %23 to i1
  br i1 %24, label %26, label %25

25:                                               ; preds = %2
  br label %186

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %27 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 17
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %28 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 2
  %29 = invoke noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef %28, i32 noundef 1)
          to label %30 unwind label %48

30:                                               ; preds = %26
  store i64 %29, ptr %6, align 8, !tbaa !9
  %31 = load i64, ptr %4, align 8, !tbaa !9
  %32 = mul i64 %31, 8
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = add i64 %33, %32
  store i64 %34, ptr %6, align 8, !tbaa !9
  %35 = load i8, ptr @_ZL16coverage_enabled, align 1, !tbaa !17, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %182

37:                                               ; preds = %30
  %38 = load i64, ptr %6, align 8, !tbaa !9
  %39 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  %40 = load i64, ptr %39, align 8, !tbaa !18
  %41 = icmp ugt i64 %38, %40
  br i1 %41, label %42, label %182

42:                                               ; preds = %37
  %43 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 4
  %44 = load i32, ptr %43, align 8, !tbaa !26
  %45 = icmp eq i32 %44, -1
  br i1 %45, label %46, label %52

46:                                               ; preds = %42
  invoke void @_ZN11__sanitizer12CoverageData10DirectOpenEv(ptr noundef nonnull align 8 dereferenceable(193) %20)
          to label %47 unwind label %48

47:                                               ; preds = %46
  br label %52

48:                                               ; preds = %182, %46, %26
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  br label %187

52:                                               ; preds = %47, %42
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %54 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 4
  %55 = load i32, ptr %54, align 8, !tbaa !26
  %56 = sext i32 %55 to i64
  store i64 %56, ptr %9, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 -1, ptr %10, align 8, !tbaa !27
  %57 = load i64, ptr %9, align 8, !tbaa !27
  %58 = load i64, ptr %10, align 8, !tbaa !27
  %59 = icmp ne i64 %57, %58
  %60 = xor i1 %59, true
  %61 = xor i1 %60, true
  %62 = xor i1 %61, true
  %63 = zext i1 %62 to i64
  %64 = call i64 @llvm.expect.i64(i64 %63, i64 0)
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %66, label %74

66:                                               ; preds = %53
  %67 = load i64, ptr %9, align 8, !tbaa !27
  %68 = load i64, ptr %10, align 8, !tbaa !27
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 315, ptr noundef @.str.7, i64 noundef %67, i64 noundef %68) #8
          to label %69 unwind label %70

69:                                               ; preds = %66
  unreachable

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %187

74:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %77 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  %78 = load i64, ptr %77, align 8, !tbaa !18
  store i64 %78, ptr %11, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %83, %76
  %80 = load i64, ptr %6, align 8, !tbaa !9
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = icmp ugt i64 %80, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %79
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = add i64 %84, 65536
  store i64 %85, ptr %11, align 8, !tbaa !9
  br label %79, !llvm.loop !29

86:                                               ; preds = %79
  br label %87

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %88 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %88, ptr %12, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 1073741824, ptr %13, align 8, !tbaa !27
  %89 = load i64, ptr %12, align 8, !tbaa !27
  %90 = load i64, ptr %13, align 8, !tbaa !27
  %91 = icmp ule i64 %89, %90
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i64
  %96 = call i64 @llvm.expect.i64(i64 %95, i64 0)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %106

98:                                               ; preds = %87
  %99 = load i64, ptr %12, align 8, !tbaa !27
  %100 = load i64, ptr %13, align 8, !tbaa !27
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 319, ptr noundef @.str.8, i64 noundef %99, i64 noundef %100) #8
          to label %101 unwind label %102

101:                                              ; preds = %98
  unreachable

102:                                              ; preds = %98
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %181

106:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %109 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 4
  %110 = load i32, ptr %109, align 8, !tbaa !26
  %111 = load i64, ptr %11, align 8, !tbaa !9
  %112 = invoke noundef i64 @_ZN11__sanitizer18internal_ftruncateEim(i32 noundef %110, i64 noundef %111)
          to label %113 unwind label %121

113:                                              ; preds = %108
  store i64 %112, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %114 = load i64, ptr %14, align 8, !tbaa !9
  %115 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %114, ptr noundef %15)
          to label %116 unwind label %125

116:                                              ; preds = %113
  br i1 %115, label %117, label %129

117:                                              ; preds = %116
  %118 = load i32, ptr %15, align 4, !tbaa !31
  invoke void (ptr, ...) @_ZN11__sanitizer6PrintfEPKcz(ptr noundef @.str.9, i32 noundef %118)
          to label %119 unwind label %125

119:                                              ; preds = %117
  invoke void @_ZN11__sanitizer3DieEv() #8
          to label %120 unwind label %125

120:                                              ; preds = %119
  unreachable

121:                                              ; preds = %108
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  br label %180

125:                                              ; preds = %119, %117, %113
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %7, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %8, align 4
  br label %179

129:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %130 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !32
  %132 = ptrtoint ptr %131 to i64
  %133 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  %134 = load i64, ptr %133, align 8, !tbaa !18
  %135 = add i64 %132, %134
  store i64 %135, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %136 = load i64, ptr %16, align 8, !tbaa !9
  %137 = inttoptr i64 %136 to ptr
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  %140 = load i64, ptr %139, align 8, !tbaa !18
  %141 = sub i64 %138, %140
  %142 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 4
  %143 = load i32, ptr %142, align 8, !tbaa !26
  %144 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  %145 = load i64, ptr %144, align 8, !tbaa !18
  %146 = invoke noundef ptr @_ZN11__sanitizer23MapWritableFileToMemoryEPvmiy(ptr noundef %137, i64 noundef %141, i32 noundef %143, i64 noundef %145)
          to label %147 unwind label %165

147:                                              ; preds = %129
  store ptr %146, ptr %17, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = ptrtoint ptr %149 to i64
  store i64 %150, ptr %18, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %151 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %151, ptr %19, align 8, !tbaa !27
  %152 = load i64, ptr %18, align 8, !tbaa !27
  %153 = load i64, ptr %19, align 8, !tbaa !27
  %154 = icmp eq i64 %152, %153
  %155 = xor i1 %154, true
  %156 = xor i1 %155, true
  %157 = xor i1 %156, true
  %158 = zext i1 %157 to i64
  %159 = call i64 @llvm.expect.i64(i64 %158, i64 0)
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %173

161:                                              ; preds = %148
  %162 = load i64, ptr %18, align 8, !tbaa !27
  %163 = load i64, ptr %19, align 8, !tbaa !27
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 333, ptr noundef @.str.10, i64 noundef %162, i64 noundef %163) #8
          to label %164 unwind label %169

164:                                              ; preds = %161
  unreachable

165:                                              ; preds = %129
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %178

169:                                              ; preds = %161
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %178

173:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  %176 = load i64, ptr %11, align 8, !tbaa !9
  %177 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 3
  store i64 %176, ptr %177, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %182

178:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %179

179:                                              ; preds = %178, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %180

180:                                              ; preds = %179, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %181

181:                                              ; preds = %180, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %187

182:                                              ; preds = %175, %37, %30
  %183 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %20, i32 0, i32 2
  %184 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef %183, i64 noundef %184, i32 noundef 8)
          to label %185 unwind label %48

185:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %186

186:                                              ; preds = %185, %25
  ret void

187:                                              ; preds = %181, %70, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %188

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

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

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

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

declare noundef i64 @_ZN11__sanitizer18internal_ftruncateEim(i32 noundef, i64 noundef) #5

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

declare void @_ZN11__sanitizer6PrintfEPKcz(ptr noundef, ...) #5

declare noundef ptr @_ZN11__sanitizer23MapWritableFileToMemoryEPvmiy(ptr noundef, i64 noundef, i32 noundef, i64 noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { 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 }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 128}
!12 = !{!"_ZTSN11__sanitizer11CommonFlagsE", !13, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !13, i64 32, !13, i64 33, !13, i64 34, !13, i64 35, !14, i64 36, !6, i64 40, !13, i64 48, !13, i64 49, !14, i64 52, !13, i64 56, !13, i64 57, !13, i64 58, !13, i64 59, !13, i64 60, !13, i64 61, !13, i64 62, !13, i64 63, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !10, i64 72, !6, i64 80, !13, i64 88, !13, i64 89, !13, i64 90, !10, i64 96, !10, i64 104, !10, i64 112, !13, i64 120, !13, i64 121, !13, i64 122, !13, i64 123, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !6, i64 136, !13, i64 144, !13, i64 145, !13, i64 146, !13, i64 147, !13, i64 148, !13, i64 149, !14, i64 152, !6, i64 160, !13, i64 168, !13, i64 169, !13, i64 170, !13, i64 171, !13, i64 172, !13, i64 173, !13, i64 174, !13, i64 175, !13, i64 176, !13, i64 177, !13, i64 178, !13, i64 179, !13, i64 180, !13, i64 181, !14, i64 184, !13, i64 188, !13, i64 189, !13, i64 190, !13, i64 191, !6, i64 192}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTSN11__sanitizer12CoverageDataE", !6, i64 0, !20, i64 8, !20, i64 16, !10, i64 24, !14, i64 32, !21, i64 40, !22, i64 64, !22, i64 88, !23, i64 112, !10, i64 136, !6, i64 144, !20, i64 152, !20, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !24, i64 192}
!20 = !{!"_ZTSN11__sanitizer16atomic_uintptr_tE", !10, i64 0}
!21 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorIPiEE", !6, i64 0, !10, i64 8, !10, i64 16}
!22 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEE", !6, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData14CounterAndSizeEEE", !6, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSN11__sanitizer15StaticSpinMutexE", !25, i64 0}
!25 = !{!"_ZTSN11__sanitizer14atomic_uint8_tE", !7, i64 0}
!26 = !{!19, !14, i64 32}
!27 = !{!28, !28, i64 0}
!28 = !{!"long long", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!14, !14, i64 0}
!32 = !{!19, !6, i64 0}


; 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.__sanitizer::GenericScopedLock" = type { ptr }

@_ZL16coverage_enabled = external hidden local_unnamed_addr global i8, align 1
@.str.5 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer12CoverageData10DirectOpenEv(ptr noundef nonnull align 8 dereferenceable(193)) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11__sanitizer12common_flagsEv() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12CoverageData6ExtendEm(ptr noundef nonnull align 8 dereferenceable(193) %0, i64 noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__sanitizer::GenericScopedLock", align 8
  %4 = alloca i32, align 4
  %5 = tail call noundef ptr @_ZN11__sanitizer12common_flagsEv()
  %6 = getelementptr inbounds i8, ptr %5, i64 128
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !13, !noundef !14
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %77

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 192
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = call noundef i64 @_ZN11__sanitizer11atomic_loadINS_16atomic_uintptr_tEEENT_4TypeEPVKS2_NS_12memory_orderE(ptr noundef nonnull %11, i32 noundef 1)
  %13 = shl i64 %1, 3
  %14 = add i64 %12, %13
  %15 = load i8, ptr @_ZL16coverage_enabled, align 1, !tbaa !15, !range !13, !noundef !14
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %76

17:                                               ; preds = %9
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load i64, ptr %18, align 8, !tbaa !16
  %20 = icmp ugt i64 %14, %19
  br i1 %20, label %21, label %76

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = load i32, ptr %22, align 8, !tbaa !24
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %.thread

25:                                               ; preds = %21
  invoke void @_ZN11__sanitizer12CoverageData10DirectOpenEv(ptr noundef nonnull align 8 dereferenceable(193) %0)
          to label %28 unwind label %26

26:                                               ; preds = %25
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %78

28:                                               ; preds = %25
  %.pr = load i32, ptr %22, align 8, !tbaa !24
  %.not = icmp eq i32 %.pr, -1
  br i1 %.not, label %29, label %..thread_crit_edge, !prof !25

..thread_crit_edge:                               ; preds = %28
  %.pre = load i64, ptr %18, align 8, !tbaa !16
  br label %.thread

29:                                               ; preds = %28
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 315, ptr noundef nonnull @.str.7, i64 noundef -1, i64 noundef -1) #8
          to label %30 unwind label %31

30:                                               ; preds = %29
  unreachable

31:                                               ; preds = %29
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %78

.thread:                                          ; preds = %..thread_crit_edge, %21
  %33 = phi i64 [ %.pre, %..thread_crit_edge ], [ %19, %21 ]
  %34 = phi i32 [ %.pr, %..thread_crit_edge ], [ %23, %21 ]
  %umax = call i64 @llvm.umax.i64(i64 %33, i64 %14)
  %35 = add i64 %umax, 65535
  %36 = sub i64 %35, %33
  %37 = and i64 %36, -65536
  %38 = add i64 %33, %37
  %39 = icmp ugt i64 %38, 1073741824
  br i1 %39, label %40, label %44, !prof !26

40:                                               ; preds = %.thread
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 319, ptr noundef nonnull @.str.8, i64 noundef %38, i64 noundef 1073741824) #8
          to label %41 unwind label %42

41:                                               ; preds = %40
  unreachable

42:                                               ; preds = %40
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %78

44:                                               ; preds = %.thread
  %45 = invoke noundef i64 @_ZN11__sanitizer18internal_ftruncateEim(i32 noundef %34, i64 noundef %38)
          to label %46 unwind label %53

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %47 = invoke noundef zeroext i1 @_ZN11__sanitizer16internal_iserrorEmPi(i64 noundef %45, ptr noundef nonnull %4)
          to label %48 unwind label %55

48:                                               ; preds = %46
  br i1 %47, label %49, label %57

49:                                               ; preds = %48
  %50 = load i32, ptr %4, align 4, !tbaa !27
  invoke void (ptr, ...) @_ZN11__sanitizer6PrintfEPKcz(ptr noundef nonnull @.str.9, i32 noundef %50)
          to label %51 unwind label %55

51:                                               ; preds = %49
  invoke void @_ZN11__sanitizer3DieEv() #8
          to label %52 unwind label %55

52:                                               ; preds = %51
  unreachable

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %78

55:                                               ; preds = %51, %49, %46
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %75

57:                                               ; preds = %48
  %58 = load ptr, ptr %0, align 8, !tbaa !28
  %59 = ptrtoint ptr %58 to i64
  %60 = load i64, ptr %18, align 8, !tbaa !16
  %61 = add i64 %60, %59
  %62 = inttoptr i64 %61 to ptr
  %63 = sub i64 %38, %60
  %64 = load i32, ptr %22, align 8, !tbaa !24
  %65 = invoke noundef ptr @_ZN11__sanitizer23MapWritableFileToMemoryEPvmiy(ptr noundef %62, i64 noundef %63, i32 noundef %64, i64 noundef %60)
          to label %66 unwind label %70

66:                                               ; preds = %57
  %67 = ptrtoint ptr %65 to i64
  %.not36 = icmp eq i64 %61, %67
  br i1 %.not36, label %74, label %68, !prof !29

68:                                               ; preds = %66
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 333, ptr noundef nonnull @.str.10, i64 noundef %67, i64 noundef %61) #8
          to label %69 unwind label %72

69:                                               ; preds = %68
  unreachable

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

72:                                               ; preds = %68
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %75

74:                                               ; preds = %66
  store i64 %38, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %76

75:                                               ; preds = %70, %72, %55
  %.pn38 = phi { ptr, i32 } [ %56, %55 ], [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %78

76:                                               ; preds = %74, %17, %9
  call void @_ZN11__sanitizer12atomic_storeINS_16atomic_uintptr_tEEEvPVT_NS2_4TypeENS_12memory_orderE(ptr noundef nonnull %11, i64 noundef %14, i32 noundef 8)
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %77

77:                                               ; preds = %2, %76
  ret void

78:                                               ; preds = %42, %75, %53, %31, %26
  %.pn43 = phi { ptr, i32 } [ %32, %31 ], [ %27, %26 ], [ %43, %42 ], [ %.pn38, %75 ], [ %54, %53 ]
  call void @_ZN11__sanitizer17GenericScopedLockINS_15StaticSpinMutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn43
}

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

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

declare noundef i64 @_ZN11__sanitizer18internal_ftruncateEim(i32 noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN11__sanitizer6PrintfEPKcz(ptr noundef, ...) local_unnamed_addr #4

declare noundef ptr @_ZN11__sanitizer23MapWritableFileToMemoryEPvmiy(ptr noundef, i64 noundef, i32 noundef, i64 noundef) local_unnamed_addr #4

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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 128}
!6 = !{!"_ZTSN11__sanitizer11CommonFlagsE", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !11, i64 36, !10, i64 40, !7, i64 48, !7, i64 49, !11, i64 52, !7, i64 56, !7, i64 57, !7, i64 58, !7, i64 59, !7, i64 60, !7, i64 61, !7, i64 62, !7, i64 63, !7, i64 64, !7, i64 65, !7, i64 66, !7, i64 67, !12, i64 72, !10, i64 80, !7, i64 88, !7, i64 89, !7, i64 90, !12, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !7, i64 121, !7, i64 122, !7, i64 123, !7, i64 124, !7, i64 125, !7, i64 126, !7, i64 127, !7, i64 128, !10, i64 136, !7, i64 144, !7, i64 145, !7, i64 146, !7, i64 147, !7, i64 148, !7, i64 149, !11, i64 152, !10, i64 160, !7, i64 168, !7, i64 169, !7, i64 170, !7, i64 171, !7, i64 172, !7, i64 173, !7, i64 174, !7, i64 175, !7, i64 176, !7, i64 177, !7, i64 178, !7, i64 179, !7, i64 180, !7, i64 181, !11, i64 184, !7, i64 188, !7, i64 189, !7, i64 190, !7, i64 191, !10, i64 192}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !12, i64 24}
!17 = !{!"_ZTSN11__sanitizer12CoverageDataE", !10, i64 0, !18, i64 8, !18, i64 16, !12, i64 24, !11, i64 32, !19, i64 40, !20, i64 64, !20, i64 88, !21, i64 112, !12, i64 136, !10, i64 144, !18, i64 152, !18, i64 160, !10, i64 168, !12, i64 176, !10, i64 184, !22, i64 192}
!18 = !{!"_ZTSN11__sanitizer16atomic_uintptr_tE", !12, i64 0}
!19 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorIPiEE", !10, i64 0, !12, i64 8, !12, i64 16}
!20 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEE", !10, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTSN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData14CounterAndSizeEEE", !10, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!"_ZTSN11__sanitizer15StaticSpinMutexE", !23, i64 0}
!23 = !{!"_ZTSN11__sanitizer14atomic_uint8_tE", !8, i64 0}
!24 = !{!17, !11, i64 32}
!25 = !{!"branch_weights", !"expected", i32 2861881, i32 2144621767}
!26 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!27 = !{!11, !11, i64 0}
!28 = !{!17, !10, i64 0}
!29 = !{!"branch_weights", !"expected", i32 2000, i32 1}


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