; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN52Longtail_EmptyFolderGetRequiredChunkHashes (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.Longtail_VersionDiff = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.457 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.458 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.459 = external hidden unnamed_addr constant [21 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
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

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

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

declare ptr @Longtail_CreateInMemStorageAPI() #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN52Longtail_EmptyFolderGetRequiredChunkHashes__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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.Longtail_VersionDiff, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %22 = call ptr @Longtail_CreateInMemStorageAPI()
  store ptr %22, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %23 = call ptr @Longtail_CreateBlake3HashAPI()
  store ptr %23, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %24 = call ptr @Longtail_CreateHPCDCChunkerAPI()
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %25 = call ptr @Longtail_CreateBikeshedJobAPI(i32 noundef 0, i32 noundef 0)
  store ptr %25, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  br label %26

26:                                               ; preds = %1
  %27 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %28 = getelementptr inbounds %struct.jc_test_fixture, ptr %27, i32 0, i32 11
  %29 = load i32, ptr %28, align 8
  %30 = and i32 %29, -16776961
  %31 = or i32 %30, 679680
  store i32 %31, ptr %28, align 8
  %32 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %33 = getelementptr inbounds %struct.jc_test_fixture, ptr %32, i32 0, i32 4
  store ptr @.str.3, ptr %33, 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
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call i32 @Longtail_GetFilesRecursively2(ptr noundef %34, ptr noundef %35, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef @.str.8, ptr noundef %7)
  store i32 %36, ptr %9, align 4, !tbaa !14
  %37 = 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.455, ptr noundef null)
  %38 = icmp eq i32 %37, 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 %38, label %39, label %40

39:                                               ; preds = %26
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %10, align 4
  br label %132

40:                                               ; preds = %26
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  br label %43

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

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

60:                                               ; preds = %43
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #4
  %63 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 0
  store ptr %14, ptr %63, align 8, !tbaa !15
  %64 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 1
  store ptr %14, ptr %64, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 2
  store ptr %14, ptr %65, align 8, !tbaa !18
  %66 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 3
  store ptr %14, ptr %66, align 8, !tbaa !19
  %67 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 4
  store ptr %14, ptr %67, align 8, !tbaa !20
  %68 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 5
  store ptr %14, ptr %68, align 8, !tbaa !21
  %69 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 6
  store ptr %14, ptr %69, align 8, !tbaa !22
  %70 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 7
  store ptr %14, ptr %70, align 8, !tbaa !23
  %71 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 8
  store ptr %14, ptr %71, align 8, !tbaa !24
  %72 = getelementptr inbounds %struct.Longtail_VersionDiff, ptr %15, i32 0, i32 9
  store ptr %14, ptr %72, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 4711, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store ptr null, ptr %17, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %62
  %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, 689408
  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 %18) #4
  store i32 0, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = call i32 @Longtail_GetRequiredChunkHashes(ptr noundef %81, ptr noundef %15, ptr noundef %16, ptr noundef %82)
  store i32 %83, ptr %19, 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) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef @.str.46, ptr noundef @.str.457, ptr noundef null)
  %85 = icmp eq i32 %84, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br i1 %85, label %86, label %87

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

87:                                               ; preds = %73
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %92 = getelementptr inbounds %struct.jc_test_fixture, ptr %91, i32 0, i32 11
  %93 = load i32, ptr %92, align 8
  %94 = and i32 %93, -16776961
  %95 = or i32 %94, 689664
  store i32 %95, ptr %92, align 8
  %96 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %97 = getelementptr inbounds %struct.jc_test_fixture, ptr %96, i32 0, i32 4
  store ptr @.str.3, ptr %97, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !14
  %98 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef @.str.458, ptr noundef @.str.459)
  %99 = icmp eq i32 %98, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br i1 %99, label %100, label %101

100:                                              ; preds = %90
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %10, align 4
  br label %130

101:                                              ; preds = %90
  br label %102

102:                                              ; preds = %101
  br label %103

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

108:                                              ; preds = %103
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.Longtail_JobAPI, ptr %109, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %110)
  br label %111

111:                                              ; preds = %108, %103
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %117

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

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

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

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

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

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

130:                                              ; preds = %129, %100, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %131

131:                                              ; preds = %130, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %132

132:                                              ; preds = %131, %39
  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
  %133 = load i32, ptr %10, align 4
  switch i32 %133, label %135 [
    i32 0, label %134
    i32 1, label %134
  ]

134:                                              ; preds = %132, %132
  ret void

135:                                              ; preds = %132
  unreachable
}

