; LLVM IR from Discngine/fpocket :: src (fpout)

; 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.c_lst_pockets = type { ptr, ptr, ptr, i64, ptr }
%struct.node_pocket = type { ptr, ptr, ptr }
%struct.s_pocket = type { ptr, ptr, float, float, float, float, [3 x float], i32, i32, i32, i32 }
%struct.s_desc = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [20 x i32], i32, i32, i32, float, float, i32, i32, i32, i32, i32, [255 x i8], [255 x i8], [8 x i8] }

@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [412 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @write_descriptors_DB(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.c_lst_pockets, ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  store ptr %12, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.33) #4
  br label %15

15:                                               ; preds = %161, %2
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %210

18:                                               ; preds = %15
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.node_pocket, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  store ptr %21, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.s_pocket, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds %struct.s_desc, ptr %26, i32 0, i32 33
  %28 = load float, ptr %27, align 4, !tbaa !19
  %29 = fpext float %28 to double
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.s_pocket, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds %struct.s_desc, ptr %32, i32 0, i32 2
  %34 = load float, ptr %33, align 4, !tbaa !21
  %35 = fpext float %34 to double
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s_pocket, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = getelementptr inbounds %struct.s_desc, ptr %38, i32 0, i32 29
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.s_pocket, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = getelementptr inbounds %struct.s_desc, ptr %43, i32 0, i32 34
  %45 = load i32, ptr %44, align 4, !tbaa !23
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.s_pocket, ptr %46, i32 0, i32 9
  %48 = load i32, ptr %47, align 4, !tbaa !24
  %49 = sitofp i32 %48 to float
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.s_pocket, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.s_desc, ptr %52, i32 0, i32 29
  %54 = load i32, ptr %53, align 4, !tbaa !22
  %55 = sitofp i32 %54 to float
  %56 = fdiv float %49, %55
  %57 = fpext float %56 to double
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.s_pocket, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = getelementptr inbounds %struct.s_desc, ptr %60, i32 0, i32 5
  %62 = load float, ptr %61, align 4, !tbaa !25
  %63 = fpext float %62 to double
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.34, i32 noundef %23, double noundef %29, double noundef %35, i32 noundef %40, i32 noundef %45, double noundef %57, double noundef %63) #4
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s_pocket, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = getelementptr inbounds %struct.s_desc, ptr %68, i32 0, i32 9
  %70 = load float, ptr %69, align 4, !tbaa !26
  %71 = fpext float %70 to double
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.s_pocket, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = getelementptr inbounds %struct.s_desc, ptr %74, i32 0, i32 6
  %76 = load float, ptr %75, align 4, !tbaa !27
  %77 = fpext float %76 to double
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.s_pocket, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds %struct.s_desc, ptr %80, i32 0, i32 8
  %82 = load float, ptr %81, align 4, !tbaa !28
  %83 = fpext float %82 to double
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.s_pocket, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds %struct.s_desc, ptr %86, i32 0, i32 11
  %88 = load float, ptr %87, align 4, !tbaa !29
  %89 = fpext float %88 to double
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.s_pocket, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !16
  %93 = getelementptr inbounds %struct.s_desc, ptr %92, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !30
  %95 = fpext float %94 to double
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.s_pocket, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = getelementptr inbounds %struct.s_desc, ptr %98, i32 0, i32 1
  %100 = load float, ptr %99, align 4, !tbaa !31
  %101 = fpext float %100 to double
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.s_pocket, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = getelementptr inbounds %struct.s_desc, ptr %104, i32 0, i32 31
  %106 = load i32, ptr %105, align 4, !tbaa !32
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.35, double noundef %71, double noundef %77, double noundef %83, double noundef %89, double noundef %95, double noundef %101, i32 noundef %106) #4
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.s_pocket, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = getelementptr inbounds %struct.s_desc, ptr %111, i32 0, i32 30
  %113 = load i32, ptr %112, align 4, !tbaa !33
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.s_pocket, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  %117 = getelementptr inbounds %struct.s_desc, ptr %116, i32 0, i32 25
  %118 = load float, ptr %117, align 4, !tbaa !34
  %119 = fpext float %118 to double
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.s_pocket, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !16
  %123 = getelementptr inbounds %struct.s_desc, ptr %122, i32 0, i32 22
  %124 = load float, ptr %123, align 4, !tbaa !35
  %125 = fpext float %124 to double
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.s_pocket, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !16
  %129 = getelementptr inbounds %struct.s_desc, ptr %128, i32 0, i32 26
  %130 = load float, ptr %129, align 4, !tbaa !36
  %131 = fpext float %130 to double
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.s_pocket, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !16
  %135 = getelementptr inbounds %struct.s_desc, ptr %134, i32 0, i32 23
  %136 = load float, ptr %135, align 4, !tbaa !37
  %137 = fpext float %136 to double
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.s_pocket, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !16
  %141 = getelementptr inbounds %struct.s_desc, ptr %140, i32 0, i32 27
  %142 = load i32, ptr %141, align 4, !tbaa !38
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.36, i32 noundef %113, double noundef %119, double noundef %125, double noundef %131, double noundef %137, i32 noundef %142) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %158, %18
  %145 = load i32, ptr %9, align 4, !tbaa !9
  %146 = icmp slt i32 %145, 20
  br i1 %146, label %147, label %161

