; LLVM IR from mitdbg/deneva :: concurrency_control/row_ts.ll (ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm)

; 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.Row_ts = type { ptr, i8, ptr, i64, i64, i64, i64, i64, ptr, ptr, ptr, i64 }
%struct.TsReqEntry = type { ptr, ptr, ptr, i64, i64, ptr }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !11
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  %14 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %14, label %21 [
    i32 0, label %15
    i32 2, label %17
    i32 1, label %19
  ]

15:                                               ; preds = %4
  %16 = getelementptr inbounds %class.Row_ts, ptr %13, i32 0, i32 8
  store ptr %16, ptr %9, align 8, !tbaa !5
  br label %22

17:                                               ; preds = %4
  %18 = getelementptr inbounds %class.Row_ts, ptr %13, i32 0, i32 10
  store ptr %18, ptr %9, align 8, !tbaa !5
  br label %22

19:                                               ; preds = %4
  %20 = getelementptr inbounds %class.Row_ts, ptr %13, i32 0, i32 9
  store ptr %20, ptr %9, align 8, !tbaa !5
  br label %22

21:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 107, ptr noundef @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #4
  unreachable

22:                                               ; preds = %19, %17, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %24, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %80

27:                                               ; preds = %22
  br label %28

28:                                               ; preds = %39, %27
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %37

31:                                               ; preds = %28
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TsReqEntry, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = icmp ne ptr %34, %35
  br label %37

37:                                               ; preds = %31, %28
  %38 = phi i1 [ false, %28 ], [ %36, %31 ]
  br i1 %38, label %39, label %44

39:                                               ; preds = %37
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %40, ptr %12, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.TsReqEntry, ptr %41, i32 0, i32 5
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  store ptr %43, ptr %11, align 8, !tbaa !5
  br label %28, !llvm.loop !16

44:                                               ; preds = %37
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  br label %50

48:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 117, ptr noundef @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #4
  unreachable

49:                                               ; No predecessors!
  br label %50

50:                                               ; preds = %49, %47
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %59

53:                                               ; preds = %50
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.TsReqEntry, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.TsReqEntry, ptr %57, i32 0, i32 5
  store ptr %56, ptr %58, align 8, !tbaa !15
  br label %72

59:                                               ; preds = %50
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = icmp eq ptr %60, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %59
  br label %67

65:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #4
  unreachable

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66, %64
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.TsReqEntry, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %70, ptr %71, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %67, %53
  %73 = getelementptr inbounds %class.Row_ts, ptr %13, i32 0, i32 11
  %74 = load i64, ptr %73, align 8, !tbaa !18
  %75 = add i64 %74, -1
  store i64 %75, ptr %73, align 8, !tbaa !18
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.TsReqEntry, ptr %77, i32 0, i32 5
  store ptr %76, ptr %78, align 8, !tbaa !15
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %79, ptr %10, align 8, !tbaa !5
  br label %136

80:                                               ; preds = %22
  br label %81

81:                                               ; preds = %134, %80
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %135

84:                                               ; preds = %81
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.TsReqEntry, ptr %85, i32 0, i32 3
  %87 = load i64, ptr %86, align 8, !tbaa !21
  %88 = load i64, ptr %8, align 8, !tbaa !11
  %89 = icmp ule i64 %87, %88
  br i1 %89, label %90, label %129

90:                                               ; preds = %84
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %107

93:                                               ; preds = %90
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = icmp eq ptr %94, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %93
  br label %101

99:                                               ; preds = %93
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 131, ptr noundef @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #4
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.TsReqEntry, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %105, ptr %106, align 8, !tbaa !5
  br label %113

107:                                              ; preds = %90
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.TsReqEntry, ptr %108, i32 0, i32 5
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.TsReqEntry, ptr %111, i32 0, i32 5
  store ptr %110, ptr %112, align 8, !tbaa !15
  br label %113

113:                                              ; preds = %107, %101
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TsReqEntry, ptr %115, i32 0, i32 5
  store ptr %114, ptr %116, align 8, !tbaa !15
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %117, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %123

120:                                              ; preds = %113
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  br label %127

123:                                              ; preds = %113
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.TsReqEntry, ptr %124, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !15
  br label %127

127:                                              ; preds = %123, %120
  %128 = phi ptr [ %122, %120 ], [ %126, %123 ]
  store ptr %128, ptr %11, align 8, !tbaa !5
  br label %134

129:                                              ; preds = %84
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %130, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.TsReqEntry, ptr %131, i32 0, i32 5
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  store ptr %133, ptr %11, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %129, %127
  br label %81, !llvm.loop !22

135:                                              ; preds = %81
  br label %136

136:                                              ; preds = %135, %72
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret ptr %137
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #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 = { nounwind }
attributes #4 = { noreturn 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 = !{!"_ZTS6TsType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS10TsReqEntry", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !6, i64 40}
!15 = !{!14, !6, i64 40}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !12, i64 88}
!19 = !{!"_ZTS6Row_ts", !6, i64 0, !20, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88}
!20 = !{!"bool", !7, i64 0}
!21 = !{!14, !12, i64 24}
!22 = distinct !{!22, !17}


