; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/src (optimization)

; 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.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl21unscaleunshiftpointbcEPKNS_9ae_vectorES2_S2_S2_S2_S2_S2_S2_PS0_lPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10) #3 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store i64 %9, ptr %21, align 8, !tbaa !9
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %190, %11
  %25 = load i64, ptr %23, align 8, !tbaa !9
  %26 = load i64, ptr %21, align 8, !tbaa !9
  %27 = sub nsw i64 %26, 1
  %28 = icmp sle i64 %25, %27
  br i1 %28, label %29, label %193

29:                                               ; preds = %24
  %30 = load ptr, ptr %18, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = load i64, ptr %23, align 8, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %32, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !12, !range !14, !noundef !15
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %63

37:                                               ; preds = %29
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 4
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = load i64, ptr %23, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %40, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !16
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = load i64, ptr %23, align 8, !tbaa !9
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %43, double noundef %49)
  br i1 %50, label %51, label %63

51:                                               ; preds = %37
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = load i64, ptr %23, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = load ptr, ptr %20, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = load i64, ptr %23, align 8, !tbaa !9
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store double %57, ptr %62, align 8, !tbaa !16
  br label %190

63:                                               ; preds = %37, %29
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %64, i32 0, i32 4
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = load i64, ptr %23, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !12, !range !14, !noundef !15
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %97

71:                                               ; preds = %63
  %72 = load ptr, ptr %20, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = load i64, ptr %23, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %74, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !16
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = load i64, ptr %23, align 8, !tbaa !9
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !16
  %84 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %77, double noundef %83)
  br i1 %84, label %85, label %97

85:                                               ; preds = %71
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %86, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = load i64, ptr %23, align 8, !tbaa !9
  %90 = getelementptr inbounds double, ptr %88, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !16
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = load i64, ptr %23, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double %91, ptr %96, align 8, !tbaa !16
  br label %190

97:                                               ; preds = %71, %63
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = load i64, ptr %23, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %100, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !16
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !11
  %107 = load i64, ptr %23, align 8, !tbaa !9
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %110, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !11
  %113 = load i64, ptr %23, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !16
  %116 = call double @llvm.fmuladd.f64(double %103, double %109, double %115)
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 4
  %119 = load ptr, ptr %118, align 8, !tbaa !11
  %120 = load i64, ptr %23, align 8, !tbaa !9
  %121 = getelementptr inbounds double, ptr %119, i64 %120
  store double %116, ptr %121, align 8, !tbaa !16
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load i64, ptr %23, align 8, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %124, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !12, !range !14, !noundef !15
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %155

129:                                              ; preds = %97
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = load i64, ptr %23, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = load i64, ptr %23, align 8, !tbaa !9
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !16
  %142 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %135, double noundef %141)
  br i1 %142, label %143, label %155

143:                                              ; preds = %129
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load i64, ptr %23, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !16
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !11
  %153 = load i64, ptr %23, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  store double %149, ptr %154, align 8, !tbaa !16
  br label %155

155:                                              ; preds = %143, %129, %97
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %156, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = load i64, ptr %23, align 8, !tbaa !9
  %160 = getelementptr inbounds i8, ptr %158, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !12, !range !14, !noundef !15
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %189

163:                                              ; preds = %155
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = load i64, ptr %23, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !16
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = load i64, ptr %23, align 8, !tbaa !9
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !16
  %176 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %169, double noundef %175)
  br i1 %176, label %177, label %189

177:                                              ; preds = %163
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !11
  %181 = load i64, ptr %23, align 8, !tbaa !9
  %182 = getelementptr inbounds double, ptr %180, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !16
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = load i64, ptr %23, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  store double %183, ptr %188, align 8, !tbaa !16
  br label %189

189:                                              ; preds = %177, %163, %155
  br label %190

190:                                              ; preds = %189, %85, %51
  %191 = load i64, ptr %23, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %23, align 8, !tbaa !9
  br label %24, !llvm.loop !18