147:                                              ; preds = %144
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.s_pocket, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !16
  %152 = getelementptr inbounds %struct.s_desc, ptr %151, i32 0, i32 28
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [20 x i32], ptr %152, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.37, i32 noundef %156) #4
  br label %158

158:                                              ; preds = %147
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %9, align 4, !tbaa !9
  br label %144, !llvm.loop !39

161:                                              ; preds = %144
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.s_pocket, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !16
  %166 = getelementptr inbounds %struct.s_desc, ptr %165, i32 0, i32 35
  %167 = load i32, ptr %166, align 4, !tbaa !41
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s_pocket, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !16
  %171 = getelementptr inbounds %struct.s_desc, ptr %170, i32 0, i32 36
  %172 = load i32, ptr %171, align 4, !tbaa !42
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.s_pocket, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !16
  %176 = getelementptr inbounds %struct.s_desc, ptr %175, i32 0, i32 37
  %177 = load i32, ptr %176, align 4, !tbaa !43
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.s_pocket, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !16
  %181 = getelementptr inbounds %struct.s_desc, ptr %180, i32 0, i32 38
  %182 = load i32, ptr %181, align 4, !tbaa !44
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.s_pocket, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !16
  %186 = getelementptr inbounds %struct.s_desc, ptr %185, i32 0, i32 41
  %187 = getelementptr inbounds [8 x i8], ptr %186, i64 0, i64 0
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.s_pocket, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !16
  %191 = getelementptr inbounds %struct.s_desc, ptr %190, i32 0, i32 39
  %192 = getelementptr inbounds [255 x i8], ptr %191, i64 0, i64 0
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.s_pocket, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !16
  %196 = getelementptr inbounds %struct.s_desc, ptr %195, i32 0, i32 40
  %197 = getelementptr inbounds [255 x i8], ptr %196, i64 0, i64 0
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %162, ptr noundef @.str.38, i32 noundef %167, i32 noundef %172, i32 noundef %177, i32 noundef %182, ptr noundef %187, ptr noundef %192, ptr noundef %197) #4
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.31) #4
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call i32 @fflush(ptr noundef %201)
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.node_pocket, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !45
  store ptr %205, ptr %7, align 8, !tbaa !5
  %206 = load i32, ptr %5, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %5, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %8, align 4, !tbaa !9
  br label %15, !llvm.loop !46

210:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

