; LLVM IR from mitdbg/deneva :: concurrency_control/occ.ll (ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_)

; 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.set_ent = type { i64, ptr, i32, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@mem_allocator = external global %class.mem_alloc, align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_ = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 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: mustprogress uwtable
define dso_local noundef i32 @_ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  %13 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 40)
  %14 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %13, ptr %14, align 8, !tbaa !5
  %15 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 40)
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %15, ptr %16, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call noundef i64 @_ZN10TxnManager18get_write_set_sizeEv(ptr noundef nonnull align 8 dereferenceable(544) %17)
  %19 = trunc i64 %18 to i32
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.set_ent, ptr %21, i32 0, i32 2
  store i32 %19, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN10TxnManager17get_read_set_sizeEv(ptr noundef nonnull align 8 dereferenceable(544) %23)
  %25 = trunc i64 %24 to i32
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.set_ent, ptr %27, i32 0, i32 2
  store i32 %25, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.set_ent, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = mul i64 8, %33
  %35 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef %34)
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.set_ent, ptr %37, i32 0, i32 3
  store ptr %35, ptr %38, align 8, !tbaa !13
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.set_ent, ptr %40, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = mul i64 8, %43
  %45 = call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef %44)
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.set_ent, ptr %47, i32 0, i32 3
  store ptr %45, ptr %48, align 8, !tbaa !13
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds %class.set_ent, ptr %51, i32 0, i32 1
  store ptr %49, ptr %52, align 8, !tbaa !14
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.set_ent, ptr %55, i32 0, i32 1
  store ptr %53, ptr %56, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !16
  br label %57

57:                                               ; preds = %101, %4
  %58 = load i64, ptr %11, align 8, !tbaa !16
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.set_ent, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.set_ent, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !9
  %67 = add i32 %62, %66
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %58, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %104

71:                                               ; preds = %57
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i64, ptr %11, align 8, !tbaa !16
  %74 = call noundef i32 @_ZN10TxnManager15get_access_typeEm(ptr noundef nonnull align 8 dereferenceable(544) %72, i64 noundef %73)
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %88

76:                                               ; preds = %71
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %11, align 8, !tbaa !16
  %79 = call noundef ptr @_ZN10TxnManager23get_access_original_rowEm(ptr noundef nonnull align 8 dereferenceable(544) %77, i64 noundef %78)
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.set_ent, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load i32, ptr %9, align 4, !tbaa !15
  %85 = add i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !15
  %86 = zext i32 %84 to i64
  %87 = getelementptr inbounds ptr, ptr %83, i64 %86
  store ptr %79, ptr %87, align 8, !tbaa !5
  br label %100

88:                                               ; preds = %71
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i64, ptr %11, align 8, !tbaa !16
  %91 = call noundef ptr @_ZN10TxnManager23get_access_original_rowEm(ptr noundef nonnull align 8 dereferenceable(544) %89, i64 noundef %90)
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = getelementptr inbounds %class.set_ent, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i32, ptr %10, align 4, !tbaa !15
  %97 = add i32 %96, 1
  store i32 %97, ptr %10, align 4, !tbaa !15
  %98 = zext i32 %96 to i64
  %99 = getelementptr inbounds ptr, ptr %95, i64 %98
  store ptr %91, ptr %99, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %88, %76
  br label %101

101:                                              ; preds = %100
  %102 = load i64, ptr %11, align 8, !tbaa !16
  %103 = add i64 %102, 1
  store i64 %103, ptr %11, align 8, !tbaa !16
  br label %57, !llvm.loop !17

104:                                              ; preds = %70
  %105 = load i32, ptr %9, align 4, !tbaa !15
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.set_ent, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 8, !tbaa !9
  %110 = icmp eq i32 %105, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %104
  br label %114

112:                                              ; preds = %104
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 314, ptr noundef @__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_) #6
  unreachable

113:                                              ; No predecessors!
  br label %114

114:                                              ; preds = %113, %111
  %115 = load i32, ptr %10, align 4, !tbaa !15
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds %class.set_ent, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 8, !tbaa !9
  %120 = icmp eq i32 %115, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %114
  br label %124

122:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 315, ptr noundef @__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_) #6
  unreachable

123:                                              ; No predecessors!
  br label %124

124:                                              ; preds = %123, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10TxnManager15get_access_typeEm(ptr noundef nonnull align 8 dereferenceable(544), i64 noundef) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 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 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, !12, i64 16}
!10 = !{!"_ZTS7set_ent", !11, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 8}
!15 = !{!12, !12, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.mem_alloc = type { i8 }

@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@mem_allocator = external global %class.mem_alloc, align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_ = external hidden unnamed_addr constant [59 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_(ptr nocapture noundef nonnull readnone align 8 dereferenceable(128) %0, ptr noundef %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %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 40)
  store ptr %5, ptr %3, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef 40)
  store ptr %6, ptr %2, align 8, !tbaa !5
  %7 = tail call noundef i64 @_ZN10TxnManager18get_write_set_sizeEv(ptr noundef nonnull align 8 dereferenceable(544) %1)
  %8 = trunc i64 %7 to i32
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  store i32 %8, ptr %10, align 8, !tbaa !9
  %11 = tail call noundef i64 @_ZN10TxnManager17get_read_set_sizeEv(ptr noundef nonnull align 8 dereferenceable(544) %1)
  %12 = trunc i64 %11 to i32
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store i32 %12, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = zext i32 %17 to i64
  %19 = shl nuw nsw i64 %18, 3
  %20 = tail call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef %19)
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %20, ptr %22, align 8, !tbaa !13
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = shl nuw nsw i64 %26, 3
  %28 = tail call noundef ptr @_ZN9mem_alloc5allocEm(ptr noundef nonnull align 1 dereferenceable(1) @mem_allocator, i64 noundef %27)
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  store ptr %28, ptr %30, align 8, !tbaa !13
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  store ptr %1, ptr %32, align 8, !tbaa !14
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  store ptr %1, ptr %34, align 8, !tbaa !14
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = sub i32 0, %37
  %.not = icmp eq i32 %40, %41
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %50, %4
  %.033.lcssa = phi i32 [ 0, %4 ], [ %.134, %50 ]
  %.032.lcssa = phi i32 [ 0, %4 ], [ %.1, %50 ]
  %.lcssa35 = phi i32 [ %37, %4 ], [ %56, %50 ]
  %.lcssa = phi i32 [ %40, %4 ], [ %59, %50 ]
  %42 = icmp eq i32 %.033.lcssa, %.lcssa35
  br i1 %42, label %64, label %63

.lr.ph:                                           ; preds = %4, %50
  %.038 = phi i64 [ %53, %50 ], [ 0, %4 ]
  %.03237 = phi i32 [ %.1, %50 ], [ 0, %4 ]
  %.03336 = phi i32 [ %.134, %50 ], [ 0, %4 ]
  %43 = tail call noundef i32 @_ZN10TxnManager15get_access_typeEm(ptr noundef nonnull align 8 dereferenceable(544) %1, i64 noundef %.038)
  %44 = icmp eq i32 %43, 1
  %45 = tail call noundef ptr @_ZN10TxnManager23get_access_original_rowEm(ptr noundef nonnull align 8 dereferenceable(544) %1, i64 noundef %.038)
  br i1 %44, label %46, label %48

46:                                               ; preds = %.lr.ph
  %47 = add i32 %.03336, 1
  br label %50

48:                                               ; preds = %.lr.ph
  %49 = add i32 %.03237, 1
  br label %50

50:                                               ; preds = %46, %48
  %.03336.sink = phi i32 [ %.03336, %46 ], [ %.03237, %48 ]
  %.pn.in = phi ptr [ %3, %46 ], [ %2, %48 ]
  %.134 = phi i32 [ %47, %46 ], [ %.03336, %48 ]
  %.1 = phi i32 [ %.03237, %46 ], [ %49, %48 ]
  %.pn = load ptr, ptr %.pn.in, align 8, !tbaa !5
  %.sink46.in = getelementptr inbounds i8, ptr %.pn, i64 24
  %.sink46 = load ptr, ptr %.sink46.in, align 8, !tbaa !13
  %51 = zext i32 %.03336.sink to i64
  %52 = getelementptr inbounds ptr, ptr %.sink46, i64 %51
  store ptr %45, ptr %52, align 8, !tbaa !5
  %53 = add nuw nsw i64 %.038, 1
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = load i32, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = load i32, ptr %58, align 8, !tbaa !9
  %60 = add i32 %59, %56
  %61 = zext i32 %60 to i64
  %62 = icmp ult i64 %53, %61
  br i1 %62, label %.lr.ph, label %._crit_edge, !llvm.loop !15

63:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 314, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_) #4
  unreachable

64:                                               ; preds = %._crit_edge
  %65 = icmp eq i32 %.032.lcssa, %.lcssa
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 315, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5OptCC10get_rw_setEP10TxnManagerRP7set_entS4_) #4
  unreachable

67:                                               ; preds = %64
  ret i32 0
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10TxnManager23get_access_original_rowEm(ptr noundef nonnull align 8 dereferenceable(544), i64 noundef) local_unnamed_addr #3 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 = { 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 = { "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 }

!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, !12, i64 16}
!10 = !{!"_ZTS7set_ent", !11, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 24}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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