; 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::InternalMmapVector.6" = type { %"class.__sanitizer::InternalMmapVectorNoCtor.7" }
%"class.__sanitizer::InternalMmapVectorNoCtor.7" = type { ptr, i64, i64 }
%"class.__sanitizer::InternalScopedString" = type { %"class.__sanitizer::InternalScopedBuffer", i64 }
%"class.__sanitizer::InternalScopedBuffer" = type { ptr, i64 }
%"class.__sanitizer::InternalMmapVector.8" = type { %"class.__sanitizer::InternalMmapVectorNoCtor.9" }
%"class.__sanitizer::InternalMmapVectorNoCtor.9" = type { ptr, i64, i64 }
%"class.__sanitizer::RunOnDestruction" = type { %class.anon }
%class.anon = type { ptr }
%"struct.__sanitizer::CoverageData::NamedPcRange" = type { ptr, i64, i64 }
%"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 }

@.str.5 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZL13cov_sandboxed = external hidden global i8, align 1
@_ZL6cov_fd = external hidden global i32, align 4
@.str.46 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

declare noundef i64 @_ZN11__sanitizer15internal_getpidEv() #3

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

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

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

declare void @_ZN11__sanitizer9CloseFileEi(i32 noundef) #3

; 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 ptr @_ZN11__sanitizer10Symbolizer9GetOrInitEv() #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN11__sanitizerL11CovOpenFileEPNS_20InternalScopedStringEbPKcS3_(ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11__sanitizer11WriteToFileEiPKvmPmPi(i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

declare noundef ptr @_ZN11__sanitizer15StripModuleNameEPKc(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11__sanitizer12CoverageData15GetRangeOffsetsERKNS0_12NamedPcRangeEPNS_10SymbolizerEPNS_18InternalMmapVectorImEE(ptr noundef nonnull align 8 dereferenceable(193), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12CoverageData11DumpOffsetsEv(ptr noundef nonnull align 8 dereferenceable(193) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.__sanitizer::InternalMmapVector.6", align 8
  %8 = alloca %"class.__sanitizer::InternalScopedString", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.__sanitizer::InternalMmapVector.8", align 8
  %12 = alloca %"class.__sanitizer::RunOnDestruction", align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.__sanitizer::CoverageData::NamedPcRange", align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %24 = call noundef ptr @_ZN11__sanitizer10Symbolizer9GetOrInitEv()
  store ptr %24, ptr %3, align 8, !tbaa !5
  %25 = call noundef ptr @_ZN11__sanitizer12common_flagsEv()
  %26 = getelementptr inbounds %"struct.__sanitizer::CommonFlags", ptr %25, i32 0, i32 37
  %27 = load i8, ptr %26, align 4, !tbaa !9, !range !14, !noundef !15
  %28 = trunc i8 %27 to i1
  br i1 %28, label %30, label %29

29:                                               ; preds = %1
  store i32 1, ptr %4, align 4
  br label %238

30:                                               ; preds = %1
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = ptrtoint ptr %32 to i64
  store i64 %33, ptr %5, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  store i64 0, ptr %6, align 8, !tbaa !16
  %34 = load i64, ptr %5, align 8, !tbaa !16
  %35 = load i64, ptr %6, align 8, !tbaa !16
  %36 = icmp ne i64 %34, %35
  %37 = xor i1 %36, true
  %38 = xor i1 %37, true
  %39 = xor i1 %38, true
  %40 = zext i1 %39 to i64
  %41 = call i64 @llvm.expect.i64(i64 %40, i64 0)
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %31
  %44 = load i64, ptr %5, align 8, !tbaa !16
  %45 = load i64, ptr %6, align 8, !tbaa !16
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 819, ptr noundef @.str.44, i64 noundef %44, i64 noundef %45) #10
  unreachable

46:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  invoke void @_ZN11__sanitizer20InternalScopedStringC2Em(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 4096)
          to label %49 unwind label %65

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  %50 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %23, i32 0, i32 8
  %51 = invoke noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %52 unwind label %69

52:                                               ; preds = %49
  invoke void @_ZN11__sanitizer18InternalMmapVectorIPcEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %51)
          to label %53 unwind label %69

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %54 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  store ptr %11, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.anon, ptr %13, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  invoke void @"_ZN11__sanitizer13at_scope_exitIZNS_12CoverageData11DumpOffsetsEvE3$_0EENS_16RunOnDestructionIT_EES4_"(ptr dead_on_unwind writable sret(%"class.__sanitizer::RunOnDestruction") align 8 %12, ptr %56)
          to label %57 unwind label %73

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store i64 0, ptr %14, align 8, !tbaa !18
  br label %58

58:                                               ; preds = %218, %57
  %59 = load i64, ptr %14, align 8, !tbaa !18
  %60 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %23, i32 0, i32 8
  %61 = invoke noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60)
          to label %62 unwind label %77

