; LLVM IR from travisdowns/uarch-bench :: page-info (fprint_ratios_noheader)

; 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.flag = type { i32, ptr, i8 }
%struct.page_info_array = type { i64, ptr }
%struct.page_info = type { i64, i8, i8, i8, i8, i8, i8, i64 }

@kpageflag_defs = external dso_local constant [26 x %struct.flag], align 16
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @fprint_ratios_noheader(ptr noundef %0, i64 %1, ptr %2) #3 {
  %4 = alloca %struct.page_info_array, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [25 x i64], align 16
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = getelementptr inbounds { i64, ptr }, ptr %4, i32 0, i32 0
  store i64 %1, ptr %20, align 8
  %21 = getelementptr inbounds { i64, ptr }, ptr %4, i32 0, i32 1
  store ptr %2, ptr %21, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 200, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %107, %3
  %23 = load i64, ptr %13, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = icmp ult i64 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %110

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %29 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = load i64, ptr %13, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.page_info, ptr %30, i64 %31
  store ptr %32, ptr %15, align 8, !tbaa !5
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.page_info, ptr %33, i32 0, i32 1
  %35 = load i8, ptr %34, align 8, !tbaa !14, !range !17, !noundef !18
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i64
  %38 = load i64, ptr %6, align 8, !tbaa !9
  %39 = add i64 %38, %37
  store i64 %39, ptr %6, align 8, !tbaa !9
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.page_info, ptr %40, i32 0, i32 2
  %42 = load i8, ptr %41, align 1, !tbaa !19, !range !17, !noundef !18
  %43 = trunc i8 %42 to i1
  %44 = zext i1 %43 to i64
  %45 = load i64, ptr %7, align 8, !tbaa !9
  %46 = add i64 %45, %44
  store i64 %46, ptr %7, align 8, !tbaa !9
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.page_info, ptr %47, i32 0, i32 3
  %49 = load i8, ptr %48, align 2, !tbaa !20, !range !17, !noundef !18
  %50 = trunc i8 %49 to i1
  %51 = zext i1 %50 to i64
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = add i64 %52, %51
  store i64 %53, ptr %8, align 8, !tbaa !9
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.page_info, ptr %54, i32 0, i32 4
  %56 = load i8, ptr %55, align 1, !tbaa !21, !range !17, !noundef !18
  %57 = trunc i8 %56 to i1
  %58 = zext i1 %57 to i64
  %59 = load i64, ptr %9, align 8, !tbaa !9
  %60 = add i64 %59, %58
  store i64 %60, ptr %9, align 8, !tbaa !9
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.page_info, ptr %61, i32 0, i32 5
  %63 = load i8, ptr %62, align 4, !tbaa !22, !range !17, !noundef !18
  %64 = trunc i8 %63 to i1
  %65 = zext i1 %64 to i64
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = add i64 %66, %65
  store i64 %67, ptr %10, align 8, !tbaa !9
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.page_info, ptr %68, i32 0, i32 6
  %70 = load i8, ptr %69, align 1, !tbaa !23, !range !17, !noundef !18
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %106

72:                                               ; preds = %28
  %73 = load i64, ptr %11, align 8, !tbaa !9
  %74 = add i64 %73, 1
  store i64 %74, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store ptr @kpageflag_defs, ptr %17, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %102, %72
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.flag, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !26
  %79 = icmp ne i32 %78, -1
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %105

81:                                               ; preds = %75
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.page_info, ptr %82, i32 0, i32 7
  %84 = load i64, ptr %83, align 8, !tbaa !28
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.flag, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !26
  %88 = zext i32 %87 to i64
  %89 = shl i64 1, %88
  %90 = and i64 %84, %89
  %91 = icmp ne i64 %90, 0
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = zext i1 %93 to i32
  %95 = sext i32 %94 to i64
  %96 = load i32, ptr %16, align 4, !tbaa !24
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %16, align 4, !tbaa !24
  %98 = sext i32 %96 to i64
  %99 = getelementptr inbounds [25 x i64], ptr %12, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = add i64 %100, %95
  store i64 %101, ptr %99, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %81
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.flag, ptr %103, i32 1
  store ptr %104, ptr %17, align 8, !tbaa !5
  br label %75, !llvm.loop !29

105:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %106

106:                                              ; preds = %105, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %107

107:                                              ; preds = %106
  %108 = load i64, ptr %13, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %13, align 8, !tbaa !9
  br label %22, !llvm.loop !31

110:                                              ; preds = %27
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, ptr noundef @.str.32)
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i64, ptr %6, align 8, !tbaa !9
  %114 = uitofp i64 %113 to double
  %115 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = uitofp i64 %116 to double
  %118 = fdiv double %114, %117
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.33, double noundef %118) #5
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i64, ptr %7, align 8, !tbaa !9
  %122 = uitofp i64 %121 to double
  %123 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %124 = load i64, ptr %123, align 8, !tbaa !11
  %125 = uitofp i64 %124 to double
  %126 = fdiv double %122, %125
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.33, double noundef %126) #5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load i64, ptr %8, align 8, !tbaa !9
  %130 = uitofp i64 %129 to double
  %131 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !11
  %133 = uitofp i64 %132 to double
  %134 = fdiv double %130, %133
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.33, double noundef %134) #5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i64, ptr %9, align 8, !tbaa !9
  %138 = uitofp i64 %137 to double
  %139 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = uitofp i64 %140 to double
  %142 = fdiv double %138, %141
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.33, double noundef %142) #5
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load i64, ptr %10, align 8, !tbaa !9
  %146 = uitofp i64 %145 to double
  %147 = getelementptr inbounds %struct.page_info_array, ptr %4, i32 0, i32 0
  %148 = load i64, ptr %147, align 8, !tbaa !11
  %149 = uitofp i64 %148 to double
  %150 = fdiv double %146, %149
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.33, double noundef %150) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !24
  %152 = load i64, ptr %11, align 8, !tbaa !9
  %153 = icmp ugt i64 %152, 0
  br i1 %153, label %154, label %184

154:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr @kpageflag_defs, ptr %19, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %180, %154
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.flag, ptr %156, i32 0, i32 0
  %158 = load i32, ptr %157, align 8, !tbaa !26
  %159 = icmp ne i32 %158, -1
  br i1 %159, label %161, label %160

160:                                              ; preds = %155
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %183

161:                                              ; preds = %155
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.flag, ptr %162, i32 0, i32 2
  %164 = load i8, ptr %163, align 8, !tbaa !32, !range !17, !noundef !18
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %177

166:                                              ; preds = %161
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load i32, ptr %18, align 4, !tbaa !24
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [25 x i64], ptr %12, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = uitofp i64 %171 to double
  %173 = load i64, ptr %11, align 8, !tbaa !9
  %174 = uitofp i64 %173 to double
  %175 = fdiv double %172, %174
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.34, double noundef %175) #5
  br label %177

177:                                              ; preds = %166, %161
  %178 = load i32, ptr %18, align 4, !tbaa !24
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %18, align 4, !tbaa !24
  br label %180

180:                                              ; preds = %177
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.flag, ptr %181, i32 1
  store ptr %182, ptr %19, align 8, !tbaa !5
  br label %155, !llvm.loop !33

183:                                              ; preds = %160
  br label %184

184:                                              ; preds = %183, %110
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str.28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #5
  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 8, ptr %6) #5
  ret void
}

