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

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

%"class.__sanitizer::InternalScopedBuffer" = type { ptr, i64 }
%"struct.__sanitizer::StackTrace" = type { ptr, i32, i32 }
%"struct.__sanitizer::backtrace_frame_t" = type { i64, i64, i64 }
%"struct.__sanitizer::BufferedStackTrace" = type { %"struct.__sanitizer::StackTrace", [256 x i64], i64 }

@acquire_my_map_info_list = external dso_local global ptr, align 8
@release_my_map_info_list = external dso_local global ptr, align 8
@unwind_backtrace_signal_arch = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [123 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer18BufferedStackTrace26SlowUnwindStackWithContextEmPvj(ptr noundef nonnull align 8 dereferenceable(2072) %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, 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 ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"class.__sanitizer::InternalScopedBuffer", align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !11
  %22 = load ptr, ptr %5, align 8
  br label %23

23:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %24 = load i32, ptr %8, align 4, !tbaa !11
  %25 = zext i32 %24 to i64
  store i64 %25, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 2, ptr %10, align 8, !tbaa !13
  %26 = load i64, ptr %9, align 8, !tbaa !13
  %27 = load i64, ptr %10, align 8, !tbaa !13
  %28 = icmp uge i64 %26, %27
  %29 = xor i1 %28, true
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = zext i1 %31 to i64
  %33 = call i64 @llvm.expect.i64(i64 %32, i64 0)
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %23
  %36 = load i64, ptr %9, align 8, !tbaa !13
  %37 = load i64, ptr %10, align 8, !tbaa !13
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str, i32 noundef 142, ptr noundef @.str.2, i64 noundef %36, i64 noundef %37) #6
  unreachable

38:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr @unwind_backtrace_signal_arch, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %45, label %42

42:                                               ; preds = %39
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN11__sanitizer18BufferedStackTrace15SlowUnwindStackEmj(ptr noundef nonnull align 8 dereferenceable(2072) %22, i64 noundef %43, i32 noundef %44)
  br label %137

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %46 = load ptr, ptr @acquire_my_map_info_list, align 8, !tbaa !5
  %47 = call ptr %46()
  store ptr %47, ptr %11, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = ptrtoint ptr %49 to i64
  store i64 %50, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !13
  %51 = load i64, ptr %12, align 8, !tbaa !13
  %52 = load i64, ptr %13, align 8, !tbaa !13
  %53 = icmp ne i64 %51, %52
  %54 = xor i1 %53, true
  %55 = xor i1 %54, true
  %56 = xor i1 %55, true
  %57 = zext i1 %56 to i64
  %58 = call i64 @llvm.expect.i64(i64 %57, i64 0)
  %59 = icmp ne i64 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %48
  %61 = load i64, ptr %12, align 8, !tbaa !13
  %62 = load i64, ptr %13, align 8, !tbaa !13
  call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str, i32 noundef 149, ptr noundef @.str.3, i64 noundef %61, i64 noundef %62) #6
  unreachable

63:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef 256)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %66 = load ptr, ptr @unwind_backtrace_signal_arch, align 8, !tbaa !5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = invoke noundef ptr @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %70 unwind label %81

70:                                               ; preds = %65
  %71 = load i32, ptr %8, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = invoke i64 %66(ptr noundef null, ptr noundef %67, ptr noundef %68, ptr noundef %69, i64 noundef 0, i64 noundef %72)
          to label %74 unwind label %81

74:                                               ; preds = %70
  store i64 %73, ptr %15, align 8, !tbaa !9
  %75 = load ptr, ptr @release_my_map_info_list, align 8, !tbaa !5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void %75(ptr noundef %76)
          to label %77 unwind label %81

77:                                               ; preds = %74
  %78 = load i64, ptr %15, align 8, !tbaa !9
  %79 = icmp slt i64 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %77
  store i32 1, ptr %18, align 4
  br label %135

81:                                               ; preds = %74, %70, %65
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %17, align 4
  br label %138

85:                                               ; preds = %77
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %87 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %87, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 256, ptr %20, align 8, !tbaa !13
  %88 = load i64, ptr %19, align 8, !tbaa !13
  %89 = load i64, ptr %20, align 8, !tbaa !13
  %90 = icmp ule i64 %88, %89
  %91 = xor i1 %90, true
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = zext i1 %93 to i64
  %95 = call i64 @llvm.expect.i64(i64 %94, i64 0)
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %97, label %105

97:                                               ; preds = %86
  %98 = load i64, ptr %19, align 8, !tbaa !13
  %99 = load i64, ptr %20, align 8, !tbaa !13
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef @.str, i32 noundef 157, ptr noundef @.str.4, i64 noundef %98, i64 noundef %99) #6
          to label %100 unwind label %101

100:                                              ; preds = %97
  unreachable

101:                                              ; preds = %97
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %16, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %138

105:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  %108 = getelementptr inbounds %"struct.__sanitizer::StackTrace", ptr %22, i32 0, i32 1
  store i32 0, ptr %108, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %127, %107
  %110 = load i64, ptr %21, align 8, !tbaa !9
  %111 = load i64, ptr %15, align 8, !tbaa !9
  %112 = icmp slt i64 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %134

114:                                              ; preds = %109
  %115 = load i64, ptr %21, align 8, !tbaa !9
  %116 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %115)
          to label %117 unwind label %130

117:                                              ; preds = %114
  %118 = getelementptr inbounds %"struct.__sanitizer::backtrace_frame_t", ptr %116, i32 0, i32 0
  %119 = load i64, ptr %118, align 8, !tbaa !17
  %120 = add i64 %119, 2
  %121 = getelementptr inbounds %"struct.__sanitizer::BufferedStackTrace", ptr %22, i32 0, i32 1
  %122 = getelementptr inbounds %"struct.__sanitizer::StackTrace", ptr %22, i32 0, i32 1
  %123 = load i32, ptr %122, align 8, !tbaa !15
  %124 = add i32 %123, 1
  store i32 %124, ptr %122, align 8, !tbaa !15
  %125 = zext i32 %123 to i64
  %126 = getelementptr inbounds [256 x i64], ptr %121, i64 0, i64 %125
  store i64 %120, ptr %126, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %117
  %128 = load i64, ptr %21, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %21, align 8, !tbaa !9
  br label %109, !llvm.loop !19

130:                                              ; preds = %114
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %16, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %138

134:                                              ; preds = %113
  store i32 0, ptr %18, align 4
  br label %135

135:                                              ; preds = %134, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %136 = load i32, ptr %18, align 4
  switch i32 %136, label %144 [
    i32 0, label %137
    i32 1, label %137
  ]

137:                                              ; preds = %135, %135, %42
  ret void

138:                                              ; preds = %130, %101, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr %16, align 8
  %141 = load i32, ptr %17, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143

144:                                              ; preds = %135
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nounwind }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!16, !12, i64 8}
!16 = !{!"_ZTSN11__sanitizer10StackTraceE", !6, i64 0, !12, i64 8, !12, i64 12}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN11__sanitizer17backtrace_frame_tE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"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::InternalScopedBuffer" = type { ptr, i64 }

@acquire_my_map_info_list = external dso_local local_unnamed_addr global ptr, align 8
@release_my_map_info_list = external dso_local local_unnamed_addr global ptr, align 8
@unwind_backtrace_signal_arch = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [123 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 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: noreturn
declare void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11__sanitizer18BufferedStackTrace26SlowUnwindStackWithContextEmPvj(ptr noundef nonnull align 8 dereferenceable(2072) %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.__sanitizer::InternalScopedBuffer", align 8
  %6 = zext i32 %3 to i64
  %7 = icmp ult i32 %3, 2
  br i1 %7, label %8, label %9, !prof !5

8:                                                ; preds = %4
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str, i32 noundef 142, ptr noundef nonnull @.str.2, i64 noundef %6, i64 noundef 2) #4
  unreachable

9:                                                ; preds = %4
  %10 = load ptr, ptr @unwind_backtrace_signal_arch, align 8, !tbaa !6
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %12

11:                                               ; preds = %9
  tail call void @_ZN11__sanitizer18BufferedStackTrace15SlowUnwindStackEmj(ptr noundef nonnull align 8 dereferenceable(2072) %0, i64 noundef %1, i32 noundef %3)
  br label %44

12:                                               ; preds = %9
  %13 = load ptr, ptr @acquire_my_map_info_list, align 8, !tbaa !6
  %14 = tail call ptr %13()
  %.not31 = icmp eq ptr %14, null
  br i1 %.not31, label %15, label %16, !prof !5

15:                                               ; preds = %12
  tail call void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str, i32 noundef 149, ptr noundef nonnull @.str.3, i64 noundef 0, i64 noundef 0) #4
  unreachable

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 256)
  %17 = load ptr, ptr @unwind_backtrace_signal_arch, align 8, !tbaa !6
  %18 = call noundef ptr @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %19 = invoke i64 %17(ptr noundef null, ptr noundef %2, ptr noundef nonnull %14, ptr noundef %18, i64 noundef 0, i64 noundef %6)
          to label %20 unwind label %24

20:                                               ; preds = %16
  %21 = load ptr, ptr @release_my_map_info_list, align 8, !tbaa !6
  invoke void %21(ptr noundef nonnull %14)
          to label %22 unwind label %24

22:                                               ; preds = %20
  %23 = icmp slt i64 %19, 0
  br i1 %23, label %.loopexit, label %26

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

26:                                               ; preds = %22
  %27 = icmp ugt i64 %19, 256
  br i1 %27, label %28, label %32, !prof !5

28:                                               ; preds = %26
  invoke void @_ZN11__sanitizer11CheckFailedEPKciS1_yy(ptr noundef nonnull @.str, i32 noundef 157, ptr noundef nonnull @.str.4, i64 noundef %19, i64 noundef 256) #4
          to label %29 unwind label %30

29:                                               ; preds = %28
  unreachable

30:                                               ; preds = %28
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %45

32:                                               ; preds = %26
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %33, align 8, !tbaa !10
  %.not34 = icmp eq i64 %19, 0
  br i1 %.not34, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %32
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  br label %35

35:                                               ; preds = %.lr.ph, %35
  %.033 = phi i64 [ 0, %.lr.ph ], [ %43, %35 ]
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.033)
  %37 = load i64, ptr %36, align 8, !tbaa !13
  %38 = add i64 %37, 2
  %39 = load i32, ptr %33, align 8, !tbaa !10
  %40 = add i32 %39, 1
  store i32 %40, ptr %33, align 8, !tbaa !10
  %41 = zext i32 %39 to i64
  %42 = getelementptr inbounds [256 x i64], ptr %34, i64 0, i64 %41
  store i64 %38, ptr %42, align 8, !tbaa !16
  %43 = add nuw nsw i64 %.033, 1
  %exitcond.not = icmp eq i64 %43, %19
  br i1 %exitcond.not, label %.loopexit, label %35, !llvm.loop !17

.loopexit:                                        ; preds = %35, %32, %22
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %44

44:                                               ; preds = %.loopexit, %11
  ret void

45:                                               ; preds = %30, %24
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %25, %24 ]
  call void @_ZN11__sanitizer20InternalScopedBufferINS_17backtrace_frame_tEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { noreturn }
attributes #5 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"_ZTSN11__sanitizer10StackTraceE", !7, i64 0, !12, i64 8, !12, i64 12}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN11__sanitizer17backtrace_frame_tE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"long", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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