; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer (TestCase8TestBodyEv)

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

%struct.jc_test_fixture = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.jc_test_stats, i32, i32, i32, i32 }
%struct.jc_test_stats = type { i32, i32, i32, i32, i64 }
%struct.Longtail_BlockIndex = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_HashAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_API = type { ptr }

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [15 x i8], align 1
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_indexes = external hidden unnamed_addr constant [2 x i32], align 4
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_hashes = external hidden unnamed_addr constant [2 x i64], align 16
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_sizes = external hidden unnamed_addr constant [2 x i32], align 4
@.str.90 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [34 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: inlinehint mustprogress uwtable
declare hidden noundef ptr @_ZL19jc_test_get_fixturev() #1

declare void @_Z28jc_test_increment_assertionsv() #2

declare void @_Z21jc_test_set_test_faili(i32 noundef) #2

declare void @Longtail_Free(ptr noundef) #2

; 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 i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) #3 align 2

declare void @Longtail_DisposeAPI(ptr noundef) #2

declare ptr @Longtail_CreateBlake3HashAPI() #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14jc_test_cmp_NEIP16Longtail_HashAPIS1_EiT_T0_PKcS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @Longtail_CreateBlockIndex(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14jc_test_cmp_NEIjmEiT_T0_PKcS3_(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca [2 x i32], align 4
  %6 = alloca [2 x i64], align 16
  %7 = alloca [2 x i32], align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %21 = call ptr @Longtail_CreateBlake3HashAPI()
  store ptr %21, ptr %3, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %1
  %23 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %24 = getelementptr inbounds %struct.jc_test_fixture, ptr %23, i32 0, i32 11
  %25 = load i32, ptr %24, align 8
  %26 = and i32 %25, -16776961
  %27 = or i32 %26, 131328
  store i32 %27, ptr %24, align 8
  %28 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %29 = getelementptr inbounds %struct.jc_test_fixture, ptr %28, i32 0, i32 4
  store ptr @.str.3, ptr %29, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = call noundef i32 @_Z14jc_test_cmp_NEIP16Longtail_HashAPIS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %30, ptr noundef @.str.65, ptr noundef @.str.66)
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %22
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %234

34:                                               ; preds = %22
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_indexes, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_hashes, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_sizes, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  br label %37

37:                                               ; preds = %36
  %38 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %39 = getelementptr inbounds %struct.jc_test_fixture, ptr %38, i32 0, i32 11
  %40 = load i32, ptr %39, align 8
  %41 = and i32 %40, -16776961
  %42 = or i32 %41, 134400
  store i32 %42, ptr %39, align 8
  %43 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %44 = getelementptr inbounds %struct.jc_test_fixture, ptr %43, i32 0, i32 4
  store ptr @.str.3, ptr %44, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
  %47 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
  %48 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  %49 = call i32 @Longtail_CreateBlockIndex(ptr noundef %45, i32 noundef 0, i32 noundef 2, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %8)
  store i32 %49, ptr %10, align 4, !tbaa !14
  %50 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef @.str.46, ptr noundef @.str.73, ptr noundef null)
  %51 = icmp eq i32 %50, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br i1 %51, label %52, label %53

52:                                               ; preds = %37
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %233

53:                                               ; preds = %37
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  br label %56

56:                                               ; preds = %55
  %57 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %58 = getelementptr inbounds %struct.jc_test_fixture, ptr %57, i32 0, i32 11
  %59 = load i32, ptr %58, align 8
  %60 = and i32 %59, -16776961
  %61 = or i32 %60, 136192
  store i32 %61, ptr %58, align 8
  %62 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %63 = getelementptr inbounds %struct.jc_test_fixture, ptr %62, i32 0, i32 4
  store ptr @.str.3, ptr %63, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = call i32 @Longtail_WriteBlockIndexToBuffer(ptr noundef %64, ptr noundef %11, ptr noundef %12)
  store i32 %65, ptr %14, align 4, !tbaa !14
  %66 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef @.str.46, ptr noundef @.str.90, ptr noundef null)
  %67 = icmp eq i32 %66, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br i1 %67, label %68, label %69