declare i32 @printf(ptr noundef, ...) #4

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !16, i64 8}
!15 = !{!"", !10, i64 0, !16, i64 8, !16, i64 9, !16, i64 10, !16, i64 11, !16, i64 12, !16, i64 13, !10, i64 16}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!15, !16, i64 9}
!20 = !{!15, !16, i64 10}
!21 = !{!15, !16, i64 11}
!22 = !{!15, !16, i64 12}
!23 = !{!15, !16, i64 13}
!24 = !{!25, !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!27, !25, i64 0}
!27 = !{!"", !25, i64 0, !6, i64 8, !16, i64 16}
!28 = !{!15, !10, i64 16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!27, !16, i64 16}
!33 = distinct !{!33, !30}


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

@kpageflag_defs = external dso_local local_unnamed_addr constant [26 x %struct.flag], align 16
@.str.28 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

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

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

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @fprint_ratios_noheader(ptr nocapture noundef %0, i64 %1, ptr nocapture readonly %2) local_unnamed_addr #3 {
  %4 = alloca [25 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %4, i8 0, i64 200, i1 false)
  %.not83 = icmp eq i64 %1, 0
  %.pre = load i32, ptr @kpageflag_defs, align 16
  %.fr = freeze i32 %.pre
  br i1 %.not83, label %._crit_edge, label %.lr.ph68

.lr.ph68:                                         ; preds = %3
  %.not5658 = icmp eq i32 %.fr, -1
  br i1 %.not5658, label %.lr.ph68.split.us, label %.lr.ph68.split

.lr.ph68.split.us:                                ; preds = %.lr.ph68, %.lr.ph68.split.us
  %.04667.us = phi i64 [ %9, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.04766.us = phi i64 [ %29, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.04865.us = phi i64 [ %spec.select, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.04964.us = phi i64 [ %25, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.05063.us = phi i64 [ %21, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.05162.us = phi i64 [ %17, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %.05261.us = phi i64 [ %13, %.lr.ph68.split.us ], [ 0, %.lr.ph68 ]
  %5 = getelementptr inbounds %struct.page_info, ptr %2, i64 %.04766.us
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load i8, ptr %6, align 8, !tbaa !5, !range !11, !noundef !12
  %8 = zext nneg i8 %7 to i64
  %9 = add i64 %.04667.us, %8
  %10 = getelementptr inbounds i8, ptr %5, i64 9
  %11 = load i8, ptr %10, align 1, !tbaa !13, !range !11, !noundef !12
  %12 = zext nneg i8 %11 to i64
  %13 = add i64 %.05261.us, %12
  %14 = getelementptr inbounds i8, ptr %5, i64 10
  %15 = load i8, ptr %14, align 2, !tbaa !14, !range !11, !noundef !12
  %16 = zext nneg i8 %15 to i64
  %17 = add i64 %.05162.us, %16
  %18 = getelementptr inbounds i8, ptr %5, i64 11
  %19 = load i8, ptr %18, align 1, !tbaa !15, !range !11, !noundef !12
  %20 = zext nneg i8 %19 to i64
  %21 = add i64 %.05063.us, %20
  %22 = getelementptr inbounds i8, ptr %5, i64 12
  %23 = load i8, ptr %22, align 4, !tbaa !16, !range !11, !noundef !12
  %24 = zext nneg i8 %23 to i64
  %25 = add i64 %.04964.us, %24
  %26 = getelementptr inbounds i8, ptr %5, i64 13
  %27 = load i8, ptr %26, align 1, !tbaa !17, !range !11, !noundef !12
  %28 = zext nneg i8 %27 to i64
  %spec.select = add i64 %.04865.us, %28
  %29 = add nuw i64 %.04766.us, 1
  %exitcond95.not = icmp eq i64 %29, %1
  br i1 %exitcond95.not, label %._crit_edge, label %.lr.ph68.split.us, !llvm.loop !18

._crit_edge:                                      ; preds = %..loopexit57_crit_edge, %.lr.ph68.split.us, %3
  %.052.lcssa = phi i64 [ 0, %3 ], [ %13, %.lr.ph68.split.us ], [ %56, %..loopexit57_crit_edge ]
  %.051.lcssa = phi i64 [ 0, %3 ], [ %17, %.lr.ph68.split.us ], [ %60, %..loopexit57_crit_edge ]
  %.050.lcssa = phi i64 [ 0, %3 ], [ %21, %.lr.ph68.split.us ], [ %64, %..loopexit57_crit_edge ]
  %.049.lcssa = phi i64 [ 0, %3 ], [ %25, %.lr.ph68.split.us ], [ %68, %..loopexit57_crit_edge ]
  %.048.lcssa = phi i64 [ 0, %3 ], [ %spec.select, %.lr.ph68.split.us ], [ %.1, %..loopexit57_crit_edge ]
  %.046.lcssa = phi i64 [ 0, %3 ], [ %9, %.lr.ph68.split.us ], [ %52, %..loopexit57_crit_edge ]
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, ptr noundef nonnull @.str.32)
  %31 = uitofp i64 %.046.lcssa to double
  %32 = uitofp i64 %1 to double
  %33 = fdiv double %31, %32
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.33, double noundef %33) #4
  %35 = uitofp i64 %.052.lcssa to double
  %36 = fdiv double %35, %32
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.33, double noundef %36) #4
  %38 = uitofp i64 %.051.lcssa to double
  %39 = fdiv double %38, %32
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.33, double noundef %39) #4
  %41 = uitofp i64 %.050.lcssa to double
  %42 = fdiv double %41, %32
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.33, double noundef %42) #4
  %44 = uitofp i64 %.049.lcssa to double
  %45 = fdiv double %44, %32
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.33, double noundef %45) #4
  %.not = icmp eq i64 %.048.lcssa, 0
  %.not5579 = icmp eq i32 %.fr, -1
  %or.cond = or i1 %.not, %.not5579
  br i1 %or.cond, label %.loopexit, label %.lr.ph82

