; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN42Longtail_CreateEmptyVersionIndex (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_JobAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_API = type { ptr }
%struct.Longtail_ChunkerAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_HashAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_StorageAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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
@.str.251 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [158 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [7 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

declare void @Longtail_DisposeAPI(ptr noundef) #2

declare ptr @Longtail_CreateBlake3HashAPI() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN42Longtail_CreateEmptyVersionIndex__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 ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %16 = call ptr @Longtail_CreateFSStorageAPI()
  store ptr %16, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %17 = call ptr @Longtail_CreateBlake3HashAPI()
  store ptr %17, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %18 = call ptr @Longtail_CreateHPCDCChunkerAPI()
  store ptr %18, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %19 = call ptr @Longtail_CreateBikeshedJobAPI(i32 noundef 0, i32 noundef 0)
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  br label %20

20:                                               ; preds = %1
  %21 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %22 = getelementptr inbounds %struct.jc_test_fixture, ptr %21, i32 0, i32 11
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, -16776961
  %25 = or i32 %24, 321792
  store i32 %25, ptr %22, align 8
  %26 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %27 = getelementptr inbounds %struct.jc_test_fixture, ptr %26, i32 0, i32 4
  store ptr @.str.3, ptr %27, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i32 @Longtail_GetFilesRecursively2(ptr noundef %28, ptr noundef %29, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef @.str.251, ptr noundef %7)
  store i32 %30, ptr %9, align 4, !tbaa !14
  %31 = 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) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef @.str.46, ptr noundef @.str.252, ptr noundef null)
  %32 = icmp eq i32 %31, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br i1 %32, label %33, label %34

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

34:                                               ; preds = %20
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  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, 322048
  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()
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call noundef i32 @_Z14jc_test_cmp_NEIP18Longtail_FileInfosS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %45, ptr noundef @.str.253, ptr noundef @.str.254)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %49

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

49:                                               ; preds = %37
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = call noundef ptr @_ZL12GetAssetTagsP19Longtail_StorageAPIPK18Longtail_FileInfos(ptr noundef %52, ptr noundef %53)
  store ptr %54, ptr %11, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %51
  %56 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %57 = getelementptr inbounds %struct.jc_test_fixture, ptr %56, i32 0, i32 11
  %58 = load i32, ptr %57, align 8
  %59 = and i32 %58, -16776961
  %60 = or i32 %59, 322560
  store i32 %60, ptr %57, align 8
  %61 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %62 = getelementptr inbounds %struct.jc_test_fixture, ptr %61, i32 0, i32 4
  store ptr @.str.3, ptr %62, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = call noundef i32 @_Z14jc_test_cmp_NEIPjS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %63, ptr noundef @.str.255, ptr noundef @.str.256)
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %55
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %10, align 4
  br label %134

67:                                               ; preds = %55
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  br label %70

70:                                               ; preds = %69
  %71 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %72 = getelementptr inbounds %struct.jc_test_fixture, ptr %71, i32 0, i32 11
  %73 = load i32, ptr %72, align 8
  %74 = and i32 %73, -16776961
  %75 = or i32 %74, 326400
  store i32 %75, ptr %72, align 8
  %76 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %77 = getelementptr inbounds %struct.jc_test_fixture, ptr %76, i32 0, i32 4
  store ptr @.str.3, ptr %77, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = call i32 @Longtail_CreateVersionIndex(ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef @.str.257, ptr noundef %82, ptr noundef %83, i32 noundef 16384, i32 noundef 0, ptr noundef %12)
  store i32 %84, ptr %14, align 4, !tbaa !14
  %85 = 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.258, ptr noundef null)
  %86 = icmp eq i32 %85, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br i1 %86, label %87, label %88

87:                                               ; preds = %70
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %10, align 4
  br label %133

88:                                               ; preds = %70
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %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, 326656
  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 %12, align 8, !tbaa !5
  %100 = call noundef i32 @_Z14jc_test_cmp_NEIP21Longtail_VersionIndexS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %99, ptr noundef @.str.259, ptr noundef @.str.260)
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %103

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

103:                                              ; preds = %91
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %106)
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %107)
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %108)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %114

111:                                              ; preds = %105
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Longtail_JobAPI, ptr %112, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %113)
  br label %114

114:                                              ; preds = %111, %105
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %120

117:                                              ; preds = %114
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %118, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %119)
  br label %120

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %126

123:                                              ; preds = %120
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.Longtail_HashAPI, ptr %124, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %125)
  br label %126

126:                                              ; preds = %123, %120
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %132

129:                                              ; preds = %126
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Longtail_StorageAPI, ptr %130, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %131)
  br label %132

132:                                              ; preds = %129, %126
  store i32 0, ptr %10, align 4
  br label %133

133:                                              ; preds = %132, %102, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %134

134:                                              ; preds = %133, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %135

135:                                              ; preds = %134, %48, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %136 = load i32, ptr %10, align 4
  switch i32 %136, label %138 [
    i32 0, label %137
    i32 1, label %137
  ]

137:                                              ; preds = %135, %135
  ret void

138:                                              ; preds = %135
  unreachable
}

declare ptr @Longtail_CreateFSStorageAPI() #2

declare ptr @Longtail_CreateHPCDCChunkerAPI() #2

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12GetAssetTagsP19Longtail_StorageAPIPK18Longtail_FileInfos(ptr noundef, ptr noundef) #3

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

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

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

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 = { 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}


; 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.251 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.253 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.254 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [158 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [7 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

declare void @Longtail_DisposeAPI(ptr noundef) local_unnamed_addr #2

declare ptr @Longtail_CreateBlake3HashAPI() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN42Longtail_CreateEmptyVersionIndex__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = tail call ptr @Longtail_CreateFSStorageAPI()
  %9 = tail call ptr @Longtail_CreateBlake3HashAPI()
  %10 = tail call ptr @Longtail_CreateHPCDCChunkerAPI()
  %11 = tail call ptr @Longtail_CreateBikeshedJobAPI(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %12 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %13 = getelementptr inbounds i8, ptr %12, i64 96
  %14 = load i32, ptr %13, align 8
  %15 = and i32 %14, -16776961
  %16 = or disjoint i32 %15, 321792
  store i32 %16, ptr %13, align 8
  %17 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %18 = getelementptr inbounds i8, ptr %17, i64 32
  store ptr @.str.3, ptr %18, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store i32 0, ptr %3, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %19 = call i32 @Longtail_GetFilesRecursively2(ptr noundef %8, ptr noundef %11, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull @.str.251, ptr noundef nonnull %2)
  store i32 %19, ptr %4, align 4, !tbaa !13
  %20 = 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) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.252, ptr noundef null)
  %21 = icmp eq i32 %20, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br i1 %21, label %22, label %23

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

23:                                               ; preds = %1
  %24 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %25 = getelementptr inbounds i8, ptr %24, i64 96
  %26 = load i32, ptr %25, align 8
  %27 = and i32 %26, -16776961
  %28 = or disjoint i32 %27, 322048
  store i32 %28, ptr %25, align 8
  %29 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  store ptr @.str.3, ptr %30, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %31 = load ptr, ptr %2, align 8, !tbaa !14
  %32 = call noundef i32 @_Z14jc_test_cmp_NEIP18Longtail_FileInfosS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %31, ptr noundef nonnull @.str.253, ptr noundef nonnull @.str.254)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %35

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

35:                                               ; preds = %23
  %36 = load ptr, ptr %2, align 8, !tbaa !14
  %37 = call noundef ptr @_ZL12GetAssetTagsP19Longtail_StorageAPIPK18Longtail_FileInfos(ptr noundef %8, ptr noundef %36)
  %38 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %39 = getelementptr inbounds i8, ptr %38, i64 96
  %40 = load i32, ptr %39, align 8
  %41 = and i32 %40, -16776961
  %42 = or disjoint i32 %41, 322560
  store i32 %42, ptr %39, align 8
  %43 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  store ptr @.str.3, ptr %44, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %45 = call noundef i32 @_Z14jc_test_cmp_NEIPjS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %37, ptr noundef nonnull @.str.255, ptr noundef nonnull @.str.256)
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %48

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

48:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %49 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %50 = getelementptr inbounds i8, ptr %49, i64 96
  %51 = load i32, ptr %50, align 8
  %52 = and i32 %51, -16776961
  %53 = or disjoint i32 %52, 326400
  store i32 %53, ptr %50, align 8
  %54 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %55 = getelementptr inbounds i8, ptr %54, i64 32
  store ptr @.str.3, ptr %55, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %56 = load ptr, ptr %2, align 8, !tbaa !14
  %57 = call i32 @Longtail_CreateVersionIndex(ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull @.str.257, ptr noundef %56, ptr noundef %37, i32 noundef 16384, i32 noundef 0, ptr noundef nonnull %5)
  store i32 %57, ptr %7, align 4, !tbaa !13
  %58 = 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.258, ptr noundef null)
  %59 = icmp eq i32 %58, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br i1 %59, label %60, label %61

60:                                               ; preds = %48
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %83

61:                                               ; preds = %48
  %62 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %63 = getelementptr inbounds i8, ptr %62, i64 96
  %64 = load i32, ptr %63, align 8
  %65 = and i32 %64, -16776961
  %66 = or disjoint i32 %65, 326656
  store i32 %66, ptr %63, align 8
  %67 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  store ptr @.str.3, ptr %68, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %69 = load ptr, ptr %5, align 8, !tbaa !14
  %70 = call noundef i32 @_Z14jc_test_cmp_NEIP21Longtail_VersionIndexS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %69, ptr noundef nonnull @.str.259, ptr noundef nonnull @.str.260)
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %61
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %83

73:                                               ; preds = %61
  %74 = load ptr, ptr %5, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %74)
  call void @Longtail_Free(ptr noundef %37)
  %75 = load ptr, ptr %2, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %75)
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %77, label %76

76:                                               ; preds = %73
  call void @Longtail_DisposeAPI(ptr noundef nonnull %11)
  br label %77

77:                                               ; preds = %76, %73
  %.not22 = icmp eq ptr %10, null
  br i1 %.not22, label %79, label %78

78:                                               ; preds = %77
  call void @Longtail_DisposeAPI(ptr noundef nonnull %10)
  br label %79

79:                                               ; preds = %78, %77
  %.not23 = icmp eq ptr %9, null
  br i1 %.not23, label %81, label %80

80:                                               ; preds = %79
  call void @Longtail_DisposeAPI(ptr noundef nonnull %9)
  br label %81

81:                                               ; preds = %80, %79
  %.not24 = icmp eq ptr %8, null
  br i1 %.not24, label %83, label %82

82:                                               ; preds = %81
  call void @Longtail_DisposeAPI(ptr noundef nonnull %8)
  br label %83

83:                                               ; preds = %81, %82, %72, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %84

84:                                               ; preds = %47, %83, %34, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

declare ptr @Longtail_CreateFSStorageAPI() local_unnamed_addr #2

declare ptr @Longtail_CreateHPCDCChunkerAPI() local_unnamed_addr #2

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

declare i32 @Longtail_GetFilesRecursively2(ptr noundef, ptr noundef, ptr 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_NEIP18Longtail_FileInfosS1_EiT_T0_PKcS5_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL12GetAssetTagsP19Longtail_StorageAPIPK18Longtail_FileInfos(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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 = { 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}


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