62:                                               ; preds = %58
  %63 = icmp ult i64 %59, %61
  br i1 %63, label %81, label %64

64:                                               ; preds = %62
  store i32 4, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %226

65:                                               ; preds = %48
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %244

69:                                               ; preds = %52, %49
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %243

73:                                               ; preds = %53
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %242

77:                                               ; preds = %58
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  br label %225

81:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #9
  %82 = getelementptr inbounds %"class.__sanitizer::CoverageData", ptr %23, i32 0, i32 8
  %83 = load i64, ptr %14, align 8, !tbaa !18
  %84 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %83)
          to label %85 unwind label %109

85:                                               ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %84, i64 24, i1 false), !tbaa.struct !19
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZNK11__sanitizer12CoverageData15GetRangeOffsetsERKNS0_12NamedPcRangeEPNS_10SymbolizerEPNS_18InternalMmapVectorImEE(ptr noundef nonnull align 8 dereferenceable(193) %23, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef %86, ptr noundef %7)
          to label %87 unwind label %109

87:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %88 = invoke noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %89 unwind label %113

89:                                               ; preds = %87
  %90 = sub i64 %88, 1
  store i64 %90, ptr %16, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %91 = invoke noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %92 unwind label %117

92:                                               ; preds = %89
  store ptr %91, ptr %17, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !16
  store i64 %95, ptr %18, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  store i64 0, ptr %19, align 8, !tbaa !16
  %96 = load i64, ptr %18, align 8, !tbaa !16
  %97 = load i64, ptr %19, align 8, !tbaa !16
  %98 = icmp eq i64 %96, %97
  %99 = xor i1 %98, true
  %100 = xor i1 %99, true
  %101 = xor i1 %100, true
  %102 = zext i1 %101 to i64
  %103 = call i64 @llvm.expect.i64(i64 %102, i64 0)
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %125

105:                                              ; preds = %93
  %106 = load i64, ptr %18, align 8, !tbaa !16
  %107 = load i64, ptr %19, align 8, !tbaa !16
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str.5, i32 noundef 836, ptr noundef @.str.45, i64 noundef %106, i64 noundef %107) #10
          to label %108 unwind label %121

108:                                              ; preds = %105
  unreachable

109:                                              ; preds = %85, %81
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %9, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %10, align 4
  br label %224

113:                                              ; preds = %87
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  br label %223

117:                                              ; preds = %89
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %9, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %10, align 4
  br label %222

121:                                              ; preds = %105
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %9, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %222

125:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -4557642822898942108, ptr %128, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %129 = getelementptr inbounds %"struct.__sanitizer::CoverageData::NamedPcRange", ptr %15, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = invoke noundef ptr @_ZN11__sanitizer15StripModuleNameEPKc(ptr noundef %130)
          to label %132 unwind label %158

132:                                              ; preds = %127
  store ptr %131, ptr %20, align 8, !tbaa !5
  %133 = load i8, ptr @_ZL13cov_sandboxed, align 1, !tbaa !22, !range !14, !noundef !15
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %166

135:                                              ; preds = %132
  %136 = load i32, ptr @_ZL6cov_fd, align 4, !tbaa !23
  %137 = icmp ne i32 %136, -1
  br i1 %137, label %138, label %165

138:                                              ; preds = %135
  %139 = invoke noundef i64 @_ZN11__sanitizer15internal_getpidEv()
          to label %140 unwind label %158

140:                                              ; preds = %138
  %141 = trunc i64 %139 to i32
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = invoke noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %144 unwind label %158

144:                                              ; preds = %140
  %145 = invoke noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %146 unwind label %158

