; LLVM IR from reworks-org/galaxy :: deps/sfml_deps/vorbis-src/vq (vqgen)

; 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.vqgen = type { i32, i32, i32, i32, i32, float, i32, ptr, i64, i64, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 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: inlinehint nounwind uwtable
declare hidden ptr @_point(ptr noundef, i64 noundef) #1

; 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) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.rint.f64(double) #4

; Function Attrs: nounwind uwtable
define dso_local void @vqgen_addpoint(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %25, %3
  %9 = load i32, ptr %7, align 4, !tbaa !9
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.vqgen, ptr %10, i32 0, i32 3
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp slt i32 %9, %12
  br i1 %13, label %14, label %28

14:                                               ; preds = %8
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.vqgen, ptr %15, i32 0, i32 17
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds float, ptr %18, i64 %20
  %22 = load float, ptr %21, align 4, !tbaa !16
  %23 = fpext float %22 to double
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str.3, double noundef %23) #8
  br label %25

25:                                               ; preds = %14
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %7, align 4, !tbaa !9
  br label %8, !llvm.loop !17

28:                                               ; preds = %8
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %46, %28
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.vqgen, ptr %31, i32 0, i32 4
  %33 = load i32, ptr %32, align 8, !tbaa !19
  %34 = icmp slt i32 %30, %33
  br i1 %34, label %35, label %49

35:                                               ; preds = %29
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.vqgen, ptr %36, i32 0, i32 17
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %39, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !16
  %44 = fpext float %43 to double
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.3, double noundef %44) #8
  br label %46

46:                                               ; preds = %35
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %7, align 4, !tbaa !9
  br label %29, !llvm.loop !20

49:                                               ; preds = %29
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.vqgen, ptr %50, i32 0, i32 8
  %52 = load i64, ptr %51, align 8, !tbaa !21
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.vqgen, ptr %53, i32 0, i32 9
  %55 = load i64, ptr %54, align 8, !tbaa !22
  %56 = icmp sge i64 %52, %55
  br i1 %56, label %57, label %81

57:                                               ; preds = %49
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.vqgen, ptr %58, i32 0, i32 9
  %60 = load i64, ptr %59, align 8, !tbaa !22
  %61 = mul nsw i64 %60, 2
  store i64 %61, ptr %59, align 8, !tbaa !22
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.vqgen, ptr %62, i32 0, i32 7
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.vqgen, ptr %65, i32 0, i32 9
  %67 = load i64, ptr %66, align 8, !tbaa !22
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.vqgen, ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.vqgen, ptr %71, i32 0, i32 4
  %73 = load i32, ptr %72, align 8, !tbaa !19
  %74 = add nsw i32 %70, %73
  %75 = sext i32 %74 to i64
  %76 = mul nsw i64 %67, %75
  %77 = mul i64 %76, 4
  %78 = call ptr @realloc(ptr noundef %64, i64 noundef %77) #9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.vqgen, ptr %79, i32 0, i32 7
  store ptr %78, ptr %80, align 8, !tbaa !23
  br label %81

81:                                               ; preds = %57, %49
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.vqgen, ptr %83, i32 0, i32 8
  %85 = load i64, ptr %84, align 8, !tbaa !21
  %86 = call ptr @_point(ptr noundef %82, i64 noundef %85)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.vqgen, ptr %88, i32 0, i32 3
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = mul i64 4, %91
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr align 4 %87, i64 %92, i1 false)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.vqgen, ptr %93, i32 0, i32 4
  %95 = load i32, ptr %94, align 8, !tbaa !19
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %114

97:                                               ; preds = %81
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.vqgen, ptr %99, i32 0, i32 8
  %101 = load i64, ptr %100, align 8, !tbaa !21
  %102 = call ptr @_point(ptr noundef %98, i64 noundef %101)
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.vqgen, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %102, i64 %106
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.vqgen, ptr %109, i32 0, i32 4
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = sext i32 %111 to i64
  %113 = mul i64 4, %112
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %108, i64 %113, i1 false)
  br label %114

114:                                              ; preds = %97, %81
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.vqgen, ptr %115, i32 0, i32 5
  %117 = load float, ptr %116, align 4, !tbaa !24
  %118 = fcmp ogt float %117, 0.000000e+00
  br i1 %118, label %119, label %164

