; LLVM IR from PaddlePaddle/Paddle :: paddle/phi/core/memory/allocation (memory_block)

; 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.common::ErrorSummary" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }
%"struct.paddle::memory::detail::MemoryBlock::Desc" = type { i64, i32, i64, i64, i64, ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [103 x i8], align 1
@_ZTIN6common7enforce13EnforceNotMetE = external dso_local constant { ptr, ptr, ptr }, align 8

declare void @_ZN6paddle6memory6detail13MetadataCache4SaveEPNS1_11MemoryBlockERKNS3_4DescE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef, ptr noundef nonnull align 8 dereferenceable(64)) #0

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

declare void @_ZN6paddle6memory6detail11MemoryBlock4DescC1ENS2_4TypeEmmmPS2_S5_(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) unnamed_addr #0

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

declare noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6paddle6memory6detail11MemoryBlock5SplitEPNS1_13MetadataCacheEmm(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1, i64 noundef %2, i64 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.common::ErrorSummary", align 8
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.common::ErrorSummary", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca i1, align 1
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.paddle::memory::detail::MemoryBlock::Desc", align 8
  %29 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !9
  %30 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57) %31, ptr noundef %30)
  store ptr %32, ptr %9, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %34, i32 0, i32 4
  %36 = load i64, ptr %35, align 8, !tbaa !11
  store i64 %36, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %37 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %37, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %38 = load i64, ptr %10, align 8, !tbaa !9
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = icmp uge i64 %38, %39
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %12, align 1, !tbaa !14
  %42 = load i8, ptr %12, align 1, !tbaa !14, !range !16, !noundef !17
  %43 = trunc i8 %42 to i1
  %44 = xor i1 %43, true
  %45 = zext i1 %44 to i64
  %46 = call i64 @llvm.expect.i64(i64 %45, i64 0)
  %47 = icmp ne i64 %46, 0
  br i1 %47, label %48, label %102

48:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %49, i32 0, i32 4
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN6common6errors15InvalidArgumentIJPKcmmEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind writable sret(%"class.common::ErrorSummary") align 8 %13, ptr noundef @.str, i64 noundef %51, i64 noundef %52)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 1, ptr %14, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %53 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6common12ErrorSummary13error_messageB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %54 unwind label %64

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  invoke void @_ZN6common7enforce7details29BinaryCompareMessageConverterILb1EE7ConvertImEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %55 unwind label %68

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZN6common7enforce7details29BinaryCompareMessageConverterILb1EE7ConvertImEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef @.str.3, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %56 unwind label %72

56:                                               ; preds = %55
  invoke void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA17_cA5_cS7_S7_EEES7_PKcDpRKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 1 dereferenceable(17) @.str.2, ptr noundef nonnull align 1 dereferenceable(5) @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %57 unwind label %76

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

58:                                               ; preds = %57
  store i1 true, ptr %22, align 1
  %59 = call ptr @__cxa_allocate_exception(i64 88) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  %60 = invoke noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %61 unwind label %82

61:                                               ; preds = %58
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  invoke void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %20, i32 noundef %60, ptr noundef %21)
          to label %62 unwind label %86

62:                                               ; preds = %61
  invoke void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81) %59, ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef @.str.4, i32 noundef 55)
          to label %63 unwind label %90

63:                                               ; preds = %62
  store i1 false, ptr %22, align 1
  invoke void @__cxa_throw(ptr %59, ptr @_ZTIN6common7enforce13EnforceNotMetE, ptr @_ZN6common7enforce13EnforceNotMetD2Ev) #7
          to label %167 unwind label %90

64:                                               ; preds = %48
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  br label %101

68:                                               ; preds = %54
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %16, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %17, align 4
  br label %81

72:                                               ; preds = %55
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %16, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %17, align 4
  br label %80

76:                                               ; preds = %56
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %16, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %17, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %81

81:                                               ; preds = %80, %68
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %101

