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

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

@sequence_base = external hidden global float, align 4
@v_sofar = external hidden global i32, align 4

; 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 uwtable
declare dso_local i32 @get_line_value(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_next_value(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @reset_next_value() #1

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

19:                                               ; preds = %114, %5
  br label %20

20:                                               ; preds = %19
  %21 = load i32, ptr @v_sofar, align 4, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %29, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = call i32 @get_line_value(ptr noundef %25, ptr noundef %26)
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %50

29:                                               ; preds = %24, %20
  call void @reset_next_value()
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = call i32 @get_next_value(ptr noundef %30, ptr noundef %31)
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  br label %115

35:                                               ; preds = %29
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %46, %35
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %49

40:                                               ; preds = %36
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = load float, ptr %41, align 4, !tbaa !14
  store float %42, ptr @sequence_base, align 4, !tbaa !14
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call i32 @get_line_value(ptr noundef %43, ptr noundef %44)
  br label %46

46:                                               ; preds = %40
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %12, align 4, !tbaa !9
  br label %36, !llvm.loop !16

49:                                               ; preds = %36
  br label %50

50:                                               ; preds = %49, %24
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %68, %50
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.static_codebook, ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !18
  %57 = icmp slt i64 %53, %56
  br i1 %57, label %58, label %71

58:                                               ; preds = %51
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %60, i64 %62
  %64 = call i32 @get_line_value(ptr noundef %59, ptr noundef %63)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %58
  br label %71

67:                                               ; preds = %58
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %12, align 4, !tbaa !9
  br label %51, !llvm.loop !20

71:                                               ; preds = %66, %51
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.static_codebook, ptr %74, i32 0, i32 0
  %76 = load i64, ptr %75, align 8, !tbaa !18
  %77 = icmp eq i64 %73, %76
  br i1 %77, label %78, label %114

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.static_codebook, ptr %80, i32 0, i32 0
  %82 = load i64, ptr %81, align 8, !tbaa !18
  %83 = sub nsw i64 %82, 1
  %84 = getelementptr inbounds float, ptr %79, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !14
  store float %85, ptr %14, align 4, !tbaa !14
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %101, %78
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.static_codebook, ptr %89, i32 0, i32 0
  %91 = load i64, ptr %90, align 8, !tbaa !18
  %92 = icmp slt i64 %88, %91
  br i1 %92, label %93, label %104

93:                                               ; preds = %86
  %94 = load float, ptr @sequence_base, align 4, !tbaa !14
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds float, ptr %95, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !14
  %100 = fsub float %99, %94
  store float %100, ptr %98, align 4, !tbaa !14
  br label %101

101:                                              ; preds = %93
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %12, align 4, !tbaa !9
  br label %86, !llvm.loop !21

104:                                              ; preds = %86
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.static_codebook, ptr %105, i32 0, i32 7
  %107 = load i32, ptr %106, align 4, !tbaa !22
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %104
  %110 = load float, ptr %14, align 4, !tbaa !14
  store float %110, ptr @sequence_base, align 4, !tbaa !14
  br label %111

111:                                              ; preds = %109, %104
  %112 = load i32, ptr @v_sofar, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr @v_sofar, align 4, !tbaa !9
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  br label %116

114:                                              ; preds = %71
  store float 0.000000e+00, ptr @sequence_base, align 4, !tbaa !14
  br label %19

115:                                              ; preds = %34
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %116

116:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  %117 = load i32, ptr %6, align 4
  ret i32 %117
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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, !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 24}
!12 = !{!"codebook", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !13, i64 0}
!19 = !{!"static_codebook", !13, i64 0, !13, i64 8, !6, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !10, i64 48, !10, i64 52, !6, i64 56, !10, i64 64}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!19, !10, i64 52}


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

@sequence_base = external hidden local_unnamed_addr global float, align 4
@v_sofar = external hidden local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_line_value(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_next_value(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @reset_next_value() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @get_vector(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = icmp sgt i32 %2, 0
  br i1 %8, label %.split.us, label %.split

.split.us:                                        ; preds = %5, %23
  %9 = load i32, ptr @v_sofar, align 4, !tbaa !12
  %10 = icmp eq i32 %9, %3
  br i1 %10, label %13, label %11

11:                                               ; preds = %.split.us
  %12 = tail call i32 @get_line_value(ptr noundef %1, ptr noundef %4)
  %.not.us = icmp eq i32 %12, 0
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %13

13:                                               ; preds = %11, %.split.us
  tail call void @reset_next_value()
  %14 = tail call i32 @get_next_value(ptr noundef %1, ptr noundef %4)
  %.not33.us = icmp eq i32 %14, 0
  br i1 %.not33.us, label %.preheader.us, label %.loopexit36

..loopexit_crit_edge.us:                          ; preds = %.preheader.us, %11
  %15 = load i64, ptr %7, align 8, !tbaa !13
  %16 = icmp sgt i64 %15, 1
  br i1 %16, label %.lr.ph40.us, label %._crit_edge.us

17:                                               ; preds = %.lr.ph40.us
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %18 = icmp sgt i64 %.pre61.pre, %indvars.iv.next55
  br i1 %18, label %.lr.ph40.us, label %._crit_edge.us, !llvm.loop !15

.lr.ph40.us:                                      ; preds = %..loopexit_crit_edge.us, %17
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %17 ], [ 1, %..loopexit_crit_edge.us ]
  %19 = getelementptr inbounds float, ptr %4, i64 %indvars.iv54
  %20 = tail call i32 @get_line_value(ptr noundef %1, ptr noundef nonnull %19)
  %.not34.us = icmp eq i32 %20, 0
  %.pre61.pre = load i64, ptr %7, align 8, !tbaa !13
  br i1 %.not34.us, label %17, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %17, %.lr.ph40.us, %..loopexit_crit_edge.us
  %21 = phi i64 [ %15, %..loopexit_crit_edge.us ], [ %.pre61.pre, %.lr.ph40.us ], [ %.pre61.pre, %17 ]
  %.lcssa.us = phi i64 [ 1, %..loopexit_crit_edge.us ], [ %indvars.iv.next55, %17 ], [ %indvars.iv54, %.lr.ph40.us ]
  %22 = icmp eq i64 %21, %.lcssa.us
  br i1 %22, label %.lr.ph.preheader, label %23

23:                                               ; preds = %._crit_edge.us
  store float 0.000000e+00, ptr @sequence_base, align 4, !tbaa !17
  br label %.split.us

.preheader.us:                                    ; preds = %13, %.preheader.us
  %.02938.us = phi i32 [ %26, %.preheader.us ], [ 0, %13 ]
  %24 = load float, ptr %4, align 4, !tbaa !17
  store float %24, ptr @sequence_base, align 4, !tbaa !17
  %25 = tail call i32 @get_line_value(ptr noundef %1, ptr noundef nonnull %4)
  %26 = add nuw nsw i32 %.02938.us, 1
  %exitcond.not = icmp eq i32 %26, %2
  br i1 %exitcond.not, label %..loopexit_crit_edge.us, label %.preheader.us, !llvm.loop !19

.split:                                           ; preds = %5, %76
  %27 = load i32, ptr @v_sofar, align 4, !tbaa !12
  %28 = icmp eq i32 %27, %3
  br i1 %28, label %31, label %29

29:                                               ; preds = %.split
  %30 = tail call i32 @get_line_value(ptr noundef %1, ptr noundef %4)
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %.preheader, label %31

31:                                               ; preds = %29, %.split
  tail call void @reset_next_value()
  %32 = tail call i32 @get_next_value(ptr noundef %1, ptr noundef %4)
  %.not33 = icmp eq i32 %32, 0
  br i1 %.not33, label %.preheader, label %.loopexit36

.preheader:                                       ; preds = %31, %29
  %33 = load i64, ptr %7, align 8, !tbaa !13
  %34 = icmp sgt i64 %33, 1
  br i1 %34, label %.lr.ph40, label %._crit_edge

35:                                               ; preds = %.lr.ph40
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = icmp sgt i64 %.pre.pre, %indvars.iv.next
  br i1 %36, label %.lr.ph40, label %._crit_edge, !llvm.loop !15

.lr.ph40:                                         ; preds = %.preheader, %35
  %indvars.iv = phi i64 [ %indvars.iv.next, %35 ], [ 1, %.preheader ]
  %37 = getelementptr inbounds float, ptr %4, i64 %indvars.iv
  %38 = tail call i32 @get_line_value(ptr noundef %1, ptr noundef nonnull %37)
  %.not34 = icmp eq i32 %38, 0
  %.pre.pre = load i64, ptr %7, align 8, !tbaa !13
  br i1 %.not34, label %35, label %._crit_edge

._crit_edge:                                      ; preds = %35, %.lr.ph40, %.preheader
  %39 = phi i64 [ %33, %.preheader ], [ %.pre.pre, %.lr.ph40 ], [ %.pre.pre, %35 ]
  %.lcssa = phi i64 [ 1, %.preheader ], [ %indvars.iv.next, %35 ], [ %indvars.iv, %.lr.ph40 ]
  %40 = icmp eq i64 %39, %.lcssa
  br i1 %40, label %.lr.ph.preheader, label %76

.lr.ph.preheader:                                 ; preds = %._crit_edge, %._crit_edge.us
  %.us-phi = phi i64 [ %21, %._crit_edge.us ], [ %39, %._crit_edge ]
  %41 = getelementptr float, ptr %4, i64 %.us-phi
  %42 = getelementptr i8, ptr %41, i64 -4
  %43 = load float, ptr %42, align 4, !tbaa !17
  %min.iters.check = icmp ult i64 %.us-phi, 8
  br i1 %min.iters.check, label %.lr.ph.preheader73, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %44 = shl i64 %.us-phi, 2
  %scevgep = getelementptr i8, ptr %4, i64 %44
  %bound0 = icmp ult ptr %4, getelementptr inbounds (i8, ptr @sequence_base, i64 4)
  %bound1 = icmp ugt ptr %scevgep, @sequence_base
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader73, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %.us-phi, -8
  %45 = load float, ptr @sequence_base, align 4, !tbaa !17, !alias.scope !20
  %broadcast.splatinsert71 = insertelement <4 x float> poison, float %45, i64 0
  %broadcast.splat72 = shufflevector <4 x float> %broadcast.splatinsert71, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %46 = getelementptr inbounds float, ptr %4, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load = load <4 x float>, ptr %46, align 4, !tbaa !17, !alias.scope !23, !noalias !20
  %wide.load70 = load <4 x float>, ptr %47, align 4, !tbaa !17, !alias.scope !23, !noalias !20
  %48 = fsub <4 x float> %wide.load, %broadcast.splat72
  %49 = fsub <4 x float> %wide.load70, %broadcast.splat72
  store <4 x float> %48, ptr %46, align 4, !tbaa !17, !alias.scope !23, !noalias !20
  store <4 x float> %49, ptr %47, align 4, !tbaa !17, !alias.scope !23, !noalias !20
  %index.next = add nuw i64 %index, 8
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.us-phi, %n.vec
  br i1 %cmp.n, label %._crit_edge47, label %.lr.ph.preheader73

.lr.ph.preheader73:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv57.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %.us-phi, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader73, %.lr.ph.prol
  %indvars.iv57.prol = phi i64 [ %indvars.iv.next58.prol, %.lr.ph.prol ], [ %indvars.iv57.ph, %.lr.ph.preheader73 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader73 ]
  %51 = load float, ptr @sequence_base, align 4, !tbaa !17
  %52 = getelementptr inbounds float, ptr %4, i64 %indvars.iv57.prol
  %53 = load float, ptr %52, align 4, !tbaa !17
  %54 = fsub float %53, %51
  store float %54, ptr %52, align 4, !tbaa !17
  %indvars.iv.next58.prol = add nuw nsw i64 %indvars.iv57.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !28

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader73
  %indvars.iv57.unr = phi i64 [ %indvars.iv57.ph, %.lr.ph.preheader73 ], [ %indvars.iv.next58.prol, %.lr.ph.prol ]
  %55 = sub i64 %indvars.iv57.ph, %.us-phi
  %56 = icmp ugt i64 %55, -4
  br i1 %56, label %._crit_edge47, label %.lr.ph.preheader73.new

.lr.ph.preheader73.new:                           ; preds = %.lr.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %4, i64 4
  %invariant.gep80 = getelementptr i8, ptr %4, i64 8
  %invariant.gep82 = getelementptr i8, ptr %4, i64 12
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader73.new
  %indvars.iv57 = phi i64 [ %indvars.iv57.unr, %.lr.ph.preheader73.new ], [ %indvars.iv.next58.3, %.lr.ph ]
  %57 = load float, ptr @sequence_base, align 4, !tbaa !17
  %58 = getelementptr inbounds float, ptr %4, i64 %indvars.iv57
  %59 = load float, ptr %58, align 4, !tbaa !17
  %60 = fsub float %59, %57
  store float %60, ptr %58, align 4, !tbaa !17
  %61 = load float, ptr @sequence_base, align 4, !tbaa !17
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv57
  %62 = load float, ptr %gep, align 4, !tbaa !17
  %63 = fsub float %62, %61
  store float %63, ptr %gep, align 4, !tbaa !17
  %64 = load float, ptr @sequence_base, align 4, !tbaa !17
  %gep81 = getelementptr float, ptr %invariant.gep80, i64 %indvars.iv57
  %65 = load float, ptr %gep81, align 4, !tbaa !17
  %66 = fsub float %65, %64
  store float %66, ptr %gep81, align 4, !tbaa !17
  %67 = load float, ptr @sequence_base, align 4, !tbaa !17
  %gep83 = getelementptr float, ptr %invariant.gep82, i64 %indvars.iv57
  %68 = load float, ptr %gep83, align 4, !tbaa !17
  %69 = fsub float %68, %67
  store float %69, ptr %gep83, align 4, !tbaa !17
  %indvars.iv.next58.3 = add nuw nsw i64 %indvars.iv57, 4
  %exitcond60.not.3 = icmp eq i64 %indvars.iv.next58.3, %.us-phi
  br i1 %exitcond60.not.3, label %._crit_edge47, label %.lr.ph, !llvm.loop !30

._crit_edge47:                                    ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %70 = getelementptr inbounds i8, ptr %7, i64 52
  %71 = load i32, ptr %70, align 4, !tbaa !31
  %.not35 = icmp eq i32 %71, 0
  br i1 %.not35, label %73, label %72

72:                                               ; preds = %._crit_edge47
  store float %43, ptr @sequence_base, align 4, !tbaa !17
  br label %73

73:                                               ; preds = %72, %._crit_edge47
  %74 = load i32, ptr @v_sofar, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr @v_sofar, align 4, !tbaa !12
  br label %.loopexit36

76:                                               ; preds = %._crit_edge
  store float 0.000000e+00, ptr @sequence_base, align 4, !tbaa !17
  br label %.split

.loopexit36:                                      ; preds = %31, %13, %73
  %.0 = phi i32 [ 0, %73 ], [ -1, %13 ], [ -1, %31 ]
  ret i32 %.0
}

attributes #0 = { 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" }

!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 24}
!6 = !{!"codebook", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"static_codebook", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24, !7, i64 32, !7, i64 40, !11, i64 48, !11, i64 52, !10, i64 56, !11, i64 64}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = distinct !{!19, !16}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !16, !26, !27}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !16, !26}
!31 = !{!14, !11, i64 52}


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