; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (alglibinternal)

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

@.str.30 = external hidden unnamed_addr constant [2 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: 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

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

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) #2

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #2

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

declare { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr noundef %0, double %1, double %2, ptr noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr noundef %8, ptr noundef %9) #3 {
  %11 = alloca %"struct.alglib_impl::ae_complex", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.alglib_impl::ae_complex", align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.alglib_impl::ae_complex", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"struct.alglib_impl::ae_complex", align 8
  %25 = alloca %"struct.alglib_impl::ae_complex", align 8
  %26 = alloca %"struct.alglib_impl::ae_complex", align 8
  %27 = alloca %"struct.alglib_impl::ae_complex", align 8
  %28 = alloca %"struct.alglib_impl::ae_complex", align 8
  %29 = alloca %"struct.alglib_impl::ae_complex", align 8
  %30 = alloca %"struct.alglib_impl::ae_complex", align 8
  %31 = alloca %"struct.alglib_impl::ae_complex", align 8
  %32 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  store double %1, ptr %32, align 8
  %33 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  store double %2, ptr %33, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i64 %4, ptr %14, align 8, !tbaa !9
  store i64 %5, ptr %15, align 8, !tbaa !9
  store i64 %6, ptr %16, align 8, !tbaa !9
  store i64 %7, ptr %17, align 8, !tbaa !9
  store ptr %8, ptr %18, align 8, !tbaa !5
  store ptr %9, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !11
  %34 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %35 = load double, ptr %34, align 8
  %36 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %37 = load double, ptr %36, align 8
  %38 = call noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double %35, double %37, double noundef 0.000000e+00)
  br i1 %38, label %47, label %39

39:                                               ; preds = %10
  %40 = load i64, ptr %16, align 8, !tbaa !9
  %41 = load i64, ptr %17, align 8, !tbaa !9
  %42 = icmp sgt i64 %40, %41
  br i1 %42, label %47, label %43

43:                                               ; preds = %39
  %44 = load i64, ptr %14, align 8, !tbaa !9
  %45 = load i64, ptr %15, align 8, !tbaa !9
  %46 = icmp sgt i64 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %43, %39, %10
  store i32 1, ptr %23, align 4
  br label %168

48:                                               ; preds = %43
  %49 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %49, ptr %21, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %65, %48
  %51 = load i64, ptr %21, align 8, !tbaa !9
  %52 = load i64, ptr %17, align 8, !tbaa !9
  %53 = icmp sle i64 %51, %52
  br i1 %53, label %54, label %68

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %55 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %56 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %57 = extractvalue { double, double } %55, 0
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %59 = extractvalue { double, double } %55, 1
  store double %59, ptr %58, align 8
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load i64, ptr %21, align 8, !tbaa !9
  %64 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %62, i64 %63
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %64, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  br label %65

65:                                               ; preds = %54
  %66 = load i64, ptr %21, align 8, !tbaa !9
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %21, align 8, !tbaa !9
  br label %50, !llvm.loop !15

68:                                               ; preds = %50
  %69 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %69, ptr %21, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %113, %68
  %71 = load i64, ptr %21, align 8, !tbaa !9
  %72 = load i64, ptr %15, align 8, !tbaa !9
  %73 = icmp sle i64 %71, %72
  br i1 %73, label %74, label %116

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #4
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !14
  %78 = load i64, ptr %21, align 8, !tbaa !9
  %79 = add nsw i64 %78, 1
  %80 = load i64, ptr %14, align 8, !tbaa !9
  %81 = sub nsw i64 %79, %80
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %77, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %82, i64 16, i1 false), !tbaa.struct !11
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %85 = load double, ptr %84, align 8
  %86 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %87 = load double, ptr %86, align 8
  %88 = call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %85, double %87, ptr noundef %83)
  %89 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %90 = extractvalue { double, double } %88, 0
  store double %90, ptr %89, align 8
  %91 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %92 = extractvalue { double, double } %88, 1
  store double %92, ptr %91, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = load i64, ptr %16, align 8, !tbaa !9
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %95, i64 %96
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %98, i32 0, i32 6
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = load i64, ptr %21, align 8, !tbaa !9
  %102 = getelementptr inbounds ptr, ptr %100, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %103, i64 %104
  %106 = load i64, ptr %16, align 8, !tbaa !9
  %107 = load i64, ptr %17, align 8, !tbaa !9
  %108 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %106, i64 noundef %107)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !11
  %109 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %110 = load double, ptr %109, align 8
  %111 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %112 = load double, ptr %111, align 8
  call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %97, i64 noundef 1, ptr noundef %105, i64 noundef 1, ptr noundef @.str.30, i64 noundef %108, double %110, double %112)
  br label %113