82:                                               ; preds = %58
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %16, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %17, align 4
  br label %95

86:                                               ; preds = %61
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %16, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %17, align 4
  br label %94

90:                                               ; preds = %63, %62
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %16, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %17, align 4
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %94

94:                                               ; preds = %90, %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  br label %95

95:                                               ; preds = %94, %82
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  %96 = load i1, ptr %22, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %95
  call void @__cxa_free_exception(ptr %59) #6
  br label %98

98:                                               ; preds = %97, %95
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %101

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  br label %102

101:                                              ; preds = %98, %81, %64
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %162

102:                                              ; preds = %100, %33
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = add i64 64, %105
  store i64 %106, ptr %23, align 8, !tbaa !9
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %107, i32 0, i32 4
  %109 = load i64, ptr %108, align 8, !tbaa !11
  %110 = load i64, ptr %7, align 8, !tbaa !9
  %111 = sub i64 %109, %110
  %112 = load i64, ptr %23, align 8, !tbaa !9
  %113 = icmp ule i64 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %104
  store i32 1, ptr %24, align 4
  br label %159

115:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %116 = load i64, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %30, i64 %116
  store ptr %117, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %118, i32 0, i32 4
  %120 = load i64, ptr %119, align 8, !tbaa !11
  %121 = load i64, ptr %7, align 8, !tbaa !9
  %122 = sub i64 %120, %121
  store i64 %122, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %123, i32 0, i32 6
  %125 = load ptr, ptr %124, align 8, !tbaa !18
  store ptr %125, ptr %27, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #6
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %128, i32 0, i32 2
  %130 = load i64, ptr %129, align 8, !tbaa !19
  %131 = load i64, ptr %26, align 8, !tbaa !9
  %132 = load i64, ptr %23, align 8, !tbaa !9
  %133 = sub i64 %131, %132
  %134 = load i64, ptr %26, align 8, !tbaa !9
  %135 = load ptr, ptr %27, align 8, !tbaa !5
  call void @_ZN6paddle6memory6detail11MemoryBlock4DescC1ENS2_4TypeEmmmPS2_S5_(ptr noundef nonnull align 8 dereferenceable(64) %28, i32 noundef 0, i64 noundef %130, i64 noundef %133, i64 noundef %134, ptr noundef %30, ptr noundef %135)
  call void @_ZN6paddle6memory6detail13MetadataCache4SaveEPNS1_11MemoryBlockERKNS3_4DescE(ptr noundef nonnull align 8 dereferenceable(57) %126, ptr noundef %127, ptr noundef nonnull align 8 dereferenceable(64) %28)
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #6
  %136 = load ptr, ptr %25, align 8, !tbaa !5
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %137, i32 0, i32 6
  store ptr %136, ptr %138, align 8, !tbaa !18
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = load i64, ptr %23, align 8, !tbaa !9
  %141 = sub i64 %139, %140
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %142, i32 0, i32 3
  store i64 %141, ptr %143, align 8, !tbaa !20
  %144 = load i64, ptr %7, align 8, !tbaa !9
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %145, i32 0, i32 4
  store i64 %144, ptr %146, align 8, !tbaa !11
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64) %147)
  %148 = load ptr, ptr %27, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %158

150:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %27, align 8, !tbaa !5
  %153 = call noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57) %151, ptr noundef %152)
  store ptr %153, ptr %29, align 8, !tbaa !5
  %154 = load ptr, ptr %25, align 8, !tbaa !5
  %155 = load ptr, ptr %29, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.paddle::memory::detail::MemoryBlock::Desc", ptr %155, i32 0, i32 5
  store ptr %154, ptr %156, align 8, !tbaa !21
  %157 = load ptr, ptr %29, align 8, !tbaa !5
  call void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64) %157)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %158

158:                                              ; preds = %150, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  store i32 0, ptr %24, align 4
  br label %159

159:                                              ; preds = %158, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  %160 = load i32, ptr %24, align 4
  switch i32 %160, label %167 [
    i32 0, label %161
    i32 1, label %161
  ]

161:                                              ; preds = %159, %159
  ret void

162:                                              ; preds = %101
  %163 = load ptr, ptr %16, align 8
  %164 = load i32, ptr %17, align 4
  %165 = insertvalue { ptr, i32 } poison, ptr %163, 0
  %166 = insertvalue { ptr, i32 } %165, i32 %164, 1
  resume { ptr, i32 } %166

167:                                              ; preds = %159, %63
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common6errors15InvalidArgumentIJPKcmmEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind noalias writable sret(%"class.common::ErrorSummary") align 8, ptr noundef, i64 noundef, i64 noundef) #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare ptr @__cxa_allocate_exception(i64)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

declare void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64)) #0

attributes #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 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { 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 = { nounwind }
attributes #7 = { 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, !10, i64 32}
!12 = !{!"_ZTSN6paddle6memory6detail11MemoryBlock4DescE", !10, i64 0, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !6, i64 48, !10, i64 56}
!13 = !{!"_ZTSN6paddle6memory6detail11MemoryBlock4TypeE", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !10, i64 16}
!20 = !{!12, !10, i64 24}
!21 = !{!12, !6, i64 40}


; 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.common::ErrorSummary" = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }
%"struct.paddle::memory::detail::MemoryBlock::Desc" = type { i64, i32, i64, i64, i64, ptr, ptr, i64 }

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [103 x i8], align 1
@_ZTIN6common7enforce13EnforceNotMetE = external dso_local constant { ptr, ptr, ptr }, align 8

declare void @_ZN6paddle6memory6detail13MetadataCache4SaveEPNS1_11MemoryBlockERKNS3_4DescE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0

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

declare void @_ZN6paddle6memory6detail11MemoryBlock4DescC1ENS2_4TypeEmmmPS2_S5_(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) unnamed_addr #0

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

declare noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6paddle6memory6detail11MemoryBlock5SplitEPNS1_13MetadataCacheEmm(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.common::ErrorSummary", 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
  %11 = alloca %"class.common::ErrorSummary", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"struct.paddle::memory::detail::MemoryBlock::Desc", align 8
  %14 = tail call noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57) %1, ptr noundef nonnull %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 32
  %16 = load i64, ptr %15, align 8, !tbaa !5
  store i64 %16, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store i64 %2, ptr %6, align 8, !tbaa !12
  %.not = icmp ult i64 %16, %2
  br i1 %.not, label %17, label %40, !prof !13

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  call void @_ZN6common6errors15InvalidArgumentIJPKcmmEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind nonnull writable sret(%"class.common::ErrorSummary") align 8 %7, ptr noundef nonnull @.str, i64 noundef %16, i64 noundef %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  %18 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK6common12ErrorSummary13error_messageB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  invoke void @_ZN6common7enforce7details29BinaryCompareMessageConverterILb1EE7ConvertImEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull @.str.2, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %19 unwind label %26

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  invoke void @_ZN6common7enforce7details29BinaryCompareMessageConverterILb1EE7ConvertImEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull @.str.3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %20 unwind label %28

20:                                               ; preds = %19
  invoke void @_ZN6paddle6string7SprintfIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEA17_cA5_cS7_S7_EEES7_PKcDpRKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 1 dereferenceable(17) @.str.2, ptr noundef nonnull align 1 dereferenceable(5) @.str.3, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %21 unwind label %30

21:                                               ; preds = %20
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %22 = call ptr @__cxa_allocate_exception(i64 88) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  %23 = call noundef i32 @_ZNK6common12ErrorSummary4codeEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  invoke void @_ZN6common12ErrorSummaryC2ENS_9ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %11, i32 noundef %23, ptr noundef nonnull %12)
          to label %24 unwind label %.thread

24:                                               ; preds = %21
  invoke void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81) %22, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull @.str.4, i32 noundef 55)
          to label %25 unwind label %35

