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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; 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 @_now(ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @vqgen_quantize(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, 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) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.quant_meta, ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = shl i32 1, %17
  %19 = sub nsw i32 %18, 1
  %20 = sitofp i32 %19 to float
  store float %20, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = call ptr @_now(ptr noundef %21, i64 noundef 0)
  %23 = getelementptr inbounds float, ptr %22, i64 0
  %24 = load float, ptr %23, align 4, !tbaa !13
  store float %24, ptr %5, align 4, !tbaa !13
  store float %24, ptr %6, align 4, !tbaa !13
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %25

25:                                               ; preds = %106, %2
  %26 = load i32, ptr %9, align 4, !tbaa !15
  %27 = sext i32 %26 to i64
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.vqgen, ptr %28, i32 0, i32 13
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = icmp slt i64 %27, %30
  br i1 %31, label %32, label %109

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store float 0.000000e+00, ptr %11, align 4, !tbaa !13
  store i32 0, ptr %10, align 4, !tbaa !15
  br label %33

33:                                               ; preds = %102, %32
  %34 = load i32, ptr %10, align 4, !tbaa !15
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.vqgen, ptr %35, i32 0, i32 3
  %37 = load i32, ptr %36, align 4, !tbaa !18
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %39, label %105

39:                                               ; preds = %33
  %40 = load float, ptr %6, align 4, !tbaa !13
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !15
  %43 = sext i32 %42 to i64
  %44 = call ptr @_now(ptr noundef %41, i64 noundef %43)
  %45 = load i32, ptr %10, align 4, !tbaa !15
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !13
  %49 = load float, ptr %11, align 4, !tbaa !13
  %50 = fsub float %48, %49
  %51 = fcmp ogt float %40, %50
  br i1 %51, label %52, label %63

52:                                               ; preds = %39
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !15
  %55 = sext i32 %54 to i64
  %56 = call ptr @_now(ptr noundef %53, i64 noundef %55)
  %57 = load i32, ptr %10, align 4, !tbaa !15
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !13
  %61 = load float, ptr %11, align 4, !tbaa !13
  %62 = fsub float %60, %61
  store float %62, ptr %6, align 4, !tbaa !13
  br label %63

63:                                               ; preds = %52, %39
  %64 = load float, ptr %5, align 4, !tbaa !13
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = load i32, ptr %9, align 4, !tbaa !15
  %67 = sext i32 %66 to i64
  %68 = call ptr @_now(ptr noundef %65, i64 noundef %67)
  %69 = load i32, ptr %10, align 4, !tbaa !15
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %68, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !13
  %73 = load float, ptr %11, align 4, !tbaa !13
  %74 = fsub float %72, %73
  %75 = fcmp olt float %64, %74
  br i1 %75, label %76, label %87

76:                                               ; preds = %63
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !15
  %79 = sext i32 %78 to i64
  %80 = call ptr @_now(ptr noundef %77, i64 noundef %79)
  %81 = load i32, ptr %10, align 4, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %80, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !13
  %85 = load float, ptr %11, align 4, !tbaa !13
  %86 = fsub float %84, %85
  store float %86, ptr %5, align 4, !tbaa !13
  br label %87

87:                                               ; preds = %76, %63
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.quant_meta, ptr %88, i32 0, i32 3
  %90 = load i32, ptr %89, align 4, !tbaa !19
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %101

92:                                               ; preds = %87
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load i32, ptr %9, align 4, !tbaa !15
  %95 = sext i32 %94 to i64
  %96 = call ptr @_now(ptr noundef %93, i64 noundef %95)
  %97 = load i32, ptr %10, align 4, !tbaa !15
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %96, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !13
  store float %100, ptr %11, align 4, !tbaa !13
  br label %101

101:                                              ; preds = %92, %87
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %10, align 4, !tbaa !15
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !15
  br label %33, !llvm.loop !20

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

106:                                              ; preds = %105
  %107 = load i32, ptr %9, align 4, !tbaa !15
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %9, align 4, !tbaa !15
  br label %25, !llvm.loop !22

109:                                              ; preds = %25
  %110 = load float, ptr %5, align 4, !tbaa !13
  %111 = load float, ptr %6, align 4, !tbaa !13
  %112 = fsub float %110, %111
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.quant_meta, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !9
  %116 = shl i32 1, %115
  %117 = sitofp i32 %116 to float
  %118 = fsub float %117, 1.500000e+00
  %119 = fdiv float %112, %118
  store float %119, ptr %7, align 4, !tbaa !13
  %120 = load float, ptr %6, align 4, !tbaa !13
  %121 = call i64 @_float32_pack(float noundef %120)
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.quant_meta, ptr %122, i32 0, i32 0
  store i64 %121, ptr %123, align 8, !tbaa !23
  %124 = load float, ptr %7, align 4, !tbaa !13
  %125 = call i64 @_float32_pack(float noundef %124)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.quant_meta, ptr %126, i32 0, i32 1
  store i64 %125, ptr %127, align 8, !tbaa !24
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.quant_meta, ptr %128, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !23
  %131 = call float @_float32_unpack(i64 noundef %130)
  store float %131, ptr %6, align 4, !tbaa !13
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.quant_meta, ptr %132, i32 0, i32 1
  %134 = load i64, ptr %133, align 8, !tbaa !24
  %135 = call float @_float32_unpack(i64 noundef %134)
  store float %135, ptr %7, align 4, !tbaa !13
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %136

136:                                              ; preds = %206, %109
  %137 = load i32, ptr %9, align 4, !tbaa !15
  %138 = sext i32 %137 to i64
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.vqgen, ptr %139, i32 0, i32 13
  %141 = load i64, ptr %140, align 8, !tbaa !16
  %142 = icmp slt i64 %138, %141
  br i1 %142, label %143, label %209

143:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store float 0.000000e+00, ptr %12, align 4, !tbaa !13
  store i32 0, ptr %10, align 4, !tbaa !15
  br label %144

144:                                              ; preds = %202, %143
  %145 = load i32, ptr %10, align 4, !tbaa !15
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.vqgen, ptr %146, i32 0, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !18
  %149 = icmp slt i32 %145, %148
  br i1 %149, label %150, label %205

150:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = load i32, ptr %9, align 4, !tbaa !15
  %153 = sext i32 %152 to i64
  %154 = call ptr @_now(ptr noundef %151, i64 noundef %153)
  %155 = load i32, ptr %10, align 4, !tbaa !15
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds float, ptr %154, i64 %156
  %158 = load float, ptr %157, align 4, !tbaa !13
  store float %158, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %159 = load float, ptr %13, align 4, !tbaa !13
  %160 = load float, ptr %12, align 4, !tbaa !13
  %161 = fsub float %159, %160
  %162 = load float, ptr %6, align 4, !tbaa !13
  %163 = fsub float %161, %162
  %164 = load float, ptr %7, align 4, !tbaa !13
  %165 = fdiv float %163, %164
  %166 = fpext float %165 to double
  %167 = call double @llvm.rint.f64(double %166)
  %168 = fptrunc double %167 to float
  store float %168, ptr %14, align 4, !tbaa !13
  %169 = load float, ptr %14, align 4, !tbaa !13
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !15
  %172 = sext i32 %171 to i64
  %173 = call ptr @_now(ptr noundef %170, i64 noundef %172)
  %174 = load i32, ptr %10, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds float, ptr %173, i64 %175
  store float %169, ptr %176, align 4, !tbaa !13
  %177 = load float, ptr %14, align 4, !tbaa !13
  %178 = fcmp olt float %177, 0.000000e+00
  br i1 %178, label %179, label %182

179:                                              ; preds = %150
  %180 = load ptr, ptr @stderr, align 8, !tbaa !5
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.1) #7
  call void @exit(i32 noundef 1) #8
  unreachable