declare i32 @fflush(ptr noundef) #3

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 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"c_lst_pockets", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"node_pocket", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!17, !6, i64 0}
!17 = !{!"s_pocket", !6, i64 0, !6, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !7, i64 32, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !18, i64 208}
!20 = !{!"s_desc", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76, !18, i64 80, !18, i64 84, !18, i64 88, !18, i64 92, !18, i64 96, !18, i64 100, !18, i64 104, !10, i64 108, !7, i64 112, !10, i64 192, !10, i64 196, !10, i64 200, !18, i64 204, !18, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !7, i64 232, !7, i64 487, !7, i64 742}
!21 = !{!20, !18, i64 8}
!22 = !{!20, !10, i64 192}
!23 = !{!20, !10, i64 212}
!24 = !{!17, !10, i64 52}
!25 = !{!20, !18, i64 20}
!26 = !{!20, !18, i64 36}
!27 = !{!20, !18, i64 24}
!28 = !{!20, !18, i64 32}
!29 = !{!20, !18, i64 44}
!30 = !{!20, !18, i64 0}
!31 = !{!20, !18, i64 4}
!32 = !{!20, !10, i64 200}
!33 = !{!20, !10, i64 196}
!34 = !{!20, !18, i64 100}
!35 = !{!20, !18, i64 88}
!36 = !{!20, !18, i64 104}
!37 = !{!20, !18, i64 92}
!38 = !{!20, !10, i64 108}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!20, !10, i64 216}
!42 = !{!20, !10, i64 220}
!43 = !{!20, !10, i64 224}
!44 = !{!20, !10, i64 228}
!45 = !{!15, !6, i64 0}
!46 = distinct !{!46, !40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [412 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [22 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @write_descriptors_DB(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.33) #2
  %.not49 = icmp eq ptr %3, null
  br i1 %.not49, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.04551 = phi i32 [ %163, %.lr.ph ], [ 1, %2 ]
  %.04650 = phi ptr [ %162, %.lr.ph ], [ %3, %2 ]
  %5 = getelementptr inbounds i8, ptr %.04650, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %7, i64 208
  %9 = load float, ptr %8, align 4, !tbaa !17
  %10 = fpext float %9 to double
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  %12 = load float, ptr %11, align 4, !tbaa !19
  %13 = fpext float %12 to double
  %14 = getelementptr inbounds i8, ptr %7, i64 192
  %15 = load i32, ptr %14, align 4, !tbaa !20
  %16 = getelementptr inbounds i8, ptr %7, i64 212
  %17 = load i32, ptr %16, align 4, !tbaa !21
  %18 = getelementptr inbounds i8, ptr %6, i64 52
  %19 = load i32, ptr %18, align 4, !tbaa !22
  %20 = sitofp i32 %19 to float
  %21 = sitofp i32 %15 to float
  %22 = fdiv float %20, %21
  %23 = fpext float %22 to double
  %24 = getelementptr inbounds i8, ptr %7, i64 20
  %25 = load float, ptr %24, align 4, !tbaa !23
  %26 = fpext float %25 to double
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.34, i32 noundef %.04551, double noundef %10, double noundef %13, i32 noundef %15, i32 noundef %17, double noundef %23, double noundef %26) #2
  %28 = load ptr, ptr %6, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %28, i64 36
  %30 = load float, ptr %29, align 4, !tbaa !24
  %31 = fpext float %30 to double
  %32 = getelementptr inbounds i8, ptr %28, i64 24
  %33 = load float, ptr %32, align 4, !tbaa !25
  %34 = fpext float %33 to double
  %35 = getelementptr inbounds i8, ptr %28, i64 32
  %36 = load float, ptr %35, align 4, !tbaa !26
  %37 = fpext float %36 to double
  %38 = getelementptr inbounds i8, ptr %28, i64 44
  %39 = load float, ptr %38, align 4, !tbaa !27
  %40 = fpext float %39 to double
  %41 = load float, ptr %28, align 4, !tbaa !28
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds i8, ptr %28, i64 4
  %44 = load float, ptr %43, align 4, !tbaa !29
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds i8, ptr %28, i64 200
  %47 = load i32, ptr %46, align 4, !tbaa !30
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.35, double noundef %31, double noundef %34, double noundef %37, double noundef %40, double noundef %42, double noundef %45, i32 noundef %47) #2
  %49 = load ptr, ptr %6, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %49, i64 196
  %51 = load i32, ptr %50, align 4, !tbaa !31
  %52 = getelementptr inbounds i8, ptr %49, i64 100
  %53 = load float, ptr %52, align 4, !tbaa !32
  %54 = fpext float %53 to double
  %55 = getelementptr inbounds i8, ptr %49, i64 88
  %56 = load float, ptr %55, align 4, !tbaa !33
  %57 = fpext float %56 to double
  %58 = getelementptr inbounds i8, ptr %49, i64 104
  %59 = load float, ptr %58, align 4, !tbaa !34
  %60 = fpext float %59 to double
  %61 = getelementptr inbounds i8, ptr %49, i64 92
  %62 = load float, ptr %61, align 4, !tbaa !35
  %63 = fpext float %62 to double
  %64 = getelementptr inbounds i8, ptr %49, i64 108
  %65 = load i32, ptr %64, align 4, !tbaa !36
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.36, i32 noundef %51, double noundef %54, double noundef %57, double noundef %60, double noundef %63, i32 noundef %65) #2
  %67 = load ptr, ptr %6, align 8, !tbaa !13
  %68 = getelementptr inbounds i8, ptr %67, i64 112
  %69 = load i32, ptr %68, align 4, !tbaa !37
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %69) #2
  %71 = load ptr, ptr %6, align 8, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %71, i64 116
  %73 = load i32, ptr %72, align 4, !tbaa !37
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %73) #2
  %75 = load ptr, ptr %6, align 8, !tbaa !13
  %76 = getelementptr inbounds i8, ptr %75, i64 120
  %77 = load i32, ptr %76, align 4, !tbaa !37
  %78 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %77) #2
  %79 = load ptr, ptr %6, align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %79, i64 124
  %81 = load i32, ptr %80, align 4, !tbaa !37
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %81) #2
  %83 = load ptr, ptr %6, align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %83, i64 128
  %85 = load i32, ptr %84, align 4, !tbaa !37
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %85) #2
  %87 = load ptr, ptr %6, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %87, i64 132
  %89 = load i32, ptr %88, align 4, !tbaa !37
  %90 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %89) #2
  %91 = load ptr, ptr %6, align 8, !tbaa !13
  %92 = getelementptr inbounds i8, ptr %91, i64 136
  %93 = load i32, ptr %92, align 4, !tbaa !37
  %94 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %93) #2
  %95 = load ptr, ptr %6, align 8, !tbaa !13
  %96 = getelementptr inbounds i8, ptr %95, i64 140
  %97 = load i32, ptr %96, align 4, !tbaa !37
  %98 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %97) #2
  %99 = load ptr, ptr %6, align 8, !tbaa !13
  %100 = getelementptr inbounds i8, ptr %99, i64 144
  %101 = load i32, ptr %100, align 4, !tbaa !37
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %101) #2
  %103 = load ptr, ptr %6, align 8, !tbaa !13
  %104 = getelementptr inbounds i8, ptr %103, i64 148
  %105 = load i32, ptr %104, align 4, !tbaa !37
  %106 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %105) #2
  %107 = load ptr, ptr %6, align 8, !tbaa !13
  %108 = getelementptr inbounds i8, ptr %107, i64 152
  %109 = load i32, ptr %108, align 4, !tbaa !37
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %109) #2
  %111 = load ptr, ptr %6, align 8, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %111, i64 156
  %113 = load i32, ptr %112, align 4, !tbaa !37
  %114 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %113) #2
  %115 = load ptr, ptr %6, align 8, !tbaa !13
  %116 = getelementptr inbounds i8, ptr %115, i64 160
  %117 = load i32, ptr %116, align 4, !tbaa !37
  %118 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %117) #2
  %119 = load ptr, ptr %6, align 8, !tbaa !13
  %120 = getelementptr inbounds i8, ptr %119, i64 164
  %121 = load i32, ptr %120, align 4, !tbaa !37
  %122 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %121) #2
  %123 = load ptr, ptr %6, align 8, !tbaa !13
  %124 = getelementptr inbounds i8, ptr %123, i64 168
  %125 = load i32, ptr %124, align 4, !tbaa !37
  %126 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %125) #2
  %127 = load ptr, ptr %6, align 8, !tbaa !13
  %128 = getelementptr inbounds i8, ptr %127, i64 172
  %129 = load i32, ptr %128, align 4, !tbaa !37
  %130 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %129) #2
  %131 = load ptr, ptr %6, align 8, !tbaa !13
  %132 = getelementptr inbounds i8, ptr %131, i64 176
  %133 = load i32, ptr %132, align 4, !tbaa !37
  %134 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %133) #2
  %135 = load ptr, ptr %6, align 8, !tbaa !13
  %136 = getelementptr inbounds i8, ptr %135, i64 180
  %137 = load i32, ptr %136, align 4, !tbaa !37
  %138 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %137) #2
  %139 = load ptr, ptr %6, align 8, !tbaa !13
  %140 = getelementptr inbounds i8, ptr %139, i64 184
  %141 = load i32, ptr %140, align 4, !tbaa !37
  %142 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %141) #2
  %143 = load ptr, ptr %6, align 8, !tbaa !13
  %144 = getelementptr inbounds i8, ptr %143, i64 188
  %145 = load i32, ptr %144, align 4, !tbaa !37
  %146 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.37, i32 noundef %145) #2
  %147 = load ptr, ptr %6, align 8, !tbaa !13
  %148 = getelementptr inbounds i8, ptr %147, i64 216
  %149 = load i32, ptr %148, align 4, !tbaa !38
  %150 = getelementptr inbounds i8, ptr %147, i64 220
  %151 = load i32, ptr %150, align 4, !tbaa !39
  %152 = getelementptr inbounds i8, ptr %147, i64 224
  %153 = load i32, ptr %152, align 4, !tbaa !40
  %154 = getelementptr inbounds i8, ptr %147, i64 228
  %155 = load i32, ptr %154, align 4, !tbaa !41
  %156 = getelementptr inbounds i8, ptr %147, i64 742
  %157 = getelementptr inbounds i8, ptr %147, i64 232
  %158 = getelementptr inbounds i8, ptr %147, i64 487
  %159 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.38, i32 noundef %149, i32 noundef %151, i32 noundef %153, i32 noundef %155, ptr noundef nonnull %156, ptr noundef nonnull %157, ptr noundef nonnull %158) #2
  %160 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str.31) #2
  %161 = tail call i32 @fflush(ptr noundef %1)
  %162 = load ptr, ptr %.04650, align 8, !tbaa !42
  %163 = add nuw nsw i32 %.04551, 1
  %.not = icmp eq ptr %162, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !43

