; LLVM IR from DanEngelbrecht/longtail :: test/test.ll/ZN35Longtail_ChunkerLargeFile (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_Chunker_ChunkRange = type { ptr, i64, i32 }
%struct.FeederContext = type { ptr, i64, i64 }
%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_ChunkerAPI = 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.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.545 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.546 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.547 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.548 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.549 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.550 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.551 = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEv.expected_chunks = external hidden unnamed_addr constant [20 x %struct.Longtail_Chunker_ChunkRange], align 16
@.str.552 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.553 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.554 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.555 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.556 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.557 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.558 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.559 = external hidden unnamed_addr constant [6 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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIijEEiRKT_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 ptr @Longtail_CreateHPCDCChunkerAPI() #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN35Longtail_ChunkerLargeFile__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 i64, align 8
  %6 = alloca %struct.FeederContext, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [20 x %struct.Longtail_Chunker_ChunkRange], align 16
  %16 = alloca %struct.Longtail_Chunker_ChunkRange, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %25 = call noalias ptr @fopen(ptr noundef @.str.545, ptr noundef @.str.546)
  store ptr %25, ptr %3, align 8, !tbaa !5
  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, 860160
  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()
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call noundef i32 @_Z14jc_test_cmp_NEIP8_IO_FILES1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %34, ptr noundef @.str.547, ptr noundef @.str.548)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

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

38:                                               ; preds = %26
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call i32 @fseek(ptr noundef %41, i64 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = call i64 @ftell(ptr noundef %43)
  store i64 %44, ptr %5, align 8, !tbaa !14
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call i32 @fseek(ptr noundef %45, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  %47 = getelementptr inbounds %struct.FeederContext, ptr %6, i32 0, i32 0
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %48, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds %struct.FeederContext, ptr %6, i32 0, i32 1
  %50 = load i64, ptr %5, align 8, !tbaa !14
  store i64 %50, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.FeederContext, ptr %6, i32 0, i32 2
  store i64 0, ptr %51, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %52 = call ptr @Longtail_CreateHPCDCChunkerAPI()
  store ptr %52, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 65536, ptr %8, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 16384, ptr %9, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 262144, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  br label %53

53:                                               ; preds = %40
  %54 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %55 = getelementptr inbounds %struct.jc_test_fixture, ptr %54, i32 0, i32 11
  %56 = load i32, ptr %55, align 8
  %57 = and i32 %56, -16776961
  %58 = or i32 %57, 873728
  store i32 %58, ptr %55, align 8
  %59 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %60 = getelementptr inbounds %struct.jc_test_fixture, ptr %59, i32 0, i32 4
  store ptr @.str.3, ptr %60, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = call noundef i32 %63(ptr noundef %64, i32 noundef 16384, i32 noundef 65536, i32 noundef 262144, ptr noundef %11)
  store i32 %65, ptr %13, align 4, !tbaa !19
  %66 = 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.549, ptr noundef null)
  %67 = icmp eq i32 %66, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br i1 %67, label %68, label %69

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

69:                                               ; preds = %53
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %74 = getelementptr inbounds %struct.jc_test_fixture, ptr %73, i32 0, i32 11
  %75 = load i32, ptr %74, align 8
  %76 = and i32 %75, -16776961
  %77 = or i32 %76, 873984
  store i32 %77, ptr %74, align 8
  %78 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %79 = getelementptr inbounds %struct.jc_test_fixture, ptr %78, i32 0, i32 4
  store ptr @.str.3, ptr %79, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = call noundef i32 @_Z14jc_test_cmp_NEIP27Longtail_ChunkerAPI_ChunkerS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %80, ptr noundef @.str.550, ptr noundef @.str.551)
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %72
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %221

84:                                               ; preds = %72
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 20, ptr %14, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 480, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const._ZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEv.expected_chunks, i64 480, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !19
  br label %87

87:                                               ; preds = %150, %86
  %88 = load i32, ptr %17, align 4, !tbaa !19
  %89 = icmp ult i32 %88, 20
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 8, ptr %4, align 4
  br label %153

91:                                               ; preds = %87
  br label %92

92:                                               ; preds = %91
  %93 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %94 = getelementptr inbounds %struct.jc_test_fixture, ptr %93, i32 0, i32 11
  %95 = load i32, ptr %94, align 8
  %96 = and i32 %95, -16776961
  %97 = or i32 %96, 881664
  store i32 %97, ptr %94, align 8
  %98 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %99 = getelementptr inbounds %struct.jc_test_fixture, ptr %98, i32 0, i32 4
  store ptr @.str.3, ptr %99, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %100, i32 0, i32 3
  %102 = load ptr, ptr %101, align 8, !tbaa !23
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = call noundef i32 %102(ptr noundef %103, ptr noundef %104, ptr noundef @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj, ptr noundef %6, ptr noundef %16)
  store i32 %105, ptr %19, align 4, !tbaa !19
  %106 = 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.552, ptr noundef null)
  %107 = icmp eq i32 %106, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br i1 %107, label %108, label %109

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

