; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN33Longtail_CopyBlockIndex (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_StoredBlock = type { ptr, ptr, ptr, i32 }
%struct.jc_test_fixture = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.jc_test_stats, i32, i32, i32, i32 }
%struct.jc_test_stats = type { i32, i32, i32, i32, i64 }
%struct.Longtail_BlockIndex = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_HashAPI = type { %struct.Longtail_API, ptr, ptr, ptr, ptr, ptr }
%struct.Longtail_API = type { ptr }

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.788 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.796 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.797 = external hidden unnamed_addr constant [22 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_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) #3 align 2

declare void @Longtail_DisposeAPI(ptr noundef) #2

declare ptr @Longtail_CreateBlake3HashAPI() #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_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
declare hidden noundef ptr @_ZL21TestCreateStoredBlockP16Longtail_HashAPIhjj(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN33Longtail_CopyBlockIndex__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 i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %9 = call ptr @Longtail_CreateBlake3HashAPI()
  store ptr %9, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call noundef ptr @_ZL21TestCreateStoredBlockP16Longtail_HashAPIhjj(ptr noundef %10, i8 noundef zeroext 77, i32 noundef 33, i32 noundef 413)
  store ptr %11, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %12, i32 0, i32 1
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call ptr @Longtail_CopyBlockIndex(ptr noundef %14)
  store ptr %15, ptr %5, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %1
  %17 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %18 = getelementptr inbounds %struct.jc_test_fixture, ptr %17, i32 0, i32 11
  %19 = load i32, ptr %18, align 8
  %20 = and i32 %19, -16776961
  %21 = or i32 %20, 1758464
  store i32 %21, ptr %18, align 8
  %22 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %23 = getelementptr inbounds %struct.jc_test_fixture, ptr %22, i32 0, i32 4
  store ptr @.str.3, ptr %23, align 8, !tbaa !12
  call void @_Z28jc_test_increment_assertionsv()
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.788, ptr noundef @.str.789)
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %16
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %6, align 4
  br label %153

35:                                               ; preds = %16
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %40 = getelementptr inbounds %struct.jc_test_fixture, ptr %39, i32 0, i32 11
  %41 = load i32, ptr %40, align 8
  %42 = and i32 %41, -16776961
  %43 = or i32 %42, 1758720
  store i32 %43, ptr %40, align 8
  %44 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %45 = getelementptr inbounds %struct.jc_test_fixture, ptr %44, i32 0, i32 4
  store ptr @.str.3, ptr %45, align 8, !tbaa !12
  call void @_Z28jc_test_increment_assertionsv()
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef @.str.790, ptr noundef @.str.791)
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %57

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

57:                                               ; preds = %38
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %62 = getelementptr inbounds %struct.jc_test_fixture, ptr %61, i32 0, i32 11
  %63 = load i32, ptr %62, align 8
  %64 = and i32 %63, -16776961
  %65 = or i32 %64, 1758976
  store i32 %65, ptr %62, align 8
  %66 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %67 = getelementptr inbounds %struct.jc_test_fixture, ptr %66, i32 0, i32 4
  store ptr @.str.3, ptr %67, align 8, !tbaa !12
  call void @_Z28jc_test_increment_assertionsv()
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  %76 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef @.str.792, ptr noundef @.str.793)
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %60
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %6, align 4
  br label %153

79:                                               ; preds = %60
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %84 = getelementptr inbounds %struct.jc_test_fixture, ptr %83, i32 0, i32 11
  %85 = load i32, ptr %84, align 8
  %86 = and i32 %85, -16776961
  %87 = or i32 %86, 1759232
  store i32 %87, ptr %84, align 8
  %88 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %89 = getelementptr inbounds %struct.jc_test_fixture, ptr %88, i32 0, i32 4
  store ptr @.str.3, ptr %89, align 8, !tbaa !12
  call void @_Z28jc_test_increment_assertionsv()
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !20
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  %98 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %94, ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef @.str.794, ptr noundef @.str.795)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %82
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %6, align 4
  br label %153

101:                                              ; preds = %82
  br label %102

102:                                              ; preds = %101
  br label %103

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !21
  br label %104