._crit_edge:                                      ; preds = %.lr.ph, %2
  ret void
}

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

attributes #0 = { 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 #1 = { 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 #2 = { 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 = !{!"c_lst_pockets", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!12, !7, i64 16}
!12 = !{!"node_pocket", !7, i64 0, !7, i64 8, !7, i64 16}
!13 = !{!14, !7, i64 0}
!14 = !{!"s_pocket", !7, i64 0, !7, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !8, i64 32, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56}
!15 = !{!"float", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!18, !15, i64 208}
!18 = !{!"s_desc", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !15, i64 88, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !16, i64 108, !8, i64 112, !16, i64 192, !16, i64 196, !16, i64 200, !15, i64 204, !15, i64 208, !16, i64 212, !16, i64 216, !16, i64 220, !16, i64 224, !16, i64 228, !8, i64 232, !8, i64 487, !8, i64 742}
!19 = !{!18, !15, i64 8}
!20 = !{!18, !16, i64 192}
!21 = !{!18, !16, i64 212}
!22 = !{!14, !16, i64 52}
!23 = !{!18, !15, i64 20}
!24 = !{!18, !15, i64 36}
!25 = !{!18, !15, i64 24}
!26 = !{!18, !15, i64 32}
!27 = !{!18, !15, i64 44}
!28 = !{!18, !15, i64 0}
!29 = !{!18, !15, i64 4}
!30 = !{!18, !16, i64 200}
!31 = !{!18, !16, i64 196}
!32 = !{!18, !15, i64 100}
!33 = !{!18, !15, i64 88}
!34 = !{!18, !15, i64 104}
!35 = !{!18, !15, i64 92}
!36 = !{!18, !16, i64 108}
!37 = !{!16, !16, i64 0}
!38 = !{!18, !16, i64 216}
!39 = !{!18, !16, i64 220}
!40 = !{!18, !16, i64 224}
!41 = !{!18, !16, i64 228}
!42 = !{!12, !7, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}


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