109:                                              ; preds = %92
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  %113 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %114 = getelementptr inbounds %struct.jc_test_fixture, ptr %113, i32 0, i32 11
  %115 = load i32, ptr %114, align 8
  %116 = and i32 %115, -16776961
  %117 = or i32 %116, 881920
  store i32 %117, ptr %114, align 8
  %118 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %119 = getelementptr inbounds %struct.jc_test_fixture, ptr %118, i32 0, i32 4
  store ptr @.str.3, ptr %119, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %120 = load i32, ptr %17, align 4, !tbaa !19
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds [20 x %struct.Longtail_Chunker_ChunkRange], ptr %15, i64 0, i64 %121
  %123 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %16, i32 0, i32 1
  %125 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef @.str.553, ptr noundef @.str.554)
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %128

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

128:                                              ; preds = %112
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  %132 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %133 = getelementptr inbounds %struct.jc_test_fixture, ptr %132, i32 0, i32 11
  %134 = load i32, ptr %133, align 8
  %135 = and i32 %134, -16776961
  %136 = or i32 %135, 882176
  store i32 %136, ptr %133, align 8
  %137 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %138 = getelementptr inbounds %struct.jc_test_fixture, ptr %137, i32 0, i32 4
  store ptr @.str.3, ptr %138, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  %139 = load i32, ptr %17, align 4, !tbaa !19
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds [20 x %struct.Longtail_Chunker_ChunkRange], ptr %15, i64 0, i64 %140
  %142 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %141, i32 0, i32 2
  %143 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %16, i32 0, i32 2
  %144 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %142, ptr noundef nonnull align 4 dereferenceable(4) %143, ptr noundef @.str.555, ptr noundef @.str.556)
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %147

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

147:                                              ; preds = %131
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %17, align 4, !tbaa !19
  %152 = add i32 %151, 1
  store i32 %152, ptr %17, align 4, !tbaa !19
  br label %87, !llvm.loop !24

153:                                              ; preds = %146, %127, %108, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  %154 = load i32, ptr %4, align 4
  switch i32 %154, label %220 [
    i32 8, label %155
  ]

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  %157 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %158 = getelementptr inbounds %struct.jc_test_fixture, ptr %157, i32 0, i32 11
  %159 = load i32, ptr %158, align 8
  %160 = and i32 %159, -16776961
  %161 = or i32 %160, 882688
  store i32 %161, ptr %158, align 8
  %162 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %163 = getelementptr inbounds %struct.jc_test_fixture, ptr %162, i32 0, i32 4
  store ptr @.str.3, ptr %163, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 29, ptr %20, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %164, i32 0, i32 3
  %166 = load ptr, ptr %165, align 8, !tbaa !23
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = call noundef i32 %166(ptr noundef %167, ptr noundef %168, ptr noundef @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj, ptr noundef %6, ptr noundef %16)
  store i32 %169, ptr %21, align 4, !tbaa !19
  %170 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIiiEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef @.str.557, ptr noundef @.str.552)
  %171 = icmp eq i32 %170, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br i1 %171, label %172, label %173

172:                                              ; preds = %156
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %220

173:                                              ; preds = %156
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  %177 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %178 = getelementptr inbounds %struct.jc_test_fixture, ptr %177, i32 0, i32 11
  %179 = load i32, ptr %178, align 8
  %180 = and i32 %179, -16776961
  %181 = or i32 %180, 882944
  store i32 %181, ptr %178, align 8
  %182 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %183 = getelementptr inbounds %struct.jc_test_fixture, ptr %182, i32 0, i32 4
  store ptr @.str.3, ptr %183, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %16, i32 0, i32 0
  %185 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIPKhS3_EEiRKT_RKT0_PKcSB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef @.str.558, ptr noundef @.str.559)
  %186 = icmp eq i32 %185, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br i1 %186, label %187, label %188

187:                                              ; preds = %176
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %220

188:                                              ; preds = %176
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  %192 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %193 = getelementptr inbounds %struct.jc_test_fixture, ptr %192, i32 0, i32 11
  %194 = load i32, ptr %193, align 8
  %195 = and i32 %194, -16776961
  %196 = or i32 %195, 883200
  store i32 %196, ptr %193, align 8
  %197 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %198 = getelementptr inbounds %struct.jc_test_fixture, ptr %197, i32 0, i32 4
  store ptr @.str.3, ptr %198, align 8, !tbaa !9
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !19
  %199 = getelementptr inbounds %struct.Longtail_Chunker_ChunkRange, ptr %16, i32 0, i32 2
  %200 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIijEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %199, ptr noundef @.str.46, ptr noundef @.str.556, ptr noundef null)
  %201 = icmp eq i32 %200, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br i1 %201, label %202, label %203

202:                                              ; preds = %191
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  store i32 1, ptr %4, align 4
  br label %220

203:                                              ; preds = %191
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %206, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !26
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = call noundef i32 %208(ptr noundef %209, ptr noundef %210)
  store ptr null, ptr %11, align 8, !tbaa !5
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = call i32 @fclose(ptr noundef %212)
  store ptr null, ptr %3, align 8, !tbaa !5
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = icmp ne ptr %214, null
  br i1 %215, label %216, label %219

216:                                              ; preds = %205
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.Longtail_ChunkerAPI, ptr %217, i32 0, i32 0
  call void @Longtail_DisposeAPI(ptr noundef %218)
  br label %219

219:                                              ; preds = %216, %205
  store i32 0, ptr %4, align 4
  br label %220

220:                                              ; preds = %219, %202, %187, %172, %153
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 480, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %221

221:                                              ; preds = %220, %83, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  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 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %222

222:                                              ; preds = %221, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %223 = load i32, ptr %4, align 4
  switch i32 %223, label %225 [
    i32 0, label %224
    i32 1, label %224
  ]

224:                                              ; preds = %222, %222
  ret void

225:                                              ; preds = %222
  unreachable
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @ftell(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3 align 2

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

declare i32 @fclose(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!13, !13, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvE13FeederContext", !6, i64 0, !13, i64 8, !13, i64 16}
!17 = !{!16, !13, i64 8}
!18 = !{!16, !13, i64 16}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTS19Longtail_ChunkerAPI", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!22 = !{!"_ZTS12Longtail_API", !6, i64 0}
!23 = !{!21, !6, i64 24}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!21, !6, i64 32}


; 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_Chunker_ChunkRange = type { ptr, i64, i32 }
%struct.FeederContext = type { ptr, i64, i64 }

@.str.3 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.545 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.546 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.547 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.548 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.549 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.550 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.551 = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEv.expected_chunks = external hidden unnamed_addr constant [20 x %struct.Longtail_Chunker_ChunkRange], align 16
@.str.552 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.553 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.554 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.555 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.556 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.557 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.558 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.559 = external hidden unnamed_addr constant [6 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

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

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

; Function Attrs: mustprogress 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 #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIijEEiRKT_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 ptr @Longtail_CreateHPCDCChunkerAPI() local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0) unnamed_addr #3 align 2 {
  %2 = alloca %struct.FeederContext, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [20 x %struct.Longtail_Chunker_ChunkRange], align 16
  %7 = alloca %struct.Longtail_Chunker_ChunkRange, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.545, ptr noundef nonnull @.str.546)
  %15 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %16 = getelementptr inbounds i8, ptr %15, i64 96
  %17 = load i32, ptr %16, align 8
  %18 = and i32 %17, -16776961
  %19 = or disjoint i32 %18, 860160
  store i32 %19, ptr %16, align 8
  %20 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %21 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr @.str.3, ptr %21, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  %22 = tail call noundef i32 @_Z14jc_test_cmp_NEIP8_IO_FILES1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %14, ptr noundef nonnull @.str.547, ptr noundef nonnull @.str.548)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

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

25:                                               ; preds = %1
  %26 = tail call i32 @fseek(ptr noundef %14, i64 noundef 0, i32 noundef 2)
  %27 = tail call i64 @ftell(ptr noundef %14)
  %28 = tail call i32 @fseek(ptr noundef %14, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  store ptr %14, ptr %2, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %27, ptr %29, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %2, i64 16
  store i64 0, ptr %30, align 8, !tbaa !16
  %31 = tail call ptr @Longtail_CreateHPCDCChunkerAPI()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %32 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %33 = getelementptr inbounds i8, ptr %32, i64 96
  %34 = load i32, ptr %33, align 8
  %35 = and i32 %34, -16776961
  %36 = or disjoint i32 %35, 873728
  store i32 %36, ptr %33, align 8
  %37 = tail call noundef ptr @_ZL19jc_test_get_fixturev()
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  store ptr @.str.3, ptr %38, align 8, !tbaa !5
  tail call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 0, ptr %4, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %39 = getelementptr inbounds i8, ptr %31, i64 16
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = call noundef i32 %40(ptr noundef %31, i32 noundef 16384, i32 noundef 65536, i32 noundef 262144, ptr noundef nonnull %3)
  store i32 %41, ptr %5, align 4, !tbaa !17
  %42 = 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.549, ptr noundef null)
  %43 = icmp eq i32 %42, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br i1 %43, label %44, label %45

44:                                               ; preds = %25
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %143

45:                                               ; preds = %25
  %46 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %47 = getelementptr inbounds i8, ptr %46, i64 96
  %48 = load i32, ptr %47, align 8
  %49 = and i32 %48, -16776961
  %50 = or disjoint i32 %49, 873984
  store i32 %50, ptr %47, align 8
  %51 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  store ptr @.str.3, ptr %52, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %53 = load ptr, ptr %3, align 8, !tbaa !21
  %54 = call noundef i32 @_Z14jc_test_cmp_NEIP27Longtail_ChunkerAPI_ChunkerS1_EiT_T0_PKcS5_(ptr noundef null, ptr noundef %53, ptr noundef nonnull @.str.550, ptr noundef nonnull @.str.551)
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %45
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %143

57:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(480) %6, ptr noundef nonnull align 16 dereferenceable(480) @__const._ZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEv.expected_chunks, i64 480, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %58 = getelementptr inbounds i8, ptr %31, i64 24
  %59 = getelementptr inbounds i8, ptr %7, i64 8
  %60 = getelementptr inbounds i8, ptr %7, i64 16
  br label %62

61:                                               ; preds = %89
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, 20
  br i1 %exitcond, label %.critedge, label %62, !llvm.loop !22

62:                                               ; preds = %57, %61
  %indvars.iv = phi i64 [ 0, %57 ], [ %indvars.iv.next, %61 ]
  %63 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %64 = getelementptr inbounds i8, ptr %63, i64 96
  %65 = load i32, ptr %64, align 8
  %66 = and i32 %65, -16776961
  %67 = or disjoint i32 %66, 881664
  store i32 %67, ptr %64, align 8
  %68 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %69 = getelementptr inbounds i8, ptr %68, i64 32
  store ptr @.str.3, ptr %69, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %70 = load ptr, ptr %58, align 8, !tbaa !24
  %71 = load ptr, ptr %3, align 8, !tbaa !21
  %72 = call noundef i32 %70(ptr noundef nonnull %31, ptr noundef %71, ptr noundef nonnull @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj, ptr noundef nonnull %2, ptr noundef nonnull %7)
  store i32 %72, ptr %9, align 4, !tbaa !17
  %73 = 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 nonnull @.str.46, ptr noundef nonnull @.str.552, ptr noundef null)
  %74 = icmp eq i32 %73, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br i1 %74, label %75, label %76

75:                                               ; preds = %62
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %142

76:                                               ; preds = %62
  %77 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %78 = getelementptr inbounds i8, ptr %77, i64 96
  %79 = load i32, ptr %78, align 8
  %80 = and i32 %79, -16776961
  %81 = or disjoint i32 %80, 881920
  store i32 %81, ptr %78, align 8
  %82 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %83 = getelementptr inbounds i8, ptr %82, i64 32
  store ptr @.str.3, ptr %83, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %84 = getelementptr inbounds [20 x %struct.Longtail_Chunker_ChunkRange], ptr %6, i64 0, i64 %indvars.iv
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  %86 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareImmEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @.str.553, ptr noundef nonnull @.str.554)
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %76
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %142