104:                                              ; preds = %143, %103
  %105 = load i32, ptr %7, align 4, !tbaa !21
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = load i32, ptr %110, align 4, !tbaa !21
  %112 = icmp ult i32 %105, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %104
  store i32 10, ptr %6, align 4
  br label %146

114:                                              ; preds = %104
  br label %115

115:                                              ; preds = %114
  %116 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %117 = getelementptr inbounds %struct.jc_test_fixture, ptr %116, i32 0, i32 11
  %118 = load i32, ptr %117, align 8
  %119 = and i32 %118, -16776961
  %120 = or i32 %119, 1760000
  store i32 %120, ptr %117, align 8
  %121 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %122 = getelementptr inbounds %struct.jc_test_fixture, ptr %121, i32 0, i32 4
  store ptr @.str.3, ptr %122, align 8, !tbaa !12
  call void @_Z28jc_test_increment_assertionsv()
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.Longtail_StoredBlock, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %125, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = load i32, ptr %7, align 4, !tbaa !21
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i64, ptr %127, i64 %129
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.Longtail_BlockIndex, ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !22
  %134 = load i32, ptr %7, align 4, !tbaa !21
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i64, ptr %133, i64 %135
  %137 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.796, ptr noundef @.str.797)
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %115
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %6, align 4
  br label %146

140:                                              ; preds = %115
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %7, align 4, !tbaa !21
  %145 = add i32 %144, 1
  store i32 %145, ptr %7, align 4, !tbaa !21
  br label %104, !llvm.loop !23

146:                                              ; preds = %139, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %147 = load i32, ptr %6, align 4
  switch i32 %147, label %153 [
    i32 10, label %148
  ]

148:                                              ; preds = %146
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %149)
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %150)
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.Longtail_HashAPI, ptr %151, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %152)
  store i32 0, ptr %6, align 4
  br label %153

153:                                              ; preds = %148, %146, %100, %78, %56, %34
  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
  %154 = load i32, ptr %6, align 4
  switch i32 %154, label %156 [
    i32 0, label %155
    i32 1, label %155
  ]

155:                                              ; preds = %153, %153
  ret void

156:                                              ; preds = %153
  unreachable
}

declare ptr @Longtail_CopyBlockIndex(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 8}
!10 = !{!"_ZTS20Longtail_StoredBlock", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 32}
!13 = !{!"_ZTS15jc_test_fixture", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, 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}
!14 = !{!"_ZTS13jc_test_stats", !11, i64 0, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 12, !15, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTS19Longtail_BlockIndex", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!17, !6, i64 16}
!19 = !{!17, !6, i64 8}
!20 = !{!17, !6, i64 24}
!21 = !{!11, !11, i64 0}
!22 = !{!17, !6, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.788 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.789 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.790 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.792 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.795 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.796 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.797 = external hidden unnamed_addr constant [22 x i8], align 1

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

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 uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

declare void @Longtail_DisposeAPI(ptr noundef) local_unnamed_addr #1

declare ptr @Longtail_CreateBlake3HashAPI() local_unnamed_addr #1

; 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 #2 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL21TestCreateStoredBlockP16Longtail_HashAPIhjj(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN33Longtail_CopyBlockIndex__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #2 align 2 {
  %2 = tail call ptr @Longtail_CreateBlake3HashAPI()
  %3 = tail call noundef ptr @_ZL21TestCreateStoredBlockP16Longtail_HashAPIhjj(ptr noundef %2, i8 noundef zeroext 77, i32 noundef 33, i32 noundef 413)
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = tail call ptr @Longtail_CopyBlockIndex(ptr noundef %5)
  %7 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %8 = getelementptr inbounds i8, ptr %7, i64 96
  %9 = load i32, ptr %8, align 8
  %10 = and i32 %9, -16776961
  %11 = or disjoint i32 %10, 1758464
  store i32 %11, ptr %8, align 8
  %12 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  store ptr @.str.3, ptr %13, align 8, !tbaa !11
  tail call void @_Z28jc_test_increment_assertionsv()
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = load ptr, ptr %6, align 8, !tbaa !15
  %17 = tail call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.788, ptr noundef nonnull @.str.789)
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %20

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

20:                                               ; preds = %1
  %21 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %22 = getelementptr inbounds i8, ptr %21, i64 96
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, -16776961
  %25 = or disjoint i32 %24, 1758720
  store i32 %25, ptr %22, align 8
  %26 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %27 = getelementptr inbounds i8, ptr %26, i64 32
  store ptr @.str.3, ptr %27, align 8, !tbaa !11
  tail call void @_Z28jc_test_increment_assertionsv()
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %6, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = tail call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull @.str.790, ptr noundef nonnull @.str.791)
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %20
  tail call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %96