declare i32 @Longtail_GetRequiredChunkHashes(ptr noundef, ptr noundef, ptr 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 = { 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, !6, i64 0}
!16 = !{!"_ZTS20Longtail_VersionDiff", !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}
!17 = !{!16, !6, i64 8}
!18 = !{!16, !6, i64 16}
!19 = !{!16, !6, i64 24}
!20 = !{!16, !6, i64 32}
!21 = !{!16, !6, i64 40}
!22 = !{!16, !6, i64 48}
!23 = !{!16, !6, i64 56}
!24 = !{!16, !6, i64 64}
!25 = !{!16, !6, i64 72}


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

%struct.Longtail_VersionDiff = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.455 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.456 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.457 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.458 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.459 = external hidden unnamed_addr constant [21 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
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

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

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

declare ptr @Longtail_CreateInMemStorageAPI() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN52Longtail_EmptyFolderGetRequiredChunkHashes__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 = alloca i32, align 4
  %9 = alloca %struct.Longtail_VersionDiff, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = tail call ptr @Longtail_CreateInMemStorageAPI()
  %15 = tail call ptr @Longtail_CreateBlake3HashAPI()
  %16 = tail call ptr @Longtail_CreateHPCDCChunkerAPI()
  %17 = tail call ptr @Longtail_CreateBikeshedJobAPI(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %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, 679680
  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()
  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
  %25 = call i32 @Longtail_GetFilesRecursively2(ptr noundef %14, ptr noundef %17, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull @.str.8, ptr noundef nonnull %2)
  store i32 %25, ptr %4, align 4, !tbaa !13
  %26 = 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.455, ptr noundef null)
  %27 = icmp eq i32 %26, 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 %27, label %28, label %29

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

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %30 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %31 = getelementptr inbounds i8, ptr %30, i64 96
  %32 = load i32, ptr %31, align 8
  %33 = and i32 %32, -16776961
  %34 = or disjoint i32 %33, 683520
  store i32 %34, ptr %31, align 8
  %35 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %36 = getelementptr inbounds i8, ptr %35, i64 32
  store ptr @.str.3, ptr %36, 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
  %37 = load ptr, ptr %2, align 8, !tbaa !14
  %38 = call i32 @Longtail_CreateVersionIndex(ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull @.str.8, ptr noundef %37, ptr noundef null, i32 noundef 64, i32 noundef 0, 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.456, ptr noundef null)
  %40 = icmp eq i32 %39, 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 %40, label %41, label %42

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

42:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 0, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  store ptr %8, ptr %9, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %8, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr %8, ptr %44, align 8, !tbaa !18
  %45 = getelementptr inbounds i8, ptr %9, i64 24
  store ptr %8, ptr %45, align 8, !tbaa !19
  %46 = getelementptr inbounds i8, ptr %9, i64 32
  store ptr %8, ptr %46, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %9, i64 40
  store ptr %8, ptr %47, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %9, i64 48
  store ptr %8, ptr %48, align 8, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %9, i64 56
  store ptr %8, ptr %49, align 8, !tbaa !23
  %50 = getelementptr inbounds i8, ptr %9, i64 64
  store ptr %8, ptr %50, align 8, !tbaa !24
  %51 = getelementptr inbounds i8, ptr %9, i64 72
  store ptr %8, ptr %51, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 4711, ptr %10, align 4, !tbaa !13
  %52 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %53 = getelementptr inbounds i8, ptr %52, i64 96
  %54 = load i32, ptr %53, align 8
  %55 = and i32 %54, -16776961
  %56 = or disjoint i32 %55, 689408
  store i32 %56, ptr %53, align 8
  %57 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %58 = getelementptr inbounds i8, ptr %57, i64 32
  store ptr @.str.3, ptr %58, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  store i32 0, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %59 = load ptr, ptr %5, align 8, !tbaa !14
  %60 = call i32 @Longtail_GetRequiredChunkHashes(ptr noundef %59, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null)
  store i32 %60, ptr %12, align 4, !tbaa !13
  %61 = 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) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.457, ptr noundef null)
  %62 = icmp eq i32 %61, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  br i1 %62, label %63, label %64

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

64:                                               ; preds = %42
  %65 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %66 = getelementptr inbounds i8, ptr %65, i64 96
  %67 = load i32, ptr %66, align 8
  %68 = and i32 %67, -16776961
  %69 = or disjoint i32 %68, 689664
  store i32 %69, ptr %66, align 8
  %70 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %71 = getelementptr inbounds i8, ptr %70, i64 32
  store ptr @.str.3, ptr %71, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 0, ptr %13, align 4, !tbaa !13
  %72 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull @.str.458, ptr noundef nonnull @.str.459)
  %73 = icmp eq i32 %72, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  br i1 %73, label %74, label %75

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

75:                                               ; preds = %64
  %76 = load ptr, ptr %5, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %76)
  %77 = load ptr, ptr %2, align 8, !tbaa !14
  call void @Longtail_Free(ptr noundef %77)
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %79, label %78

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

79:                                               ; preds = %78, %75
  %.not19 = icmp eq ptr %16, null
  br i1 %.not19, label %81, label %80

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

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

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

83:                                               ; preds = %82, %81
  %.not21 = icmp eq ptr %14, null
  br i1 %.not21, label %85, label %84

84:                                               ; preds = %83
  call void @Longtail_DisposeAPI(ptr noundef nonnull %14)
  br label %85

85:                                               ; preds = %83, %84, %74, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %86

86:                                               ; preds = %85, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %87

87:                                               ; preds = %86, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

declare i32 @Longtail_GetRequiredChunkHashes(ptr noundef, ptr noundef, ptr 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 = { 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, !7, i64 0}
!16 = !{!"_ZTS20Longtail_VersionDiff", !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}
!17 = !{!16, !7, i64 8}
!18 = !{!16, !7, i64 16}
!19 = !{!16, !7, i64 24}
!20 = !{!16, !7, i64 32}
!21 = !{!16, !7, i64 40}
!22 = !{!16, !7, i64 48}
!23 = !{!16, !7, i64 56}
!24 = !{!16, !7, i64 64}
!25 = !{!16, !7, i64 72}


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