182:                                              ; preds = %150
  %183 = load float, ptr %14, align 4, !tbaa !13
  %184 = load float, ptr %8, align 4, !tbaa !13
  %185 = fcmp ogt float %183, %184
  br i1 %185, label %186, label %189

186:                                              ; preds = %182
  %187 = load ptr, ptr @stderr, align 8, !tbaa !5
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.2) #7
  call void @exit(i32 noundef 1) #8
  unreachable

189:                                              ; preds = %182
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.quant_meta, ptr %190, i32 0, i32 3
  %192 = load i32, ptr %191, align 4, !tbaa !19
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %201

194:                                              ; preds = %189
  %195 = load float, ptr %14, align 4, !tbaa !13
  %196 = load float, ptr %7, align 4, !tbaa !13
  %197 = load float, ptr %6, align 4, !tbaa !13
  %198 = call float @llvm.fmuladd.f32(float %195, float %196, float %197)
  %199 = load float, ptr %12, align 4, !tbaa !13
  %200 = fadd float %198, %199
  store float %200, ptr %12, align 4, !tbaa !13
  br label %201

201:                                              ; preds = %194, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %10, align 4, !tbaa !15
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %10, align 4, !tbaa !15
  br label %144, !llvm.loop !25

205:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %9, align 4, !tbaa !15
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %9, align 4, !tbaa !15
  br label %136, !llvm.loop !26

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