36:                                               ; preds = %20
  %37 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %38 = getelementptr inbounds i8, ptr %37, i64 96
  %39 = load i32, ptr %38, align 8
  %40 = and i32 %39, -16776961
  %41 = or disjoint i32 %40, 1758976
  store i32 %41, ptr %38, align 8
  %42 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  store ptr @.str.3, ptr %43, align 8, !tbaa !11
  tail call void @_Z28jc_test_increment_assertionsv()
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %6, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = tail call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull @.str.792, ptr noundef nonnull @.str.793)
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %36
  tail call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %96

52:                                               ; preds = %36
  %53 = tail 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, 1759232
  store i32 %57, ptr %54, align 8
  %58 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  store ptr @.str.3, ptr %59, align 8, !tbaa !11
  tail call void @_Z28jc_test_increment_assertionsv()
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 24
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %6, i64 24
  %64 = load ptr, ptr %63, align 8, !tbaa !19
  %65 = tail call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull @.str.794, ptr noundef nonnull @.str.795)
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %72, label %.preheader

.preheader:                                       ; preds = %52
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = load i32, ptr %69, align 4, !tbaa !20
  %.not22.not = icmp eq i32 %70, 0
  br i1 %.not22.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %71 = getelementptr inbounds i8, ptr %6, i64 32
  br label %79

72:                                               ; preds = %52
  tail call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %96

73:                                               ; preds = %79
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load ptr, ptr %75, align 8, !tbaa !17
  %77 = load i32, ptr %76, align 4, !tbaa !20
  %78 = zext i32 %77 to i64
  %.not = icmp ult i64 %indvars.iv.next, %78
  br i1 %.not, label %79, label %.critedge, !llvm.loop !21

79:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %80 = tail 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, 1760000
  store i32 %84, ptr %81, align 8
  %85 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  store ptr @.str.3, ptr %86, align 8, !tbaa !11
  tail call void @_Z28jc_test_increment_assertionsv()
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 32
  %89 = load ptr, ptr %88, align 8, !tbaa !23
  %90 = getelementptr inbounds i64, ptr %89, i64 %indvars.iv
  %91 = load ptr, ptr %71, align 8, !tbaa !23
  %92 = getelementptr inbounds i64, ptr %91, i64 %indvars.iv
  %93 = tail call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.796, ptr noundef nonnull @.str.797)
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %73

95:                                               ; preds = %79
  tail call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %96

.critedge:                                        ; preds = %73, %.preheader
  tail call void @Longtail_Free(ptr noundef nonnull %6)
  tail call void @Longtail_Free(ptr noundef nonnull %3)
  tail call void @Longtail_DisposeAPI(ptr noundef %2)
  br label %96

96:                                               ; preds = %95, %.critedge, %72, %51, %35, %19
  ret void
}

declare ptr @Longtail_CopyBlockIndex(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { 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" }

!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 8}
!6 = !{!"_ZTS20Longtail_StoredBlock", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !7, i64 32}
!12 = !{!"_ZTS15jc_test_fixture", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !13, i64 64, !10, i64 88, !10, i64 91, !10, i64 91, !10, i64 91, !10, i64 91, !10, i64 92, !10, i64 96, !10, i64 97, !10, i64 99, !10, i64 100}
!13 = !{!"_ZTS13jc_test_stats", !10, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 12, !14, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTS19Longtail_BlockIndex", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!17 = !{!16, !7, i64 16}
!18 = !{!16, !7, i64 8}
!19 = !{!16, !7, i64 24}
!20 = !{!10, !10, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!16, !7, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass