; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN40Longtail_Longtail_VersionIndex (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_FileInfos = type { i32, i32, ptr, ptr, ptr, ptr }
%struct.Longtail_VersionIndex = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, 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
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_paths = external hidden unnamed_addr constant [5 x ptr], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_permissions = external hidden unnamed_addr constant [5 x i16], align 2
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.chunk_sizes = external hidden unnamed_addr constant [5 x i32], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_counts = external hidden unnamed_addr constant [5 x i32], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_start_index = external hidden unnamed_addr constant [5 x i32], align 16
@.str.126 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [318 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.131 = 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

declare ptr @Longtail_Alloc(ptr noundef, i64 noundef) #1

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

declare void @_Z28jc_test_increment_assertionsv() #1

declare void @_Z21jc_test_set_test_faili(i32 noundef) #1

declare void @Longtail_Free(ptr noundef) #1

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

; 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 @_ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv(ptr noundef nonnull align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [5 x ptr], align 16
  %4 = alloca [5 x i64], align 16
  %5 = alloca [5 x i64], align 16
  %6 = alloca [5 x i64], align 16
  %7 = alloca [5 x i16], align 2
  %8 = alloca [5 x i32], align 16
  %9 = alloca [5 x i32], align 16
  %10 = alloca [5 x i32], align 16
  %11 = alloca [5 x i32], align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %28 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_paths, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #6
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 40, i1 false)
  %29 = getelementptr inbounds [5 x i64], ptr %4, i32 0, i32 0
  store i64 50, ptr %29, align 16
  %30 = getelementptr inbounds [5 x i64], ptr %4, i32 0, i32 1
  store i64 40, ptr %30, align 8
  %31 = getelementptr inbounds [5 x i64], ptr %4, i32 0, i32 2
  store i64 30, ptr %31, align 16
  %32 = getelementptr inbounds [5 x i64], ptr %4, i32 0, i32 3
  store i64 20, ptr %32, align 8
  %33 = getelementptr inbounds [5 x i64], ptr %4, i32 0, i32 4
  store i64 10, ptr %33, align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 40, i1 false)
  %34 = getelementptr inbounds [5 x i64], ptr %5, i32 0, i32 0
  store i64 5, ptr %34, align 16
  %35 = getelementptr inbounds [5 x i64], ptr %5, i32 0, i32 1
  store i64 4, ptr %35, align 8
  %36 = getelementptr inbounds [5 x i64], ptr %5, i32 0, i32 2
  store i64 3, ptr %36, align 16
  %37 = getelementptr inbounds [5 x i64], ptr %5, i32 0, i32 3
  store i64 2, ptr %37, align 8
  %38 = getelementptr inbounds [5 x i64], ptr %5, i32 0, i32 4
  store i64 1, ptr %38, align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 40, i1 false)
  %39 = getelementptr inbounds [5 x i64], ptr %6, i32 0, i32 0
  store i64 64003, ptr %39, align 16
  %40 = getelementptr inbounds [5 x i64], ptr %6, i32 0, i32 1
  store i64 64003, ptr %40, align 8
  %41 = getelementptr inbounds [5 x i64], ptr %6, i32 0, i32 2
  store i64 64002, ptr %41, align 16
  %42 = getelementptr inbounds [5 x i64], ptr %6, i32 0, i32 3
  store i64 64001, ptr %42, align 8
  %43 = getelementptr inbounds [5 x i64], ptr %6, i32 0, i32 4
  store i64 64001, ptr %43, align 16
  call void @llvm.lifetime.start.p0(i64 10, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %7, ptr align 2 @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_permissions, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.chunk_sizes, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_counts, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_start_index, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  br label %44

44:                                               ; preds = %1
  %45 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %46 = getelementptr inbounds %struct.jc_test_fixture, ptr %45, i32 0, i32 11
  %47 = load i32, ptr %46, align 8
  %48 = and i32 %47, -16776961
  %49 = or i32 %48, 167680
  store i32 %49, ptr %46, align 8
  %50 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %51 = getelementptr inbounds %struct.jc_test_fixture, ptr %50, i32 0, i32 4
  store ptr @.str.3, ptr %51, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %52 = getelementptr inbounds [5 x ptr], ptr %3, i64 0, i64 0
  %53 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 0
  %54 = getelementptr inbounds [5 x i16], ptr %7, i64 0, i64 0
  %55 = call i32 @LongtailPrivate_MakeFileInfos(i32 noundef 5, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %12)
  store i32 %55, ptr %14, align 4, !tbaa !14
  %56 = 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.126, ptr noundef null)
  %57 = icmp eq i32 %56, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br i1 %57, label %58, label %59

58:                                               ; preds = %44
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %15, align 4
  br label %160

59:                                               ; preds = %44
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Longtail_FileInfos, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = call i64 @Longtail_GetVersionIndexSize(i32 noundef 5, i32 noundef 5, i32 noundef 5, i32 noundef %64)
  store i64 %65, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %66 = load i64, ptr %16, align 8, !tbaa !17
  %67 = call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %66)
  store ptr %67, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  br label %68

68:                                               ; preds = %61
  %69 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %70 = getelementptr inbounds %struct.jc_test_fixture, ptr %69, i32 0, i32 11
  %71 = load i32, ptr %70, align 8
  %72 = and i32 %71, -16776961
  %73 = or i32 %72, 173568
  store i32 %73, ptr %70, align 8
  %74 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %75 = getelementptr inbounds %struct.jc_test_fixture, ptr %74, i32 0, i32 4
  store ptr @.str.3, ptr %75, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = load i64, ptr %16, align 8, !tbaa !17
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 0
  %80 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 0
  %81 = getelementptr inbounds [5 x i32], ptr %10, i64 0, i64 0
  %82 = getelementptr inbounds [5 x i32], ptr %9, i64 0, i64 0
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Longtail_FileInfos, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = getelementptr inbounds [5 x i32], ptr %10, i64 0, i64 0
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Longtail_FileInfos, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds [5 x i32], ptr %8, i64 0, i64 0
  %91 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 0
  %92 = getelementptr inbounds [5 x i32], ptr %11, i64 0, i64 0
  %93 = call i32 @Longtail_BuildVersionIndex(ptr noundef %76, i64 noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, i32 noundef %85, ptr noundef %86, i32 noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, i32 noundef 0, i32 noundef 32768, ptr noundef %18)
  store i32 %93, ptr %20, align 4, !tbaa !14
  %94 = 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) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef @.str.46, ptr noundef @.str.127, ptr noundef null)
  %95 = icmp eq i32 %94, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br i1 %95, label %96, label %97

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

97:                                               ; preds = %68
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 0, ptr %22, align 8, !tbaa !17
  br label %100

100:                                              ; preds = %99
  %101 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %102 = getelementptr inbounds %struct.jc_test_fixture, ptr %101, i32 0, i32 11
  %103 = load i32, ptr %102, align 8
  %104 = and i32 %103, -16776961
  %105 = or i32 %104, 174592
  store i32 %105, ptr %102, align 8
  %106 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %107 = getelementptr inbounds %struct.jc_test_fixture, ptr %106, i32 0, i32 4
  store ptr @.str.3, ptr %107, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = call i32 @Longtail_WriteVersionIndexToBuffer(ptr noundef %108, ptr noundef %21, ptr noundef %22)
  store i32 %109, ptr %24, align 4, !tbaa !14
  %110 = 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) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef @.str.46, ptr noundef @.str.128, ptr noundef null)
  %111 = icmp eq i32 %110, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br i1 %111, label %112, label %113

112:                                              ; preds = %100
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %15, align 4
  br label %158

113:                                              ; preds = %100
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  br label %116

116:                                              ; preds = %115
  %117 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %118 = getelementptr inbounds %struct.jc_test_fixture, ptr %117, i32 0, i32 11
  %119 = load i32, ptr %118, align 8
  %120 = and i32 %119, -16776961
  %121 = or i32 %120, 175104
  store i32 %121, ptr %118, align 8
  %122 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %123 = getelementptr inbounds %struct.jc_test_fixture, ptr %122, i32 0, i32 4
  store ptr @.str.3, ptr %123, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = load i64, ptr %22, align 8, !tbaa !17
  %126 = call i32 @Longtail_ReadVersionIndexFromBuffer(ptr noundef %124, i64 noundef %125, ptr noundef %25)
  store i32 %126, ptr %27, align 4, !tbaa !14
  %127 = 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) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef @.str.46, ptr noundef @.str.129, ptr noundef null)
  %128 = icmp eq i32 %127, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br i1 %128, label %129, label %130

129:                                              ; preds = %116
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %15, align 4
  br label %157

130:                                              ; preds = %116
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %135 = getelementptr inbounds %struct.jc_test_fixture, ptr %134, i32 0, i32 11
  %136 = load i32, ptr %135, align 8
  %137 = and i32 %136, -16776961
  %138 = or i32 %137, 175360
  store i32 %138, ptr %135, align 8
  %139 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %140 = getelementptr inbounds %struct.jc_test_fixture, ptr %139, i32 0, i32 4
  store ptr @.str.3, ptr %140, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Longtail_VersionIndex, ptr %141, i32 0, i32 3
  %143 = load ptr, ptr %142, align 8, !tbaa !19
  %144 = load ptr, ptr %25, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Longtail_VersionIndex, ptr %144, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  %147 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %143, ptr noundef nonnull align 4 dereferenceable(4) %146, ptr noundef @.str.130, ptr noundef @.str.131)
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %133
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %15, align 4
  br label %157

150:                                              ; preds = %133
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  %153 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %153)
  %154 = load ptr, ptr %21, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %154)
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %155)
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %156)
  store i32 0, ptr %15, align 4
  br label %157

157:                                              ; preds = %152, %149, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %158

158:                                              ; preds = %157, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %159

159:                                              ; preds = %158, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %160

160:                                              ; preds = %159, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 10, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #6
  %161 = load i32, ptr %15, align 4
  switch i32 %161, label %163 [
    i32 0, label %162
    i32 1, label %162
  ]

162:                                              ; preds = %160, %160
  ret void

163:                                              ; preds = %160
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @LongtailPrivate_MakeFileInfos(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @Longtail_GetVersionIndexSize(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare i32 @Longtail_BuildVersionIndex(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare i32 @Longtail_WriteVersionIndexToBuffer(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @Longtail_ReadVersionIndexFromBuffer(ptr noundef, i64 noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!16, !12, i64 4}
!16 = !{!"_ZTS18Longtail_FileInfos", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!13, !13, i64 0}
!18 = !{!16, !12, i64 0}
!19 = !{!20, !6, i64 24}
!20 = !{!"_ZTS21Longtail_VersionIndex", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !6, i64 136, !6, i64 144}


; 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
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_paths = external hidden unnamed_addr constant [5 x ptr], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_permissions = external hidden unnamed_addr constant [5 x i16], align 2
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.chunk_sizes = external hidden unnamed_addr constant [5 x i32], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_counts = external hidden unnamed_addr constant [5 x i32], align 16
@__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_start_index = external hidden unnamed_addr constant [5 x i32], align 16
@.str.126 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [318 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.131 = 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

declare ptr @Longtail_Alloc(ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare void @_Z28jc_test_increment_assertionsv() local_unnamed_addr #1

declare void @_Z21jc_test_set_test_faili(i32 noundef) local_unnamed_addr #1

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #1

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

; 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 @_ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca [5 x ptr], align 16
  %3 = alloca [5 x i64], align 16
  %4 = alloca [5 x i64], align 16
  %5 = alloca [5 x i64], align 16
  %6 = alloca [5 x i16], align 2
  %7 = alloca [5 x i32], align 16
  %8 = alloca [5 x i32], align 16
  %9 = alloca [5 x i32], align 16
  %10 = alloca [5 x i32], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %2, ptr noundef nonnull align 16 dereferenceable(40) @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_paths, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  store i64 50, ptr %3, align 16
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 40, ptr %24, align 8
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  store i64 30, ptr %25, align 16
  %26 = getelementptr inbounds i8, ptr %3, i64 24
  store i64 20, ptr %26, align 8
  %27 = getelementptr inbounds i8, ptr %3, i64 32
  store i64 10, ptr %27, align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  store i64 5, ptr %4, align 16
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 4, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 3, ptr %29, align 16
  %30 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 2, ptr %30, align 8
  %31 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 1, ptr %31, align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  store i64 64003, ptr %5, align 16
  %32 = getelementptr inbounds i8, ptr %5, i64 8
  store i64 64003, ptr %32, align 8
  %33 = getelementptr inbounds i8, ptr %5, i64 16
  store i64 64002, ptr %33, align 16
  %34 = getelementptr inbounds i8, ptr %5, i64 24
  store i64 64001, ptr %34, align 8
  %35 = getelementptr inbounds i8, ptr %5, i64 32
  store i64 64001, ptr %35, align 16
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(10) %6, ptr noundef nonnull align 2 dereferenceable(10) @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_permissions, i64 10, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %7, ptr noundef nonnull align 16 dereferenceable(20) @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.chunk_sizes, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %8, ptr noundef nonnull align 16 dereferenceable(20) @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_counts, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %9, ptr noundef nonnull align 16 dereferenceable(20) @__const._ZN40Longtail_Longtail_VersionIndex__TestCase8TestBodyEv.asset_chunk_start_index, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %10) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %10, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %36 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %37 = getelementptr inbounds i8, ptr %36, i64 96
  %38 = load i32, ptr %37, align 8
  %39 = and i32 %38, -16776961
  %40 = or disjoint i32 %39, 167680
  store i32 %40, ptr %37, align 8
  %41 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %42 = getelementptr inbounds i8, ptr %41, i64 32
  store ptr @.str.3, ptr %42, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store i32 0, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %43 = call i32 @LongtailPrivate_MakeFileInfos(i32 noundef 5, ptr noundef nonnull %2, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %11)
  store i32 %43, ptr %13, align 4, !tbaa !13
  %44 = 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) %12, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.126, ptr noundef null)
  %45 = icmp eq i32 %44, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  br i1 %45, label %46, label %47

46:                                               ; preds = %1
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %118

47:                                               ; preds = %1
  %48 = load ptr, ptr %11, align 8, !tbaa !14
  %49 = getelementptr inbounds i8, ptr %48, i64 4
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = call i64 @Longtail_GetVersionIndexSize(i32 noundef 5, i32 noundef 5, i32 noundef 5, i32 noundef %50)
  %52 = call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %51)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %53 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %54 = getelementptr inbounds i8, ptr %53, i64 96
  %55 = load i32, ptr %54, align 8
  %56 = and i32 %55, -16776961
  %57 = or disjoint i32 %56, 173568
  store i32 %57, ptr %54, align 8
  %58 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  store ptr @.str.3, ptr %59, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %60 = load ptr, ptr %11, align 8, !tbaa !14
  %61 = load i32, ptr %60, align 8, !tbaa !17
  %62 = call i32 @Longtail_BuildVersionIndex(ptr noundef %52, i64 noundef %51, ptr noundef nonnull %60, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef %61, ptr noundef nonnull %9, i32 noundef %61, ptr noundef nonnull %7, ptr noundef nonnull %4, ptr noundef nonnull %10, i32 noundef 0, i32 noundef 32768, ptr noundef nonnull %14)
  store i32 %62, ptr %16, align 4, !tbaa !13
  %63 = 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) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.127, ptr noundef null)
  %64 = icmp eq i32 %63, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  br i1 %64, label %65, label %66

65:                                               ; preds = %47
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %117

66:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  store ptr null, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  store i64 0, ptr %18, align 8, !tbaa !18
  %67 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %68 = getelementptr inbounds i8, ptr %67, i64 96
  %69 = load i32, ptr %68, align 8
  %70 = and i32 %69, -16776961
  %71 = or disjoint i32 %70, 174592
  store i32 %71, ptr %68, align 8
  %72 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %73 = getelementptr inbounds i8, ptr %72, i64 32
  store ptr @.str.3, ptr %73, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  store i32 0, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %74 = load ptr, ptr %14, align 8, !tbaa !14
  %75 = call i32 @Longtail_WriteVersionIndexToBuffer(ptr noundef %74, ptr noundef nonnull %17, ptr noundef nonnull %18)
  store i32 %75, ptr %20, align 4, !tbaa !13
  %76 = 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) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.128, ptr noundef null)
  %77 = icmp eq i32 %76, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  br i1 %77, label %78, label %79

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

79:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %80 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %81 = getelementptr inbounds i8, ptr %80, i64 96
  %82 = load i32, ptr %81, align 8
  %83 = and i32 %82, -16776961
  %84 = or disjoint i32 %83, 175104
  store i32 %84, ptr %81, align 8
  %85 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  store ptr @.str.3, ptr %86, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  store i32 0, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  %87 = load ptr, ptr %17, align 8, !tbaa !14
  %88 = load i64, ptr %18, align 8, !tbaa !18
  %89 = call i32 @Longtail_ReadVersionIndexFromBuffer(ptr noundef %87, i64 noundef %88, ptr noundef nonnull %21)
  store i32 %89, ptr %23, align 4, !tbaa !13
  %90 = 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) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.129, ptr noundef null)
  %91 = icmp eq i32 %90, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  br i1 %91, label %92, label %93

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

93:                                               ; preds = %79
  %94 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %95 = getelementptr inbounds i8, ptr %94, i64 96
  %96 = load i32, ptr %95, align 8
  %97 = and i32 %96, -16776961
  %98 = or disjoint i32 %97, 175360
  store i32 %98, ptr %95, align 8
  %99 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %100 = getelementptr inbounds i8, ptr %99, i64 32
  store ptr @.str.3, ptr %100, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %101 = load ptr, ptr %14, align 8, !tbaa !14
  %102 = getelementptr inbounds i8, ptr %101, i64 24
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = load ptr, ptr %21, align 8, !tbaa !14
  %105 = getelementptr inbounds i8, ptr %104, i64 24
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %103, ptr noundef nonnull align 4 dereferenceable(4) %106, ptr noundef nonnull @.str.130, ptr noundef nonnull @.str.131)
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %110

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

110:                                              ; preds = %93
  %111 = load ptr, ptr %21, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %111)
  %112 = load ptr, ptr %17, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %112)
  %113 = load ptr, ptr %14, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %113)
  %114 = load ptr, ptr %11, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %114)
  br label %115

115:                                              ; preds = %110, %109, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %116

116:                                              ; preds = %115, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %117

117:                                              ; preds = %116, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %118

118:                                              ; preds = %117, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

declare i32 @LongtailPrivate_MakeFileInfos(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @Longtail_GetVersionIndexSize(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @Longtail_BuildVersionIndex(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare i32 @Longtail_WriteVersionIndexToBuffer(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @Longtail_ReadVersionIndexFromBuffer(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!16, !11, i64 4}
!16 = !{!"_ZTS18Longtail_FileInfos", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!17 = !{!16, !11, i64 0}
!18 = !{!12, !12, i64 0}
!19 = !{!20, !7, i64 24}
!20 = !{!"_ZTS21Longtail_VersionIndex", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144}


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