193:                                              ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  ret void
}

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

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

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


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

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl21unscaleunshiftpointbcEPKNS_9ae_vectorES2_S2_S2_S2_S2_S2_S2_PS0_lPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8, i64 noundef %9, ptr nocapture noundef readnone %10) local_unnamed_addr #2 {
  %.not.not50 = icmp sgt i64 %9, 0
  br i1 %.not.not50, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %12 = getelementptr inbounds i8, ptr %6, i64 56
  %13 = getelementptr inbounds i8, ptr %8, i64 56
  %14 = getelementptr inbounds i8, ptr %4, i64 56
  %15 = getelementptr inbounds i8, ptr %7, i64 56
  %16 = getelementptr inbounds i8, ptr %5, i64 56
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = getelementptr inbounds i8, ptr %1, i64 56
  %19 = getelementptr inbounds i8, ptr %2, i64 56
  %20 = getelementptr inbounds i8, ptr %3, i64 56
  br label %21

21:                                               ; preds = %.lr.ph, %94
  %.051 = phi i64 [ 0, %.lr.ph ], [ %95, %94 ]
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 %.051
  %24 = load i8, ptr %23, align 1, !tbaa !8, !range !10, !noundef !11
  %25 = trunc nuw i8 %24 to i1
  br i1 %25, label %26, label %34

26:                                               ; preds = %21
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %.051
  %29 = load double, ptr %28, align 8, !tbaa !12
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 %.051
  %32 = load double, ptr %31, align 8, !tbaa !12
  %33 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %29, double noundef %32)
  br i1 %33, label %.sink.split, label %34

34:                                               ; preds = %26, %21
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 %.051
  %37 = load i8, ptr %36, align 1, !tbaa !8, !range !10, !noundef !11
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %47

39:                                               ; preds = %34
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 %.051
  %42 = load double, ptr %41, align 8, !tbaa !12
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %.051
  %45 = load double, ptr %44, align 8, !tbaa !12
  %46 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %42, double noundef %45)
  br i1 %46, label %.sink.split, label %47

47:                                               ; preds = %39, %34
  %48 = load ptr, ptr %13, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %.051
  %50 = load double, ptr %49, align 8, !tbaa !12
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 %.051
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %54, i64 %.051
  %56 = load double, ptr %55, align 8, !tbaa !12
  %57 = tail call double @llvm.fmuladd.f64(double %50, double %53, double %56)
  store double %57, ptr %49, align 8, !tbaa !12
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 %.051
  %60 = load i8, ptr %59, align 1, !tbaa !8, !range !10, !noundef !11
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %62, label %76

62:                                               ; preds = %47
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 %.051
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 %.051
  %68 = load double, ptr %67, align 8, !tbaa !12
  %69 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %65, double noundef %68)
  br i1 %69, label %70, label %76

70:                                               ; preds = %62
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 %.051
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i64 %.051
  store double %73, ptr %75, align 8, !tbaa !12
  br label %76

76:                                               ; preds = %70, %62, %47
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 %.051
  %79 = load i8, ptr %78, align 1, !tbaa !8, !range !10, !noundef !11
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %94

81:                                               ; preds = %76
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 %.051
  %84 = load double, ptr %83, align 8, !tbaa !12
  %85 = load ptr, ptr %20, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 %.051
  %87 = load double, ptr %86, align 8, !tbaa !12
  %88 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %84, double noundef %87)
  br i1 %88, label %.sink.split, label %94

.sink.split:                                      ; preds = %81, %39, %26
  %.sink56 = phi ptr [ %19, %26 ], [ %20, %39 ], [ %20, %81 ]
  %89 = load ptr, ptr %.sink56, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 %.051
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds double, ptr %92, i64 %.051
  store double %91, ptr %93, align 8, !tbaa !12
  br label %94

94:                                               ; preds = %.sink.split, %76, %81
  %95 = add nuw nsw i64 %.051, 1
  %exitcond.not = icmp eq i64 %95, %9
  br i1 %exitcond.not, label %._crit_edge, label %21, !llvm.loop !14

._crit_edge:                                      ; preds = %94, %11
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #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 #2 = { mustprogress 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"bool", !6, i64 0}
!10 = !{i8 0, i8 2}
!11 = !{}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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