; LLVM IR from mitdbg/deneva :: storage/row.ll (ZN5row_t7get_rowE8access_tP10TxnManagerRPS_)

; 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.mem_alloc = type { i8 }
%class.TxnManager = type { ptr, ptr, ptr, i8, ptr, i32, i8, i32, i32, i8, i64, i64, i64, i64, ptr, ptr, ptr, i64, i8, i8, ptr, ptr, i64, i64, i64, %class.TxnStats, i32, i32, i32, i8, i32, %class.Array, i32, ptr, ptr, i32, %union.sem_t }
%class.TxnStats = type { i64, i64, i64, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, i64, double, double, double, double, double, double, double, double }
%class.Array = type { ptr, i64, i64 }
%union.sem_t = type { i64, [24 x i8] }
%class.row_t = type { ptr, ptr, i32, ptr, i64, i64, i8, i64 }

@mem_allocator = external global %class.mem_alloc, align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_ = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5row_t4initEP7table_tmm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, i64 noundef, i64 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

declare noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) #2

; 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 dso_local noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5row_t14get_table_nameEv(ptr noundef nonnull align 8 dereferenceable(64)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5row_t4copyEPS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5row_t7get_rowE8access_tP10TxnManagerRPS_(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = 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 ptr %3, ptr %8, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  %12 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 64)
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.TxnManager, ptr %13, i32 0, i32 4
  store volatile ptr %12, ptr %14, align 8, !tbaa !13
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %class.TxnManager, ptr %15, i32 0, i32 4
  %17 = load volatile ptr, ptr %16, align 8, !tbaa !13
  %18 = call noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %19 = call noundef i64 @_ZN5row_t11get_part_idEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %20 = call noundef i32 @_ZN5row_t4initEP7table_tmm(ptr noundef nonnull align 8 dereferenceable(64) %17, ptr noundef %18, i64 noundef %19, i64 noundef 0)
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %32

23:                                               ; preds = %4
  %24 = getelementptr inbounds %class.row_t, ptr %11, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96) %25, ptr noundef %26, i32 noundef 2, ptr noundef null)
  store i32 %27, ptr %9, align 4, !tbaa !11
  %28 = load i32, ptr %9, align 4, !tbaa !11
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %23
  br label %123

31:                                               ; preds = %23
  br label %32

32:                                               ; preds = %31, %4
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load i32, ptr %9, align 4, !tbaa !11
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %44, label %38

38:                                               ; preds = %35, %32
  %39 = load i32, ptr %6, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %44, label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 3
  br i1 %43, label %44, label %104

44:                                               ; preds = %41, %38, %35
  %45 = getelementptr inbounds %class.row_t, ptr %11, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96) %46, ptr noundef %47, i32 noundef 0, ptr noundef null)
  store i32 %48, ptr %9, align 4, !tbaa !11
  %49 = load i32, ptr %9, align 4, !tbaa !11
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %44
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.TxnManager, ptr %52, i32 0, i32 4
  %54 = load volatile ptr, ptr %53, align 8, !tbaa !13
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %54, ptr %55, align 8, !tbaa !5
  br label %66

56:                                               ; preds = %44
  %57 = load i32, ptr %9, align 4, !tbaa !11
  %58 = icmp eq i32 %57, 3
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  store i32 3, ptr %9, align 4, !tbaa !11
  br label %123

60:                                               ; preds = %56
  %61 = load i32, ptr %9, align 4, !tbaa !11
  %62 = icmp eq i32 %61, 2
  br i1 %62, label %63, label %64

63:                                               ; preds = %60
  br label %64

64:                                               ; preds = %63, %60
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65, %51
  %67 = load i32, ptr %9, align 4, !tbaa !11
  %68 = icmp ne i32 %67, 2
  br i1 %68, label %69, label %103

69:                                               ; preds = %66
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = call noundef ptr @_ZN5row_t8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %71)
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  br label %77

75:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 269, ptr noundef @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #6
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76, %74
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64) %79)
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %83

82:                                               ; preds = %77
  br label %85

83:                                               ; preds = %77
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 270, ptr noundef @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #6
  unreachable

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %82
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = call noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64) %87)
  %89 = call noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %90 = icmp eq ptr %88, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %85
  br label %94

92:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 271, ptr noundef @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #6
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = call noundef ptr @_ZN5row_t14get_table_nameEv(ptr noundef nonnull align 8 dereferenceable(64) %96)
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %100

99:                                               ; preds = %94
  br label %102

100:                                              ; preds = %94
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 272, ptr noundef @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #6
  unreachable

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101, %99
  br label %103

103:                                              ; preds = %102, %66
  br label %104

104:                                              ; preds = %103, %41
  %105 = load i32, ptr %9, align 4, !tbaa !11
  %106 = icmp ne i32 %105, 2
  br i1 %106, label %107, label %122

107:                                              ; preds = %104
  br i1 false, label %108, label %122

108:                                              ; preds = %107
  %109 = load i32, ptr %6, align 4, !tbaa !9
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %122

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %112 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 64)
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = call noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %115 = call noundef i64 @_ZN5row_t11get_part_idEv(ptr noundef nonnull align 8 dereferenceable(64) %11)
  %116 = call noundef i32 @_ZN5row_t4initEP7table_tmm(ptr noundef nonnull align 8 dereferenceable(64) %113, ptr noundef %114, i64 noundef %115, i64 noundef 0)
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  call void @_ZN5row_t4copyEPS_(ptr noundef nonnull align 8 dereferenceable(64) %117, ptr noundef %119)
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %120, ptr %121, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %122

122:                                              ; preds = %111, %108, %107, %104
  br label %123

123:                                              ; preds = %122, %59, %30
  %124 = load i32, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %124
}

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

declare noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, i32 noundef, ptr noundef) #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn 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 = { nounwind }
attributes #6 = { 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 = !{!"_ZTS8access_t", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS2RC", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS10TxnManager", !6, i64 8, !6, i64 16, !15, i64 24, !6, i64 32, !16, i64 40, !15, i64 44, !16, i64 48, !16, i64 52, !15, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !17, i64 120, !15, i64 128, !15, i64 129, !6, i64 136, !6, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !18, i64 176, !16, i64 432, !16, i64 436, !16, i64 440, !15, i64 444, !20, i64 448, !21, i64 456, !16, i64 480, !6, i64 488, !6, i64 496, !10, i64 504, !7, i64 512}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS8TxnStats", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !19, i64 40, !19, i64 48, !19, i64 56, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !19, i64 136, !19, i64 144, !19, i64 152, !19, i64 160, !19, i64 168, !17, i64 176, !17, i64 184, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224, !19, i64 232, !19, i64 240, !19, i64 248}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTS12CALVIN_PHASE", !7, i64 0}
!21 = !{!"_ZTS5ArrayIP5row_tE", !6, i64 0, !17, i64 8, !17, i64 16}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTS5row_t", !6, i64 0, !6, i64 8, !16, i64 16, !6, i64 24, !17, i64 32, !17, i64 40, !15, i64 48, !17, i64 56}


; 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.mem_alloc = type { i8 }

@mem_allocator = external global %class.mem_alloc, align 1
@.str.1 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_ = external hidden unnamed_addr constant [52 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5row_t4initEP7table_tmm(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

declare noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1), i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5row_t14get_table_nameEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5row_t7get_rowE8access_tP10TxnManagerRPS_(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3) local_unnamed_addr #0 align 2 {
  %5 = tail call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 64)
  %6 = getelementptr inbounds i8, ptr %2, i64 32
  store volatile ptr %5, ptr %6, align 8, !tbaa !5
  %7 = load volatile ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %9 = tail call noundef i64 @_ZN5row_t11get_part_idEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %10 = tail call noundef i32 @_ZN5row_t4initEP7table_tmm(ptr noundef nonnull align 8 dereferenceable(64) %7, ptr noundef %8, i64 noundef %9, i64 noundef 0)
  switch i32 %1, label %37 [
    i32 1, label %11
    i32 3, label %14
    i32 0, label %14
  ]