25:                                               ; preds = %24
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTIN6common7enforce13EnforceNotMetE, ptr nonnull @_ZN6common7enforce13EnforceNotMetD2Ev) #6
          to label %56 unwind label %35

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

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

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

32:                                               ; preds = %30, %28
  %.pn = phi { ptr, i32 } [ %31, %30 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #5
  br label %33

33:                                               ; preds = %32, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %32 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %39

.thread:                                          ; preds = %21
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %37

35:                                               ; preds = %24, %25
  %.042 = phi i1 [ false, %25 ], [ true, %24 ]
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br i1 %.042, label %37, label %38

37:                                               ; preds = %.thread, %35
  %.pn5157 = phi { ptr, i32 } [ %34, %.thread ], [ %36, %35 ]
  call void @__cxa_free_exception(ptr %22) #5
  br label %38

38:                                               ; preds = %37, %35
  %.pn5156 = phi { ptr, i32 } [ %.pn5157, %37 ], [ %36, %35 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  br label %39

39:                                               ; preds = %38, %33
  %.pn51.pn = phi { ptr, i32 } [ %.pn5156, %38 ], [ %.pn.pn, %33 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @_ZN6common12ErrorSummaryD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn51.pn

40:                                               ; preds = %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %41 = add i64 %3, 64
  %42 = sub i64 %16, %2
  %.not47 = icmp ugt i64 %42, %41
  br i1 %.not47, label %43, label %55

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %0, i64 %2
  %45 = getelementptr inbounds i8, ptr %14, i64 48
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  %47 = getelementptr inbounds i8, ptr %14, i64 16
  %48 = load i64, ptr %47, align 8, !tbaa !15
  %49 = sub i64 %42, %41
  call void @_ZN6paddle6memory6detail11MemoryBlock4DescC1ENS2_4TypeEmmmPS2_S5_(ptr noundef nonnull align 8 dereferenceable(64) %13, i32 noundef 0, i64 noundef %48, i64 noundef %49, i64 noundef %42, ptr noundef nonnull %0, ptr noundef %46)
  call void @_ZN6paddle6memory6detail13MetadataCache4SaveEPNS1_11MemoryBlockERKNS3_4DescE(ptr noundef nonnull align 8 dereferenceable(57) %1, ptr noundef nonnull %44, ptr noundef nonnull align 8 dereferenceable(64) %13)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  store ptr %44, ptr %45, align 8, !tbaa !14
  %50 = sub i64 %2, %41
  %51 = getelementptr inbounds i8, ptr %14, i64 24
  store i64 %50, ptr %51, align 8, !tbaa !16
  store i64 %2, ptr %15, align 8, !tbaa !5
  call void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64) %14)
  %.not48 = icmp eq ptr %46, null
  br i1 %.not48, label %55, label %52

52:                                               ; preds = %43
  %53 = call noundef ptr @_ZN6paddle6memory6detail13MetadataCache8LoadDescEPNS1_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(57) %1, ptr noundef nonnull %46)
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  store ptr %44, ptr %54, align 8, !tbaa !17
  call void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64) %53)
  br label %55

55:                                               ; preds = %43, %52, %40
  ret void

56:                                               ; preds = %25
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common6errors15InvalidArgumentIJPKcmmEEENS_12ErrorSummaryEDpT_(ptr dead_on_unwind noalias writable sret(%"class.common::ErrorSummary") align 8, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6common7enforce13EnforceNotMetC2ERKNS_12ErrorSummaryEPKci(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @_ZN6paddle6memory6detail11MemoryBlock4Desc12UpdateGuardsEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0

attributes #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 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 = { 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 = { 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, !7, i64 32}
!6 = !{!"_ZTSN6paddle6memory6detail11MemoryBlock4DescE", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !11, i64 48, !7, i64 56}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN6paddle6memory6detail11MemoryBlock4TypeE", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!14 = !{!6, !11, i64 48}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 24}
!17 = !{!6, !11, i64 40}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass