; LLVM IR from mitdbg/deneva :: system/txn_table.ll (ZN8TxnTable27release_transaction_managerEmmm)

; 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.Stats = type { ptr, ptr, i64, i64, i64, i64 }
%class.TxnTablePool = type { ptr, ptr }
%class.TxnManPool = type { ptr, ptr }
%class.TxnTable = type { i64, ptr }
%struct.pool_node = type { ptr, ptr, i8, i64, i64 }
%class.Stats_thd = type { [64 x i8], ptr, ptr, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, i64, double, i64, double, i64, i64, double, double, double, double, double, double, double, double, i64, double, double, double, double, double, double, double, double, i64, i64, double, i64, double, i64, double, double, double, i64, i64, i64, double, double, double, double, double, double, double, double, double, i64, ptr, ptr, double, i64, i64, double, double, double, i64, i64, i64, i64, i64, i64, i64, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, double, double, double, double, i64, i64, double, double, i64, i64, i64, double, double, i64, i64, double, double, double, double, i64, i64, double, double, double, i64, i64, double, double, double, double, double, i64, double, double, double, double, double, double, double, double, i64, i64, i64, double, i64, double, double, i64, i64, i64, i64, i64, double, i64, i64, double, i64, double, double, i64, i64, i64, i64, i64, double, double, double, %class.StatsArr, %class.StatsArr, %class.StatsArr, %class.StatsArr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, [64 x i8] }
%class.StatsArr = type { ptr, i64, i64, i32, %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.txn_node = type { ptr, i64, i64, i64, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@simulation = external global ptr, align 8
@stats = external global %class.Stats, align 8
@txn_table_pool = external global %class.TxnTablePool, align 8
@txn_man_pool = external global %class.TxnManPool, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm = external hidden unnamed_addr constant [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 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
declare dso_local noundef zeroext i1 @_ZN8TxnTable20is_matching_txn_nodeEP8txn_nodemm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef) #1 align 2

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

declare noundef i64 @_Z13get_sys_clockv() #3

declare noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8TxnTable27release_transaction_managerEmmm(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %15 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %15, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %16 = load i64, ptr %7, align 8, !tbaa !9
  %17 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = urem i64 %16, %18
  store i64 %19, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %20 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %20, ptr %11, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %31, %4
  %22 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = load i64, ptr %10, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %23, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.pool_node, ptr %26, i32 0, i32 2
  %28 = cmpxchg ptr %27, i8 0, i8 1 seq_cst seq_cst, align 8
  %29 = extractvalue { i8, i1 } %28, 1
  %30 = xor i1 %29, true
  br i1 %30, label %31, label %32

31:                                               ; preds = %21
  br label %21, !llvm.loop !14

32:                                               ; preds = %21
  %33 = load ptr, ptr @simulation, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %33)
  br i1 %34, label %35, label %49

35:                                               ; preds = %32
  %36 = call noundef i64 @_Z13get_sys_clockv()
  %37 = load i64, ptr %11, align 8, !tbaa !9
  %38 = sub i64 %36, %37
  %39 = uitofp i64 %38 to double
  %40 = load ptr, ptr @stats, align 8, !tbaa !16
  %41 = load i64, ptr %6, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %40, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.Stats_thd, ptr %43, i32 0, i32 197
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds double, ptr %45, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !23
  %48 = fadd double %47, %39
  store double %48, ptr %46, align 8, !tbaa !23
  br label %49

49:                                               ; preds = %35, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %50 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = load i64, ptr %10, align 8, !tbaa !9
  %53 = getelementptr inbounds ptr, ptr %51, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.pool_node, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !24
  store ptr %56, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %57 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %57, ptr %13, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %159, %49
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %163

61:                                               ; preds = %58
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i64, ptr %7, align 8, !tbaa !9
  %64 = load i64, ptr %8, align 8, !tbaa !9
  %65 = call noundef zeroext i1 @_ZN8TxnTable20is_matching_txn_nodeEP8txn_nodemm(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %62, i64 noundef %63, i64 noundef %64)
  br i1 %65, label %66, label %159

66:                                               ; preds = %61
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.txn_node, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %79

71:                                               ; preds = %66
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.txn_node, ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !29
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.txn_node, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !27
  %78 = getelementptr inbounds %struct.txn_node, ptr %77, i32 0, i32 5
  store ptr %74, ptr %78, align 8, !tbaa !29
  br label %108

79:                                               ; preds = %66
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load i64, ptr %7, align 8, !tbaa !9
  %84 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = urem i64 %83, %85
  %87 = getelementptr inbounds ptr, ptr %82, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.pool_node, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !30
  %91 = icmp eq ptr %80, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %79
  br label %95

93:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 197, ptr noundef @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #5
  unreachable

94:                                               ; No predecessors!
  br label %95

95:                                               ; preds = %94, %92
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.txn_node, ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !29
  %99 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = load i64, ptr %7, align 8, !tbaa !9
  %102 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 0
  %103 = load i64, ptr %102, align 8, !tbaa !11
  %104 = urem i64 %101, %103
  %105 = getelementptr inbounds ptr, ptr %100, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.pool_node, ptr %106, i32 0, i32 1
  store ptr %98, ptr %107, align 8, !tbaa !30
  br label %108

108:                                              ; preds = %95, %71
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.txn_node, ptr %109, i32 0, i32 5
  %111 = load ptr, ptr %110, align 8, !tbaa !29
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %121

113:                                              ; preds = %108
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.txn_node, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !27
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.txn_node, ptr %117, i32 0, i32 5
  %119 = load ptr, ptr %118, align 8, !tbaa !29
  %120 = getelementptr inbounds %struct.txn_node, ptr %119, i32 0, i32 4
  store ptr %116, ptr %120, align 8, !tbaa !27
  br label %150

121:                                              ; preds = %108
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = load i64, ptr %7, align 8, !tbaa !9
  %126 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 0
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = urem i64 %125, %127
  %129 = getelementptr inbounds ptr, ptr %124, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.pool_node, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !24
  %133 = icmp eq ptr %122, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %121
  br label %137

135:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 197, ptr noundef @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #5
  unreachable

136:                                              ; No predecessors!
  br label %137

137:                                              ; preds = %136, %134
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.txn_node, ptr %138, i32 0, i32 4
  %140 = load ptr, ptr %139, align 8, !tbaa !27
  %141 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !13
  %143 = load i64, ptr %7, align 8, !tbaa !9
  %144 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 0
  %145 = load i64, ptr %144, align 8, !tbaa !11
  %146 = urem i64 %143, %145
  %147 = getelementptr inbounds ptr, ptr %142, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.pool_node, ptr %148, i32 0, i32 0
  store ptr %140, ptr %149, align 8, !tbaa !24
  br label %150

150:                                              ; preds = %137, %113
  %151 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.pool_node, ptr %155, i32 0, i32 3
  %157 = load i64, ptr %156, align 8, !tbaa !31
  %158 = add i64 %157, -1
  store i64 %158, ptr %156, align 8, !tbaa !31
  br label %163

159:                                              ; preds = %61
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.txn_node, ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !27
  store ptr %162, ptr %12, align 8, !tbaa !5
  br label %58, !llvm.loop !32

163:                                              ; preds = %150, %58
  %164 = load ptr, ptr @simulation, align 8, !tbaa !5
  %165 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %164)
  br i1 %165, label %166, label %180

166:                                              ; preds = %163
  %167 = call noundef i64 @_Z13get_sys_clockv()
  %168 = load i64, ptr %13, align 8, !tbaa !9
  %169 = sub i64 %167, %168
  %170 = uitofp i64 %169 to double
  %171 = load ptr, ptr @stats, align 8, !tbaa !16
  %172 = load i64, ptr %6, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %171, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.Stats_thd, ptr %174, i32 0, i32 197
  %176 = load ptr, ptr %175, align 8, !tbaa !18
  %177 = getelementptr inbounds double, ptr %176, i64 25
  %178 = load double, ptr %177, align 8, !tbaa !23
  %179 = fadd double %178, %170
  store double %179, ptr %177, align 8, !tbaa !23
  br label %180

180:                                              ; preds = %166, %163
  %181 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %181, ptr %13, align 8, !tbaa !9
  %182 = getelementptr inbounds %class.TxnTable, ptr %14, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !13
  %184 = load i64, ptr %10, align 8, !tbaa !9
  %185 = getelementptr inbounds ptr, ptr %183, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.pool_node, ptr %186, i32 0, i32 2
  %188 = cmpxchg ptr %187, i8 1, i8 0 seq_cst seq_cst, align 8
  %189 = extractvalue { i8, i1 } %188, 1
  %190 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %190, ptr %13, align 8, !tbaa !9
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %194

193:                                              ; preds = %180
  br label %196

194:                                              ; preds = %180
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 225, ptr noundef @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #5
  unreachable

195:                                              ; No predecessors!
  br label %196

196:                                              ; preds = %195, %193
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.txn_node, ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !33
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %202

201:                                              ; preds = %196
  br label %204

202:                                              ; preds = %196
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 226, ptr noundef @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #5
  unreachable

203:                                              ; No predecessors!
  br label %204

204:                                              ; preds = %203, %201
  %205 = load i64, ptr %6, align 8, !tbaa !9
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.txn_node, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !33
  call void @_ZN10TxnManPool3putEmP10TxnManager(ptr noundef nonnull align 8 dereferenceable(16) @txn_man_pool, i64 noundef %205, ptr noundef %208)
  %209 = load ptr, ptr @simulation, align 8, !tbaa !5
  %210 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %209)
  br i1 %210, label %211, label %225

211:                                              ; preds = %204
  %212 = call noundef i64 @_Z13get_sys_clockv()
  %213 = load i64, ptr %13, align 8, !tbaa !9
  %214 = sub i64 %212, %213
  %215 = uitofp i64 %214 to double
  %216 = load ptr, ptr @stats, align 8, !tbaa !16
  %217 = load i64, ptr %6, align 8, !tbaa !9
  %218 = getelementptr inbounds ptr, ptr %216, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !5
  %220 = getelementptr inbounds %class.Stats_thd, ptr %219, i32 0, i32 197
  %221 = load ptr, ptr %220, align 8, !tbaa !18
  %222 = getelementptr inbounds double, ptr %221, i64 26
  %223 = load double, ptr %222, align 8, !tbaa !23
  %224 = fadd double %223, %215
  store double %224, ptr %222, align 8, !tbaa !23
  br label %225

225:                                              ; preds = %211, %204
  %226 = call noundef i64 @_Z13get_sys_clockv()
  store i64 %226, ptr %13, align 8, !tbaa !9
  %227 = load i64, ptr %6, align 8, !tbaa !9
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN12TxnTablePool3putEmP8txn_node(ptr noundef nonnull align 8 dereferenceable(16) @txn_table_pool, i64 noundef %227, ptr noundef %228)
  %229 = load ptr, ptr @simulation, align 8, !tbaa !5
  %230 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %229)
  br i1 %230, label %231, label %245

231:                                              ; preds = %225
  %232 = call noundef i64 @_Z13get_sys_clockv()
  %233 = load i64, ptr %13, align 8, !tbaa !9
  %234 = sub i64 %232, %233
  %235 = uitofp i64 %234 to double
  %236 = load ptr, ptr @stats, align 8, !tbaa !16
  %237 = load i64, ptr %6, align 8, !tbaa !9
  %238 = getelementptr inbounds ptr, ptr %236, i64 %237
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = getelementptr inbounds %class.Stats_thd, ptr %239, i32 0, i32 197
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = getelementptr inbounds double, ptr %241, i64 27
  %243 = load double, ptr %242, align 8, !tbaa !23
  %244 = fadd double %243, %235
  store double %244, ptr %242, align 8, !tbaa !23
  br label %245

245:                                              ; preds = %231, %225
  %246 = load ptr, ptr @simulation, align 8, !tbaa !5
  %247 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %246)
  br i1 %247, label %248, label %260

248:                                              ; preds = %245
  %249 = call noundef i64 @_Z13get_sys_clockv()
  %250 = load i64, ptr %9, align 8, !tbaa !9
  %251 = sub i64 %249, %250
  %252 = uitofp i64 %251 to double
  %253 = load ptr, ptr @stats, align 8, !tbaa !16
  %254 = load i64, ptr %6, align 8, !tbaa !9
  %255 = getelementptr inbounds ptr, ptr %253, i64 %254
  %256 = load ptr, ptr %255, align 8, !tbaa !5
  %257 = getelementptr inbounds %class.Stats_thd, ptr %256, i32 0, i32 155
  %258 = load double, ptr %257, align 8, !tbaa !34
  %259 = fadd double %258, %252
  store double %259, ptr %257, align 8, !tbaa !34
  br label %260

