; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/lzma465/CPP/7zip/Compress/LZMA_Alone (LzmaBenchCon)

; 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.CTempValues = type { ptr }

@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare noundef zeroext i1 @_Z15CrcInternalTestv() #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z11CrcBenchConP8_IO_FILEjjj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.CTempValues, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %23 = call noundef zeroext i1 @_Z15CrcInternalTestv()
  br i1 %23, label %25, label %24

24:                                               ; preds = %4
  store i32 1, ptr %5, align 4
  br label %176

25:                                               ; preds = %4
  store i32 1, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  store i32 16777216, ptr %9, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %28, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %30 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN11CTempValuesC2Ej(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %48, %29
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %51

38:                                               ; preds = %33
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = add i32 %40, 1
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.13, i32 noundef %41) #5
  %43 = getelementptr inbounds %struct.CTempValues, ptr %10, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i64, ptr %44, i64 %46
  store i64 0, ptr %47, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %38
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = add i32 %49, 1
  store i32 %50, ptr %11, align 4, !tbaa !9
  br label %33, !llvm.loop !15

51:                                               ; preds = %37
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %135, %51
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 5, ptr %14, align 4
  br label %138

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 10, ptr %15, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %129, %59
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 32
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 8, ptr %14, align 4
  br label %132

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = shl i32 1, %65
  store i32 %66, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = icmp ugt i32 %67, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  store i32 8, ptr %14, align 4
  br label %126

71:                                               ; preds = %64
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.14, i32 noundef %73) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %110, %71
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 11, ptr %14, align 4
  br label %117

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = add i32 %81, 1
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = invoke noundef i32 @_Z8CrcBenchjjRy(i32 noundef %82, i32 noundef %83, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %85 unwind label %90

85:                                               ; preds = %80
  store i32 %84, ptr %19, align 4, !tbaa !9
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %94

88:                                               ; preds = %85
  %89 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %89, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %95

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %20, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %119

94:                                               ; preds = %85
  store i32 0, ptr %14, align 4
  br label %95

95:                                               ; preds = %94, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %96 = load i32, ptr %14, align 4
  switch i32 %96, label %117 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = load i64, ptr %17, align 8, !tbaa !13
  %100 = lshr i64 %99, 20
  invoke void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef %98, i64 noundef %100, i32 noundef 5)
          to label %101 unwind label %113

101:                                              ; preds = %97
  %102 = load i64, ptr %17, align 8, !tbaa !13
  %103 = getelementptr inbounds %struct.CTempValues, ptr %10, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds i64, ptr %104, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !13
  %109 = add i64 %108, %102
  store i64 %109, ptr %107, align 8, !tbaa !13
  br label %110

110:                                              ; preds = %101
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = add i32 %111, 1
  store i32 %112, ptr %18, align 4, !tbaa !9
  br label %75, !llvm.loop !17

113:                                              ; preds = %97
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %20, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %21, align 4
  br label %119

117:                                              ; preds = %95, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %118 = load i32, ptr %14, align 4
  switch i32 %118, label %125 [
    i32 11, label %120
  ]

119:                                              ; preds = %113, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %175

120:                                              ; preds = %117
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.8) #5
  %123 = load i64, ptr %12, align 8, !tbaa !13
  %124 = add i64 %123, 1
  store i64 %124, ptr %12, align 8, !tbaa !13
  store i32 0, ptr %14, align 4
  br label %125

125:                                              ; preds = %120, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %126

126:                                              ; preds = %125, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %127 = load i32, ptr %14, align 4
  switch i32 %127, label %132 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %15, align 4, !tbaa !9
  br label %60, !llvm.loop !18

132:                                              ; preds = %126, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %133 = load i32, ptr %14, align 4
  switch i32 %133, label %138 [
    i32 8, label %134
  ]

134:                                              ; preds = %132
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = add i32 %136, 1
  store i32 %137, ptr %13, align 4, !tbaa !9
  br label %54, !llvm.loop !19

138:                                              ; preds = %132, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %139 = load i32, ptr %14, align 4
  switch i32 %139, label %174 [
    i32 5, label %140
  ]

140:                                              ; preds = %138
  %141 = load i64, ptr %12, align 8, !tbaa !13
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %143, label %173

143:                                              ; preds = %140
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %163, %143
  %147 = load i32, ptr %22, align 4, !tbaa !9
  %148 = load i32, ptr %8, align 4, !tbaa !9
  %149 = icmp ult i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %170

151:                                              ; preds = %146
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.CTempValues, ptr %10, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !11
  %155 = load i32, ptr %22, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds i64, ptr %154, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !13
  %159 = load i64, ptr %12, align 8, !tbaa !13
  %160 = udiv i64 %158, %159
  %161 = lshr i64 %160, 20
  invoke void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef %152, i64 noundef %161, i32 noundef 5)
          to label %162 unwind label %166

162:                                              ; preds = %151
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %22, align 4, !tbaa !9
  %165 = add i32 %164, 1
  store i32 %165, ptr %22, align 4, !tbaa !9
  br label %146, !llvm.loop !20

166:                                              ; preds = %151
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %20, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %175

170:                                              ; preds = %150
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str.8) #5
  br label %173

173:                                              ; preds = %170, %140
  store i32 0, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %174

174:                                              ; preds = %173, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %176

175:                                              ; preds = %166, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %178

176:                                              ; preds = %174, %24
  %177 = load i32, ptr %5, align 4
  ret i32 %177

178:                                              ; preds = %175
  %179 = load ptr, ptr %20, align 8
  %180 = load i32, ptr %21, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

declare noundef i32 @_Z8CrcBenchjjRy(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nounwind 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS11CTempValues", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


; 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.CTempValues = type { ptr }

@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.15 = 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare noundef zeroext i1 @_Z15CrcInternalTestv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z11CrcBenchConP8_IO_FILEjjj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.CTempValues, align 8
  %6 = alloca i64, align 8
  %7 = tail call noundef zeroext i1 @_Z15CrcInternalTestv()
  br i1 %7, label %.critedge, label %50

.critedge:                                        ; preds = %4
  %8 = icmp eq i32 %3, -1
  %spec.store.select = select i1 %8, i32 16777216, i32 %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @_ZN11CTempValuesC2Ej(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 1)
  %9 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.12) #5
  %10 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.13, i32 noundef 1) #5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %11, align 8, !tbaa !10
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.6) #5
  %.not75118.not = icmp eq i32 %1, 0
  br i1 %.not75118.not, label %.thread103.thread, label %.preheader

.preheader:                                       ; preds = %.critedge, %.thread84
  %.064120 = phi i32 [ %38, %.thread84 ], [ 0, %.critedge ]
  %.065119 = phi i64 [ %.166.lcssa, %.thread84 ], [ 0, %.critedge ]
  %13 = add i64 %.065119, 22
  %14 = trunc i64 %.065119 to i32
  %15 = add i32 %14, 22
  br label %16

16:                                               ; preds = %.preheader, %27
  %.057117 = phi i32 [ 10, %.preheader ], [ %34, %27 ]
  %.166116 = phi i64 [ %.065119, %.preheader ], [ %33, %27 ]
  %17 = shl nuw i32 1, %.057117
  %18 = icmp ugt i32 %17, %spec.store.select
  br i1 %18, label %.thread84, label %.critedge108

.critedge108:                                     ; preds = %16
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.14, i32 noundef %.057117) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %20 = invoke noundef i32 @_Z8CrcBenchjjRy(i32 noundef 1, i32 noundef %17, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %21 unwind label %22

21:                                               ; preds = %.critedge108
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %24, label %39

22:                                               ; preds = %.critedge108
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %37

24:                                               ; preds = %21
  %25 = load i64, ptr %6, align 8, !tbaa !10
  %26 = lshr i64 %25, 20
  invoke void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef %0, i64 noundef %26, i32 noundef 5)
          to label %27 unwind label %35

27:                                               ; preds = %24
  %28 = load i64, ptr %6, align 8, !tbaa !10
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load i64, ptr %29, align 8, !tbaa !10
  %31 = add i64 %30, %28
  store i64 %31, ptr %29, align 8, !tbaa !10
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.8) #5
  %33 = add i64 %.166116, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %34 = add nuw nsw i32 %.057117, 1
  %lftr.wideiv = trunc i64 %33 to i32
  %exitcond.not = icmp eq i32 %15, %lftr.wideiv
  br i1 %exitcond.not, label %.thread84, label %16, !llvm.loop !12

35:                                               ; preds = %24
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %37

37:                                               ; preds = %35, %22
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %49

.thread84:                                        ; preds = %16, %27
  %.166.lcssa = phi i64 [ %.166116, %16 ], [ %13, %27 ]
  %38 = add nuw i32 %.064120, 1
  %exitcond122.not = icmp eq i32 %38, %1
  br i1 %exitcond122.not, label %.thread103, label %.preheader, !llvm.loop !14

39:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %.thread103.thread

.thread103:                                       ; preds = %.thread84
  %.not76 = icmp eq i64 %.166.lcssa, 0
  br i1 %.not76, label %.thread103.thread, label %.critedge80

.critedge80:                                      ; preds = %.thread103
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.15) #5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load i64, ptr %41, align 8, !tbaa !10
  %43 = udiv i64 %42, %.166.lcssa
  %44 = lshr i64 %43, 20
  invoke void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef %0, i64 noundef %44, i32 noundef 5)
          to label %45 unwind label %47

45:                                               ; preds = %.critedge80
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.8) #5
  br label %.thread103.thread

47:                                               ; preds = %.critedge80
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %49

.thread103.thread:                                ; preds = %.critedge, %39, %.thread103, %45
  %.8 = phi i32 [ %20, %39 ], [ 0, %45 ], [ 0, %.thread103 ], [ 0, %.critedge ]
  call void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %50

49:                                               ; preds = %47, %37
  %.pn77 = phi { ptr, i32 } [ %48, %47 ], [ %.pn, %37 ]
  call void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn77

50:                                               ; preds = %4, %.thread103.thread
  %.9 = phi i32 [ %.8, %.thread103.thread ], [ 1, %4 ]
  ret i32 %.9
}

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

declare noundef i32 @_Z8CrcBenchjjRy(i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11PrintNumberP8_IO_FILEyi(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11CTempValuesD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nounwind 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 #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, !7, i64 0}
!6 = !{!"_ZTS11CTempValues", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass