; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN31Longtail_Longtail_LZ4 (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_CompressionAPI = type { %struct.Longtail_API, ptr, ptr, ptr }
%struct.Longtail_API = type { ptr }

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [1947 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

declare void @_Z28jc_test_increment_assertionsv() #1

declare void @_Z21jc_test_set_test_faili(i32 noundef) #1

declare void @Longtail_Free(ptr noundef) #1

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

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

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

19:                                               ; preds = %1
  %20 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %21 = getelementptr inbounds %struct.jc_test_fixture, ptr %20, i32 0, i32 11
  %22 = load i32, ptr %21, align 8
  %23 = and i32 %22, -16776961
  %24 = or i32 %23, 81152
  store i32 %24, ptr %21, align 8
  %25 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %26 = getelementptr inbounds %struct.jc_test_fixture, ptr %25, i32 0, i32 4
  store ptr @.str.3, ptr %26, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = call noundef i32 @_Z14jc_test_cmp_NEIP23Longtail_CompressionAPIS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %27, ptr noundef @.str.41, ptr noundef @.str.42)
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

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

31:                                               ; preds = %19
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %34 = call i32 @Longtail_GetLZ4DefaultQuality()
  store i32 %34, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr @.str.43, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call i64 @strlen(ptr noundef %35) #6
  %37 = add i64 %36, 1
  store i64 %37, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Longtail_CompressionAPI, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !14
  %43 = load i64, ptr %7, align 8, !tbaa !15
  %44 = call noundef i64 %40(ptr noundef %41, i32 noundef %42, i64 noundef %43)
  store i64 %44, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %45 = load i64, ptr %9, align 8, !tbaa !15
  %46 = call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %45)
  store ptr %46, ptr %10, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %33
  %48 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %49 = getelementptr inbounds %struct.jc_test_fixture, ptr %48, i32 0, i32 11
  %50 = load i32, ptr %49, align 8
  %51 = and i32 %50, -16776961
  %52 = or i32 %51, 87808
  store i32 %52, ptr %49, align 8
  %53 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %54 = getelementptr inbounds %struct.jc_test_fixture, ptr %53, i32 0, i32 4
  store ptr @.str.3, ptr %54, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = call noundef i32 @_Z14jc_test_cmp_NEIPcS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %55, ptr noundef @.str.44, ptr noundef @.str.45)
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %59

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

59:                                               ; preds = %47
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %64 = getelementptr inbounds %struct.jc_test_fixture, ptr %63, i32 0, i32 11
  %65 = load i32, ptr %64, align 8
  %66 = and i32 %65, -16776961
  %67 = or i32 %66, 88064
  store i32 %67, ptr %64, align 8
  %68 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %69 = getelementptr inbounds %struct.jc_test_fixture, ptr %68, i32 0, i32 4
  store ptr @.str.3, ptr %69, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Longtail_CompressionAPI, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !14
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i64, ptr %7, align 8, !tbaa !15
  %78 = load i64, ptr %9, align 8, !tbaa !15
  %79 = call noundef i32 %72(ptr noundef %73, i32 noundef %74, ptr noundef %75, ptr noundef %76, i64 noundef %77, i64 noundef %78, ptr noundef %8)
  store i32 %79, ptr %12, align 4, !tbaa !14
  %80 = 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 @.str.46, ptr noundef @.str.47, ptr noundef null)
  %81 = icmp eq i32 %80, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br i1 %81, label %82, label %83

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

83:                                               ; preds = %62
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %86 = load i64, ptr %7, align 8, !tbaa !15
  %87 = call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %86)
  store ptr %87, ptr %13, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %85
  %89 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %90 = getelementptr inbounds %struct.jc_test_fixture, ptr %89, i32 0, i32 11
  %91 = load i32, ptr %90, align 8
  %92 = and i32 %91, -16776961
  %93 = or i32 %92, 88832
  store i32 %93, ptr %90, align 8
  %94 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %95 = getelementptr inbounds %struct.jc_test_fixture, ptr %94, i32 0, i32 4
  store ptr @.str.3, ptr %95, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = call noundef i32 @_Z14jc_test_cmp_NEIPcS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %96, ptr noundef @.str.44, ptr noundef @.str.48)
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %100

99:                                               ; preds = %88
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %161

100:                                              ; preds = %88
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  br label %103

103:                                              ; preds = %102
  %104 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %105 = getelementptr inbounds %struct.jc_test_fixture, ptr %104, i32 0, i32 11
  %106 = load i32, ptr %105, align 8
  %107 = and i32 %106, -16776961
  %108 = or i32 %107, 89344
  store i32 %108, ptr %105, align 8
  %109 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %110 = getelementptr inbounds %struct.jc_test_fixture, ptr %109, i32 0, i32 4
  store ptr @.str.3, ptr %110, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.Longtail_CompressionAPI, ptr %111, i32 0, i32 3
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = load i64, ptr %8, align 8, !tbaa !15
  %118 = load i64, ptr %7, align 8, !tbaa !15
  %119 = call noundef i32 %113(ptr noundef %114, ptr noundef %115, ptr noundef %116, i64 noundef %117, i64 noundef %118, ptr noundef %14)
  store i32 %119, ptr %16, align 4, !tbaa !14
  %120 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef @.str.46, ptr noundef @.str.49, ptr noundef null)
  %121 = icmp eq i32 %120, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br i1 %121, label %122, label %123

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

123:                                              ; preds = %103
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  %127 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %128 = getelementptr inbounds %struct.jc_test_fixture, ptr %127, i32 0, i32 11
  %129 = load i32, ptr %128, align 8
  %130 = and i32 %129, -16776961
  %131 = or i32 %130, 89600
  store i32 %131, ptr %128, align 8
  %132 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %133 = getelementptr inbounds %struct.jc_test_fixture, ptr %132, i32 0, i32 4
  store ptr @.str.3, ptr %133, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %134 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef @.str.50, ptr noundef @.str.51)
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %137

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

137:                                              ; preds = %126
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  %141 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %142 = getelementptr inbounds %struct.jc_test_fixture, ptr %141, i32 0, i32 11
  %143 = load i32, ptr %142, align 8
  %144 = and i32 %143, -16776961
  %145 = or i32 %144, 89856
  store i32 %145, ptr %142, align 8
  %146 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %147 = getelementptr inbounds %struct.jc_test_fixture, ptr %146, i32 0, i32 4
  store ptr @.str.3, ptr %147, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = call noundef i32 @_Z17jc_test_cmp_STREQPKcS0_S0_S0_(ptr noundef %148, ptr noundef %149, ptr noundef @.str.52, ptr noundef @.str.48)
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %153

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

153:                                              ; preds = %140
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %156)
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  call void @Longtail_Free(ptr noundef %157)
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.Longtail_CompressionAPI, ptr %158, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %159)
  store i32 0, ptr %4, align 4
  br label %160

160:                                              ; preds = %155, %152, %136, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %161

161:                                              ; preds = %160, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %162

162:                                              ; preds = %161, %82, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %163

163:                                              ; preds = %162, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %164 = load i32, ptr %4, align 4
  switch i32 %164, label %166 [
    i32 0, label %165
    i32 1, label %165
  ]

165:                                              ; preds = %163, %163
  ret void

166:                                              ; preds = %163
  unreachable
}

declare ptr @Longtail_CreateLZ4CompressionAPI() #1

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

declare i32 @Longtail_GetLZ4DefaultQuality() #1

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

declare void @Longtail_DisposeAPI(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(read) "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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

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

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


; 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.41 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [1947 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [143 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1

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

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

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

declare void @_Z28jc_test_increment_assertionsv() local_unnamed_addr #1

declare void @_Z21jc_test_set_test_faili(i32 noundef) local_unnamed_addr #1

declare void @Longtail_Free(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN31Longtail_Longtail_LZ4__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = tail call ptr @Longtail_CreateLZ4CompressionAPI()
  %10 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %11 = getelementptr inbounds i8, ptr %10, i64 96
  %12 = load i32, ptr %11, align 8
  %13 = and i32 %12, -16776961
  %14 = or disjoint i32 %13, 81152
  store i32 %14, ptr %11, align 8
  %15 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %16 = getelementptr inbounds i8, ptr %15, i64 32
  store ptr @.str.3, ptr %16, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  %17 = tail call noundef i32 @_Z14jc_test_cmp_NEIP23Longtail_CompressionAPIS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %9, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.42)
  %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 %104

20:                                               ; preds = %1
  %21 = tail call i32 @Longtail_GetLZ4DefaultQuality()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %22 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) @.str.43) #6
  %23 = add i64 %22, 1
  store i64 %23, ptr %2, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %9, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = tail call noundef i64 %25(ptr noundef %9, i32 noundef %21, i64 noundef %23)
  %27 = tail call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %26)
  %28 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %29 = getelementptr inbounds i8, ptr %28, i64 96
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, -16776961
  %32 = or disjoint i32 %31, 87808
  store i32 %32, ptr %29, align 8
  %33 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %34 = getelementptr inbounds i8, ptr %33, i64 32
  store ptr @.str.3, ptr %34, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  %35 = tail call noundef i32 @_Z14jc_test_cmp_NEIPcS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %27, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.45)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

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

38:                                               ; preds = %20
  %39 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %40 = getelementptr inbounds i8, ptr %39, i64 96
  %41 = load i32, ptr %40, align 8
  %42 = and i32 %41, -16776961
  %43 = or disjoint i32 %42, 88064
  store i32 %43, ptr %40, align 8
  %44 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %45 = getelementptr inbounds i8, ptr %44, i64 32
  store ptr @.str.3, ptr %45, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %46 = getelementptr inbounds i8, ptr %9, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = call noundef i32 %47(ptr noundef nonnull %9, i32 noundef %21, ptr noundef nonnull @.str.43, ptr noundef %27, i64 noundef %23, i64 noundef %26, ptr noundef nonnull %3)
  store i32 %48, ptr %5, align 4, !tbaa !17
  %49 = 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) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.47, ptr noundef null)
  %50 = icmp eq i32 %49, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br i1 %50, label %51, label %52

51:                                               ; preds = %38
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %103

52:                                               ; preds = %38
  %53 = call ptr @Longtail_Alloc(ptr noundef null, i64 noundef %23)
  %54 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %55 = getelementptr inbounds i8, ptr %54, i64 96
  %56 = load i32, ptr %55, align 8
  %57 = and i32 %56, -16776961
  %58 = or disjoint i32 %57, 88832
  store i32 %58, ptr %55, align 8
  %59 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  store ptr @.str.3, ptr %60, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %61 = call noundef i32 @_Z14jc_test_cmp_NEIPcS0_EiT_T0_PKcS4_(ptr noundef null, ptr noundef %53, ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.48)
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %64

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

64:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %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, 89344
  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 %7) #5
  store i32 0, ptr %7, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %72 = getelementptr inbounds i8, ptr %9, i64 24
  %73 = load ptr, ptr %72, align 8, !tbaa !19
  %74 = load i64, ptr %3, align 8, !tbaa !13
  %75 = call noundef i32 %73(ptr noundef nonnull %9, ptr noundef %27, ptr noundef %53, i64 noundef %74, i64 noundef %23, ptr noundef nonnull %6)
  store i32 %75, ptr %8, align 4, !tbaa !17
  %76 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIiiEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.49, ptr noundef null)
  %77 = icmp eq i32 %76, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br i1 %77, label %78, label %79

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

79:                                               ; preds = %64
  %80 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %81 = getelementptr inbounds i8, ptr %80, i64 96
  %82 = load i32, ptr %81, align 8
  %83 = and i32 %82, -16776961
  %84 = or disjoint i32 %83, 89600
  store i32 %84, ptr %81, align 8
  %85 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  store ptr @.str.3, ptr %86, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %87 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.51)
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %90

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

90:                                               ; preds = %79
  %91 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %92 = getelementptr inbounds i8, ptr %91, i64 96
  %93 = load i32, ptr %92, align 8
  %94 = and i32 %93, -16776961
  %95 = or disjoint i32 %94, 89856
  store i32 %95, ptr %92, align 8
  %96 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %97 = getelementptr inbounds i8, ptr %96, i64 32
  store ptr @.str.3, ptr %97, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %98 = call noundef i32 @_Z17jc_test_cmp_STREQPKcS0_S0_S0_(ptr noundef nonnull @.str.43, ptr noundef %53, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.48)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %101

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

101:                                              ; preds = %90
  call void @Longtail_Free(ptr noundef %53)
  call void @Longtail_Free(ptr noundef %27)
  call void @Longtail_DisposeAPI(ptr noundef nonnull %9)
  br label %102

102:                                              ; preds = %101, %100, %89, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %103

103:                                              ; preds = %63, %102, %51, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %104

104:                                              ; preds = %103, %19
  ret void
}

declare ptr @Longtail_CreateLZ4CompressionAPI() local_unnamed_addr #1

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

declare i32 @Longtail_GetLZ4DefaultQuality() local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

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

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

declare void @Longtail_DisposeAPI(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!12, !12, i64 0}
!14 = !{!15, !7, i64 8}
!15 = !{!"_ZTS23Longtail_CompressionAPI", !16, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!16 = !{!"_ZTS12Longtail_API", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!15, !7, i64 16}
!19 = !{!15, !7, i64 24}


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