68:                                               ; preds = %56
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %232

69:                                               ; preds = %56
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %72)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  br label %73

73:                                               ; preds = %71
  %74 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %75 = getelementptr inbounds %struct.jc_test_fixture, ptr %74, i32 0, i32 11
  %76 = load i32, ptr %75, align 8
  %77 = and i32 %76, -16776961
  %78 = or i32 %77, 137984
  store i32 %78, ptr %75, align 8
  %79 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %80 = getelementptr inbounds %struct.jc_test_fixture, ptr %79, i32 0, i32 4
  store ptr @.str.3, ptr %80, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load i64, ptr %12, align 8, !tbaa !15
  %83 = call i32 @Longtail_ReadBlockIndexFromBuffer(ptr noundef %81, i64 noundef %82, ptr noundef %15)
  store i32 %83, ptr %17, align 4, !tbaa !14
  %84 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef @.str.46, ptr noundef @.str.91, ptr noundef null)
  %85 = icmp eq i32 %84, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br i1 %85, label %86, label %87

86:                                               ; preds = %73
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

87:                                               ; preds = %73
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %90)
  br label %91

91:                                               ; preds = %89
  %92 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %93 = getelementptr inbounds %struct.jc_test_fixture, ptr %92, i32 0, i32 11
  %94 = load i32, ptr %93, align 8
  %95 = and i32 %94, -16776961
  %96 = or i32 %95, 139008
  store i32 %96, ptr %93, align 8
  %97 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %98 = getelementptr inbounds %struct.jc_test_fixture, ptr %97, i32 0, i32 4
  store ptr @.str.3, ptr %98, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = load i64, ptr %101, align 8, !tbaa !15
  %103 = call noundef i32 @_Z14jc_test_cmp_NEIjmEiT_T0_PKcS3_(i32 noundef 0, i64 noundef %102, ptr noundef @.str.74, ptr noundef @.str.92)
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %91
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

106:                                              ; preds = %91
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %111 = getelementptr inbounds %struct.jc_test_fixture, ptr %110, i32 0, i32 11
  %112 = load i32, ptr %111, align 8
  %113 = and i32 %112, -16776961
  %114 = or i32 %113, 139264
  store i32 %114, ptr %111, align 8
  %115 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %116 = getelementptr inbounds %struct.jc_test_fixture, ptr %115, i32 0, i32 4
  store ptr @.str.3, ptr %116, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.Longtail_HashAPI, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = call noundef i32 %119(ptr noundef %120)
  store i32 %121, ptr %18, align 4, !tbaa !14
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %124, ptr noundef @.str.76, ptr noundef @.str.93)
  %126 = icmp eq i32 %125, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br i1 %126, label %127, label %128

127:                                              ; preds = %109
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

128:                                              ; preds = %109
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %133 = getelementptr inbounds %struct.jc_test_fixture, ptr %132, i32 0, i32 11
  %134 = load i32, ptr %133, align 8
  %135 = and i32 %134, -16776961
  %136 = or i32 %135, 139520
  store i32 %136, ptr %133, align 8
  %137 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %138 = getelementptr inbounds %struct.jc_test_fixture, ptr %137, i32 0, i32 4
  store ptr @.str.3, ptr %138, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 2, ptr %19, align 4, !tbaa !14
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !22
  %142 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %141, ptr noundef @.str.78, ptr noundef @.str.94)
  %143 = icmp eq i32 %142, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br i1 %143, label %144, label %145

144:                                              ; preds = %131
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

145:                                              ; preds = %131
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %150 = getelementptr inbounds %struct.jc_test_fixture, ptr %149, i32 0, i32 11
  %151 = load i32, ptr %150, align 8
  %152 = and i32 %151, -16776961
  %153 = or i32 %152, 139776
  store i32 %153, ptr %150, align 8
  %154 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %155 = getelementptr inbounds %struct.jc_test_fixture, ptr %154, i32 0, i32 4
  store ptr @.str.3, ptr %155, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %156 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !23
  %160 = getelementptr inbounds i64, ptr %159, i64 0
  %161 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef @.str.80, ptr noundef @.str.95)
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %148
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

164:                                              ; preds = %148
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %169 = getelementptr inbounds %struct.jc_test_fixture, ptr %168, i32 0, i32 11
  %170 = load i32, ptr %169, align 8
  %171 = and i32 %170, -16776961
  %172 = or i32 %171, 140032
  store i32 %172, ptr %169, align 8
  %173 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %174 = getelementptr inbounds %struct.jc_test_fixture, ptr %173, i32 0, i32 4
  store ptr @.str.3, ptr %174, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %175 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !23
  %179 = getelementptr inbounds i64, ptr %178, i64 1
  %180 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @.str.82, ptr noundef @.str.96)
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %167
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

183:                                              ; preds = %167
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  %187 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %188 = getelementptr inbounds %struct.jc_test_fixture, ptr %187, i32 0, i32 11
  %189 = load i32, ptr %188, align 8
  %190 = and i32 %189, -16776961
  %191 = or i32 %190, 140288
  store i32 %191, ptr %188, align 8
  %192 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %193 = getelementptr inbounds %struct.jc_test_fixture, ptr %192, i32 0, i32 4
  store ptr @.str.3, ptr %193, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %194 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %195, i32 0, i32 5
  %197 = load ptr, ptr %196, align 8, !tbaa !24
  %198 = getelementptr inbounds i32, ptr %197, i64 0
  %199 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %194, ptr noundef nonnull align 4 dereferenceable(4) %198, ptr noundef @.str.84, ptr noundef @.str.97)
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %186
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

202:                                              ; preds = %186
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  %206 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %207 = getelementptr inbounds %struct.jc_test_fixture, ptr %206, i32 0, i32 11
  %208 = load i32, ptr %207, align 8
  %209 = and i32 %208, -16776961
  %210 = or i32 %209, 140544
  store i32 %210, ptr %207, align 8
  %211 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %212 = getelementptr inbounds %struct.jc_test_fixture, ptr %211, i32 0, i32 4
  store ptr @.str.3, ptr %212, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %213 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
  %214 = load ptr, ptr %15, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %214, i32 0, i32 5
  %216 = load ptr, ptr %215, align 8, !tbaa !24
  %217 = getelementptr inbounds i32, ptr %216, i64 1
  %218 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %213, ptr noundef nonnull align 4 dereferenceable(4) %217, ptr noundef @.str.86, ptr noundef @.str.98)
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %220, label %221

220:                                              ; preds = %205
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %231

221:                                              ; preds = %205
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %15, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %224)
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %230

227:                                              ; preds = %223
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.Longtail_HashAPI, ptr %228, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %229)
  br label %230

230:                                              ; preds = %227, %223
  store i32 0, ptr %4, align 4
  br label %231

231:                                              ; preds = %230, %220, %201, %182, %163, %144, %127, %105, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %232

232:                                              ; preds = %231, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %233

233:                                              ; preds = %232, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %234

234:                                              ; preds = %233, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %235 = load i32, ptr %4, align 4
  switch i32 %235, label %237 [
    i32 0, label %236
    i32 1, label %236
  ]

236:                                              ; preds = %234, %234
  ret void

237:                                              ; preds = %234
  unreachable
}

declare i32 @Longtail_WriteBlockIndexToBuffer(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @Longtail_ReadBlockIndexFromBuffer(ptr noundef, i64 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTS15jc_test_fixture", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !12, i64 88, !12, i64 91, !12, i64 91, !12, i64 91, !12, i64 91, !12, i64 92, !12, i64 96, !12, i64 97, !12, i64 99, !12, i64 100}
!11 = !{!"_ZTS13jc_test_stats", !12, i64 0, !12, i64 4, !12, i64 6, !12, i64 8, !12, i64 12, !13, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS19Longtail_BlockIndex", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTS16Longtail_HashAPI", !20, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!"_ZTS12Longtail_API", !6, i64 0}
!21 = !{!17, !6, i64 8}
!22 = !{!17, !6, i64 16}
!23 = !{!17, !6, i64 32}
!24 = !{!17, !6, i64 40}


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

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [99 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [15 x i8], align 1
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_indexes = external hidden unnamed_addr constant [2 x i32], align 4
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_hashes = external hidden unnamed_addr constant [2 x i64], align 16
@__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_sizes = external hidden unnamed_addr constant [2 x i32], align 4
@.str.90 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [34 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @_ZL19jc_test_get_fixturev() local_unnamed_addr #1

declare void @_Z28jc_test_increment_assertionsv() local_unnamed_addr #2

declare void @_Z21jc_test_set_test_faili(i32 noundef) local_unnamed_addr #2

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

declare void @Longtail_DisposeAPI(ptr noundef) local_unnamed_addr #2

declare ptr @Longtail_CreateBlake3HashAPI() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14jc_test_cmp_NEIP16Longtail_HashAPIS1_EiT_T0_PKcS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @Longtail_CreateBlockIndex(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z14jc_test_cmp_NEIjmEiT_T0_PKcS3_(i32 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca [2 x i32], align 8
  %3 = alloca [2 x i64], align 16
  %4 = alloca [2 x i32], align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = tail call ptr @Longtail_CreateBlake3HashAPI()
  %18 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %19 = getelementptr inbounds i8, ptr %18, i64 96
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, -16776961
  %22 = or disjoint i32 %21, 131328
  store i32 %22, ptr %19, align 8
  %23 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  store ptr @.str.3, ptr %24, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  %25 = tail call noundef i32 @_Z14jc_test_cmp_NEIP16Longtail_HashAPIS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %17, ptr noundef nonnull @.str.65, ptr noundef nonnull @.str.66)
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %1
  tail call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %181

28:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %29 = load i64, ptr @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_indexes, align 4
  store i64 %29, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_hashes, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %30 = load i64, ptr @__const._ZN55Longtail_Longtail_ReadWriteBlockIndexInBuffer__TestCase8TestBodyEv.chunk_sizes, align 4
  store i64 %30, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %31 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %32 = getelementptr inbounds i8, ptr %31, i64 96
  %33 = load i32, ptr %32, align 8
  %34 = and i32 %33, -16776961
  %35 = or disjoint i32 %34, 134400
  store i32 %35, ptr %32, align 8
  %36 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  store ptr @.str.3, ptr %37, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %38 = call i32 @Longtail_CreateBlockIndex(ptr noundef %17, i32 noundef 0, i32 noundef 2, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  store i32 %38, ptr %7, align 4, !tbaa !13
  %39 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.73, ptr noundef null)
  %40 = icmp eq i32 %39, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br i1 %40, label %41, label %42

41:                                               ; preds = %28
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %180

42:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %43 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %44 = getelementptr inbounds i8, ptr %43, i64 96
  %45 = load i32, ptr %44, align 8
  %46 = and i32 %45, -16776961
  %47 = or disjoint i32 %46, 136192
  store i32 %47, ptr %44, align 8
  %48 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  store ptr @.str.3, ptr %49, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %50 = load ptr, ptr %5, align 8, !tbaa !14
  %51 = call i32 @Longtail_WriteBlockIndexToBuffer(ptr noundef %50, ptr noundef nonnull %8, ptr noundef nonnull %9)
  store i32 %51, ptr %11, align 4, !tbaa !13
  %52 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.90, ptr noundef null)
  %53 = icmp eq i32 %52, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br i1 %53, label %54, label %55

54:                                               ; preds = %42
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %179

55:                                               ; preds = %42
  %56 = load ptr, ptr %5, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %57 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %58 = getelementptr inbounds i8, ptr %57, i64 96
  %59 = load i32, ptr %58, align 8
  %60 = and i32 %59, -16776961
  %61 = or disjoint i32 %60, 137984
  store i32 %61, ptr %58, align 8
  %62 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  store ptr @.str.3, ptr %63, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 0, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %64 = load ptr, ptr %8, align 8, !tbaa !14
  %65 = load i64, ptr %9, align 8, !tbaa !15
  %66 = call i32 @Longtail_ReadBlockIndexFromBuffer(ptr noundef %64, i64 noundef %65, ptr noundef nonnull %12)
  store i32 %66, ptr %14, align 4, !tbaa !13
  %67 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.91, ptr noundef null)
  %68 = icmp eq i32 %67, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  br i1 %68, label %69, label %70

69:                                               ; preds = %55
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

70:                                               ; preds = %55
  %71 = load ptr, ptr %8, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %71)
  %72 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %73 = getelementptr inbounds i8, ptr %72, i64 96
  %74 = load i32, ptr %73, align 8
  %75 = and i32 %74, -16776961
  %76 = or disjoint i32 %75, 139008
  store i32 %76, ptr %73, align 8
  %77 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %78 = getelementptr inbounds i8, ptr %77, i64 32
  store ptr @.str.3, ptr %78, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %79 = load ptr, ptr %12, align 8, !tbaa !14
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = load i64, ptr %80, align 8, !tbaa !15
  %82 = call noundef i32 @_Z14jc_test_cmp_NEIjmEiT_T0_PKcS3_(i32 noundef 0, i64 noundef %81, ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.92)
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %70
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

85:                                               ; preds = %70
  %86 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %87 = getelementptr inbounds i8, ptr %86, i64 96
  %88 = load i32, ptr %87, align 8
  %89 = and i32 %88, -16776961
  %90 = or disjoint i32 %89, 139264
  store i32 %90, ptr %87, align 8
  %91 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  store ptr @.str.3, ptr %92, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  %93 = getelementptr inbounds i8, ptr %17, i64 8
  %94 = load ptr, ptr %93, align 8, !tbaa !18
  %95 = call noundef i32 %94(ptr noundef %17)
  store i32 %95, ptr %15, align 4, !tbaa !13
  %96 = load ptr, ptr %12, align 8, !tbaa !14
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !21
  %99 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %98, ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.93)
  %100 = icmp eq i32 %99, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  br i1 %100, label %101, label %102

101:                                              ; preds = %85
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

102:                                              ; preds = %85
  %103 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %104 = getelementptr inbounds i8, ptr %103, i64 96
  %105 = load i32, ptr %104, align 8
  %106 = and i32 %105, -16776961
  %107 = or disjoint i32 %106, 139520
  store i32 %107, ptr %104, align 8
  %108 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %109 = getelementptr inbounds i8, ptr %108, i64 32
  store ptr @.str.3, ptr %109, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  store i32 2, ptr %16, align 4, !tbaa !13
  %110 = load ptr, ptr %12, align 8, !tbaa !14
  %111 = getelementptr inbounds i8, ptr %110, i64 16
  %112 = load ptr, ptr %111, align 8, !tbaa !22
  %113 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %112, ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.94)
  %114 = icmp eq i32 %113, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  br i1 %114, label %115, label %116