declare i64 @_float32_pack(float noundef) #5

declare float @_float32_unpack(i64 noundef) #5

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = { 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 = { "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 = { noreturn 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 #7 = { nounwind }
attributes #8 = { noreturn 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, !12, i64 16}
!10 = !{!"", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !11, i64 80}
!17 = !{!"vqgen", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !14, i64 20, !12, i64 24, !6, i64 32, !11, i64 40, !11, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112}
!18 = !{!17, !12, i64 12}
!19 = !{!10, !12, i64 20}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !11, i64 0}
!24 = !{!10, !11, i64 8}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


; 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_now(ptr noundef, i64 noundef) local_unnamed_addr #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_quantize(ptr noundef %0, ptr nocapture noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %1, i64 16
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %notmask = shl nsw i32 -1, %4
  %5 = xor i32 %notmask, -1
  %6 = uitofp nneg i32 %5 to float
  %7 = tail call ptr @_now(ptr noundef %0, i64 noundef 0)
  %8 = load float, ptr %7, align 4, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.preheader78.lr.ph, label %._crit_edge87

.preheader78.lr.ph:                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = getelementptr inbounds i8, ptr %1, i64 20
  %14 = load i32, ptr %12, align 4, !tbaa !16
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.preheader78, label %._crit_edge87

.preheader78:                                     ; preds = %.preheader78.lr.ph, %._crit_edge
  %16 = phi i64 [ %50, %._crit_edge ], [ %10, %.preheader78.lr.ph ]
  %17 = phi i32 [ %51, %._crit_edge ], [ %14, %.preheader78.lr.ph ]
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %._crit_edge ], [ 0, %.preheader78.lr.ph ]
  %.086 = phi float [ %.1.lcssa, %._crit_edge ], [ %8, %.preheader78.lr.ph ]
  %.06385 = phi float [ %.164.lcssa, %._crit_edge ], [ %8, %.preheader78.lr.ph ]
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader78, %46
  %indvars.iv = phi i64 [ %indvars.iv.next, %46 ], [ 0, %.preheader78 ]
  %.182 = phi float [ %.2, %46 ], [ %.086, %.preheader78 ]
  %.16481 = phi float [ %.265, %46 ], [ %.06385, %.preheader78 ]
  %.06880 = phi float [ %.169, %46 ], [ 0.000000e+00, %.preheader78 ]
  %19 = tail call ptr @_now(ptr noundef nonnull %0, i64 noundef %indvars.iv101)
  %20 = getelementptr inbounds float, ptr %19, i64 %indvars.iv
  %21 = load float, ptr %20, align 4, !tbaa !11
  %22 = fsub float %21, %.06880
  %23 = fcmp ogt float %.16481, %22
  br i1 %23, label %24, label %29

24:                                               ; preds = %.lr.ph
  %25 = tail call ptr @_now(ptr noundef %0, i64 noundef %indvars.iv101)
  %26 = getelementptr inbounds float, ptr %25, i64 %indvars.iv
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = fsub float %27, %.06880
  br label %29

29:                                               ; preds = %24, %.lr.ph
  %.265 = phi float [ %28, %24 ], [ %.16481, %.lr.ph ]
  %30 = tail call ptr @_now(ptr noundef %0, i64 noundef %indvars.iv101)
  %31 = getelementptr inbounds float, ptr %30, i64 %indvars.iv
  %32 = load float, ptr %31, align 4, !tbaa !11
  %33 = fsub float %32, %.06880
  %34 = fcmp olt float %.182, %33
  br i1 %34, label %35, label %40

35:                                               ; preds = %29
  %36 = tail call ptr @_now(ptr noundef %0, i64 noundef %indvars.iv101)
  %37 = getelementptr inbounds float, ptr %36, i64 %indvars.iv
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = fsub float %38, %.06880
  br label %40

40:                                               ; preds = %35, %29
  %.2 = phi float [ %39, %35 ], [ %.182, %29 ]
  %41 = load i32, ptr %13, align 4, !tbaa !17
  %.not77 = icmp eq i32 %41, 0
  br i1 %.not77, label %46, label %42

42:                                               ; preds = %40
  %43 = tail call ptr @_now(ptr noundef %0, i64 noundef %indvars.iv101)
  %44 = getelementptr inbounds float, ptr %43, i64 %indvars.iv
  %45 = load float, ptr %44, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %40, %42
  %.169 = phi float [ %45, %42 ], [ %.06880, %40 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr %12, align 4, !tbaa !16
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next, %48
  br i1 %49, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %46
  %.pre = load i64, ptr %9, align 8, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader78
  %50 = phi i64 [ %16, %.preheader78 ], [ %.pre, %._crit_edge.loopexit ]
  %51 = phi i32 [ %17, %.preheader78 ], [ %47, %._crit_edge.loopexit ]
  %.164.lcssa = phi float [ %.06385, %.preheader78 ], [ %.265, %._crit_edge.loopexit ]
  %.1.lcssa = phi float [ %.086, %.preheader78 ], [ %.2, %._crit_edge.loopexit ]
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %52 = icmp sgt i64 %50, %indvars.iv.next102
  br i1 %52, label %.preheader78, label %._crit_edge87, !llvm.loop !20

._crit_edge87:                                    ; preds = %._crit_edge, %.preheader78.lr.ph, %2
  %.063.lcssa = phi float [ %8, %2 ], [ %8, %.preheader78.lr.ph ], [ %.164.lcssa, %._crit_edge ]
  %.0.lcssa = phi float [ %8, %2 ], [ %8, %.preheader78.lr.ph ], [ %.1.lcssa, %._crit_edge ]
  %53 = fsub float %.0.lcssa, %.063.lcssa
  %54 = load i32, ptr %3, align 8, !tbaa !5
  %55 = shl nuw i32 1, %54
  %56 = sitofp i32 %55 to float
  %57 = fadd float %56, -1.500000e+00
  %58 = fdiv float %53, %57
  %59 = tail call i64 @_float32_pack(float noundef %.063.lcssa) #7
  store i64 %59, ptr %1, align 8, !tbaa !22
  %60 = tail call i64 @_float32_pack(float noundef %58) #7
  %61 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %60, ptr %61, align 8, !tbaa !23
  %62 = load i64, ptr %1, align 8, !tbaa !22
  %63 = tail call float @_float32_unpack(i64 noundef %62) #7
  %64 = load i64, ptr %61, align 8, !tbaa !23
  %65 = tail call float @_float32_unpack(i64 noundef %64) #7
  %66 = load i64, ptr %9, align 8, !tbaa !13
  %67 = icmp sgt i64 %66, 0
  br i1 %67, label %.preheader.lr.ph, label %._crit_edge96

.preheader.lr.ph:                                 ; preds = %._crit_edge87
  %68 = getelementptr inbounds i8, ptr %0, i64 12
  %69 = getelementptr inbounds i8, ptr %1, i64 20
  %70 = load i32, ptr %68, align 4, !tbaa !16
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.preheader, label %._crit_edge96

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge94
  %72 = phi i64 [ %100, %._crit_edge94 ], [ %66, %.preheader.lr.ph ]
  %73 = phi i32 [ %101, %._crit_edge94 ], [ %70, %.preheader.lr.ph ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %._crit_edge94 ], [ 0, %.preheader.lr.ph ]
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph93, label %._crit_edge94

.lr.ph93:                                         ; preds = %.preheader, %93
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %93 ], [ 0, %.preheader ]
  %.06692 = phi float [ %.167, %93 ], [ 0.000000e+00, %.preheader ]
  %75 = tail call ptr @_now(ptr noundef nonnull %0, i64 noundef %indvars.iv110)
  %76 = getelementptr inbounds float, ptr %75, i64 %indvars.iv107
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = fsub float %77, %.06692
  %79 = fsub float %78, %63
  %80 = fdiv float %79, %65
  %81 = tail call float @llvm.rint.f32(float %80)
  %82 = tail call ptr @_now(ptr noundef nonnull %0, i64 noundef %indvars.iv110)
  %83 = getelementptr inbounds float, ptr %82, i64 %indvars.iv107
  store float %81, ptr %83, align 4, !tbaa !11
  %84 = fcmp olt float %81, 0.000000e+00
  br i1 %84, label %85, label %88

85:                                               ; preds = %.lr.ph93
  %86 = load ptr, ptr @stderr, align 8, !tbaa !24
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.1) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

88:                                               ; preds = %.lr.ph93
  %89 = fcmp ogt float %81, %6
  br i1 %89, label %90, label %93

90:                                               ; preds = %88
  %91 = load ptr, ptr @stderr, align 8, !tbaa !24
  %92 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.2) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

93:                                               ; preds = %88
  %94 = load i32, ptr %69, align 4, !tbaa !17
  %.not = icmp eq i32 %94, 0
  %95 = tail call float @llvm.fmuladd.f32(float %81, float %65, float %63)
  %96 = fadd float %.06692, %95
  %.167 = select i1 %.not, float %.06692, float %96
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %97 = load i32, ptr %68, align 4, !tbaa !16
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next108, %98
  br i1 %99, label %.lr.ph93, label %._crit_edge94.loopexit, !llvm.loop !25

._crit_edge94.loopexit:                           ; preds = %93
  %.pre113 = load i64, ptr %9, align 8, !tbaa !13
  br label %._crit_edge94

._crit_edge94:                                    ; preds = %._crit_edge94.loopexit, %.preheader
  %100 = phi i64 [ %.pre113, %._crit_edge94.loopexit ], [ %72, %.preheader ]
  %101 = phi i32 [ %97, %._crit_edge94.loopexit ], [ %73, %.preheader ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %102 = icmp sgt i64 %100, %indvars.iv.next111
  br i1 %102, label %.preheader, label %._crit_edge96, !llvm.loop !26

._crit_edge96:                                    ; preds = %._crit_edge94, %.preheader.lr.ph, %._crit_edge87
  ret void
}

declare i64 @_float32_pack(float noundef) local_unnamed_addr #4

declare float @_float32_unpack(i64 noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn 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 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = !{!14, !7, i64 80}
!14 = !{!"vqgen", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !15, i64 32, !7, i64 40, !7, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !7, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!14, !10, i64 12}
!17 = !{!6, !10, i64 20}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !7, i64 8}
!24 = !{!15, !15, i64 0}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19, !21}


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