146:                                              ; preds = %144
  %147 = mul i64 %145, 8
  %148 = trunc i64 %147 to i32
  invoke void @_ZN11__sanitizerL14CovWritePackedEiPKcPKvj(i32 noundef %141, ptr noundef %142, ptr noundef %143, i32 noundef %148)
          to label %149 unwind label %158

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149
  %151 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %152 unwind label %158

152:                                              ; preds = %150
  %153 = sext i32 %151 to i64
  %154 = icmp uge i64 %153, 1
  br i1 %154, label %155, label %162

155:                                              ; preds = %152
  %156 = load i64, ptr %16, align 8, !tbaa !18
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.46, i64 noundef %156)
          to label %157 unwind label %158

157:                                              ; preds = %155
  br label %162

158:                                              ; preds = %155, %150, %146, %144, %140, %138, %127
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  br label %221

162:                                              ; preds = %157, %152
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %135
  br label %214

166:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %167 = load ptr, ptr %20, align 8, !tbaa !5
  %168 = invoke noundef i32 @_ZN11__sanitizerL11CovOpenFileEPNS_20InternalScopedStringEbPKcS3_(ptr noundef %8, i1 noundef zeroext false, ptr noundef %167, ptr noundef @.str.26)
          to label %169 unwind label %173

169:                                              ; preds = %166
  store i32 %168, ptr %21, align 4, !tbaa !23
  %170 = load i32, ptr %21, align 4, !tbaa !23
  %171 = icmp eq i32 %170, -1
  br i1 %171, label %172, label %177

172:                                              ; preds = %169
  store i32 6, ptr %4, align 4
  br label %210

173:                                              ; preds = %200, %198, %193, %185, %182, %180, %177, %166
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  br label %213

177:                                              ; preds = %169
  %178 = load i32, ptr %21, align 4, !tbaa !23
  %179 = invoke noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %180 unwind label %173

180:                                              ; preds = %177
  %181 = invoke noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %182 unwind label %173

182:                                              ; preds = %180
  %183 = mul i64 %181, 8
  %184 = invoke noundef zeroext i1 @_ZN11__sanitizer11WriteToFileEiPKvmPmPi(i32 noundef %178, ptr noundef %179, i64 noundef %183, ptr noundef null, ptr noundef null)
          to label %185 unwind label %173

185:                                              ; preds = %182
  %186 = load i32, ptr %21, align 4, !tbaa !23
  invoke void @_ZN11__sanitizer9CloseFileEi(i32 noundef %186)
          to label %187 unwind label %173

187:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %188 = invoke noundef ptr @_ZN11__sanitizer20InternalScopedBufferIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %189 unwind label %203

189:                                              ; preds = %187
  %190 = invoke noundef ptr @_ZN11__sanitizer15internal_strdupEPKc(ptr noundef %188)
          to label %191 unwind label %203

191:                                              ; preds = %189
  store ptr %190, ptr %22, align 8, !tbaa !5
  invoke void @_ZN11__sanitizer24InternalMmapVectorNoCtorIPcE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %192 unwind label %203

192:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %193

193:                                              ; preds = %192
  %194 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %195 unwind label %173

195:                                              ; preds = %193
  %196 = sext i32 %194 to i64
  %197 = icmp uge i64 %196, 1
  br i1 %197, label %198, label %207

198:                                              ; preds = %195
  %199 = invoke noundef ptr @_ZN11__sanitizer20InternalScopedBufferIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %200 unwind label %173

200:                                              ; preds = %198
  %201 = load i64, ptr %16, align 8, !tbaa !18
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef @.str.47, ptr noundef %199, i64 noundef %201)
          to label %202 unwind label %173

202:                                              ; preds = %200
  br label %207

203:                                              ; preds = %191, %189, %187
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %213

207:                                              ; preds = %202, %195
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  store i32 0, ptr %4, align 4
  br label %210

210:                                              ; preds = %209, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  %211 = load i32, ptr %4, align 4
  switch i32 %211, label %215 [
    i32 0, label %212
  ]

212:                                              ; preds = %210
  br label %214

213:                                              ; preds = %203, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %221

214:                                              ; preds = %212, %165
  store i32 0, ptr %4, align 4
  br label %215

215:                                              ; preds = %214, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  %216 = load i32, ptr %4, align 4
  switch i32 %216, label %250 [
    i32 0, label %217
    i32 6, label %218
  ]

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217, %215
  %219 = load i64, ptr %14, align 8, !tbaa !18
  %220 = add i64 %219, 1
  store i64 %220, ptr %14, align 8, !tbaa !18
  br label %58, !llvm.loop !24

221:                                              ; preds = %213, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %222

222:                                              ; preds = %221, %121, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %223

223:                                              ; preds = %222, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %224

224:                                              ; preds = %223, %109
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #9
  br label %225

225:                                              ; preds = %224, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %241

226:                                              ; preds = %64
  %227 = load i32, ptr @_ZL6cov_fd, align 4, !tbaa !23
  %228 = icmp ne i32 %227, -1
  br i1 %228, label %229, label %236

229:                                              ; preds = %226
  %230 = load i32, ptr @_ZL6cov_fd, align 4, !tbaa !23
  invoke void @_ZN11__sanitizer9CloseFileEi(i32 noundef %230)
          to label %231 unwind label %232

231:                                              ; preds = %229
  br label %236

232:                                              ; preds = %236, %229
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %9, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %10, align 4
  br label %241

236:                                              ; preds = %231, %226
  invoke void @_ZN11__sanitizerL18GenerateHtmlReportERKNS_18InternalMmapVectorIPcEE(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %237 unwind label %232

237:                                              ; preds = %236
  call void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @_ZN11__sanitizer18InternalMmapVectorIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @_ZN11__sanitizer20InternalScopedBufferIcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  store i32 0, ptr %4, align 4
  br label %238

238:                                              ; preds = %237, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  %239 = load i32, ptr %4, align 4
  switch i32 %239, label %250 [
    i32 0, label %240
    i32 1, label %240
  ]

240:                                              ; preds = %238, %238
  ret void

241:                                              ; preds = %232, %225
  call void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  br label %242

242:                                              ; preds = %241, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @_ZN11__sanitizer18InternalMmapVectorIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  br label %243

243:                                              ; preds = %242, %69
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @_ZN11__sanitizer20InternalScopedBufferIcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  br label %244

244:                                              ; preds = %243, %65
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %245

245:                                              ; preds = %244
  %246 = load ptr, ptr %9, align 8
  %247 = load i32, ptr %10, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249

250:                                              ; preds = %238, %215
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN11__sanitizer13at_scope_exitIZNS_12CoverageData11DumpOffsetsEvE3$_0EENS_16RunOnDestructionIT_EES4_"(ptr dead_on_unwind noalias writable sret(%"class.__sanitizer::RunOnDestruction") align 8, ptr) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11__sanitizerL14CovWritePackedEiPKcPKvj(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer24InternalMmapVectorNoCtorIPcE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare noundef ptr @_ZN11__sanitizer15internal_strdupEPKc(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11__sanitizerL18GenerateHtmlReportERKNS_18InternalMmapVectorIPcEE(ptr noundef nonnull align 8 dereferenceable(24)) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 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 = { 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 #3 = { "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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 124}
!10 = !{!"_ZTSN11__sanitizer11CommonFlagsE", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 33, !11, i64 34, !11, i64 35, !12, i64 36, !6, i64 40, !11, i64 48, !11, i64 49, !12, i64 52, !11, i64 56, !11, i64 57, !11, i64 58, !11, i64 59, !11, i64 60, !11, i64 61, !11, i64 62, !11, i64 63, !11, i64 64, !11, i64 65, !11, i64 66, !11, i64 67, !13, i64 72, !6, i64 80, !11, i64 88, !11, i64 89, !11, i64 90, !13, i64 96, !13, i64 104, !13, i64 112, !11, i64 120, !11, i64 121, !11, i64 122, !11, i64 123, !11, i64 124, !11, i64 125, !11, i64 126, !11, i64 127, !11, i64 128, !6, i64 136, !11, i64 144, !11, i64 145, !11, i64 146, !11, i64 147, !11, i64 148, !11, i64 149, !12, i64 152, !6, i64 160, !11, i64 168, !11, i64 169, !11, i64 170, !11, i64 171, !11, i64 172, !11, i64 173, !11, i64 174, !11, i64 175, !11, i64 176, !11, i64 177, !11, i64 178, !11, i64 179, !11, i64 180, !11, i64 181, !12, i64 184, !11, i64 188, !11, i64 189, !11, i64 190, !11, i64 191, !6, i64 192}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{i64 0, i64 8, !5, i64 8, i64 8, !18, i64 16, i64 8, !18}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTSN11__sanitizer12CoverageData12NamedPcRangeE", !6, i64 0, !13, i64 8, !13, i64 16}
!22 = !{!11, !11, i64 0}
!23 = !{!12, !12, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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::InternalMmapVector.6" = type { %"class.__sanitizer::InternalMmapVectorNoCtor.7" }
%"class.__sanitizer::InternalMmapVectorNoCtor.7" = type { ptr, i64, i64 }
%"class.__sanitizer::InternalScopedString" = type { %"class.__sanitizer::InternalScopedBuffer", i64 }
%"class.__sanitizer::InternalScopedBuffer" = type { ptr, i64 }
%"class.__sanitizer::InternalMmapVector.8" = type { %"class.__sanitizer::InternalMmapVectorNoCtor.9" }
%"class.__sanitizer::InternalMmapVectorNoCtor.9" = type { ptr, i64, i64 }
%"class.__sanitizer::RunOnDestruction" = type { %class.anon }
%class.anon = type { ptr }
%"struct.__sanitizer::CoverageData::NamedPcRange" = type { ptr, i64, i64 }

@.str.5 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [25 x i8], align 1
@_ZL13cov_sandboxed = external hidden local_unnamed_addr global i8, align 1
@_ZL6cov_fd = external hidden local_unnamed_addr global i32, align 4
@.str.46 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [31 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 uwtable
declare dso_local void @_ZN11__sanitizer20InternalScopedStringC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

declare noundef i64 @_ZN11__sanitizer15internal_getpidEv() local_unnamed_addr #3

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

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

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

declare void @_ZN11__sanitizer9CloseFileEi(i32 noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZN11__sanitizer10Symbolizer9GetOrInitEv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN11__sanitizerL11CovOpenFileEPNS_20InternalScopedStringEbPKcS3_(ptr noundef, i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11__sanitizer11WriteToFileEiPKvmPmPi(i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

declare noundef ptr @_ZN11__sanitizer15StripModuleNameEPKc(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11__sanitizer12CoverageData15GetRangeOffsetsERKNS0_12NamedPcRangeEPNS_10SymbolizerEPNS_18InternalMmapVectorImEE(ptr noundef nonnull align 8 dereferenceable(193), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer12CoverageData11DumpOffsetsEv(ptr noundef nonnull align 8 dereferenceable(193) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__sanitizer::InternalMmapVector.6", align 8
  %3 = alloca %"class.__sanitizer::InternalScopedString", align 8
  %4 = alloca %"class.__sanitizer::InternalMmapVector.8", align 8
  %5 = alloca %"class.__sanitizer::RunOnDestruction", align 8
  %6 = alloca %"struct.__sanitizer::CoverageData::NamedPcRange", align 8
  %7 = alloca ptr, align 8
  %8 = tail call noundef ptr @_ZN11__sanitizer10Symbolizer9GetOrInitEv()
  %9 = tail call noundef ptr @_ZN11__sanitizer12common_flagsEv()
  %10 = getelementptr inbounds i8, ptr %9, i64 124
  %11 = load i8, ptr %10, align 4, !tbaa !5, !range !13, !noundef !14
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %93

13:                                               ; preds = %1
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %14, label %15, !prof !15

14:                                               ; preds = %13
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 819, ptr noundef nonnull @.str.44, i64 noundef 0, i64 noundef 0) #8
  unreachable

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  invoke void @_ZN11__sanitizer20InternalScopedStringC2Em(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4096)
          to label %16 unwind label %22

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  %17 = getelementptr inbounds i8, ptr %0, i64 88
  %18 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  invoke void @_ZN11__sanitizer18InternalMmapVectorIPcEC2Em(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %18)
          to label %19 unwind label %24

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  invoke void @"_ZN11__sanitizer13at_scope_exitIZNS_12CoverageData11DumpOffsetsEvE3$_0EENS_16RunOnDestructionIT_EES4_"(ptr dead_on_unwind nonnull writable sret(%"class.__sanitizer::RunOnDestruction") align 8 %5, ptr nonnull %4)
          to label %.preheader unwind label %26

.preheader:                                       ; preds = %19
  %20 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %.not57 = icmp eq i64 %20, 0
  br i1 %.not57, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.critedge, %.preheader
  %21 = load i32, ptr @_ZL6cov_fd, align 4, !tbaa !16
  %.not37 = icmp eq i32 %21, -1
  br i1 %.not37, label %91, label %88

22:                                               ; preds = %15
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %97

24:                                               ; preds = %16
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %96

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

.lr.ph:                                           ; preds = %.preheader, %.critedge
  %.03456 = phi i64 [ %84, %.critedge ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  %28 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.03456)
          to label %29 unwind label %37

29:                                               ; preds = %.lr.ph
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %28, i64 24, i1 false), !tbaa.struct !17
  invoke void @_ZNK11__sanitizer12CoverageData15GetRangeOffsetsERKNS0_12NamedPcRangeEPNS_10SymbolizerEPNS_18InternalMmapVectorImEE(ptr noundef nonnull align 8 dereferenceable(193) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull %8, ptr noundef nonnull %2)
          to label %30 unwind label %37

30:                                               ; preds = %29
  %31 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %32 = add i64 %31, -1
  %33 = call noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %34 = load i64, ptr %33, align 8, !tbaa !20
  %.not38 = icmp eq i64 %34, 0
  br i1 %.not38, label %41, label %35, !prof !22

35:                                               ; preds = %30
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str.5, i32 noundef 836, ptr noundef nonnull @.str.45, i64 noundef %34, i64 noundef 0) #8
          to label %36 unwind label %39

36:                                               ; preds = %35
  unreachable

37:                                               ; preds = %29, %.lr.ph
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %87

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

41:                                               ; preds = %30
  store i64 -4557642822898942108, ptr %33, align 8, !tbaa !20
  %42 = load ptr, ptr %6, align 8, !tbaa !23
  %43 = invoke noundef ptr @_ZN11__sanitizer15StripModuleNameEPKc(ptr noundef %42)
          to label %44 unwind label %60

44:                                               ; preds = %41
  %45 = load i8, ptr @_ZL13cov_sandboxed, align 1, !tbaa !25, !range !13, !noundef !14
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %62

47:                                               ; preds = %44
  %48 = load i32, ptr @_ZL6cov_fd, align 4, !tbaa !16
  %.not42 = icmp eq i32 %48, -1
  br i1 %.not42, label %.critedge, label %49

49:                                               ; preds = %47
  %50 = invoke noundef i64 @_ZN11__sanitizer15internal_getpidEv()
          to label %51 unwind label %60

51:                                               ; preds = %49
  %52 = trunc i64 %50 to i32
  %53 = call noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %54 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.tr = trunc i64 %54 to i32
  %55 = shl i32 %.tr, 3
  invoke void @_ZN11__sanitizerL14CovWritePackedEiPKcPKvj(i32 noundef %52, ptr noundef %43, ptr noundef %53, i32 noundef %55)
          to label %56 unwind label %60

56:                                               ; preds = %51
  %57 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %58 unwind label %60

58:                                               ; preds = %56
  %.not43 = icmp eq i32 %57, 0
  br i1 %.not43, label %.critedge, label %59

59:                                               ; preds = %58
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.46, i64 noundef %32)
          to label %.critedge unwind label %60

60:                                               ; preds = %59, %56, %51, %49, %41
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %87

62:                                               ; preds = %44
  %63 = invoke noundef i32 @_ZN11__sanitizerL11CovOpenFileEPNS_20InternalScopedStringEbPKcS3_(ptr noundef nonnull %3, i1 noundef zeroext false, ptr noundef %43, ptr noundef nonnull @.str.26)
          to label %64 unwind label %65

64:                                               ; preds = %62
  %.not41 = icmp eq i32 %63, -1
  br i1 %.not41, label %.critedge, label %67

65:                                               ; preds = %80, %77, %72, %67, %62
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %87

67:                                               ; preds = %64
  %68 = call noundef ptr @_ZN11__sanitizer24InternalMmapVectorNoCtorImE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %69 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %70 = shl i64 %69, 3
  %71 = invoke noundef zeroext i1 @_ZN11__sanitizer11WriteToFileEiPKvmPmPi(i32 noundef %63, ptr noundef %68, i64 noundef %70, ptr noundef null, ptr noundef null)
          to label %72 unwind label %65

72:                                               ; preds = %67
  invoke void @_ZN11__sanitizer9CloseFileEi(i32 noundef %63)
          to label %73 unwind label %65

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %74 = call noundef ptr @_ZN11__sanitizer20InternalScopedBufferIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %75 = invoke noundef ptr @_ZN11__sanitizer15internal_strdupEPKc(ptr noundef %74)
          to label %76 unwind label %82

76:                                               ; preds = %73
  store ptr %75, ptr %7, align 8, !tbaa !18
  invoke void @_ZN11__sanitizer24InternalMmapVectorNoCtorIPcE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %77 unwind label %82

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  %78 = invoke noundef i32 @_ZN11__sanitizer9VerbosityEv()
          to label %79 unwind label %65

79:                                               ; preds = %77
  %.not39 = icmp eq i32 %78, 0
  br i1 %.not39, label %.critedge, label %80

80:                                               ; preds = %79
  %81 = call noundef ptr @_ZN11__sanitizer20InternalScopedBufferIcE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  invoke void (ptr, ...) @_ZN11__sanitizer6ReportEPKcz(ptr noundef nonnull @.str.47, ptr noundef %81, i64 noundef %32)
          to label %.critedge unwind label %65

82:                                               ; preds = %76, %73
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %87

.critedge:                                        ; preds = %80, %79, %64, %58, %59, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  %84 = add nuw i64 %.03456, 1
  %85 = call noundef i64 @_ZNK11__sanitizer24InternalMmapVectorNoCtorINS_12CoverageData12NamedPcRangeEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %.lr.ph, label %._crit_edge, !llvm.loop !26

87:                                               ; preds = %39, %65, %82, %60, %37
  %.pn46.pn = phi { ptr, i32 } [ %38, %37 ], [ %40, %39 ], [ %61, %60 ], [ %66, %65 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  br label %94

88:                                               ; preds = %._crit_edge
  invoke void @_ZN11__sanitizer9CloseFileEi(i32 noundef %21)
          to label %91 unwind label %89

89:                                               ; preds = %91, %88
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %94

91:                                               ; preds = %88, %._crit_edge
  invoke void @_ZN11__sanitizerL18GenerateHtmlReportERKNS_18InternalMmapVectorIPcEE(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %92 unwind label %89

92:                                               ; preds = %91
  call void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN11__sanitizer18InternalMmapVectorIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZN11__sanitizer20InternalScopedBufferIcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  br label %93

93:                                               ; preds = %1, %92
  ret void

94:                                               ; preds = %89, %87
  %.pn46.pn.pn = phi { ptr, i32 } [ %.pn46.pn, %87 ], [ %90, %89 ]
  call void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br label %95

95:                                               ; preds = %94, %26
  %.pn46.pn.pn.pn = phi { ptr, i32 } [ %.pn46.pn.pn, %94 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN11__sanitizer18InternalMmapVectorIPcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  br label %96

96:                                               ; preds = %95, %24
  %.pn46.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn46.pn.pn.pn, %95 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  call void @_ZN11__sanitizer20InternalScopedBufferIcED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  br label %97

97:                                               ; preds = %96, %22
  %.pn46.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn46.pn.pn.pn.pn, %96 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn46.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN11__sanitizer13at_scope_exitIZNS_12CoverageData11DumpOffsetsEvE3$_0EENS_16RunOnDestructionIT_EES4_"(ptr dead_on_unwind noalias writable sret(%"class.__sanitizer::RunOnDestruction") align 8, ptr) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11__sanitizerL14CovWritePackedEiPKcPKvj(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11__sanitizer24InternalMmapVectorNoCtorIPcE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare noundef ptr @_ZN11__sanitizer15internal_strdupEPKc(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11__sanitizerL18GenerateHtmlReportERKNS_18InternalMmapVectorIPcEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZN11__sanitizer16RunOnDestructionIZNS_12CoverageData11DumpOffsetsEvE3$_0ED2Ev"(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11__sanitizer18InternalMmapVectorImED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 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 = { 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 #3 = { "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 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { noreturn }
attributes #9 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 124}
!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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!16 = !{!11, !11, i64 0}
!17 = !{i64 0, i64 8, !18, i64 8, i64 8, !19, i64 16, i64 8, !19}
!18 = !{!10, !10, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long long", !8, i64 0}
!22 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN11__sanitizer12CoverageData12NamedPcRangeE", !10, i64 0, !12, i64 8, !12, i64 16}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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