113:                                              ; preds = %74
  %114 = load i64, ptr %21, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %21, align 8, !tbaa !9
  br label %70, !llvm.loop !17

116:                                              ; preds = %70
  %117 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %117, ptr %21, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %164, %116
  %119 = load i64, ptr %21, align 8, !tbaa !9
  %120 = load i64, ptr %15, align 8, !tbaa !9
  %121 = icmp sle i64 %119, %120
  br i1 %121, label %122, label %167

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !14
  %126 = load i64, ptr %21, align 8, !tbaa !9
  %127 = load i64, ptr %14, align 8, !tbaa !9
  %128 = sub nsw i64 %126, %127
  %129 = add nsw i64 %128, 1
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %125, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %130, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !11
  %131 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %132 = load double, ptr %131, align 8
  %133 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %136 = load double, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %138 = load double, ptr %137, align 8
  %139 = call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %132, double %134, double %136, double %138)
  %140 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %141 = extractvalue { double, double } %139, 0
  store double %141, ptr %140, align 8
  %142 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %143 = extractvalue { double, double } %139, 1
  store double %143, ptr %142, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %144, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = load i64, ptr %21, align 8, !tbaa !9
  %148 = getelementptr inbounds ptr, ptr %146, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load i64, ptr %16, align 8, !tbaa !9
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %149, i64 %150
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !14
  %155 = load i64, ptr %16, align 8, !tbaa !9
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %154, i64 %155
  %157 = load i64, ptr %16, align 8, !tbaa !9
  %158 = load i64, ptr %17, align 8, !tbaa !9
  %159 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %157, i64 noundef %158)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !11
  %160 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %161 = load double, ptr %160, align 8
  %162 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %163 = load double, ptr %162, align 8
  call void @_ZN11alglib_impl10ae_v_csubcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %151, i64 noundef 1, ptr noundef %156, i64 noundef 1, ptr noundef @.str.30, i64 noundef %159, double %161, double %163)
  br label %164

164:                                              ; preds = %122
  %165 = load i64, ptr %21, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %21, align 8, !tbaa !9
  br label %118, !llvm.loop !18

167:                                              ; preds = %118
  store i32 0, ptr %23, align 4
  br label %168

168:                                              ; preds = %167, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %169 = load i32, ptr %23, align 4
  switch i32 %169, label %171 [
    i32 0, label %170
    i32 1, label %170
  ]

170:                                              ; preds = %168, %168
  ret void

171:                                              ; preds = %168
  unreachable
}

declare void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) #2

declare void @_ZN11alglib_impl10ae_v_csubcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.30 = external hidden unnamed_addr constant [2 x i8], align 1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double, double, double noundef) local_unnamed_addr #0