260:                                              ; preds = %248, %245
  %261 = load ptr, ptr @simulation, align 8, !tbaa !5
  %262 = call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %261)
  br i1 %262, label %263, label %271

263:                                              ; preds = %260
  %264 = load ptr, ptr @stats, align 8, !tbaa !16
  %265 = load i64, ptr %6, align 8, !tbaa !9
  %266 = getelementptr inbounds ptr, ptr %264, i64 %265
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = getelementptr inbounds %class.Stats_thd, ptr %267, i32 0, i32 151
  %269 = load i64, ptr %268, align 8, !tbaa !35
  %270 = add i64 %269, 1
  store i64 %270, ptr %268, align 8, !tbaa !35
  br label %271

271:                                              ; preds = %263, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

declare void @_ZN10TxnManPool3putEmP10TxnManager(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, ptr noundef) #3

declare void @_ZN12TxnTablePool3putEmP8txn_node(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, ptr noundef) #3

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 = { nounwind }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS8TxnTable", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS5Stats", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!18 = !{!19, !6, i64 1888}
!19 = !{!"_ZTS9Stats_thd", !7, i64 0, !6, i64 64, !6, i64 72, !20, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !20, i64 184, !10, i64 192, !20, i64 200, !10, i64 208, !20, i64 216, !10, i64 224, !10, i64 232, !20, i64 240, !20, i64 248, !20, i64 256, !20, i64 264, !20, i64 272, !20, i64 280, !20, i64 288, !20, i64 296, !10, i64 304, !20, i64 312, !20, i64 320, !20, i64 328, !20, i64 336, !20, i64 344, !20, i64 352, !20, i64 360, !20, i64 368, !10, i64 376, !10, i64 384, !20, i64 392, !10, i64 400, !20, i64 408, !10, i64 416, !20, i64 424, !20, i64 432, !20, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !20, i64 472, !20, i64 480, !20, i64 488, !20, i64 496, !20, i64 504, !20, i64 512, !20, i64 520, !20, i64 528, !20, i64 536, !10, i64 544, !6, i64 552, !6, i64 560, !20, i64 568, !10, i64 576, !10, i64 584, !20, i64 592, !20, i64 600, !20, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !20, i64 672, !20, i64 680, !20, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !10, i64 760, !20, i64 768, !20, i64 776, !20, i64 784, !20, i64 792, !20, i64 800, !10, i64 808, !10, i64 816, !20, i64 824, !20, i64 832, !10, i64 840, !10, i64 848, !10, i64 856, !20, i64 864, !20, i64 872, !10, i64 880, !10, i64 888, !20, i64 896, !20, i64 904, !20, i64 912, !20, i64 920, !10, i64 928, !10, i64 936, !20, i64 944, !20, i64 952, !20, i64 960, !10, i64 968, !10, i64 976, !20, i64 984, !20, i64 992, !20, i64 1000, !20, i64 1008, !20, i64 1016, !10, i64 1024, !20, i64 1032, !20, i64 1040, !20, i64 1048, !20, i64 1056, !20, i64 1064, !20, i64 1072, !20, i64 1080, !20, i64 1088, !10, i64 1096, !10, i64 1104, !10, i64 1112, !20, i64 1120, !10, i64 1128, !20, i64 1136, !20, i64 1144, !10, i64 1152, !10, i64 1160, !10, i64 1168, !10, i64 1176, !10, i64 1184, !20, i64 1192, !10, i64 1200, !10, i64 1208, !20, i64 1216, !10, i64 1224, !20, i64 1232, !20, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !20, i64 1288, !20, i64 1296, !20, i64 1304, !21, i64 1312, !21, i64 1384, !21, i64 1456, !21, i64 1528, !20, i64 1600, !20, i64 1608, !20, i64 1616, !20, i64 1624, !20, i64 1632, !20, i64 1640, !20, i64 1648, !20, i64 1656, !20, i64 1664, !20, i64 1672, !20, i64 1680, !20, i64 1688, !20, i64 1696, !20, i64 1704, !20, i64 1712, !20, i64 1720, !20, i64 1728, !20, i64 1736, !20, i64 1744, !20, i64 1752, !20, i64 1760, !20, i64 1768, !20, i64 1776, !20, i64 1784, !20, i64 1792, !20, i64 1800, !20, i64 1808, !20, i64 1816, !20, i64 1824, !20, i64 1832, !20, i64 1840, !20, i64 1848, !20, i64 1856, !20, i64 1864, !20, i64 1872, !20, i64 1880, !6, i64 1888, !7, i64 1896}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTS8StatsArr", !6, i64 0, !10, i64 8, !10, i64 16, !22, i64 24, !7, i64 32}
!22 = !{!"_ZTS12StatsArrType", !7, i64 0}
!23 = !{!20, !20, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTS9pool_node", !6, i64 0, !6, i64 8, !26, i64 16, !10, i64 24, !10, i64 32}
!26 = !{!"bool", !7, i64 0}
!27 = !{!28, !6, i64 32}
!28 = !{!"_ZTS8txn_node", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 40}
!29 = !{!28, !6, i64 40}
!30 = !{!25, !6, i64 8}
!31 = !{!25, !10, i64 24}
!32 = distinct !{!32, !15}
!33 = !{!28, !6, i64 0}
!34 = !{!19, !20, i64 1296}
!35 = !{!19, !10, i64 1264}


; 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.Stats = type { ptr, ptr, i64, i64, i64, i64 }
%class.TxnTablePool = type { ptr, ptr }
%class.TxnManPool = type { ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@simulation = external local_unnamed_addr global ptr, align 8
@stats = external local_unnamed_addr global %class.Stats, align 8
@txn_table_pool = external global %class.TxnTablePool, align 8
@txn_man_pool = external global %class.TxnManPool, align 8
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm = external hidden unnamed_addr constant [73 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8TxnTable20is_matching_txn_nodeEP8txn_nodemm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0 align 2

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

declare noundef i64 @_Z13get_sys_clockv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8TxnTable27release_transaction_managerEmmm(ptr noundef nonnull align 8 dereferenceable(16) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 align 2 {
  %5 = tail call noundef i64 @_Z13get_sys_clockv()
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = urem i64 %2, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %9

9:                                                ; preds = %9, %4
  %10 = load ptr, ptr %8, align 8, !tbaa !11
  %11 = getelementptr inbounds ptr, ptr %10, i64 %7
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = cmpxchg ptr %13, i8 0, i8 1 seq_cst seq_cst, align 8
  %15 = extractvalue { i8, i1 } %14, 1
  br i1 %15, label %16, label %9, !llvm.loop !13

16:                                               ; preds = %9
  %17 = load ptr, ptr @simulation, align 8, !tbaa !12
  %18 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %17)
  br i1 %18, label %19, label %31

19:                                               ; preds = %16
  %20 = tail call noundef i64 @_Z13get_sys_clockv()
  %21 = sub i64 %20, %5
  %22 = uitofp i64 %21 to double
  %23 = load ptr, ptr @stats, align 8, !tbaa !15
  %24 = getelementptr inbounds ptr, ptr %23, i64 %1
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %25, i64 1888
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %27, i64 64
  %29 = load double, ptr %28, align 8, !tbaa !22
  %30 = fadd double %29, %22
  store double %30, ptr %28, align 8, !tbaa !22
  br label %31

31:                                               ; preds = %19, %16
  %32 = load ptr, ptr %8, align 8, !tbaa !11
  %33 = getelementptr inbounds ptr, ptr %32, i64 %7
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %36 = tail call noundef i64 @_Z13get_sys_clockv()
  %.not52 = icmp eq ptr %35, null
  br i1 %.not52, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %31, %79
  %.053 = phi ptr [ %39, %79 ], [ %35, %31 ]
  %37 = tail call noundef zeroext i1 @_ZN8TxnTable20is_matching_txn_nodeEP8txn_nodemm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %.053, i64 noundef %2, i64 noundef %3)
  %38 = getelementptr inbounds i8, ptr %.053, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  %.not45 = icmp eq ptr %39, null
  br i1 %37, label %40, label %79

40:                                               ; preds = %.lr.ph
  br i1 %.not45, label %45, label %41

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %.053, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %39, i64 40
  store ptr %43, ptr %44, align 8, !tbaa !28
  br label %58

45:                                               ; preds = %40
  %46 = load ptr, ptr %8, align 8, !tbaa !11
  %47 = load i64, ptr %0, align 8, !tbaa !5
  %48 = urem i64 %2, %47
  %49 = getelementptr inbounds ptr, ptr %46, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  %53 = icmp eq ptr %.053, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %45
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 197, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #3
  unreachable

55:                                               ; preds = %45
  %56 = getelementptr inbounds i8, ptr %.053, i64 40
  %57 = load ptr, ptr %56, align 8, !tbaa !28
  store ptr %57, ptr %51, align 8, !tbaa !29
  br label %58

58:                                               ; preds = %55, %41
  %59 = phi ptr [ %57, %55 ], [ %43, %41 ]
  %.not46 = icmp eq ptr %59, null
  br i1 %.not46, label %62, label %60

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %59, i64 32
  store ptr %39, ptr %61, align 8, !tbaa !26
  %.pre = load ptr, ptr %8, align 8, !tbaa !11
  br label %72

62:                                               ; preds = %58
  %63 = load ptr, ptr %8, align 8, !tbaa !11
  %64 = load i64, ptr %0, align 8, !tbaa !5
  %65 = urem i64 %2, %64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  %67 = load ptr, ptr %66, align 8, !tbaa !12
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = icmp eq ptr %.053, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %62
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 197, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #3
  unreachable

71:                                               ; preds = %62
  store ptr %39, ptr %67, align 8, !tbaa !23
  br label %72

72:                                               ; preds = %71, %60
  %73 = phi ptr [ %63, %71 ], [ %.pre, %60 ]
  %74 = getelementptr inbounds ptr, ptr %73, i64 %7
  %75 = load ptr, ptr %74, align 8, !tbaa !12
  %76 = getelementptr inbounds i8, ptr %75, i64 24
  %77 = load i64, ptr %76, align 8, !tbaa !30
  %78 = add i64 %77, -1
  store i64 %78, ptr %76, align 8, !tbaa !30
  br label %.loopexit

79:                                               ; preds = %.lr.ph
  br i1 %.not45, label %.loopexit, label %.lr.ph, !llvm.loop !31

.loopexit:                                        ; preds = %79, %31, %72
  %.051 = phi ptr [ %.053, %72 ], [ null, %31 ], [ null, %79 ]
  %.not49 = phi i1 [ false, %72 ], [ true, %31 ], [ true, %79 ]
  %80 = load ptr, ptr @simulation, align 8, !tbaa !12
  %81 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %80)
  br i1 %81, label %82, label %94

82:                                               ; preds = %.loopexit
  %83 = tail call noundef i64 @_Z13get_sys_clockv()
  %84 = sub i64 %83, %36
  %85 = uitofp i64 %84 to double
  %86 = load ptr, ptr @stats, align 8, !tbaa !15
  %87 = getelementptr inbounds ptr, ptr %86, i64 %1
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = getelementptr inbounds i8, ptr %88, i64 1888
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  %91 = getelementptr inbounds i8, ptr %90, i64 200
  %92 = load double, ptr %91, align 8, !tbaa !22
  %93 = fadd double %92, %85
  store double %93, ptr %91, align 8, !tbaa !22
  br label %94

94:                                               ; preds = %82, %.loopexit
  %95 = tail call noundef i64 @_Z13get_sys_clockv()
  %96 = load ptr, ptr %8, align 8, !tbaa !11
  %97 = getelementptr inbounds ptr, ptr %96, i64 %7
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %100 = cmpxchg ptr %99, i8 1, i8 0 seq_cst seq_cst, align 8
  %101 = tail call noundef i64 @_Z13get_sys_clockv()
  br i1 %.not49, label %102, label %103

102:                                              ; preds = %94
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 225, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #3
  unreachable

103:                                              ; preds = %94
  %104 = load ptr, ptr %.051, align 8, !tbaa !32
  %.not47 = icmp eq ptr %104, null
  br i1 %.not47, label %105, label %106

105:                                              ; preds = %103
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 226, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8TxnTable27release_transaction_managerEmmm) #3
  unreachable

106:                                              ; preds = %103
  tail call void @_ZN10TxnManPool3putEmP10TxnManager(ptr noundef nonnull align 8 dereferenceable(16) @txn_man_pool, i64 noundef %1, ptr noundef nonnull %104)
  %107 = load ptr, ptr @simulation, align 8, !tbaa !12
  %108 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %107)
  br i1 %108, label %109, label %121