119:                                              ; preds = %114
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %160, %119
  %121 = load i32, ptr %7, align 4, !tbaa !9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.vqgen, ptr %122, i32 0, i32 3
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.vqgen, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 8, !tbaa !19
  %128 = add nsw i32 %124, %127
  %129 = icmp slt i32 %121, %128
  br i1 %129, label %130, label %163

130:                                              ; preds = %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.vqgen, ptr %132, i32 0, i32 8
  %134 = load i64, ptr %133, align 8, !tbaa !21
  %135 = call ptr @_point(ptr noundef %131, i64 noundef %134)
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %135, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !16
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.vqgen, ptr %140, i32 0, i32 5
  %142 = load float, ptr %141, align 4, !tbaa !24
  %143 = fdiv float %139, %142
  %144 = fpext float %143 to double
  %145 = call double @llvm.rint.f64(double %144)
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.vqgen, ptr %146, i32 0, i32 5
  %148 = load float, ptr %147, align 4, !tbaa !24
  %149 = fpext float %148 to double
  %150 = fmul double %145, %149
  %151 = fptrunc double %150 to float
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.vqgen, ptr %153, i32 0, i32 8
  %155 = load i64, ptr %154, align 8, !tbaa !21
  %156 = call ptr @_point(ptr noundef %152, i64 noundef %155)
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %156, i64 %158
  store float %151, ptr %159, align 4, !tbaa !16
  br label %160

160:                                              ; preds = %130
  %161 = load i32, ptr %7, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %7, align 4, !tbaa !9
  br label %120, !llvm.loop !25

163:                                              ; preds = %120
  br label %164

164:                                              ; preds = %163, %114
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.vqgen, ptr %165, i32 0, i32 8
  %167 = load i64, ptr %166, align 8, !tbaa !21
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %166, align 8, !tbaa !21
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.vqgen, ptr %169, i32 0, i32 8
  %171 = load i64, ptr %170, align 8, !tbaa !21
  %172 = and i64 %171, 255
  %173 = icmp ne i64 %172, 0
  br i1 %173, label %179, label %174

174:                                              ; preds = %164
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.vqgen, ptr %175, i32 0, i32 8
  %177 = load i64, ptr %176, align 8, !tbaa !21
  %178 = trunc i64 %177 to i32
  call void @spinnit(ptr noundef @.str.4, i32 noundef %178)
  br label %179

179:                                              ; preds = %174, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret void
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

declare void @spinnit(ptr noundef, i32 noundef) #7

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

!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, !10, i64 12}
!12 = !{!"vqgen", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !10, i64 24, !6, i64 32, !14, i64 40, !14, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112}
!13 = !{!"float", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 112}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !10, i64 16}
!20 = distinct !{!20, !18}
!21 = !{!12, !14, i64 40}
!22 = !{!12, !14, i64 48}
!23 = !{!12, !6, i64 32}
!24 = !{!12, !13, i64 20}
!25 = distinct !{!25, !18}


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

@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_point(ptr noundef, i64 noundef) local_unnamed_addr #0

; 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) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @vqgen_addpoint(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 12
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph, label %.preheader48

.lr.ph:                                           ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  br label %12

.preheader48:                                     ; preds = %12, %3
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !13
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph53, label %._crit_edge

.lr.ph53:                                         ; preds = %.preheader48
  %11 = getelementptr inbounds i8, ptr %0, i64 112
  br label %21

12:                                               ; preds = %.lr.ph, %12
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %12 ]
  %13 = load ptr, ptr %7, align 8, !tbaa !14
  %14 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %15 = load float, ptr %14, align 4, !tbaa !15
  %16 = fpext float %15 to double
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.3, double noundef %16) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %12, label %.preheader48, !llvm.loop !16