declare { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #0

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #0

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #0

declare { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double, double, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl33complexapplyreflectionfromtheleftEPNS_9ae_matrixENS_10ae_complexEPNS_9ae_vectorEllllS4_PNS_8ae_stateE(ptr nocapture noundef readonly %0, double %1, double %2, ptr nocapture noundef readonly %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, ptr nocapture noundef readonly %8, ptr noundef %9) local_unnamed_addr #1 {
  %11 = tail call noundef zeroext i1 @_ZN11alglib_impl9ae_c_eq_dENS_10ae_complexEd(double %1, double %2, double noundef 0.000000e+00)
  %12 = icmp sgt i64 %6, %7
  %or.cond = or i1 %12, %11
  %13 = icmp sgt i64 %4, %5
  %or.cond61 = or i1 %13, %or.cond
  br i1 %or.cond61, label %.loopexit, label %.preheader63

.preheader63:                                     ; preds = %10
  %14 = getelementptr inbounds i8, ptr %8, i64 56
  br label %17

.lr.ph:                                           ; preds = %17
  %15 = getelementptr inbounds i8, ptr %3, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  br label %26

17:                                               ; preds = %.preheader63, %17
  %.064 = phi i64 [ %6, %.preheader63 ], [ %23, %17 ]
  %18 = tail call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %19 = extractvalue { double, double } %18, 0
  %20 = extractvalue { double, double } %18, 1
  %21 = load ptr, ptr %14, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %21, i64 %.064
  store double %19, ptr %22, align 8, !tbaa !8
  %.sroa.413.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store double %20, ptr %.sroa.413.0..sroa_idx, align 8, !tbaa !8
  %23 = add i64 %.064, 1
  %exitcond.not = icmp eq i64 %.064, %7
  br i1 %exitcond.not, label %.lr.ph, label %17, !llvm.loop !10

.lr.ph69:                                         ; preds = %26
  %24 = getelementptr inbounds i8, ptr %3, i64 56
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  br label %41

26:                                               ; preds = %.lr.ph, %26
  %.166 = phi i64 [ %4, %.lr.ph ], [ %28, %26 ]
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = add nsw i64 %.166, 1
  %29 = sub nsw i64 %28, %4
  %30 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %27, i64 %29
  %.sroa.08.0.copyload = load double, ptr %30, align 8, !tbaa !8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.29.0.copyload = load double, ptr %.sroa.29.0..sroa_idx, align 8, !tbaa !8
  %31 = tail call { double, double } @_ZN11alglib_impl9ae_c_conjENS_10ae_complexEPNS_8ae_stateE(double %.sroa.08.0.copyload, double %.sroa.29.0.copyload, ptr noundef %9)
  %32 = extractvalue { double, double } %31, 0
  %33 = extractvalue { double, double } %31, 1
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %34, i64 %6
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.166
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %38, i64 %6
  %40 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %6, i64 noundef %7)
  tail call void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %35, i64 noundef 1, ptr noundef %39, i64 noundef 1, ptr noundef nonnull @.str.30, i64 noundef %40, double %32, double %33)
  %exitcond70.not = icmp eq i64 %.166, %5
  br i1 %exitcond70.not, label %.lr.ph69, label %26, !llvm.loop !14

41:                                               ; preds = %.lr.ph69, %41
  %.268 = phi i64 [ %4, %.lr.ph69 ], [ %56, %41 ]
  %42 = load ptr, ptr %24, align 8, !tbaa !5
  %43 = sub nsw i64 %.268, %4
  %44 = getelementptr %"struct.alglib_impl::ae_complex", ptr %42, i64 %43
  %45 = getelementptr i8, ptr %44, i64 16
  %.sroa.03.0.copyload = load double, ptr %45, align 8, !tbaa !8
  %.sroa.24.0..sroa_idx = getelementptr i8, ptr %44, i64 24
  %.sroa.24.0.copyload = load double, ptr %.sroa.24.0..sroa_idx, align 8, !tbaa !8
  %46 = tail call { double, double } @_ZN11alglib_impl8ae_c_mulENS_10ae_complexES0_(double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %1, double %2)
  %47 = extractvalue { double, double } %46, 0
  %48 = extractvalue { double, double } %46, 1
  %49 = load ptr, ptr %25, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.268
  %51 = load ptr, ptr %50, align 8, !tbaa !12
  %52 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %51, i64 %6
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %53, i64 %6
  %55 = tail call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %6, i64 noundef %7)
  tail call void @_ZN11alglib_impl10ae_v_csubcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef %52, i64 noundef 1, ptr noundef %54, i64 noundef 1, ptr noundef nonnull @.str.30, i64 noundef %55, double %47, double %48)
  %56 = add i64 %.268, 1
  %exitcond71.not = icmp eq i64 %.268, %5
  br i1 %exitcond71.not, label %.loopexit, label %41, !llvm.loop !15

.loopexit:                                        ; preds = %41, %10
  ret void
}

declare void @_ZN11alglib_impl10ae_v_caddcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) local_unnamed_addr #0

declare void @_ZN11alglib_impl10ae_v_csubcEPNS_10ae_complexElPKS0_lPKclS0_(ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, double, double) local_unnamed_addr #0

attributes #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 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 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


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