89:                                               ; preds = %76
  %90 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %91 = getelementptr inbounds i8, ptr %90, i64 96
  %92 = load i32, ptr %91, align 8
  %93 = and i32 %92, -16776961
  %94 = or disjoint i32 %93, 882176
  store i32 %94, ptr %91, align 8
  %95 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %96 = getelementptr inbounds i8, ptr %95, i64 32
  store ptr @.str.3, ptr %96, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  %97 = getelementptr inbounds i8, ptr %84, i64 16
  %98 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIjjEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull @.str.555, ptr noundef nonnull @.str.556)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %61

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

.critedge:                                        ; preds = %61
  %101 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %102 = getelementptr inbounds i8, ptr %101, i64 96
  %103 = load i32, ptr %102, align 8
  %104 = and i32 %103, -16776961
  %105 = or disjoint i32 %104, 882688
  store i32 %105, ptr %102, align 8
  %106 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %107 = getelementptr inbounds i8, ptr %106, i64 32
  store ptr @.str.3, ptr %107, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 29, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %108 = load ptr, ptr %58, align 8, !tbaa !24
  %109 = load ptr, ptr %3, align 8, !tbaa !21
  %110 = call noundef i32 %108(ptr noundef nonnull %31, ptr noundef %109, ptr noundef nonnull @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj, ptr noundef nonnull %2, ptr noundef nonnull %7)
  store i32 %110, ptr %11, align 4, !tbaa !17
  %111 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIiiEEiRKT_RKT0_PKcS9_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull @.str.557, ptr noundef nonnull @.str.552)
  %112 = icmp eq i32 %111, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br i1 %112, label %113, label %114

113:                                              ; preds = %.critedge
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %142

114:                                              ; preds = %.critedge
  %115 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %116 = getelementptr inbounds i8, ptr %115, i64 96
  %117 = load i32, ptr %116, align 8
  %118 = and i32 %117, -16776961
  %119 = or disjoint i32 %118, 882944
  store i32 %119, ptr %116, align 8
  %120 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %121 = getelementptr inbounds i8, ptr %120, i64 32
  store ptr @.str.3, ptr %121, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store ptr null, ptr %12, align 8, !tbaa !21
  %122 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb0EE7compareIPKhS3_EEiRKT_RKT0_PKcSB_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.558, ptr noundef nonnull @.str.559)
  %123 = icmp eq i32 %122, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br i1 %123, label %124, label %125

124:                                              ; preds = %114
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %142

125:                                              ; preds = %114
  %126 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %127 = getelementptr inbounds i8, ptr %126, i64 96
  %128 = load i32, ptr %127, align 8
  %129 = and i32 %128, -16776961
  %130 = or disjoint i32 %129, 883200
  store i32 %130, ptr %127, align 8
  %131 = call noundef ptr @_ZL19jc_test_get_fixturev()
  %132 = getelementptr inbounds i8, ptr %131, i64 32
  store ptr @.str.3, ptr %132, align 8, !tbaa !5
  call void @_Z28jc_test_increment_assertionsv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 0, ptr %13, align 4, !tbaa !17
  %133 = call noundef i32 @_ZN21jc_test_cmp_eq_helperILb1EE7compareIijEEiRKT_RKT0_PKcS9_PN23jc_test_enable_argumentIXntsr18jc_test_is_pointerIS5_EE5valueEE4typeE(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.556, ptr noundef null)
  %134 = icmp eq i32 %133, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  br i1 %134, label %135, label %136

135:                                              ; preds = %125
  call void @_Z21jc_test_set_test_faili(i32 noundef 1)
  br label %142

136:                                              ; preds = %125
  %137 = getelementptr inbounds i8, ptr %31, i64 32
  %138 = load ptr, ptr %137, align 8, !tbaa !25
  %139 = load ptr, ptr %3, align 8, !tbaa !21
  %140 = call noundef i32 %138(ptr noundef nonnull %31, ptr noundef %139)
  store ptr null, ptr %3, align 8, !tbaa !21
  %141 = call i32 @fclose(ptr noundef %14)
  call void @Longtail_DisposeAPI(ptr noundef nonnull %31)
  br label %142

142:                                              ; preds = %75, %88, %100, %136, %135, %124, %113
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %6) #6
  br label %143

143:                                              ; preds = %142, %56, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  br label %144

144:                                              ; preds = %143, %24
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZZN35Longtail_ChunkerLargeFile__TestCase8TestBodyEvEN13FeederContext10FeederFuncEPvP27Longtail_ChunkerAPI_ChunkerjPcPj(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nofree nounwind "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 #6 = { nounwind }

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

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


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