115:                                              ; preds = %102
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

116:                                              ; preds = %102
  %117 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %118 = getelementptr inbounds i8, ptr %117, i64 96
  %119 = load i32, ptr %118, align 8
  %120 = and i32 %119, -16776961
  %121 = or disjoint i32 %120, 139776
  store i32 %121, ptr %118, align 8
  %122 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %123 = getelementptr inbounds i8, ptr %122, i64 32
  store ptr @.str.3, ptr %123, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %124 = load ptr, ptr %12, align 8, !tbaa !14
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = load ptr, ptr %125, align 8, !tbaa !23
  %127 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str.80, ptr noundef nonnull @.str.95)
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %116
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

130:                                              ; preds = %116
  %131 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %132 = getelementptr inbounds i8, ptr %131, i64 96
  %133 = load i32, ptr %132, align 8
  %134 = and i32 %133, -16776961
  %135 = or disjoint i32 %134, 140032
  store i32 %135, ptr %132, align 8
  %136 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %137 = getelementptr inbounds i8, ptr %136, i64 32
  store ptr @.str.3, ptr %137, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %138 = getelementptr inbounds i8, ptr %3, i64 8
  %139 = load ptr, ptr %12, align 8, !tbaa !14
  %140 = getelementptr inbounds i8, ptr %139, i64 32
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %143 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.96)
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %130
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

146:                                              ; preds = %130
  %147 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %148 = getelementptr inbounds i8, ptr %147, i64 96
  %149 = load i32, ptr %148, align 8
  %150 = and i32 %149, -16776961
  %151 = or disjoint i32 %150, 140288
  store i32 %151, ptr %148, align 8
  %152 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %153 = getelementptr inbounds i8, ptr %152, i64 32
  store ptr @.str.3, ptr %153, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %154 = load ptr, ptr %12, align 8, !tbaa !14
  %155 = getelementptr inbounds i8, ptr %154, i64 40
  %156 = load ptr, ptr %155, align 8, !tbaa !24
  %157 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %156, ptr noundef nonnull @.str.84, ptr noundef nonnull @.str.97)
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %146
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

160:                                              ; preds = %146
  %161 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %162 = getelementptr inbounds i8, ptr %161, i64 96
  %163 = load i32, ptr %162, align 8
  %164 = and i32 %163, -16776961
  %165 = or disjoint i32 %164, 140544
  store i32 %165, ptr %162, align 8
  %166 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %167 = getelementptr inbounds i8, ptr %166, i64 32
  store ptr @.str.3, ptr %167, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %168 = getelementptr inbounds i8, ptr %4, i64 4
  %169 = load ptr, ptr %12, align 8, !tbaa !14
  %170 = getelementptr inbounds i8, ptr %169, i64 40
  %171 = load ptr, ptr %170, align 8, !tbaa !24
  %172 = getelementptr inbounds i8, ptr %171, i64 4
  %173 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %168, ptr noundef nonnull align 4 dereferenceable(4) %172, ptr noundef nonnull @.str.86, ptr noundef nonnull @.str.98)
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %160
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %178

176:                                              ; preds = %160
  %177 = load ptr, ptr %12, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %177)
  call void @Longtail_DisposeAPI(ptr noundef nonnull %17)
  br label %178

178:                                              ; preds = %176, %175, %159, %145, %129, %115, %101, %84, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %179

179:                                              ; preds = %178, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %180

180:                                              ; preds = %179, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %181

181:                                              ; preds = %180, %27
  ret void
}

declare i32 @Longtail_WriteBlockIndexToBuffer(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @Longtail_ReadBlockIndexFromBuffer(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { "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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"_ZTS15jc_test_fixture", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !11, i64 88, !11, i64 91, !11, i64 91, !11, i64 91, !11, i64 91, !11, i64 92, !11, i64 96, !11, i64 97, !11, i64 99, !11, i64 100}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS13jc_test_stats", !11, i64 0, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 12, !12, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !7, i64 0}
!17 = !{!"_ZTS19Longtail_BlockIndex", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!18 = !{!19, !7, i64 8}
!19 = !{!"_ZTS16Longtail_HashAPI", !20, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!20 = !{!"_ZTS12Longtail_API", !7, i64 0}
!21 = !{!17, !7, i64 8}
!22 = !{!17, !7, i64 16}
!23 = !{!17, !7, i64 32}
!24 = !{!17, !7, i64 40}


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