; 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"

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm(ptr nocapture noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1, ptr noundef readnone %2, i64 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = icmp ult i32 %1, 3
  br i1 %5, label %switch.lookup, label %6

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 107, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #2
  unreachable

switch.lookup:                                    ; preds = %4
  %7 = shl nuw nsw i32 %1, 3
  %8 = or disjoint i32 %7, 64
  %switch.offset = zext nneg i32 %8 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 %switch.offset
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %.not = icmp eq ptr %2, null
  %.not4659 = icmp eq ptr %10, null
  br i1 %.not, label %.preheader, label %.preheader52

.preheader52:                                     ; preds = %switch.lookup
  br i1 %.not4659, label %.critedge51, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader52
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %.not4970 = icmp eq ptr %11, %2
  br i1 %.not4970, label %.critedge, label %.lr.ph72

.preheader:                                       ; preds = %switch.lookup
  br i1 %.not4659, label %.loopexit, label %.lr.ph63

.lr.ph:                                           ; preds = %.lr.ph72
  %12 = load ptr, ptr %14, align 8, !tbaa !9
  %.not49 = icmp eq ptr %12, %2
  br i1 %.not49, label %.critedge, label %.lr.ph72, !llvm.loop !12

.lr.ph72:                                         ; preds = %.lr.ph.preheader, %.lr.ph
  %.0385771 = phi ptr [ %14, %.lr.ph ], [ %10, %.lr.ph.preheader ]
  %13 = getelementptr inbounds i8, ptr %.0385771, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %.not48 = icmp eq ptr %14, null
  br i1 %.not48, label %.critedge51, label %.lr.ph, !llvm.loop !12

.critedge51:                                      ; preds = %.lr.ph72, %.preheader52
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 117, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #2
  unreachable

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader
  %.058.lcssa = phi ptr [ null, %.lr.ph.preheader ], [ %.0385771, %.lr.ph ]
  %.03857.lcssa = phi ptr [ %10, %.lr.ph.preheader ], [ %14, %.lr.ph ]
  %.not50 = icmp eq ptr %.058.lcssa, null
  br i1 %.not50, label %19, label %15

15:                                               ; preds = %.critedge
  %16 = getelementptr inbounds i8, ptr %.03857.lcssa, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %.058.lcssa, i64 40
  store ptr %17, ptr %18, align 8, !tbaa !14
  br label %25

19:                                               ; preds = %.critedge
  %20 = icmp eq ptr %.03857.lcssa, %10
  br i1 %20, label %22, label %21

21:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #2
  unreachable

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %.03857.lcssa, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  store ptr %24, ptr %9, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %22, %15
  %26 = getelementptr inbounds i8, ptr %0, i64 88
  %27 = load i64, ptr %26, align 8, !tbaa !15
  %28 = add i64 %27, -1
  store i64 %28, ptr %26, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %.03857.lcssa, i64 40
  store ptr null, ptr %29, align 8, !tbaa !14
  br label %.loopexit

.lr.ph63:                                         ; preds = %.preheader, %50
  %.162 = phi ptr [ %.2, %50 ], [ null, %.preheader ]
  %.13961 = phi ptr [ %.240, %50 ], [ %10, %.preheader ]
  %.04160 = phi ptr [ %.142, %50 ], [ null, %.preheader ]
  %30 = getelementptr inbounds i8, ptr %.13961, i64 24
  %31 = load i64, ptr %30, align 8, !tbaa !18
  %.not47 = icmp ugt i64 %31, %3
  br i1 %.not47, label %48, label %32

32:                                               ; preds = %.lr.ph63
  %33 = icmp eq ptr %.162, null
  br i1 %33, label %34, label %41

34:                                               ; preds = %32
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = icmp eq ptr %.13961, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 131, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Row_ts12debuffer_reqE6TsTypeP10TxnManagerm) #2
  unreachable

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %35, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  store ptr %40, ptr %9, align 8, !tbaa !5
  br label %45

41:                                               ; preds = %32
  %42 = getelementptr inbounds i8, ptr %.13961, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %.162, i64 40
  store ptr %43, ptr %44, align 8, !tbaa !14
  br label %45

45:                                               ; preds = %41, %38
  %46 = getelementptr inbounds i8, ptr %.13961, i64 40
  store ptr %.04160, ptr %46, align 8, !tbaa !14
  %47 = getelementptr inbounds i8, ptr %.162, i64 40
  %.in = select i1 %33, ptr %9, ptr %47
  br label %50

48:                                               ; preds = %.lr.ph63
  %49 = getelementptr inbounds i8, ptr %.13961, i64 40
  br label %50

50:                                               ; preds = %48, %45
  %.142 = phi ptr [ %.13961, %45 ], [ %.04160, %48 ]
  %.240.in = phi ptr [ %.in, %45 ], [ %49, %48 ]
  %.2 = phi ptr [ %.162, %45 ], [ %.13961, %48 ]
  %.240 = load ptr, ptr %.240.in, align 8, !tbaa !5
  %.not46 = icmp eq ptr %.240, null
  br i1 %.not46, label %.loopexit, label %.lr.ph63, !llvm.loop !19

.loopexit:                                        ; preds = %50, %.preheader, %25
  %.243 = phi ptr [ %.03857.lcssa, %25 ], [ null, %.preheader ], [ %.142, %50 ]
  ret ptr %.243
}

attributes #0 = { noreturn 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 #1 = { 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 #2 = { noreturn 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, !6, i64 0}
!10 = !{!"_ZTS10TsReqEntry", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !6, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!10, !6, i64 40}
!15 = !{!16, !11, i64 88}
!16 = !{!"_ZTS6Row_ts", !6, i64 0, !17, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88}
!17 = !{!"bool", !7, i64 0}
!18 = !{!10, !11, i64 24}
!19 = distinct !{!19, !13}


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