; LLVM IR from hbirchtree/coffeecutie :: src/peripheral/platform/platforms/posix (stacktrace)

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.stl_types::range" = type { i64, i64 }
%"struct.stl_types::range<>::iterator" = type { i64, i64, i64 }

@_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore = external hidden global [21 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8platform3env5posix11Stacktracer14DemangleSymbolB5cxx11EPKc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjE(ptr noundef %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.stl_types::range", align 8
  %13 = alloca %"struct.stl_types::range<>::iterator", align 8
  %14 = alloca %"struct.stl_types::range<>::iterator", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %27, %1
  %21 = load i64, ptr %3, align 8, !tbaa !9
  %22 = icmp ult i64 %21, 21
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %30

24:                                               ; preds = %20
  %25 = load i64, ptr %3, align 8, !tbaa !9
  %26 = getelementptr inbounds [21 x ptr], ptr @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i64 0, i64 %25
  store ptr null, ptr %26, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %24
  %28 = load i64, ptr %3, align 8, !tbaa !9
  %29 = add i64 %28, 1
  store i64 %29, ptr %3, align 8, !tbaa !9
  br label %20, !llvm.loop !11

30:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %31 = call i32 @backtrace(ptr noundef @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i32 noundef 21)
  store i32 %31, ptr %4, align 4, !tbaa !13
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %37, label %34

34:                                               ; preds = %30
  %35 = load i32, ptr %4, align 4, !tbaa !13
  %36 = call ptr @backtrace_symbols(ptr noundef @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i32 noundef %35) #8
  call void @free(ptr noundef %36) #8
  store i32 1, ptr %5, align 4
  br label %113

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %38 = load i32, ptr %4, align 4, !tbaa !13
  %39 = call ptr @backtrace_symbols(ptr noundef @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i32 noundef %38) #8
  store ptr %39, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %112

42:                                               ; preds = %37
  %43 = load i32, ptr %4, align 4, !tbaa !13
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %112

45:                                               ; preds = %42
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %47 unwind label %56

47:                                               ; preds = %45
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef %46, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %48 unwind label %60

48:                                               ; preds = %47
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %49 = load i32, ptr %4, align 4, !tbaa !13
  %50 = call noundef i64 @_ZL7C_FCASTImiTnPNSt9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_integralIT0_EE5valueEvE4typeELPv0ETnPNS0_IXaaleclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS1_EE3maxEgeclsr3std14numeric_limitsIS2_EE3minEclsr3std14numeric_limitsIS1_EE3minEEvE4typeELS6_0ETnPNS0_IXeqsr3std9is_signedIS1_EE5valuesr3std9is_signedIS1_EE5valueEvE4typeELS6_0EES1_S2_(i32 noundef %49)
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %50, i64 noundef 1)
  store ptr %12, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE5beginEv(ptr dead_on_unwind writable sret(%"struct.stl_types::range<>::iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE3endEv(ptr dead_on_unwind writable sret(%"struct.stl_types::range<>::iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(16) %52)
  br label %53

53:                                               ; preds = %107, %48
  %54 = call noundef zeroext i1 @_ZNK9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratorneERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  br i1 %54, label %65, label %55

55:                                               ; preds = %53
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %110

56:                                               ; preds = %45
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  br label %64

60:                                               ; preds = %47
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %9, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %64

64:                                               ; preds = %60, %56
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %116

65:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %66 = call noundef i64 @_ZNK9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  store i64 %66, ptr %15, align 8, !tbaa !9
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load i64, ptr %15, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %67, i64 %68
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %89

72:                                               ; preds = %65
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i64, ptr %15, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  call void @_ZN8platform3env5glibcL17DemangleBacktraceB5cxx11EPc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef %77)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %78 unwind label %80

78:                                               ; preds = %72
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef %73, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %79 unwind label %84

79:                                               ; preds = %78
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %106

80:                                               ; preds = %72
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %9, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %10, align 4
  br label %88

84:                                               ; preds = %78
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %9, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %88

88:                                               ; preds = %84, %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %109

89:                                               ; preds = %65
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i64, ptr %15, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  call void @_ZN8platform3env5posix11Stacktracer14DemangleSymbolB5cxx11EPKc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef %94)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %95 unwind label %97

95:                                               ; preds = %89
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef %90, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %96 unwind label %101

96:                                               ; preds = %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  br label %106

97:                                               ; preds = %89
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %105

101:                                              ; preds = %95
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %9, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %105

105:                                              ; preds = %101, %97
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  br label %109

106:                                              ; preds = %96, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %107

107:                                              ; preds = %106
  %108 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  br label %53

109:                                              ; preds = %105, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %116

110:                                              ; preds = %55
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %111) #8
  br label %112

112:                                              ; preds = %110, %42, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  store i32 0, ptr %5, align 4
  br label %113

113:                                              ; preds = %112, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  %114 = load i32, ptr %5, align 4
  switch i32 %114, label %122 [
    i32 0, label %115
    i32 1, label %115
  ]

115:                                              ; preds = %113, %113
  ret void

116:                                              ; preds = %109, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %9, align 8
  %119 = load i32, ptr %10, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121

122:                                              ; preds = %113
  unreachable
}

declare i32 @backtrace(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind
declare ptr @backtrace_symbols(ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL7C_FCASTImiTnPNSt9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_integralIT0_EE5valueEvE4typeELPv0ETnPNS0_IXaaleclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS1_EE3maxEgeclsr3std14numeric_limitsIS2_EE3minEclsr3std14numeric_limitsIS1_EE3minEEvE4typeELS6_0ETnPNS0_IXeqsr3std9is_signedIS1_EE5valuesr3std9is_signedIS1_EE5valueEvE4typeELS6_0EES1_S2_(i32 noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.stl_types::range<>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.stl_types::range<>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN8platform3env5glibcL17DemangleBacktraceB5cxx11EPc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = { alwaysinline 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 = { 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, !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.stl_types::range" = type { i64, i64 }
%"struct.stl_types::range<>::iterator" = type { i64, i64, i64 }

@_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore = external hidden global [21 x ptr], align 16
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8platform3env5posix11Stacktracer14DemangleSymbolB5cxx11EPKc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) 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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjE(ptr noundef %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"struct.stl_types::range", align 8
  %5 = alloca %"struct.stl_types::range<>::iterator", align 8
  %6 = alloca %"struct.stl_types::range<>::iterator", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(168) @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i8 0, i64 168, i1 false), !tbaa !5
  %11 = tail call i32 @backtrace(ptr noundef nonnull @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i32 noundef 21)
  %.not = icmp eq ptr %0, null
  %12 = tail call ptr @backtrace_symbols(ptr noundef nonnull @_ZZN8platform3env5glibc11Stacktracer9BacktraceEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjEE10tracestore, i32 noundef %11) #10
  br i1 %.not, label %13, label %14

13:                                               ; preds = %1
  tail call void @free(ptr noundef %12) #10
  br label %50

14:                                               ; preds = %1
  %15 = icmp ne ptr %12, null
  %16 = icmp ne i32 %11, 0
  %or.cond = and i1 %15, %16
  br i1 %or.cond, label %17, label %50

17:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %18 unwind label %22

18:                                               ; preds = %17
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %19 unwind label %24

19:                                               ; preds = %18
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  %20 = call noundef i64 @_ZL7C_FCASTImiTnPNSt9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_integralIT0_EE5valueEvE4typeELPv0ETnPNS0_IXaaleclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS1_EE3maxEgeclsr3std14numeric_limitsIS2_EE3minEclsr3std14numeric_limitsIS1_EE3minEEvE4typeELS6_0ETnPNS0_IXeqsr3std9is_signedIS1_EE5valuesr3std9is_signedIS1_EE5valueEvE4typeELS6_0EES1_S2_(i32 noundef %11)
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %20, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE5beginEv(ptr dead_on_unwind nonnull writable sret(%"struct.stl_types::range<>::iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #10
  call void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE3endEv(ptr dead_on_unwind nonnull writable sret(%"struct.stl_types::range<>::iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %21 = call noundef zeroext i1 @_ZNK9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratorneERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %46, %19
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @free(ptr noundef nonnull %12) #10
  br label %50

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

24:                                               ; preds = %18
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #10
  br label %26

26:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  br label %51

.lr.ph:                                           ; preds = %19, %46
  %27 = call noundef i64 @_ZNK9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %28 = getelementptr inbounds ptr, ptr %12, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %.not33 = icmp eq ptr %29, null
  br i1 %.not33, label %38, label %30

30:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #10
  call void @_ZN8platform3env5glibcL17DemangleBacktraceB5cxx11EPc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull %29)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %31 unwind label %33

31:                                               ; preds = %30
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %32 unwind label %35

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %46

33:                                               ; preds = %30
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %37

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  br label %37

37:                                               ; preds = %35, %33
  %.pn36 = phi { ptr, i32 } [ %36, %35 ], [ %34, %33 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  br label %49

38:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  call void @_ZN8platform3env5posix11Stacktracer14DemangleSymbolB5cxx11EPKc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef null)
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %39 unwind label %41

39:                                               ; preds = %38
  invoke void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %40 unwind label %43

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  br label %46

41:                                               ; preds = %38
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %39
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %45

45:                                               ; preds = %43, %41
  %.pn34 = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #10
  br label %49

46:                                               ; preds = %40, %32
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratorppEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %48 = call noundef zeroext i1 @_ZNK9stl_types5rangeImNS_12range_paramsILb0EEEE8iteratorneERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  br i1 %48, label %.lr.ph, label %._crit_edge

49:                                               ; preds = %45, %37
  %.pn36.pn = phi { ptr, i32 } [ %.pn36, %37 ], [ %.pn34, %45 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  br label %51

50:                                               ; preds = %14, %._crit_edge, %13
  ret void

51:                                               ; preds = %49, %26
  %.pn36.pn.pn = phi { ptr, i32 } [ %.pn36.pn, %49 ], [ %.pn, %26 ]
  resume { ptr, i32 } %.pn36.pn.pn
}

declare i32 @backtrace(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare ptr @backtrace_symbols(ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8platform3envL14DefaultedPrintEPFvP8_IO_FILERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8semantic5debug8SeverityEjjESA_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL7C_FCASTImiTnPNSt9enable_ifIXaasr3std11is_integralIT_EE5valuesr3std11is_integralIT0_EE5valueEvE4typeELPv0ETnPNS0_IXaaleclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS1_EE3maxEgeclsr3std14numeric_limitsIS2_EE3minEclsr3std14numeric_limitsIS1_EE3minEEvE4typeELS6_0ETnPNS0_IXeqsr3std9is_signedIS1_EE5valuesr3std9is_signedIS1_EE5valueEvE4typeELS6_0EES1_S2_(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE5beginEv(ptr dead_on_unwind noalias writable sret(%"struct.stl_types::range<>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9stl_types5rangeImNS_12range_paramsILb0EEEE3endEv(ptr dead_on_unwind noalias writable sret(%"struct.stl_types::range<>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #7

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN8platform3env5glibcL17DemangleBacktraceB5cxx11EPc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #8

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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 = { 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { alwaysinline 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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