109:                                              ; preds = %106
  %110 = tail call noundef i64 @_Z13get_sys_clockv()
  %111 = sub i64 %110, %101
  %112 = uitofp i64 %111 to double
  %113 = load ptr, ptr @stats, align 8, !tbaa !15
  %114 = getelementptr inbounds ptr, ptr %113, i64 %1
  %115 = load ptr, ptr %114, align 8, !tbaa !12
  %116 = getelementptr inbounds i8, ptr %115, i64 1888
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = getelementptr inbounds i8, ptr %117, i64 208
  %119 = load double, ptr %118, align 8, !tbaa !22
  %120 = fadd double %119, %112
  store double %120, ptr %118, align 8, !tbaa !22
  br label %121

121:                                              ; preds = %109, %106
  %122 = tail call noundef i64 @_Z13get_sys_clockv()
  tail call void @_ZN12TxnTablePool3putEmP8txn_node(ptr noundef nonnull align 8 dereferenceable(16) @txn_table_pool, i64 noundef %1, ptr noundef nonnull %.051)
  %123 = load ptr, ptr @simulation, align 8, !tbaa !12
  %124 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %123)
  br i1 %124, label %125, label %137

125:                                              ; preds = %121
  %126 = tail call noundef i64 @_Z13get_sys_clockv()
  %127 = sub i64 %126, %122
  %128 = uitofp i64 %127 to double
  %129 = load ptr, ptr @stats, align 8, !tbaa !15
  %130 = getelementptr inbounds ptr, ptr %129, i64 %1
  %131 = load ptr, ptr %130, align 8, !tbaa !12
  %132 = getelementptr inbounds i8, ptr %131, i64 1888
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = getelementptr inbounds i8, ptr %133, i64 216
  %135 = load double, ptr %134, align 8, !tbaa !22
  %136 = fadd double %135, %128
  store double %136, ptr %134, align 8, !tbaa !22
  br label %137

137:                                              ; preds = %125, %121
  %138 = load ptr, ptr @simulation, align 8, !tbaa !12
  %139 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %138)
  br i1 %139, label %140, label %150

140:                                              ; preds = %137
  %141 = tail call noundef i64 @_Z13get_sys_clockv()
  %142 = sub i64 %141, %5
  %143 = uitofp i64 %142 to double
  %144 = load ptr, ptr @stats, align 8, !tbaa !15
  %145 = getelementptr inbounds ptr, ptr %144, i64 %1
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  %147 = getelementptr inbounds i8, ptr %146, i64 1296
  %148 = load double, ptr %147, align 8, !tbaa !33
  %149 = fadd double %148, %143
  store double %149, ptr %147, align 8, !tbaa !33
  br label %150

150:                                              ; preds = %140, %137
  %151 = load ptr, ptr @simulation, align 8, !tbaa !12
  %152 = tail call noundef zeroext i1 @_ZN10SimManager14is_warmup_doneEv(ptr noundef nonnull align 8 dereferenceable(96) %151)
  br i1 %152, label %153, label %160

153:                                              ; preds = %150
  %154 = load ptr, ptr @stats, align 8, !tbaa !15
  %155 = getelementptr inbounds ptr, ptr %154, i64 %1
  %156 = load ptr, ptr %155, align 8, !tbaa !12
  %157 = getelementptr inbounds i8, ptr %156, i64 1264
  %158 = load i64, ptr %157, align 8, !tbaa !34
  %159 = add i64 %158, 1
  store i64 %159, ptr %157, align 8, !tbaa !34
  br label %160