11:                                               ; preds = %4
  %12 = load ptr, ptr %0, align 8, !tbaa !18
  %13 = tail call noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96) %12, ptr noundef nonnull %2, i32 noundef 2, ptr noundef null)
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %37

14:                                               ; preds = %11, %4, %4
  %15 = load ptr, ptr %0, align 8, !tbaa !18
  %16 = tail call noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull %2, i32 noundef 0, ptr noundef null)
  switch i32 %16, label %._crit_edge [
    i32 0, label %17
    i32 3, label %37
    i32 2, label %37
  ]

._crit_edge:                                      ; preds = %14
  %.pre = load ptr, ptr %3, align 8, !tbaa !20
  br label %19

17:                                               ; preds = %14
  %18 = load volatile ptr, ptr %6, align 8, !tbaa !5
  store ptr %18, ptr %3, align 8, !tbaa !20
  br label %19

19:                                               ; preds = %._crit_edge, %17
  %20 = phi ptr [ %.pre, %._crit_edge ], [ %18, %17 ]
  %21 = tail call noundef ptr @_ZN5row_t8get_dataEv(ptr noundef nonnull align 8 dereferenceable(64) %20)
  %.not33 = icmp eq ptr %21, null
  br i1 %.not33, label %22, label %23

22:                                               ; preds = %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 269, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #4
  unreachable

23:                                               ; preds = %19
  %24 = load ptr, ptr %3, align 8, !tbaa !20
  %25 = tail call noundef ptr @_ZN5row_t9get_tableEv(ptr noundef nonnull align 8 dereferenceable(64) %24)
  %.not34 = icmp eq ptr %25, null
  br i1 %.not34, label %26, label %27

26:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 270, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #4
  unreachable

27:                                               ; preds = %23
  %28 = load ptr, ptr %3, align 8, !tbaa !20
  %29 = tail call noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64) %28)
  %30 = tail call noundef ptr @_ZN5row_t10get_schemaEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %31 = icmp eq ptr %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 271, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #4
  unreachable

33:                                               ; preds = %27
  %34 = load ptr, ptr %3, align 8, !tbaa !20
  %35 = tail call noundef ptr @_ZN5row_t14get_table_nameEv(ptr noundef nonnull align 8 dereferenceable(64) %34)
  %.not35 = icmp eq ptr %35, null
  br i1 %.not35, label %36, label %37

36:                                               ; preds = %33
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 272, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5row_t7get_rowE8access_tP10TxnManagerRPS_) #4
  unreachable

37:                                               ; preds = %14, %4, %33, %14, %11
  %.2 = phi i32 [ %13, %11 ], [ %16, %14 ], [ %16, %33 ], [ 0, %4 ], [ %16, %14 ]
  ret i32 %.2
}

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

declare noundef i32 @_ZN6Row_ts6accessEP10TxnManager6TsTypeP5row_t(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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 = { "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 = { 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 #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, !7, i64 32}
!6 = !{!"_ZTS10TxnManager", !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !10, i64 44, !11, i64 48, !11, i64 52, !10, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !12, i64 120, !10, i64 128, !10, i64 129, !7, i64 136, !7, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !11, i64 432, !11, i64 436, !11, i64 440, !10, i64 444, !15, i64 448, !16, i64 456, !11, i64 480, !7, i64 488, !7, i64 496, !17, i64 504, !8, i64 512}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTS8TxnStats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !12, i64 176, !12, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248}
!14 = !{!"double", !8, i64 0}
!15 = !{!"_ZTS12CALVIN_PHASE", !8, i64 0}
!16 = !{!"_ZTS5ArrayIP5row_tE", !7, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!"_ZTS8access_t", !8, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTS5row_t", !7, i64 0, !7, i64 8, !11, i64 16, !7, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !12, i64 56}
!20 = !{!7, !7, i64 0}


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