21:                                               ; preds = %.lr.ph53, %21
  %indvars.iv58 = phi i64 [ 0, %.lr.ph53 ], [ %indvars.iv.next59, %21 ]
  %22 = load ptr, ptr %11, align 8, !tbaa !14
  %23 = getelementptr inbounds float, ptr %2, i64 %indvars.iv58
  %24 = load float, ptr %23, align 4, !tbaa !15
  %25 = fpext float %24 to double
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.3, double noundef %25) #7
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %27 = load i32, ptr %8, align 8, !tbaa !13
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next59, %28
  br i1 %29, label %21, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %21, %.preheader48
  %.lcssa = phi i32 [ %9, %.preheader48 ], [ %27, %21 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load i64, ptr %30, align 8, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  %33 = load i64, ptr %32, align 8, !tbaa !20
  %.not = icmp slt i64 %31, %33
  br i1 %.not, label %44, label %34

34:                                               ; preds = %._crit_edge
  %35 = shl nsw i64 %33, 1
  store i64 %35, ptr %32, align 8, !tbaa !20
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, %.lcssa
  %40 = sext i32 %39 to i64
  %41 = shl i64 %33, 3
  %42 = mul i64 %41, %40
  %43 = tail call ptr @realloc(ptr noundef %37, i64 noundef %42) #8
  store ptr %43, ptr %36, align 8, !tbaa !21
  %.pre = load i64, ptr %30, align 8, !tbaa !19
  br label %44

44:                                               ; preds = %34, %._crit_edge
  %45 = phi i64 [ %.pre, %34 ], [ %31, %._crit_edge ]
  %46 = tail call ptr @_point(ptr noundef nonnull %0, i64 noundef %45)
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %1, i64 %49, i1 false)
  %50 = load i32, ptr %8, align 8, !tbaa !13
  %.not46 = icmp eq i32 %50, 0
  br i1 %.not46, label %60, label %51

51:                                               ; preds = %44
  %52 = load i64, ptr %30, align 8, !tbaa !19
  %53 = tail call ptr @_point(ptr noundef nonnull %0, i64 noundef %52)
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds float, ptr %53, i64 %55
  %57 = load i32, ptr %8, align 8, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = shl nsw i64 %58, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %2, i64 %59, i1 false)
  br label %60

60:                                               ; preds = %51, %44
  %61 = getelementptr inbounds i8, ptr %0, i64 20
  %62 = load float, ptr %61, align 4, !tbaa !22
  %63 = fcmp ogt float %62, 0.000000e+00
  br i1 %63, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %60
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load i32, ptr %8, align 8, !tbaa !13
  %66 = add nsw i32 %65, %64
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph55, label %.loopexit

.lr.ph55:                                         ; preds = %.preheader, %.lr.ph55
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %.lr.ph55 ], [ 0, %.preheader ]
  %68 = load i64, ptr %30, align 8, !tbaa !19
  %69 = tail call ptr @_point(ptr noundef nonnull %0, i64 noundef %68)
  %70 = getelementptr inbounds float, ptr %69, i64 %indvars.iv61
  %71 = load float, ptr %70, align 4, !tbaa !15
  %72 = load float, ptr %61, align 4, !tbaa !22
  %73 = fdiv float %71, %72
  %74 = tail call float @llvm.rint.f32(float %73)
  %75 = fmul float %72, %74
  %76 = load i64, ptr %30, align 8, !tbaa !19
  %77 = tail call ptr @_point(ptr noundef nonnull %0, i64 noundef %76)
  %78 = getelementptr inbounds float, ptr %77, i64 %indvars.iv61
  store float %75, ptr %78, align 4, !tbaa !15
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = load i32, ptr %8, align 8, !tbaa !13
  %81 = add nsw i32 %80, %79
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next62, %82
  br i1 %83, label %.lr.ph55, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph55, %.preheader, %60
  %84 = load i64, ptr %30, align 8, !tbaa !19
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %30, align 8, !tbaa !19
  %86 = and i64 %85, 255
  %.not47 = icmp eq i64 %86, 0
  br i1 %.not47, label %87, label %89

87:                                               ; preds = %.loopexit
  %88 = trunc i64 %85 to i32
  tail call void @spinnit(ptr noundef nonnull @.str.4, i32 noundef %88) #7
  br label %89

89:                                               ; preds = %87, %.loopexit
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

declare void @spinnit(ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.rint.f32(float) #6

attributes #0 = { inlinehint 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(1) }

!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 12}
!6 = !{!"vqgen", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 20, !7, i64 24, !11, i64 32, !12, i64 40, !12, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !11, i64 112}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!6, !12, i64 40}
!20 = !{!6, !12, i64 48}
!21 = !{!6, !11, i64 32}
!22 = !{!6, !10, i64 20}
!23 = distinct !{!23, !17}


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