160:                                              ; preds = %153, %150
  ret void
}

declare void @_ZN10TxnManPool3putEmP10TxnManager(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN12TxnTablePool3putEmP8txn_node(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, ptr noundef) local_unnamed_addr #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 = { 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 0}
!6 = !{!"_ZTS8TxnTable", !7, i64 0, !10, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS5Stats", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!17 = !{!18, !10, i64 1888}
!18 = !{!"_ZTS9Stats_thd", !8, i64 0, !10, i64 64, !10, i64 72, !19, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !19, i64 184, !7, i64 192, !19, i64 200, !7, i64 208, !19, i64 216, !7, i64 224, !7, i64 232, !19, i64 240, !19, i64 248, !19, i64 256, !19, i64 264, !19, i64 272, !19, i64 280, !19, i64 288, !19, i64 296, !7, i64 304, !19, i64 312, !19, i64 320, !19, i64 328, !19, i64 336, !19, i64 344, !19, i64 352, !19, i64 360, !19, i64 368, !7, i64 376, !7, i64 384, !19, i64 392, !7, i64 400, !19, i64 408, !7, i64 416, !19, i64 424, !19, i64 432, !19, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !19, i64 472, !19, i64 480, !19, i64 488, !19, i64 496, !19, i64 504, !19, i64 512, !19, i64 520, !19, i64 528, !19, i64 536, !7, i64 544, !10, i64 552, !10, i64 560, !19, i64 568, !7, i64 576, !7, i64 584, !19, i64 592, !19, i64 600, !19, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !19, i64 672, !19, i64 680, !19, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !19, i64 768, !19, i64 776, !19, i64 784, !19, i64 792, !19, i64 800, !7, i64 808, !7, i64 816, !19, i64 824, !19, i64 832, !7, i64 840, !7, i64 848, !7, i64 856, !19, i64 864, !19, i64 872, !7, i64 880, !7, i64 888, !19, i64 896, !19, i64 904, !19, i64 912, !19, i64 920, !7, i64 928, !7, i64 936, !19, i64 944, !19, i64 952, !19, i64 960, !7, i64 968, !7, i64 976, !19, i64 984, !19, i64 992, !19, i64 1000, !19, i64 1008, !19, i64 1016, !7, i64 1024, !19, i64 1032, !19, i64 1040, !19, i64 1048, !19, i64 1056, !19, i64 1064, !19, i64 1072, !19, i64 1080, !19, i64 1088, !7, i64 1096, !7, i64 1104, !7, i64 1112, !19, i64 1120, !7, i64 1128, !19, i64 1136, !19, i64 1144, !7, i64 1152, !7, i64 1160, !7, i64 1168, !7, i64 1176, !7, i64 1184, !19, i64 1192, !7, i64 1200, !7, i64 1208, !19, i64 1216, !7, i64 1224, !19, i64 1232, !19, i64 1240, !7, i64 1248, !7, i64 1256, !7, i64 1264, !7, i64 1272, !7, i64 1280, !19, i64 1288, !19, i64 1296, !19, i64 1304, !20, i64 1312, !20, i64 1384, !20, i64 1456, !20, i64 1528, !19, i64 1600, !19, i64 1608, !19, i64 1616, !19, i64 1624, !19, i64 1632, !19, i64 1640, !19, i64 1648, !19, i64 1656, !19, i64 1664, !19, i64 1672, !19, i64 1680, !19, i64 1688, !19, i64 1696, !19, i64 1704, !19, i64 1712, !19, i64 1720, !19, i64 1728, !19, i64 1736, !19, i64 1744, !19, i64 1752, !19, i64 1760, !19, i64 1768, !19, i64 1776, !19, i64 1784, !19, i64 1792, !19, i64 1800, !19, i64 1808, !19, i64 1816, !19, i64 1824, !19, i64 1832, !19, i64 1840, !19, i64 1848, !19, i64 1856, !19, i64 1864, !19, i64 1872, !19, i64 1880, !10, i64 1888, !8, i64 1896}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTS8StatsArr", !10, i64 0, !7, i64 8, !7, i64 16, !21, i64 24, !8, i64 32}
!21 = !{!"_ZTS12StatsArrType", !8, i64 0}
!22 = !{!19, !19, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTS9pool_node", !10, i64 0, !10, i64 8, !25, i64 16, !7, i64 24, !7, i64 32}
!25 = !{!"bool", !8, i64 0}
!26 = !{!27, !10, i64 32}
!27 = !{!"_ZTS8txn_node", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40}
!28 = !{!27, !10, i64 40}
!29 = !{!24, !10, i64 8}
!30 = !{!24, !7, i64 24}
!31 = distinct !{!31, !14}
!32 = !{!27, !10, i64 0}
!33 = !{!18, !19, i64 1296}
!34 = !{!18, !7, i64 1264}


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