.lr.ph82:                                         ; preds = %._crit_edge
  %47 = uitofp i64 %.048.lcssa to double
  br label %86

.lr.ph68.split:                                   ; preds = %.lr.ph68, %..loopexit57_crit_edge
  %.04667 = phi i64 [ %52, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.04766 = phi i64 [ %85, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.04865 = phi i64 [ %.1, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.04964 = phi i64 [ %68, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.05063 = phi i64 [ %64, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.05162 = phi i64 [ %60, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %.05261 = phi i64 [ %56, %..loopexit57_crit_edge ], [ 0, %.lr.ph68 ]
  %48 = getelementptr inbounds %struct.page_info, ptr %2, i64 %.04766
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i8, ptr %49, align 8, !tbaa !5, !range !11, !noundef !12
  %51 = zext nneg i8 %50 to i64
  %52 = add i64 %.04667, %51
  %53 = getelementptr inbounds i8, ptr %48, i64 9
  %54 = load i8, ptr %53, align 1, !tbaa !13, !range !11, !noundef !12
  %55 = zext nneg i8 %54 to i64
  %56 = add i64 %.05261, %55
  %57 = getelementptr inbounds i8, ptr %48, i64 10
  %58 = load i8, ptr %57, align 2, !tbaa !14, !range !11, !noundef !12
  %59 = zext nneg i8 %58 to i64
  %60 = add i64 %.05162, %59
  %61 = getelementptr inbounds i8, ptr %48, i64 11
  %62 = load i8, ptr %61, align 1, !tbaa !15, !range !11, !noundef !12
  %63 = zext nneg i8 %62 to i64
  %64 = add i64 %.05063, %63
  %65 = getelementptr inbounds i8, ptr %48, i64 12
  %66 = load i8, ptr %65, align 4, !tbaa !16, !range !11, !noundef !12
  %67 = zext nneg i8 %66 to i64
  %68 = add i64 %.04964, %67
  %69 = getelementptr inbounds i8, ptr %48, i64 13
  %70 = load i8, ptr %69, align 1, !tbaa !17, !range !11, !noundef !12
  %71 = trunc nuw i8 %70 to i1
  br i1 %71, label %.lr.ph, label %..loopexit57_crit_edge

.lr.ph:                                           ; preds = %.lr.ph68.split
  %72 = getelementptr inbounds i8, ptr %48, i64 16
  %73 = load i64, ptr %72, align 8, !tbaa !20
  br label %74

74:                                               ; preds = %.lr.ph, %74
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %74 ]
  %75 = phi i32 [ %.fr, %.lr.ph ], [ %83, %74 ]
  %.04460 = phi ptr [ @kpageflag_defs, %.lr.ph ], [ %82, %74 ]
  %76 = zext nneg i32 %75 to i64
  %77 = lshr i64 %73, %76
  %78 = and i64 %77, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %79 = getelementptr inbounds [25 x i64], ptr %4, i64 0, i64 %indvars.iv
  %80 = load i64, ptr %79, align 8, !tbaa !21
  %81 = add i64 %78, %80
  store i64 %81, ptr %79, align 8, !tbaa !21
  %82 = getelementptr inbounds i8, ptr %.04460, i64 24
  %83 = load i32, ptr %82, align 8, !tbaa !22
  %.not56 = icmp eq i32 %83, -1
  br i1 %.not56, label %..loopexit57_crit_edge.loopexit, label %74, !llvm.loop !26

..loopexit57_crit_edge.loopexit:                  ; preds = %74
  %84 = add i64 %.04865, 1
  br label %..loopexit57_crit_edge

..loopexit57_crit_edge:                           ; preds = %..loopexit57_crit_edge.loopexit, %.lr.ph68.split
  %.1 = phi i64 [ %.04865, %.lr.ph68.split ], [ %84, %..loopexit57_crit_edge.loopexit ]
  %85 = add nuw i64 %.04766, 1
  %exitcond.not = icmp eq i64 %85, %1
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph68.split, !llvm.loop !18

86:                                               ; preds = %.lr.ph82, %96
  %indvars.iv96 = phi i64 [ 0, %.lr.ph82 ], [ %indvars.iv.next97, %96 ]
  %.081 = phi ptr [ @kpageflag_defs, %.lr.ph82 ], [ %97, %96 ]
  %87 = getelementptr inbounds i8, ptr %.081, i64 16
  %88 = load i8, ptr %87, align 8, !tbaa !27, !range !11, !noundef !12
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %96

90:                                               ; preds = %86
  %91 = getelementptr inbounds [25 x i64], ptr %4, i64 0, i64 %indvars.iv96
  %92 = load i64, ptr %91, align 8, !tbaa !21
  %93 = uitofp i64 %92 to double
  %94 = fdiv double %93, %47
  %95 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.34, double noundef %94) #4
  br label %96

96:                                               ; preds = %90, %86
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %97 = getelementptr inbounds i8, ptr %.081, i64 24
  %98 = load i32, ptr %97, align 8, !tbaa !22
  %.not55 = icmp eq i32 %98, -1
  br i1 %.not55, label %.loopexit, label %86, !llvm.loop !28

.loopexit:                                        ; preds = %96, %._crit_edge
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.28) #4
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #4
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !10, i64 12, !10, i64 13, !7, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_Bool", !8, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!6, !10, i64 9}
!14 = !{!6, !10, i64 10}
!15 = !{!6, !10, i64 11}
!16 = !{!6, !10, i64 12}
!17 = !{!6, !10, i64 13}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !7, i64 16}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !24, i64 0}
!23 = !{!"", !24, i64 0, !25, i64 8, !10, i64 16}
!24 = !{!"int", !8, i64 0}
!25 = !{!"any pointer", !8, i64 0}
!26 = distinct !{!26, !19}
!27 = !{!23, !10, i64 16}
!28 = distinct !{!28, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass