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

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

@.str.332 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [47 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

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

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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl10copymatrixEPNS_9ae_matrixEllllS1_llllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26internalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, 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 %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca %"struct.alglib_impl::ae_vector", align 8
  %47 = alloca %"struct.alglib_impl::ae_vector", align 8
  %48 = alloca %"struct.alglib_impl::ae_vector", align 8
  %49 = alloca %"struct.alglib_impl::ae_vector", align 8
  %50 = alloca %"struct.alglib_impl::ae_vector", align 8
  %51 = alloca i8, align 1
  %52 = alloca i8, align 1
  %53 = alloca i8, align 1
  %54 = alloca double, align 8
  %55 = alloca i8, align 1
  %56 = alloca i64, align 8
  %57 = alloca i64, align 8
  %58 = alloca double, align 8
  %59 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store i64 %2, ptr %12, align 8, !tbaa !9
  store i64 %3, ptr %13, align 8, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %60, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %43, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %46, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %47, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 64, i1 false)
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %61)
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %62)
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %63, align 8, !tbaa !9
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %43, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %65, i1 noundef zeroext true)
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 3, ptr noundef %66, i1 noundef zeroext true)
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 3, ptr noundef %67, i1 noundef zeroext true)
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %46, i64 noundef 0, i64 noundef 3, ptr noundef %68, i1 noundef zeroext true)
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %47, i64 noundef 0, i64 noundef 3, ptr noundef %69, i1 noundef zeroext true)
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %48, i64 noundef 0, i64 noundef 3, ptr noundef %70, i1 noundef zeroext true)
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %49, i64 noundef 0, i64 noundef 3, ptr noundef %71, i1 noundef zeroext true)
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %50, i64 noundef 0, i64 noundef 3, ptr noundef %72, i1 noundef zeroext true)
  store i64 12, ptr %34, align 8, !tbaa !9
  store i64 50, ptr %32, align 8, !tbaa !9
  %73 = load i64, ptr %32, align 8, !tbaa !9
  %74 = load ptr, ptr %18, align 8, !tbaa !5
  %75 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 3, i64 noundef %73, ptr noundef %74)
  store i64 %75, ptr %32, align 8, !tbaa !9
  %76 = load i64, ptr %32, align 8, !tbaa !9
  %77 = load i64, ptr %34, align 8, !tbaa !9
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %76, i64 noundef %77, ptr noundef %78)
  store i64 %79, ptr %34, align 8, !tbaa !9
  store double 1.500000e+00, ptr %54, align 8, !tbaa !11
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %80, i64 noundef 1, ptr noundef %81)
  %83 = add nsw i64 %82, 1
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %83, ptr noundef %84)
  %85 = load i64, ptr %34, align 8, !tbaa !9
  %86 = add nsw i64 %85, 1
  %87 = load i64, ptr %34, align 8, !tbaa !9
  %88 = add nsw i64 %87, 1
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %43, i64 noundef %86, i64 noundef %88, ptr noundef %89)
  %90 = load i64, ptr %34, align 8, !tbaa !9
  %91 = add nsw i64 %90, 1
  %92 = add nsw i64 %91, 1
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %92, ptr noundef %93)
  %94 = load i64, ptr %34, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  %96 = add nsw i64 %95, 1
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %96, ptr noundef %97)
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i64, ptr %11, align 8, !tbaa !9
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %99, i64 noundef 1, ptr noundef %100)
  %102 = add nsw i64 %101, 1
  %103 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %98, i64 noundef %102, ptr noundef %103)
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = load i64, ptr %11, align 8, !tbaa !9
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %105, i64 noundef 1, ptr noundef %106)
  %108 = add nsw i64 %107, 1
  %109 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %104, i64 noundef %108, ptr noundef %109)
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %46, i64 noundef 2, ptr noundef %110)
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %47, i64 noundef 2, ptr noundef %111)
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef 4, ptr noundef %112)
  %113 = load i64, ptr %11, align 8, !tbaa !9
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %113, i64 noundef 1, ptr noundef %114)
  %116 = add nsw i64 %115, 1
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %49, i64 noundef %116, ptr noundef %117)
  %118 = load i64, ptr %11, align 8, !tbaa !9
  %119 = load ptr, ptr %18, align 8, !tbaa !5
  %120 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %118, i64 noundef 1, ptr noundef %119)
  %121 = add nsw i64 %120, 1
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef %121, ptr noundef %122)
  %123 = load i64, ptr %11, align 8, !tbaa !9
  %124 = icmp sge i64 %123, 0
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %124, ptr noundef @.str.344, ptr noundef %125)
  %126 = load i64, ptr %12, align 8, !tbaa !9
  %127 = icmp eq i64 %126, 0
  br i1 %127, label %131, label %128

128:                                              ; preds = %9
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = icmp eq i64 %129, 1
  br label %131

131:                                              ; preds = %128, %9
  %132 = phi i1 [ true, %9 ], [ %130, %128 ]
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %132, ptr noundef @.str.345, ptr noundef %133)
  %134 = load i64, ptr %13, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 0
  br i1 %135, label %142, label %136

136:                                              ; preds = %131
  %137 = load i64, ptr %13, align 8, !tbaa !9
  %138 = icmp eq i64 %137, 1
  br i1 %138, label %142, label %139

139:                                              ; preds = %136
  %140 = load i64, ptr %13, align 8, !tbaa !9
  %141 = icmp eq i64 %140, 2
  br label %142

142:                                              ; preds = %139, %136, %131
  %143 = phi i1 [ true, %136 ], [ true, %131 ], [ %141, %139 ]
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %143, ptr noundef @.str.346, ptr noundef %144)
  %145 = load i64, ptr %12, align 8, !tbaa !9
  %146 = icmp eq i64 %145, 1
  %147 = zext i1 %146 to i8
  store i8 %147, ptr %52, align 1, !tbaa !13
  %148 = load i64, ptr %13, align 8, !tbaa !9
  %149 = icmp eq i64 %148, 2
  %150 = zext i1 %149 to i8
  store i8 %150, ptr %51, align 1, !tbaa !13
  %151 = load i64, ptr %13, align 8, !tbaa !9
  %152 = icmp ne i64 %151, 0
  %153 = zext i1 %152 to i8
  store i8 %153, ptr %53, align 1, !tbaa !13
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %154, align 8, !tbaa !9
  %155 = load i8, ptr %51, align 1, !tbaa !13, !range !15, !noundef !16
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %204

157:                                              ; preds = %142
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = load i64, ptr %11, align 8, !tbaa !9
  %160 = add nsw i64 %159, 1
  %161 = load i64, ptr %11, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %158, i64 noundef %160, i64 noundef %162, ptr noundef %163)
  store i64 1, ptr %21, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %200, %157
  %165 = load i64, ptr %21, align 8, !tbaa !9
  %166 = load i64, ptr %11, align 8, !tbaa !9
  %167 = icmp sle i64 %165, %166
  br i1 %167, label %168, label %203

168:                                              ; preds = %164
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %196, %168
  %170 = load i64, ptr %29, align 8, !tbaa !9
  %171 = load i64, ptr %11, align 8, !tbaa !9
  %172 = icmp sle i64 %170, %171
  br i1 %172, label %173, label %199

173:                                              ; preds = %169
  %174 = load i64, ptr %21, align 8, !tbaa !9
  %175 = load i64, ptr %29, align 8, !tbaa !9
  %176 = icmp eq i64 %174, %175
  br i1 %176, label %177, label %186

177:                                              ; preds = %173
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %178, i32 0, i32 6
  %180 = load ptr, ptr %179, align 8, !tbaa !17
  %181 = load i64, ptr %21, align 8, !tbaa !9
  %182 = getelementptr inbounds ptr, ptr %180, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load i64, ptr %29, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double 1.000000e+00, ptr %185, align 8, !tbaa !11
  br label %195

186:                                              ; preds = %173
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !17
  %190 = load i64, ptr %21, align 8, !tbaa !9
  %191 = getelementptr inbounds ptr, ptr %189, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = load i64, ptr %29, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  store double 0.000000e+00, ptr %194, align 8, !tbaa !11
  br label %195

195:                                              ; preds = %186, %177
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %29, align 8, !tbaa !9
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %29, align 8, !tbaa !9
  br label %169, !llvm.loop !18

199:                                              ; preds = %169
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %21, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %21, align 8, !tbaa !9
  br label %164, !llvm.loop !20

203:                                              ; preds = %164
  br label %204

204:                                              ; preds = %203, %142
  %205 = load i64, ptr %11, align 8, !tbaa !9
  %206 = icmp eq i64 %205, 0
  br i1 %206, label %207, label %209

207:                                              ; preds = %204
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %208)
  store i32 1, ptr %59, align 4
  br label %1086

209:                                              ; preds = %204
  %210 = load i64, ptr %11, align 8, !tbaa !9
  %211 = icmp eq i64 %210, 1
  br i1 %211, label %212, label %229

212:                                              ; preds = %209
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %213, i32 0, i32 6
  %215 = load ptr, ptr %214, align 8, !tbaa !17
  %216 = getelementptr inbounds ptr, ptr %215, i64 1
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 1
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = load ptr, ptr %14, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !17
  %223 = getelementptr inbounds double, ptr %222, i64 1
  store double %219, ptr %223, align 8, !tbaa !11
  %224 = load ptr, ptr %15, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %224, i32 0, i32 4
  %226 = load ptr, ptr %225, align 8, !tbaa !17
  %227 = getelementptr inbounds double, ptr %226, i64 1
  store double 0.000000e+00, ptr %227, align 8, !tbaa !11
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %228)
  store i32 1, ptr %59, align 4
  br label %1086

229:                                              ; preds = %209
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %255, %229
  %231 = load i64, ptr %29, align 8, !tbaa !9
  %232 = load i64, ptr %11, align 8, !tbaa !9
  %233 = sub nsw i64 %232, 2
  %234 = icmp sle i64 %231, %233
  br i1 %234, label %235, label %258

235:                                              ; preds = %230
  %236 = load i64, ptr %29, align 8, !tbaa !9
  %237 = add nsw i64 %236, 2
  store i64 %237, ptr %21, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %251, %235
  %239 = load i64, ptr %21, align 8, !tbaa !9
  %240 = load i64, ptr %11, align 8, !tbaa !9
  %241 = icmp sle i64 %239, %240
  br i1 %241, label %242, label %254

242:                                              ; preds = %238
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !17
  %246 = load i64, ptr %21, align 8, !tbaa !9
  %247 = getelementptr inbounds ptr, ptr %245, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load i64, ptr %29, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  store double 0.000000e+00, ptr %250, align 8, !tbaa !11
  br label %251

251:                                              ; preds = %242
  %252 = load i64, ptr %21, align 8, !tbaa !9
  %253 = add nsw i64 %252, 1
  store i64 %253, ptr %21, align 8, !tbaa !9
  br label %238, !llvm.loop !21

254:                                              ; preds = %238
  br label %255

255:                                              ; preds = %254
  %256 = load i64, ptr %29, align 8, !tbaa !9
  %257 = add nsw i64 %256, 1
  store i64 %257, ptr %29, align 8, !tbaa !9
  br label %230, !llvm.loop !22

258:                                              ; preds = %230
  %259 = load i64, ptr %34, align 8, !tbaa !9
  %260 = icmp sle i64 %259, 2
  br i1 %260, label %269, label %261

261:                                              ; preds = %258
  %262 = load i64, ptr %34, align 8, !tbaa !9
  %263 = load i64, ptr %11, align 8, !tbaa !9
  %264 = icmp sgt i64 %262, %263
  br i1 %264, label %269, label %265

265:                                              ; preds = %261
  %266 = load i64, ptr %32, align 8, !tbaa !9
  %267 = load i64, ptr %11, align 8, !tbaa !9
  %268 = icmp sge i64 %266, %267
  br i1 %268, label %269, label %355

269:                                              ; preds = %265, %261, %258
  %270 = load i8, ptr %52, align 1, !tbaa !13, !range !15, !noundef !16
  %271 = trunc i8 %270 to i1
  %272 = load i8, ptr %53, align 1, !tbaa !13, !range !15, !noundef !16
  %273 = trunc i8 %272 to i1
  %274 = load i64, ptr %11, align 8, !tbaa !9
  %275 = load i64, ptr %11, align 8, !tbaa !9
  %276 = load ptr, ptr %10, align 8, !tbaa !5
  %277 = load ptr, ptr %14, align 8, !tbaa !5
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = load i64, ptr %11, align 8, !tbaa !9
  %280 = load ptr, ptr %16, align 8, !tbaa !5
  %281 = load ptr, ptr %17, align 8, !tbaa !5
  %282 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext %271, i1 noundef zeroext %273, i64 noundef %274, i64 noundef 1, i64 noundef %275, ptr noundef %276, ptr noundef %277, ptr noundef %278, i64 noundef 1, i64 noundef %279, ptr noundef %280, ptr noundef %20, ptr noundef %48, ptr noundef %46, ptr noundef %47, ptr noundef %281, ptr noundef %282)
  %283 = load i8, ptr %52, align 1, !tbaa !13, !range !15, !noundef !16
  %284 = trunc i8 %283 to i1
  br i1 %284, label %285, label %353

285:                                              ; preds = %269
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %286

286:                                              ; preds = %351, %285
  %287 = load i64, ptr %29, align 8, !tbaa !9
  %288 = load i64, ptr %11, align 8, !tbaa !9
  %289 = icmp sle i64 %287, %288
  br i1 %289, label %290, label %352

290:                                              ; preds = %286
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %291, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !17
  %294 = load i64, ptr %29, align 8, !tbaa !9
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !11
  %297 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %296, double noundef 0.000000e+00)
  br i1 %297, label %298, label %320

298:                                              ; preds = %290
  %299 = load i64, ptr %29, align 8, !tbaa !9
  %300 = add nsw i64 %299, 1
  store i64 %300, ptr %21, align 8, !tbaa !9
  br label %301

301:                                              ; preds = %314, %298
  %302 = load i64, ptr %21, align 8, !tbaa !9
  %303 = load i64, ptr %11, align 8, !tbaa !9
  %304 = icmp sle i64 %302, %303
  br i1 %304, label %305, label %317

305:                                              ; preds = %301
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %306, i32 0, i32 6
  %308 = load ptr, ptr %307, align 8, !tbaa !17
  %309 = load i64, ptr %21, align 8, !tbaa !9
  %310 = getelementptr inbounds ptr, ptr %308, i64 %309
  %311 = load ptr, ptr %310, align 8, !tbaa !5
  %312 = load i64, ptr %29, align 8, !tbaa !9
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  store double 0.000000e+00, ptr %313, align 8, !tbaa !11
  br label %314

314:                                              ; preds = %305
  %315 = load i64, ptr %21, align 8, !tbaa !9
  %316 = add nsw i64 %315, 1
  store i64 %316, ptr %21, align 8, !tbaa !9
  br label %301, !llvm.loop !23

317:                                              ; preds = %301
  %318 = load i64, ptr %29, align 8, !tbaa !9
  %319 = add nsw i64 %318, 1
  store i64 %319, ptr %29, align 8, !tbaa !9
  br label %351

320:                                              ; preds = %290
  %321 = load i64, ptr %29, align 8, !tbaa !9
  %322 = add nsw i64 %321, 2
  store i64 %322, ptr %21, align 8, !tbaa !9
  br label %323

323:                                              ; preds = %345, %320
  %324 = load i64, ptr %21, align 8, !tbaa !9
  %325 = load i64, ptr %11, align 8, !tbaa !9
  %326 = icmp sle i64 %324, %325
  br i1 %326, label %327, label %348

327:                                              ; preds = %323
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %328, i32 0, i32 6
  %330 = load ptr, ptr %329, align 8, !tbaa !17
  %331 = load i64, ptr %21, align 8, !tbaa !9
  %332 = getelementptr inbounds ptr, ptr %330, i64 %331
  %333 = load ptr, ptr %332, align 8, !tbaa !5
  %334 = load i64, ptr %29, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %333, i64 %334
  store double 0.000000e+00, ptr %335, align 8, !tbaa !11
  %336 = load ptr, ptr %10, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %336, i32 0, i32 6
  %338 = load ptr, ptr %337, align 8, !tbaa !17
  %339 = load i64, ptr %21, align 8, !tbaa !9
  %340 = getelementptr inbounds ptr, ptr %338, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load i64, ptr %29, align 8, !tbaa !9
  %343 = add nsw i64 %342, 1
  %344 = getelementptr inbounds double, ptr %341, i64 %343
  store double 0.000000e+00, ptr %344, align 8, !tbaa !11
  br label %345

345:                                              ; preds = %327
  %346 = load i64, ptr %21, align 8, !tbaa !9
  %347 = add nsw i64 %346, 1
  store i64 %347, ptr %21, align 8, !tbaa !9
  br label %323, !llvm.loop !24

348:                                              ; preds = %323
  %349 = load i64, ptr %29, align 8, !tbaa !9
  %350 = add nsw i64 %349, 2
  store i64 %350, ptr %29, align 8, !tbaa !9
  br label %351

351:                                              ; preds = %348, %317
  br label %286, !llvm.loop !25

352:                                              ; preds = %286
  br label %353

353:                                              ; preds = %352, %269
  %354 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %354)
  store i32 1, ptr %59, align 4
  br label %1086

355:                                              ; preds = %265
  store double 1.000000e-300, ptr %42, align 8, !tbaa !11
  store double 1.000000e-15, ptr %41, align 8, !tbaa !11
  %356 = load double, ptr %42, align 8, !tbaa !11
  %357 = load i64, ptr %11, align 8, !tbaa !9
  %358 = sitofp i64 %357 to double
  %359 = load double, ptr %41, align 8, !tbaa !11
  %360 = fdiv double %358, %359
  %361 = fmul double %356, %360
  store double %361, ptr %37, align 8, !tbaa !11
  store i64 1, ptr %22, align 8, !tbaa !9
  %362 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %362, ptr %23, align 8, !tbaa !9
  %363 = load i64, ptr %11, align 8, !tbaa !9
  %364 = mul nsw i64 30, %363
  store i64 %364, ptr %27, align 8, !tbaa !9
  %365 = load i64, ptr %11, align 8, !tbaa !9
  store i64 %365, ptr %21, align 8, !tbaa !9
  br label %366

366:                                              ; preds = %1083, %355
  store i64 1, ptr %31, align 8, !tbaa !9
  %367 = load i64, ptr %21, align 8, !tbaa !9
  %368 = icmp slt i64 %367, 1
  br i1 %368, label %369, label %442

369:                                              ; preds = %366
  %370 = load i8, ptr %52, align 1, !tbaa !13, !range !15, !noundef !16
  %371 = trunc i8 %370 to i1
  br i1 %371, label %372, label %440

372:                                              ; preds = %369
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %373

373:                                              ; preds = %438, %372
  %374 = load i64, ptr %29, align 8, !tbaa !9
  %375 = load i64, ptr %11, align 8, !tbaa !9
  %376 = icmp sle i64 %374, %375
  br i1 %376, label %377, label %439

377:                                              ; preds = %373
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %378, i32 0, i32 4
  %380 = load ptr, ptr %379, align 8, !tbaa !17
  %381 = load i64, ptr %29, align 8, !tbaa !9
  %382 = getelementptr inbounds double, ptr %380, i64 %381
  %383 = load double, ptr %382, align 8, !tbaa !11
  %384 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %383, double noundef 0.000000e+00)
  br i1 %384, label %385, label %407

385:                                              ; preds = %377
  %386 = load i64, ptr %29, align 8, !tbaa !9
  %387 = add nsw i64 %386, 1
  store i64 %387, ptr %21, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %401, %385
  %389 = load i64, ptr %21, align 8, !tbaa !9
  %390 = load i64, ptr %11, align 8, !tbaa !9
  %391 = icmp sle i64 %389, %390
  br i1 %391, label %392, label %404

392:                                              ; preds = %388
  %393 = load ptr, ptr %10, align 8, !tbaa !5
  %394 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %393, i32 0, i32 6
  %395 = load ptr, ptr %394, align 8, !tbaa !17
  %396 = load i64, ptr %21, align 8, !tbaa !9
  %397 = getelementptr inbounds ptr, ptr %395, i64 %396
  %398 = load ptr, ptr %397, align 8, !tbaa !5
  %399 = load i64, ptr %29, align 8, !tbaa !9
  %400 = getelementptr inbounds double, ptr %398, i64 %399
  store double 0.000000e+00, ptr %400, align 8, !tbaa !11
  br label %401

401:                                              ; preds = %392
  %402 = load i64, ptr %21, align 8, !tbaa !9
  %403 = add nsw i64 %402, 1
  store i64 %403, ptr %21, align 8, !tbaa !9
  br label %388, !llvm.loop !26

404:                                              ; preds = %388
  %405 = load i64, ptr %29, align 8, !tbaa !9
  %406 = add nsw i64 %405, 1
  store i64 %406, ptr %29, align 8, !tbaa !9
  br label %438

407:                                              ; preds = %377
  %408 = load i64, ptr %29, align 8, !tbaa !9
  %409 = add nsw i64 %408, 2
  store i64 %409, ptr %21, align 8, !tbaa !9
  br label %410

410:                                              ; preds = %432, %407
  %411 = load i64, ptr %21, align 8, !tbaa !9
  %412 = load i64, ptr %11, align 8, !tbaa !9
  %413 = icmp sle i64 %411, %412
  br i1 %413, label %414, label %435

414:                                              ; preds = %410
  %415 = load ptr, ptr %10, align 8, !tbaa !5
  %416 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %415, i32 0, i32 6
  %417 = load ptr, ptr %416, align 8, !tbaa !17
  %418 = load i64, ptr %21, align 8, !tbaa !9
  %419 = getelementptr inbounds ptr, ptr %417, i64 %418
  %420 = load ptr, ptr %419, align 8, !tbaa !5
  %421 = load i64, ptr %29, align 8, !tbaa !9
  %422 = getelementptr inbounds double, ptr %420, i64 %421
  store double 0.000000e+00, ptr %422, align 8, !tbaa !11
  %423 = load ptr, ptr %10, align 8, !tbaa !5
  %424 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %423, i32 0, i32 6
  %425 = load ptr, ptr %424, align 8, !tbaa !17
  %426 = load i64, ptr %21, align 8, !tbaa !9
  %427 = getelementptr inbounds ptr, ptr %425, i64 %426
  %428 = load ptr, ptr %427, align 8, !tbaa !5
  %429 = load i64, ptr %29, align 8, !tbaa !9
  %430 = add nsw i64 %429, 1
  %431 = getelementptr inbounds double, ptr %428, i64 %430
  store double 0.000000e+00, ptr %431, align 8, !tbaa !11
  br label %432

432:                                              ; preds = %414
  %433 = load i64, ptr %21, align 8, !tbaa !9
  %434 = add nsw i64 %433, 1
  store i64 %434, ptr %21, align 8, !tbaa !9
  br label %410, !llvm.loop !27

435:                                              ; preds = %410
  %436 = load i64, ptr %29, align 8, !tbaa !9
  %437 = add nsw i64 %436, 2
  store i64 %437, ptr %29, align 8, !tbaa !9
  br label %438

438:                                              ; preds = %435, %404
  br label %373, !llvm.loop !28

439:                                              ; preds = %373
  br label %440

440:                                              ; preds = %439, %369
  %441 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %441)
  store i32 1, ptr %59, align 4
  br label %1086

442:                                              ; preds = %366
  store i8 1, ptr %55, align 1, !tbaa !13
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %443

443:                                              ; preds = %1043, %442
  %444 = load i64, ptr %28, align 8, !tbaa !9
  %445 = load i64, ptr %27, align 8, !tbaa !9
  %446 = icmp sle i64 %444, %445
  br i1 %446, label %447, label %1046

447:                                              ; preds = %443
  %448 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %448, ptr %30, align 8, !tbaa !9
  br label %449

449:                                              ; preds = %512, %447
  %450 = load i64, ptr %30, align 8, !tbaa !9
  %451 = load i64, ptr %31, align 8, !tbaa !9
  %452 = add nsw i64 %451, 1
  %453 = icmp sge i64 %450, %452
  br i1 %453, label %454, label %515

454:                                              ; preds = %449
  %455 = load ptr, ptr %10, align 8, !tbaa !5
  %456 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %455, i32 0, i32 6
  %457 = load ptr, ptr %456, align 8, !tbaa !17
  %458 = load i64, ptr %30, align 8, !tbaa !9
  %459 = sub nsw i64 %458, 1
  %460 = getelementptr inbounds ptr, ptr %457, i64 %459
  %461 = load ptr, ptr %460, align 8, !tbaa !5
  %462 = load i64, ptr %30, align 8, !tbaa !9
  %463 = sub nsw i64 %462, 1
  %464 = getelementptr inbounds double, ptr %461, i64 %463
  %465 = load double, ptr %464, align 8, !tbaa !11
  %466 = load ptr, ptr %18, align 8, !tbaa !5
  %467 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %465, ptr noundef %466)
  %468 = load ptr, ptr %10, align 8, !tbaa !5
  %469 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %468, i32 0, i32 6
  %470 = load ptr, ptr %469, align 8, !tbaa !17
  %471 = load i64, ptr %30, align 8, !tbaa !9
  %472 = getelementptr inbounds ptr, ptr %470, i64 %471
  %473 = load ptr, ptr %472, align 8, !tbaa !5
  %474 = load i64, ptr %30, align 8, !tbaa !9
  %475 = getelementptr inbounds double, ptr %473, i64 %474
  %476 = load double, ptr %475, align 8, !tbaa !11
  %477 = load ptr, ptr %18, align 8, !tbaa !5
  %478 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %476, ptr noundef %477)
  %479 = fadd double %467, %478
  store double %479, ptr %40, align 8, !tbaa !11
  %480 = load double, ptr %40, align 8, !tbaa !11
  %481 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %480, double noundef 0.000000e+00)
  br i1 %481, label %482, label %490

482:                                              ; preds = %454
  %483 = load ptr, ptr %10, align 8, !tbaa !5
  %484 = load i64, ptr %31, align 8, !tbaa !9
  %485 = load i64, ptr %21, align 8, !tbaa !9
  %486 = load i64, ptr %31, align 8, !tbaa !9
  %487 = load i64, ptr %21, align 8, !tbaa !9
  %488 = load ptr, ptr %18, align 8, !tbaa !5
  %489 = call noundef double @_ZN11alglib_impl20upperhessenberg1normEPNS_9ae_matrixEllllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %483, i64 noundef %484, i64 noundef %485, i64 noundef %486, i64 noundef %487, ptr noundef %20, ptr noundef %488)
  store double %489, ptr %40, align 8, !tbaa !11
  br label %490

490:                                              ; preds = %482, %454
  %491 = load ptr, ptr %10, align 8, !tbaa !5
  %492 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %491, i32 0, i32 6
  %493 = load ptr, ptr %492, align 8, !tbaa !17
  %494 = load i64, ptr %30, align 8, !tbaa !9
  %495 = getelementptr inbounds ptr, ptr %493, i64 %494
  %496 = load ptr, ptr %495, align 8, !tbaa !5
  %497 = load i64, ptr %30, align 8, !tbaa !9
  %498 = sub nsw i64 %497, 1
  %499 = getelementptr inbounds double, ptr %496, i64 %498
  %500 = load double, ptr %499, align 8, !tbaa !11
  %501 = load ptr, ptr %18, align 8, !tbaa !5
  %502 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %500, ptr noundef %501)
  %503 = load double, ptr %41, align 8, !tbaa !11
  %504 = load double, ptr %40, align 8, !tbaa !11
  %505 = fmul double %503, %504
  %506 = load double, ptr %37, align 8, !tbaa !11
  %507 = load ptr, ptr %18, align 8, !tbaa !5
  %508 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %505, double noundef %506, ptr noundef %507)
  %509 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %502, double noundef %508)
  br i1 %509, label %510, label %511

510:                                              ; preds = %490
  br label %515

511:                                              ; preds = %490
  br label %512

512:                                              ; preds = %511
  %513 = load i64, ptr %30, align 8, !tbaa !9
  %514 = add nsw i64 %513, -1
  store i64 %514, ptr %30, align 8, !tbaa !9
  br label %449, !llvm.loop !29

515:                                              ; preds = %510, %449
  %516 = load i64, ptr %30, align 8, !tbaa !9
  store i64 %516, ptr %31, align 8, !tbaa !9
  %517 = load i64, ptr %31, align 8, !tbaa !9
  %518 = icmp sgt i64 %517, 1
  br i1 %518, label %519, label %529

519:                                              ; preds = %515
  %520 = load ptr, ptr %10, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %520, i32 0, i32 6
  %522 = load ptr, ptr %521, align 8, !tbaa !17
  %523 = load i64, ptr %31, align 8, !tbaa !9
  %524 = getelementptr inbounds ptr, ptr %522, i64 %523
  %525 = load ptr, ptr %524, align 8, !tbaa !5
  %526 = load i64, ptr %31, align 8, !tbaa !9
  %527 = sub nsw i64 %526, 1
  %528 = getelementptr inbounds double, ptr %525, i64 %527
  store double 0.000000e+00, ptr %528, align 8, !tbaa !11
  br label %529

529:                                              ; preds = %519, %515
  %530 = load i64, ptr %31, align 8, !tbaa !9
  %531 = load i64, ptr %21, align 8, !tbaa !9
  %532 = load i64, ptr %32, align 8, !tbaa !9
  %533 = sub nsw i64 %531, %532
  %534 = add nsw i64 %533, 1
  %535 = icmp sge i64 %530, %534
  br i1 %535, label %536, label %537

536:                                              ; preds = %529
  store i8 0, ptr %55, align 1, !tbaa !13
  br label %1046

537:                                              ; preds = %529
  %538 = load i64, ptr %28, align 8, !tbaa !9
  %539 = icmp eq i64 %538, 20
  br i1 %539, label %543, label %540

540:                                              ; preds = %537
  %541 = load i64, ptr %28, align 8, !tbaa !9
  %542 = icmp eq i64 %541, 30
  br i1 %542, label %543, label %593

543:                                              ; preds = %540, %537
  %544 = load i64, ptr %21, align 8, !tbaa !9
  %545 = load i64, ptr %34, align 8, !tbaa !9
  %546 = sub nsw i64 %544, %545
  %547 = add nsw i64 %546, 1
  store i64 %547, ptr %25, align 8, !tbaa !9
  br label %548

548:                                              ; preds = %589, %543
  %549 = load i64, ptr %25, align 8, !tbaa !9
  %550 = load i64, ptr %21, align 8, !tbaa !9
  %551 = icmp sle i64 %549, %550
  br i1 %551, label %552, label %592

552:                                              ; preds = %548
  %553 = load double, ptr %54, align 8, !tbaa !11
  %554 = load ptr, ptr %10, align 8, !tbaa !5
  %555 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %554, i32 0, i32 6
  %556 = load ptr, ptr %555, align 8, !tbaa !17
  %557 = load i64, ptr %25, align 8, !tbaa !9
  %558 = getelementptr inbounds ptr, ptr %556, i64 %557
  %559 = load ptr, ptr %558, align 8, !tbaa !5
  %560 = load i64, ptr %25, align 8, !tbaa !9
  %561 = sub nsw i64 %560, 1
  %562 = getelementptr inbounds double, ptr %559, i64 %561
  %563 = load double, ptr %562, align 8, !tbaa !11
  %564 = load ptr, ptr %18, align 8, !tbaa !5
  %565 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %563, ptr noundef %564)
  %566 = load ptr, ptr %10, align 8, !tbaa !5
  %567 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %566, i32 0, i32 6
  %568 = load ptr, ptr %567, align 8, !tbaa !17
  %569 = load i64, ptr %25, align 8, !tbaa !9
  %570 = getelementptr inbounds ptr, ptr %568, i64 %569
  %571 = load ptr, ptr %570, align 8, !tbaa !5
  %572 = load i64, ptr %25, align 8, !tbaa !9
  %573 = getelementptr inbounds double, ptr %571, i64 %572
  %574 = load double, ptr %573, align 8, !tbaa !11
  %575 = load ptr, ptr %18, align 8, !tbaa !5
  %576 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %574, ptr noundef %575)
  %577 = fadd double %565, %576
  %578 = fmul double %553, %577
  %579 = load ptr, ptr %14, align 8, !tbaa !5
  %580 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %579, i32 0, i32 4
  %581 = load ptr, ptr %580, align 8, !tbaa !17
  %582 = load i64, ptr %25, align 8, !tbaa !9
  %583 = getelementptr inbounds double, ptr %581, i64 %582
  store double %578, ptr %583, align 8, !tbaa !11
  %584 = load ptr, ptr %15, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %584, i32 0, i32 4
  %586 = load ptr, ptr %585, align 8, !tbaa !17
  %587 = load i64, ptr %25, align 8, !tbaa !9
  %588 = getelementptr inbounds double, ptr %586, i64 %587
  store double 0.000000e+00, ptr %588, align 8, !tbaa !11
  br label %589

589:                                              ; preds = %552
  %590 = load i64, ptr %25, align 8, !tbaa !9
  %591 = add nsw i64 %590, 1
  store i64 %591, ptr %25, align 8, !tbaa !9
  br label %548, !llvm.loop !30

592:                                              ; preds = %548
  br label %689

593:                                              ; preds = %540
  %594 = load ptr, ptr %10, align 8, !tbaa !5
  %595 = load i64, ptr %21, align 8, !tbaa !9
  %596 = load i64, ptr %34, align 8, !tbaa !9
  %597 = sub nsw i64 %595, %596
  %598 = add nsw i64 %597, 1
  %599 = load i64, ptr %21, align 8, !tbaa !9
  %600 = load i64, ptr %21, align 8, !tbaa !9
  %601 = load i64, ptr %34, align 8, !tbaa !9
  %602 = sub nsw i64 %600, %601
  %603 = add nsw i64 %602, 1
  %604 = load i64, ptr %21, align 8, !tbaa !9
  %605 = load i64, ptr %34, align 8, !tbaa !9
  %606 = load i64, ptr %34, align 8, !tbaa !9
  %607 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl10copymatrixEPNS_9ae_matrixEllllS1_llllPNS_8ae_stateE(ptr noundef %594, i64 noundef %598, i64 noundef %599, i64 noundef %603, i64 noundef %604, ptr noundef %43, i64 noundef 1, i64 noundef %605, i64 noundef 1, i64 noundef %606, ptr noundef %607)
  %608 = load i64, ptr %34, align 8, !tbaa !9
  %609 = load i64, ptr %34, align 8, !tbaa !9
  %610 = load i64, ptr %34, align 8, !tbaa !9
  %611 = load ptr, ptr %16, align 8, !tbaa !5
  %612 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef %608, i64 noundef 1, i64 noundef %609, ptr noundef %43, ptr noundef %49, ptr noundef %50, i64 noundef 1, i64 noundef %610, ptr noundef %611, ptr noundef %20, ptr noundef %48, ptr noundef %46, ptr noundef %47, ptr noundef %24, ptr noundef %612)
  store i64 1, ptr %56, align 8, !tbaa !9
  br label %613

613:                                              ; preds = %646, %593
  %614 = load i64, ptr %56, align 8, !tbaa !9
  %615 = load i64, ptr %34, align 8, !tbaa !9
  %616 = icmp sle i64 %614, %615
  br i1 %616, label %617, label %649

617:                                              ; preds = %613
  %618 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %49, i32 0, i32 4
  %619 = load ptr, ptr %618, align 8, !tbaa !17
  %620 = load i64, ptr %56, align 8, !tbaa !9
  %621 = getelementptr inbounds double, ptr %619, i64 %620
  %622 = load double, ptr %621, align 8, !tbaa !11
  %623 = load ptr, ptr %14, align 8, !tbaa !5
  %624 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %623, i32 0, i32 4
  %625 = load ptr, ptr %624, align 8, !tbaa !17
  %626 = load i64, ptr %21, align 8, !tbaa !9
  %627 = load i64, ptr %34, align 8, !tbaa !9
  %628 = sub nsw i64 %626, %627
  %629 = load i64, ptr %56, align 8, !tbaa !9
  %630 = add nsw i64 %628, %629
  %631 = getelementptr inbounds double, ptr %625, i64 %630
  store double %622, ptr %631, align 8, !tbaa !11
  %632 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %633 = load ptr, ptr %632, align 8, !tbaa !17
  %634 = load i64, ptr %56, align 8, !tbaa !9
  %635 = getelementptr inbounds double, ptr %633, i64 %634
  %636 = load double, ptr %635, align 8, !tbaa !11
  %637 = load ptr, ptr %15, align 8, !tbaa !5
  %638 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %637, i32 0, i32 4
  %639 = load ptr, ptr %638, align 8, !tbaa !17
  %640 = load i64, ptr %21, align 8, !tbaa !9
  %641 = load i64, ptr %34, align 8, !tbaa !9
  %642 = sub nsw i64 %640, %641
  %643 = load i64, ptr %56, align 8, !tbaa !9
  %644 = add nsw i64 %642, %643
  %645 = getelementptr inbounds double, ptr %639, i64 %644
  store double %636, ptr %645, align 8, !tbaa !11
  br label %646

646:                                              ; preds = %617
  %647 = load i64, ptr %56, align 8, !tbaa !9
  %648 = add nsw i64 %647, 1
  store i64 %648, ptr %56, align 8, !tbaa !9
  br label %613, !llvm.loop !31

649:                                              ; preds = %613
  %650 = load i64, ptr %24, align 8, !tbaa !9
  %651 = icmp sgt i64 %650, 0
  br i1 %651, label %652, label %688

652:                                              ; preds = %649
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %653

653:                                              ; preds = %684, %652
  %654 = load i64, ptr %25, align 8, !tbaa !9
  %655 = load i64, ptr %24, align 8, !tbaa !9
  %656 = icmp sle i64 %654, %655
  br i1 %656, label %657, label %687

657:                                              ; preds = %653
  %658 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %43, i32 0, i32 6
  %659 = load ptr, ptr %658, align 8, !tbaa !17
  %660 = load i64, ptr %25, align 8, !tbaa !9
  %661 = getelementptr inbounds ptr, ptr %659, i64 %660
  %662 = load ptr, ptr %661, align 8, !tbaa !5
  %663 = load i64, ptr %25, align 8, !tbaa !9
  %664 = getelementptr inbounds double, ptr %662, i64 %663
  %665 = load double, ptr %664, align 8, !tbaa !11
  %666 = load ptr, ptr %14, align 8, !tbaa !5
  %667 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %666, i32 0, i32 4
  %668 = load ptr, ptr %667, align 8, !tbaa !17
  %669 = load i64, ptr %21, align 8, !tbaa !9
  %670 = load i64, ptr %34, align 8, !tbaa !9
  %671 = sub nsw i64 %669, %670
  %672 = load i64, ptr %25, align 8, !tbaa !9
  %673 = add nsw i64 %671, %672
  %674 = getelementptr inbounds double, ptr %668, i64 %673
  store double %665, ptr %674, align 8, !tbaa !11
  %675 = load ptr, ptr %15, align 8, !tbaa !5
  %676 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %675, i32 0, i32 4
  %677 = load ptr, ptr %676, align 8, !tbaa !17
  %678 = load i64, ptr %21, align 8, !tbaa !9
  %679 = load i64, ptr %34, align 8, !tbaa !9
  %680 = sub nsw i64 %678, %679
  %681 = load i64, ptr %25, align 8, !tbaa !9
  %682 = add nsw i64 %680, %681
  %683 = getelementptr inbounds double, ptr %677, i64 %682
  store double 0.000000e+00, ptr %683, align 8, !tbaa !11
  br label %684

684:                                              ; preds = %657
  %685 = load i64, ptr %25, align 8, !tbaa !9
  %686 = add nsw i64 %685, 1
  store i64 %686, ptr %25, align 8, !tbaa !9
  br label %653, !llvm.loop !32

687:                                              ; preds = %653
  br label %688

688:                                              ; preds = %687, %649
  br label %689

689:                                              ; preds = %688, %592
  %690 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %691 = load ptr, ptr %690, align 8, !tbaa !17
  %692 = getelementptr inbounds double, ptr %691, i64 1
  store double 1.000000e+00, ptr %692, align 8, !tbaa !11
  store i64 2, ptr %25, align 8, !tbaa !9
  br label %693

693:                                              ; preds = %703, %689
  %694 = load i64, ptr %25, align 8, !tbaa !9
  %695 = load i64, ptr %34, align 8, !tbaa !9
  %696 = add nsw i64 %695, 1
  %697 = icmp sle i64 %694, %696
  br i1 %697, label %698, label %706

698:                                              ; preds = %693
  %699 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %700 = load ptr, ptr %699, align 8, !tbaa !17
  %701 = load i64, ptr %25, align 8, !tbaa !9
  %702 = getelementptr inbounds double, ptr %700, i64 %701
  store double 0.000000e+00, ptr %702, align 8, !tbaa !11
  br label %703

703:                                              ; preds = %698
  %704 = load i64, ptr %25, align 8, !tbaa !9
  %705 = add nsw i64 %704, 1
  store i64 %705, ptr %25, align 8, !tbaa !9
  br label %693, !llvm.loop !33

706:                                              ; preds = %693
  store i64 1, ptr %35, align 8, !tbaa !9
  %707 = load i64, ptr %21, align 8, !tbaa !9
  %708 = load i64, ptr %34, align 8, !tbaa !9
  %709 = sub nsw i64 %707, %708
  %710 = add nsw i64 %709, 1
  store i64 %710, ptr %29, align 8, !tbaa !9
  br label %711

711:                                              ; preds = %911, %706
  %712 = load i64, ptr %29, align 8, !tbaa !9
  %713 = load i64, ptr %21, align 8, !tbaa !9
  %714 = icmp sle i64 %712, %713
  br i1 %714, label %715, label %914

715:                                              ; preds = %711
  %716 = load ptr, ptr %15, align 8, !tbaa !5
  %717 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %716, i32 0, i32 4
  %718 = load ptr, ptr %717, align 8, !tbaa !17
  %719 = load i64, ptr %29, align 8, !tbaa !9
  %720 = getelementptr inbounds double, ptr %718, i64 %719
  %721 = load double, ptr %720, align 8, !tbaa !11
  %722 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %721, double noundef 0.000000e+00)
  br i1 %722, label %723, label %910

723:                                              ; preds = %715
  %724 = load ptr, ptr %15, align 8, !tbaa !5
  %725 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %724, i32 0, i32 4
  %726 = load ptr, ptr %725, align 8, !tbaa !17
  %727 = load i64, ptr %29, align 8, !tbaa !9
  %728 = getelementptr inbounds double, ptr %726, i64 %727
  %729 = load double, ptr %728, align 8, !tbaa !11
  %730 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %729, double noundef 0.000000e+00)
  br i1 %730, label %731, label %765

731:                                              ; preds = %723
  %732 = load i64, ptr %35, align 8, !tbaa !9
  %733 = add nsw i64 %732, 1
  store i64 %733, ptr %56, align 8, !tbaa !9
  %734 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %735 = load ptr, ptr %734, align 8, !tbaa !17
  %736 = getelementptr inbounds double, ptr %735, i64 1
  %737 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %738 = load ptr, ptr %737, align 8, !tbaa !17
  %739 = getelementptr inbounds double, ptr %738, i64 1
  %740 = load i64, ptr %56, align 8, !tbaa !9
  %741 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %740)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %736, i64 noundef 1, ptr noundef %739, i64 noundef 1, i64 noundef %741)
  %742 = load ptr, ptr %10, align 8, !tbaa !5
  %743 = load i64, ptr %31, align 8, !tbaa !9
  %744 = load i64, ptr %31, align 8, !tbaa !9
  %745 = load i64, ptr %35, align 8, !tbaa !9
  %746 = add nsw i64 %744, %745
  %747 = load i64, ptr %31, align 8, !tbaa !9
  %748 = load i64, ptr %31, align 8, !tbaa !9
  %749 = load i64, ptr %35, align 8, !tbaa !9
  %750 = add nsw i64 %748, %749
  %751 = sub nsw i64 %750, 1
  %752 = load i64, ptr %35, align 8, !tbaa !9
  %753 = load i64, ptr %35, align 8, !tbaa !9
  %754 = add nsw i64 %753, 1
  %755 = load ptr, ptr %14, align 8, !tbaa !5
  %756 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %755, i32 0, i32 4
  %757 = load ptr, ptr %756, align 8, !tbaa !17
  %758 = load i64, ptr %29, align 8, !tbaa !9
  %759 = getelementptr inbounds double, ptr %757, i64 %758
  %760 = load double, ptr %759, align 8, !tbaa !11
  %761 = fneg double %760
  %762 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %742, i64 noundef %743, i64 noundef %746, i64 noundef %747, i64 noundef %751, i1 noundef zeroext false, ptr noundef %45, i64 noundef 1, i64 noundef %752, double noundef 1.000000e+00, ptr noundef %44, i64 noundef 1, i64 noundef %754, double noundef %761, ptr noundef %762)
  %763 = load i64, ptr %35, align 8, !tbaa !9
  %764 = add nsw i64 %763, 1
  store i64 %764, ptr %35, align 8, !tbaa !9
  br label %866

765:                                              ; preds = %723
  %766 = load ptr, ptr %15, align 8, !tbaa !5
  %767 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %766, i32 0, i32 4
  %768 = load ptr, ptr %767, align 8, !tbaa !17
  %769 = load i64, ptr %29, align 8, !tbaa !9
  %770 = getelementptr inbounds double, ptr %768, i64 %769
  %771 = load double, ptr %770, align 8, !tbaa !11
  %772 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %771, double noundef 0.000000e+00)
  br i1 %772, label %773, label %865

773:                                              ; preds = %765
  %774 = load i64, ptr %35, align 8, !tbaa !9
  %775 = add nsw i64 %774, 1
  store i64 %775, ptr %56, align 8, !tbaa !9
  %776 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %777 = load ptr, ptr %776, align 8, !tbaa !17
  %778 = getelementptr inbounds double, ptr %777, i64 1
  %779 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %780 = load ptr, ptr %779, align 8, !tbaa !17
  %781 = getelementptr inbounds double, ptr %780, i64 1
  %782 = load i64, ptr %56, align 8, !tbaa !9
  %783 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %782)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %778, i64 noundef 1, ptr noundef %781, i64 noundef 1, i64 noundef %783)
  %784 = load ptr, ptr %10, align 8, !tbaa !5
  %785 = load i64, ptr %31, align 8, !tbaa !9
  %786 = load i64, ptr %31, align 8, !tbaa !9
  %787 = load i64, ptr %35, align 8, !tbaa !9
  %788 = add nsw i64 %786, %787
  %789 = load i64, ptr %31, align 8, !tbaa !9
  %790 = load i64, ptr %31, align 8, !tbaa !9
  %791 = load i64, ptr %35, align 8, !tbaa !9
  %792 = add nsw i64 %790, %791
  %793 = sub nsw i64 %792, 1
  %794 = load i64, ptr %35, align 8, !tbaa !9
  %795 = load i64, ptr %35, align 8, !tbaa !9
  %796 = add nsw i64 %795, 1
  %797 = load ptr, ptr %14, align 8, !tbaa !5
  %798 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %797, i32 0, i32 4
  %799 = load ptr, ptr %798, align 8, !tbaa !17
  %800 = load i64, ptr %29, align 8, !tbaa !9
  %801 = getelementptr inbounds double, ptr %799, i64 %800
  %802 = load double, ptr %801, align 8, !tbaa !11
  %803 = fmul double -2.000000e+00, %802
  %804 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %784, i64 noundef %785, i64 noundef %788, i64 noundef %789, i64 noundef %793, i1 noundef zeroext false, ptr noundef %44, i64 noundef 1, i64 noundef %794, double noundef 1.000000e+00, ptr noundef %45, i64 noundef 1, i64 noundef %796, double noundef %803, ptr noundef %804)
  %805 = load i64, ptr %35, align 8, !tbaa !9
  %806 = add nsw i64 %805, 1
  %807 = load ptr, ptr %18, align 8, !tbaa !5
  %808 = call noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %45, i64 noundef 1, i64 noundef %806, ptr noundef %807)
  store i64 %808, ptr %26, align 8, !tbaa !9
  %809 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %810 = load ptr, ptr %809, align 8, !tbaa !17
  %811 = load i64, ptr %26, align 8, !tbaa !9
  %812 = getelementptr inbounds double, ptr %810, i64 %811
  %813 = load double, ptr %812, align 8, !tbaa !11
  %814 = load ptr, ptr %18, align 8, !tbaa !5
  %815 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %813, ptr noundef %814)
  %816 = load double, ptr %37, align 8, !tbaa !11
  %817 = load ptr, ptr %18, align 8, !tbaa !5
  %818 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %815, double noundef %816, ptr noundef %817)
  %819 = fdiv double 1.000000e+00, %818
  store double %819, ptr %39, align 8, !tbaa !11
  %820 = load i64, ptr %35, align 8, !tbaa !9
  %821 = add nsw i64 %820, 1
  store i64 %821, ptr %56, align 8, !tbaa !9
  %822 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %823 = load ptr, ptr %822, align 8, !tbaa !17
  %824 = getelementptr inbounds double, ptr %823, i64 1
  %825 = load i64, ptr %56, align 8, !tbaa !9
  %826 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %825)
  %827 = load double, ptr %39, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %824, i64 noundef 1, i64 noundef %826, double noundef %827)
  %828 = load ptr, ptr %14, align 8, !tbaa !5
  %829 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %828, i32 0, i32 4
  %830 = load ptr, ptr %829, align 8, !tbaa !17
  %831 = load i64, ptr %29, align 8, !tbaa !9
  %832 = getelementptr inbounds double, ptr %830, i64 %831
  %833 = load double, ptr %832, align 8, !tbaa !11
  %834 = load ptr, ptr %15, align 8, !tbaa !5
  %835 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %834, i32 0, i32 4
  %836 = load ptr, ptr %835, align 8, !tbaa !17
  %837 = load i64, ptr %29, align 8, !tbaa !9
  %838 = getelementptr inbounds double, ptr %836, i64 %837
  %839 = load double, ptr %838, align 8, !tbaa !11
  %840 = load ptr, ptr %18, align 8, !tbaa !5
  %841 = call noundef double @_ZN11alglib_impl7pythag2EddPNS_8ae_stateE(double noundef %833, double noundef %839, ptr noundef %840)
  store double %841, ptr %36, align 8, !tbaa !11
  %842 = load double, ptr %39, align 8, !tbaa !11
  %843 = load double, ptr %36, align 8, !tbaa !11
  %844 = fmul double %842, %843
  %845 = load double, ptr %36, align 8, !tbaa !11
  %846 = fmul double %844, %845
  store double %846, ptr %39, align 8, !tbaa !11
  %847 = load ptr, ptr %10, align 8, !tbaa !5
  %848 = load i64, ptr %31, align 8, !tbaa !9
  %849 = load i64, ptr %31, align 8, !tbaa !9
  %850 = load i64, ptr %35, align 8, !tbaa !9
  %851 = add nsw i64 %849, %850
  %852 = add nsw i64 %851, 1
  %853 = load i64, ptr %31, align 8, !tbaa !9
  %854 = load i64, ptr %31, align 8, !tbaa !9
  %855 = load i64, ptr %35, align 8, !tbaa !9
  %856 = add nsw i64 %854, %855
  %857 = load i64, ptr %35, align 8, !tbaa !9
  %858 = add nsw i64 %857, 1
  %859 = load i64, ptr %35, align 8, !tbaa !9
  %860 = add nsw i64 %859, 2
  %861 = load double, ptr %39, align 8, !tbaa !11
  %862 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %847, i64 noundef %848, i64 noundef %852, i64 noundef %853, i64 noundef %856, i1 noundef zeroext false, ptr noundef %45, i64 noundef 1, i64 noundef %858, double noundef 1.000000e+00, ptr noundef %44, i64 noundef 1, i64 noundef %860, double noundef %861, ptr noundef %862)
  %863 = load i64, ptr %35, align 8, !tbaa !9
  %864 = add nsw i64 %863, 2
  store i64 %864, ptr %35, align 8, !tbaa !9
  br label %865

865:                                              ; preds = %773, %765
  br label %866

866:                                              ; preds = %865, %731
  %867 = load i64, ptr %35, align 8, !tbaa !9
  %868 = load ptr, ptr %18, align 8, !tbaa !5
  %869 = call noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef %44, i64 noundef 1, i64 noundef %867, ptr noundef %868)
  store i64 %869, ptr %26, align 8, !tbaa !9
  %870 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %871 = load ptr, ptr %870, align 8, !tbaa !17
  %872 = load i64, ptr %26, align 8, !tbaa !9
  %873 = getelementptr inbounds double, ptr %871, i64 %872
  %874 = load double, ptr %873, align 8, !tbaa !11
  %875 = load ptr, ptr %18, align 8, !tbaa !5
  %876 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %874, ptr noundef %875)
  store double %876, ptr %39, align 8, !tbaa !11
  %877 = load double, ptr %39, align 8, !tbaa !11
  %878 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %877, double noundef 0.000000e+00)
  br i1 %878, label %879, label %896

879:                                              ; preds = %866
  %880 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %881 = load ptr, ptr %880, align 8, !tbaa !17
  %882 = getelementptr inbounds double, ptr %881, i64 1
  store double 1.000000e+00, ptr %882, align 8, !tbaa !11
  store i64 2, ptr %25, align 8, !tbaa !9
  br label %883

883:                                              ; preds = %892, %879
  %884 = load i64, ptr %25, align 8, !tbaa !9
  %885 = load i64, ptr %35, align 8, !tbaa !9
  %886 = icmp sle i64 %884, %885
  br i1 %886, label %887, label %895

887:                                              ; preds = %883
  %888 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %889 = load ptr, ptr %888, align 8, !tbaa !17
  %890 = load i64, ptr %25, align 8, !tbaa !9
  %891 = getelementptr inbounds double, ptr %889, i64 %890
  store double 0.000000e+00, ptr %891, align 8, !tbaa !11
  br label %892

892:                                              ; preds = %887
  %893 = load i64, ptr %25, align 8, !tbaa !9
  %894 = add nsw i64 %893, 1
  store i64 %894, ptr %25, align 8, !tbaa !9
  br label %883, !llvm.loop !34

895:                                              ; preds = %883
  br label %909

896:                                              ; preds = %866
  %897 = load double, ptr %39, align 8, !tbaa !11
  %898 = load double, ptr %37, align 8, !tbaa !11
  %899 = load ptr, ptr %18, align 8, !tbaa !5
  %900 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %897, double noundef %898, ptr noundef %899)
  store double %900, ptr %39, align 8, !tbaa !11
  %901 = load double, ptr %39, align 8, !tbaa !11
  %902 = fdiv double 1.000000e+00, %901
  store double %902, ptr %58, align 8, !tbaa !11
  %903 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %904 = load ptr, ptr %903, align 8, !tbaa !17
  %905 = getelementptr inbounds double, ptr %904, i64 1
  %906 = load i64, ptr %35, align 8, !tbaa !9
  %907 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %906)
  %908 = load double, ptr %58, align 8, !tbaa !11
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %905, i64 noundef 1, i64 noundef %907, double noundef %908)
  br label %909

909:                                              ; preds = %896, %895
  br label %910

910:                                              ; preds = %909, %715
  br label %911

911:                                              ; preds = %910
  %912 = load i64, ptr %29, align 8, !tbaa !9
  %913 = add nsw i64 %912, 1
  store i64 %913, ptr %29, align 8, !tbaa !9
  br label %711, !llvm.loop !35

914:                                              ; preds = %711
  %915 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %915, ptr %30, align 8, !tbaa !9
  br label %916

916:                                              ; preds = %1039, %914
  %917 = load i64, ptr %30, align 8, !tbaa !9
  %918 = load i64, ptr %21, align 8, !tbaa !9
  %919 = sub nsw i64 %918, 1
  %920 = icmp sle i64 %917, %919
  br i1 %920, label %921, label %1042

921:                                              ; preds = %916
  %922 = load i64, ptr %34, align 8, !tbaa !9
  %923 = add nsw i64 %922, 1
  %924 = load i64, ptr %21, align 8, !tbaa !9
  %925 = load i64, ptr %30, align 8, !tbaa !9
  %926 = sub nsw i64 %924, %925
  %927 = add nsw i64 %926, 1
  %928 = load ptr, ptr %18, align 8, !tbaa !5
  %929 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %923, i64 noundef %927, ptr noundef %928)
  store i64 %929, ptr %33, align 8, !tbaa !9
  %930 = load i64, ptr %30, align 8, !tbaa !9
  %931 = load i64, ptr %31, align 8, !tbaa !9
  %932 = icmp sgt i64 %930, %931
  br i1 %932, label %933, label %957

933:                                              ; preds = %921
  %934 = load i64, ptr %30, align 8, !tbaa !9
  %935 = sub nsw i64 %934, 1
  store i64 %935, ptr %56, align 8, !tbaa !9
  %936 = load i64, ptr %30, align 8, !tbaa !9
  %937 = load i64, ptr %33, align 8, !tbaa !9
  %938 = add nsw i64 %936, %937
  %939 = sub nsw i64 %938, 1
  store i64 %939, ptr %57, align 8, !tbaa !9
  %940 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %941 = load ptr, ptr %940, align 8, !tbaa !17
  %942 = getelementptr inbounds double, ptr %941, i64 1
  %943 = load ptr, ptr %10, align 8, !tbaa !5
  %944 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %943, i32 0, i32 6
  %945 = load ptr, ptr %944, align 8, !tbaa !17
  %946 = load i64, ptr %30, align 8, !tbaa !9
  %947 = getelementptr inbounds ptr, ptr %945, i64 %946
  %948 = load ptr, ptr %947, align 8, !tbaa !5
  %949 = load i64, ptr %56, align 8, !tbaa !9
  %950 = getelementptr inbounds double, ptr %948, i64 %949
  %951 = load ptr, ptr %10, align 8, !tbaa !5
  %952 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %951, i32 0, i32 2
  %953 = load i64, ptr %952, align 8, !tbaa !36
  %954 = load i64, ptr %33, align 8, !tbaa !9
  %955 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %954)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %942, i64 noundef 1, ptr noundef %950, i64 noundef %953, i64 noundef %955)
  %956 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef %57, ptr noundef %956)
  br label %957

957:                                              ; preds = %933, %921
  %958 = load i64, ptr %33, align 8, !tbaa !9
  %959 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef %44, i64 noundef %958, ptr noundef %38, ptr noundef %959)
  %960 = load i64, ptr %30, align 8, !tbaa !9
  %961 = load i64, ptr %31, align 8, !tbaa !9
  %962 = icmp sgt i64 %960, %961
  br i1 %962, label %963, label %997

963:                                              ; preds = %957
  %964 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %965 = load ptr, ptr %964, align 8, !tbaa !17
  %966 = getelementptr inbounds double, ptr %965, i64 1
  %967 = load double, ptr %966, align 8, !tbaa !11
  %968 = load ptr, ptr %10, align 8, !tbaa !5
  %969 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %968, i32 0, i32 6
  %970 = load ptr, ptr %969, align 8, !tbaa !17
  %971 = load i64, ptr %30, align 8, !tbaa !9
  %972 = getelementptr inbounds ptr, ptr %970, i64 %971
  %973 = load ptr, ptr %972, align 8, !tbaa !5
  %974 = load i64, ptr %30, align 8, !tbaa !9
  %975 = sub nsw i64 %974, 1
  %976 = getelementptr inbounds double, ptr %973, i64 %975
  store double %967, ptr %976, align 8, !tbaa !11
  %977 = load i64, ptr %30, align 8, !tbaa !9
  %978 = add nsw i64 %977, 1
  store i64 %978, ptr %25, align 8, !tbaa !9
  br label %979

979:                                              ; preds = %993, %963
  %980 = load i64, ptr %25, align 8, !tbaa !9
  %981 = load i64, ptr %21, align 8, !tbaa !9
  %982 = icmp sle i64 %980, %981
  br i1 %982, label %983, label %996

983:                                              ; preds = %979
  %984 = load ptr, ptr %10, align 8, !tbaa !5
  %985 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %984, i32 0, i32 6
  %986 = load ptr, ptr %985, align 8, !tbaa !17
  %987 = load i64, ptr %25, align 8, !tbaa !9
  %988 = getelementptr inbounds ptr, ptr %986, i64 %987
  %989 = load ptr, ptr %988, align 8, !tbaa !5
  %990 = load i64, ptr %30, align 8, !tbaa !9
  %991 = sub nsw i64 %990, 1
  %992 = getelementptr inbounds double, ptr %989, i64 %991
  store double 0.000000e+00, ptr %992, align 8, !tbaa !11
  br label %993

993:                                              ; preds = %983
  %994 = load i64, ptr %25, align 8, !tbaa !9
  %995 = add nsw i64 %994, 1
  store i64 %995, ptr %25, align 8, !tbaa !9
  br label %979, !llvm.loop !39

996:                                              ; preds = %979
  br label %997

997:                                              ; preds = %996, %957
  %998 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %999 = load ptr, ptr %998, align 8, !tbaa !17
  %1000 = getelementptr inbounds double, ptr %999, i64 1
  store double 1.000000e+00, ptr %1000, align 8, !tbaa !11
  %1001 = load ptr, ptr %10, align 8, !tbaa !5
  %1002 = load double, ptr %38, align 8, !tbaa !11
  %1003 = load i64, ptr %30, align 8, !tbaa !9
  %1004 = load i64, ptr %30, align 8, !tbaa !9
  %1005 = load i64, ptr %33, align 8, !tbaa !9
  %1006 = add nsw i64 %1004, %1005
  %1007 = sub nsw i64 %1006, 1
  %1008 = load i64, ptr %30, align 8, !tbaa !9
  %1009 = load i64, ptr %23, align 8, !tbaa !9
  %1010 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %1001, double noundef %1002, ptr noundef %44, i64 noundef %1003, i64 noundef %1007, i64 noundef %1008, i64 noundef %1009, ptr noundef %20, ptr noundef %1010)
  %1011 = load ptr, ptr %10, align 8, !tbaa !5
  %1012 = load double, ptr %38, align 8, !tbaa !11
  %1013 = load i64, ptr %22, align 8, !tbaa !9
  %1014 = load i64, ptr %30, align 8, !tbaa !9
  %1015 = load i64, ptr %33, align 8, !tbaa !9
  %1016 = add nsw i64 %1014, %1015
  %1017 = load i64, ptr %21, align 8, !tbaa !9
  %1018 = load ptr, ptr %18, align 8, !tbaa !5
  %1019 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %1016, i64 noundef %1017, ptr noundef %1018)
  %1020 = load i64, ptr %30, align 8, !tbaa !9
  %1021 = load i64, ptr %30, align 8, !tbaa !9
  %1022 = load i64, ptr %33, align 8, !tbaa !9
  %1023 = add nsw i64 %1021, %1022
  %1024 = sub nsw i64 %1023, 1
  %1025 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %1011, double noundef %1012, ptr noundef %44, i64 noundef %1013, i64 noundef %1019, i64 noundef %1020, i64 noundef %1024, ptr noundef %20, ptr noundef %1025)
  %1026 = load i8, ptr %53, align 1, !tbaa !13, !range !15, !noundef !16
  %1027 = trunc i8 %1026 to i1
  br i1 %1027, label %1028, label %1038

1028:                                             ; preds = %997
  %1029 = load ptr, ptr %16, align 8, !tbaa !5
  %1030 = load double, ptr %38, align 8, !tbaa !11
  %1031 = load i64, ptr %11, align 8, !tbaa !9
  %1032 = load i64, ptr %30, align 8, !tbaa !9
  %1033 = load i64, ptr %30, align 8, !tbaa !9
  %1034 = load i64, ptr %33, align 8, !tbaa !9
  %1035 = add nsw i64 %1033, %1034
  %1036 = sub nsw i64 %1035, 1
  %1037 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %1029, double noundef %1030, ptr noundef %44, i64 noundef 1, i64 noundef %1031, i64 noundef %1032, i64 noundef %1036, ptr noundef %20, ptr noundef %1037)
  br label %1038

1038:                                             ; preds = %1028, %997
  br label %1039

1039:                                             ; preds = %1038
  %1040 = load i64, ptr %30, align 8, !tbaa !9
  %1041 = add nsw i64 %1040, 1
  store i64 %1041, ptr %30, align 8, !tbaa !9
  br label %916, !llvm.loop !40

1042:                                             ; preds = %916
  br label %1043

1043:                                             ; preds = %1042
  %1044 = load i64, ptr %28, align 8, !tbaa !9
  %1045 = add nsw i64 %1044, 1
  store i64 %1045, ptr %28, align 8, !tbaa !9
  br label %443, !llvm.loop !41

1046:                                             ; preds = %536, %443
  %1047 = load i8, ptr %55, align 1, !tbaa !13, !range !15, !noundef !16
  %1048 = trunc i8 %1047 to i1
  br i1 %1048, label %1049, label %1053

1049:                                             ; preds = %1046
  %1050 = load i64, ptr %21, align 8, !tbaa !9
  %1051 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 %1050, ptr %1051, align 8, !tbaa !9
  %1052 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1052)
  store i32 1, ptr %59, align 4
  br label %1086

1053:                                             ; preds = %1046
  %1054 = load i8, ptr %52, align 1, !tbaa !13, !range !15, !noundef !16
  %1055 = trunc i8 %1054 to i1
  %1056 = load i8, ptr %53, align 1, !tbaa !13, !range !15, !noundef !16
  %1057 = trunc i8 %1056 to i1
  %1058 = load i64, ptr %11, align 8, !tbaa !9
  %1059 = load i64, ptr %31, align 8, !tbaa !9
  %1060 = load i64, ptr %21, align 8, !tbaa !9
  %1061 = load ptr, ptr %10, align 8, !tbaa !5
  %1062 = load ptr, ptr %14, align 8, !tbaa !5
  %1063 = load ptr, ptr %15, align 8, !tbaa !5
  %1064 = load i64, ptr %11, align 8, !tbaa !9
  %1065 = load ptr, ptr %16, align 8, !tbaa !5
  %1066 = load ptr, ptr %17, align 8, !tbaa !5
  %1067 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext %1055, i1 noundef zeroext %1057, i64 noundef %1058, i64 noundef %1059, i64 noundef %1060, ptr noundef %1061, ptr noundef %1062, ptr noundef %1063, i64 noundef 1, i64 noundef %1064, ptr noundef %1065, ptr noundef %20, ptr noundef %48, ptr noundef %46, ptr noundef %47, ptr noundef %1066, ptr noundef %1067)
  %1068 = load ptr, ptr %17, align 8, !tbaa !5
  %1069 = load i64, ptr %1068, align 8, !tbaa !9
  %1070 = icmp sgt i64 %1069, 0
  br i1 %1070, label %1071, label %1073

1071:                                             ; preds = %1053
  %1072 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1072)
  store i32 1, ptr %59, align 4
  br label %1086

1073:                                             ; preds = %1053
  %1074 = load i64, ptr %27, align 8, !tbaa !9
  %1075 = load i64, ptr %28, align 8, !tbaa !9
  %1076 = sub nsw i64 %1074, %1075
  store i64 %1076, ptr %27, align 8, !tbaa !9
  %1077 = load i64, ptr %31, align 8, !tbaa !9
  %1078 = sub nsw i64 %1077, 1
  store i64 %1078, ptr %21, align 8, !tbaa !9
  %1079 = load ptr, ptr %18, align 8, !tbaa !5
  %1080 = call noundef zeroext i1 @_ZN11alglib_impl11alwaysfalseEPNS_8ae_stateE(ptr noundef %1079)
  br i1 %1080, label %1081, label %1083

1081:                                             ; preds = %1073
  %1082 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.332, ptr noundef %1082)
  br label %1084

1083:                                             ; preds = %1073
  br label %366, !llvm.loop !42

1084:                                             ; preds = %1081
  %1085 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1085)
  store i32 0, ptr %59, align 4
  br label %1086

1086:                                             ; preds = %1084, %1071, %1049, %440, %353, %212, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  %1087 = load i32, ptr %59, align 4
  switch i32 %1087, label %1089 [
    i32 0, label %1088
    i32 1, label %1088
  ]

1088:                                             ; preds = %1086, %1086
  ret void

1089:                                             ; preds = %1086
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext, i1 noundef zeroext, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef double @_ZN11alglib_impl20upperhessenberg1normEPNS_9ae_matrixEllllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #2

declare noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7pythag2EddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef, ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl11alwaysfalseEPNS_8ae_stateE(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = !{!37, !10, i64 16}
!37 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !38, i64 40, !7, i64 72}
!38 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!39 = distinct !{!39, !19}
!40 = distinct !{!40, !19}
!41 = distinct !{!41, !19}
!42 = distinct !{!42, !19}


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

@.str.332 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.344 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.345 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.346 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

declare void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl10copymatrixEPNS_9ae_matrixEllllS1_llllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl26internalschurdecompositionEPNS_9ae_matrixElllPNS_9ae_vectorES3_S1_PlPNS_8ae_stateE(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %4)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %5)
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  %23 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef 3, i64 noundef 50, ptr noundef %8)
  %24 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %23, i64 noundef 12, ptr noundef %8)
  %25 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef %8)
  %26 = add nsw i64 %25, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %26, ptr noundef %8)
  %27 = add i64 %24, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %27, i64 noundef %27, ptr noundef %8)
  %28 = add i64 %24, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %28, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %28, ptr noundef %8)
  %29 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef %8)
  %30 = add nsw i64 %29, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %4, i64 noundef %30, ptr noundef %8)
  %31 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef %8)
  %32 = add nsw i64 %31, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %5, i64 noundef %32, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef 2, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef 2, ptr noundef %8)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %19, i64 noundef 4, ptr noundef %8)
  %33 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef %8)
  %34 = add nsw i64 %33, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %34, ptr noundef %8)
  %35 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %1, i64 noundef 1, ptr noundef %8)
  %36 = add nsw i64 %35, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %21, i64 noundef %36, ptr noundef %8)
  %37 = icmp sgt i64 %1, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %37, ptr noundef nonnull @.str.344, ptr noundef %8)
  %38 = icmp eq i64 %2, 1
  %39 = icmp ult i64 %2, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef nonnull @.str.345, ptr noundef %8)
  %40 = icmp eq i64 %3, 2
  %spec.select = icmp ult i64 %3, 3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.346, ptr noundef %8)
  %41 = icmp ne i64 %3, 0
  store i64 0, ptr %7, align 8, !tbaa !5
  br i1 %40, label %42, label %.loopexit510

42:                                               ; preds = %9
  %43 = add i64 %1, 1
  call void @_ZN11alglib_impl23rmatrixsetlengthatleastEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %43, i64 noundef %43, ptr noundef %8)
  %.not519 = icmp slt i64 %1, 1
  br i1 %.not519, label %.loopexit510, label %.preheader509.lr.ph

.preheader509.lr.ph:                              ; preds = %42
  %44 = getelementptr inbounds i8, ptr %6, i64 72
  %xtraiter = and i64 %1, 1
  %45 = icmp eq i64 %1, 1
  %unroll_iter = and i64 %1, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader509

.preheader509:                                    ; preds = %.preheader509.lr.ph, %._crit_edge
  %.0520 = phi i64 [ 1, %.preheader509.lr.ph ], [ %63, %._crit_edge ]
  br i1 %45, label %._crit_edge.unr-lcssa, label %.preheader509.new

.preheader509.new:                                ; preds = %.preheader509, %.preheader509.new
  %.0445518 = phi i64 [ %57, %.preheader509.new ], [ 1, %.preheader509 ]
  %niter = phi i64 [ %niter.next.1, %.preheader509.new ], [ 0, %.preheader509 ]
  %46 = icmp eq i64 %.0520, %.0445518
  %47 = load ptr, ptr %44, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.0520
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  %. = select i1 %46, double 1.000000e+00, double 0.000000e+00
  %50 = getelementptr inbounds double, ptr %49, i64 %.0445518
  store double %., ptr %50, align 8, !tbaa !12
  %51 = add nuw i64 %.0445518, 1
  %52 = icmp eq i64 %.0520, %51
  %53 = load ptr, ptr %44, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.0520
  %55 = load ptr, ptr %54, align 8, !tbaa !10
  %..1 = select i1 %52, double 1.000000e+00, double 0.000000e+00
  %56 = getelementptr inbounds double, ptr %55, i64 %51
  store double %..1, ptr %56, align 8, !tbaa !12
  %57 = add nuw i64 %.0445518, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.preheader509.new, !llvm.loop !14

._crit_edge.unr-lcssa:                            ; preds = %.preheader509.new, %.preheader509
  %.0445518.unr = phi i64 [ 1, %.preheader509 ], [ %57, %.preheader509.new ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %58 = icmp eq i64 %.0520, %.0445518.unr
  %59 = load ptr, ptr %44, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.0520
  %61 = load ptr, ptr %60, align 8, !tbaa !10
  %..epil = select i1 %58, double 1.000000e+00, double 0.000000e+00
  %62 = getelementptr inbounds double, ptr %61, i64 %.0445518.unr
  store double %..epil, ptr %62, align 8, !tbaa !12
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %63 = add nuw i64 %.0520, 1
  %exitcond603.not = icmp eq i64 %.0520, %1
  br i1 %exitcond603.not, label %.loopexit510, label %.preheader509, !llvm.loop !16

.loopexit510:                                     ; preds = %._crit_edge, %42, %9
  switch i64 %1, label %.preheader508 [
    i64 0, label %.loopexit507
    i64 1, label %68
  ]

.preheader508:                                    ; preds = %.loopexit510
  %.not466525 = icmp slt i64 %1, 3
  br i1 %.not466525, label %._crit_edge528, label %.lr.ph527

.lr.ph527:                                        ; preds = %.preheader508
  %64 = getelementptr inbounds i8, ptr %0, i64 72
  %xtraiter653 = and i64 %1, 1
  %65 = icmp eq i64 %1, 3
  br i1 %65, label %._crit_edge528.loopexit.unr-lcssa, label %.lr.ph527.new

.lr.ph527.new:                                    ; preds = %.lr.ph527
  %66 = and i64 %1, 9223372036854775806
  %67 = add nsw i64 %66, -4
  br label %.lr.ph.preheader

68:                                               ; preds = %.loopexit510
  %69 = getelementptr inbounds i8, ptr %0, i64 72
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8, !tbaa !10
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  %74 = load double, ptr %73, align 8, !tbaa !12
  %75 = getelementptr inbounds i8, ptr %4, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  store double %74, ptr %77, align 8, !tbaa !12
  %78 = getelementptr inbounds i8, ptr %5, i64 56
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  store double 0.000000e+00, ptr %80, align 8, !tbaa !12
  br label %.loopexit507

.lr.ph.preheader:                                 ; preds = %._crit_edge524.1, %.lr.ph527.new
  %.1446526 = phi i64 [ 1, %.lr.ph527.new ], [ %94, %._crit_edge524.1 ]
  %niter656 = phi i64 [ 0, %.lr.ph527.new ], [ %niter656.next.1, %._crit_edge524.1 ]
  %81 = add nuw nsw i64 %.1446526, 2
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.1522 = phi i64 [ %86, %.lr.ph ], [ %81, %.lr.ph.preheader ]
  %82 = load ptr, ptr %64, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.1522
  %84 = load ptr, ptr %83, align 8, !tbaa !10
  %85 = getelementptr inbounds double, ptr %84, i64 %.1446526
  store double 0.000000e+00, ptr %85, align 8, !tbaa !12
  %86 = add nuw nsw i64 %.1522, 1
  %.not485.not = icmp slt i64 %.1522, %1
  br i1 %.not485.not, label %.lr.ph, label %._crit_edge524, !llvm.loop !17

._crit_edge524:                                   ; preds = %.lr.ph
  %87 = add nuw nsw i64 %.1446526, 3
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1, %._crit_edge524
  %.1522.1 = phi i64 [ %93, %.lr.ph.1 ], [ %87, %._crit_edge524 ]
  %88 = load ptr, ptr %64, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %88, i64 %.1522.1
  %90 = load ptr, ptr %89, align 8, !tbaa !10
  %91 = getelementptr inbounds double, ptr %90, i64 %.1446526
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  store double 0.000000e+00, ptr %92, align 8, !tbaa !12
  %93 = add nuw nsw i64 %.1522.1, 1
  %.not485.not.1 = icmp slt i64 %.1522.1, %1
  br i1 %.not485.not.1, label %.lr.ph.1, label %._crit_edge524.1, !llvm.loop !17

._crit_edge524.1:                                 ; preds = %.lr.ph.1
  %94 = add nuw nsw i64 %.1446526, 2
  %niter656.next.1 = add i64 %niter656, 2
  %niter656.ncmp.1 = icmp eq i64 %niter656, %67
  br i1 %niter656.ncmp.1, label %._crit_edge528.loopexit.unr-lcssa, label %.lr.ph.preheader, !llvm.loop !18

._crit_edge528.loopexit.unr-lcssa:                ; preds = %._crit_edge524.1, %.lr.ph527
  %.1446526.unr = phi i64 [ 1, %.lr.ph527 ], [ %94, %._crit_edge524.1 ]
  %lcmp.mod654.not = icmp eq i64 %xtraiter653, 0
  br i1 %lcmp.mod654.not, label %._crit_edge528, label %.lr.ph.preheader.epil

.lr.ph.preheader.epil:                            ; preds = %._crit_edge528.loopexit.unr-lcssa
  %95 = add nuw nsw i64 %.1446526.unr, 2
  br label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph.epil, %.lr.ph.preheader.epil
  %.1522.epil = phi i64 [ %100, %.lr.ph.epil ], [ %95, %.lr.ph.preheader.epil ]
  %96 = load ptr, ptr %64, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.1522.epil
  %98 = load ptr, ptr %97, align 8, !tbaa !10
  %99 = getelementptr inbounds double, ptr %98, i64 %.1446526.unr
  store double 0.000000e+00, ptr %99, align 8, !tbaa !12
  %100 = add nuw nsw i64 %.1522.epil, 1
  %.not485.not.epil = icmp slt i64 %.1522.epil, %1
  br i1 %.not485.not.epil, label %.lr.ph.epil, label %._crit_edge528, !llvm.loop !17

._crit_edge528:                                   ; preds = %._crit_edge528.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader508
  %101 = icmp sgt i64 %24, 2
  %102 = icmp sle i64 %24, %1
  %or.cond487.not492 = and i1 %101, %102
  %.not467 = icmp slt i64 %23, %1
  %or.cond488 = and i1 %.not467, %or.cond487.not492
  br i1 %or.cond488, label %177, label %103

103:                                              ; preds = %._crit_edge528
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext %38, i1 noundef zeroext %41, i64 noundef %1, i64 noundef 1, i64 noundef %1, ptr noundef %0, ptr noundef %4, ptr noundef %5, i64 noundef 1, i64 noundef %1, ptr noundef %6, ptr noundef nonnull %11, ptr noundef nonnull %19, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef %8)
  %.not482537 = icmp sgt i64 %1, 0
  %or.cond.not = and i1 %.not482537, %38
  br i1 %or.cond.not, label %.lr.ph539, label %.loopexit507

.lr.ph539:                                        ; preds = %103
  %104 = getelementptr inbounds i8, ptr %5, i64 56
  %105 = getelementptr inbounds i8, ptr %0, i64 72
  %106 = add nsw i64 %1, -2
  br label %107

107:                                              ; preds = %.lr.ph539, %.loopexit504
  %.2447538 = phi i64 [ 1, %.lr.ph539 ], [ %.3448, %.loopexit504 ]
  %108 = load ptr, ptr %104, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %108, i64 %.2447538
  %110 = load double, ptr %109, align 8, !tbaa !12
  %111 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %110, double noundef 0.000000e+00)
  br i1 %111, label %112, label %142

112:                                              ; preds = %107
  %113 = add nsw i64 %.2447538, 1
  %.not484533.not = icmp slt i64 %.2447538, %1
  br i1 %.not484533.not, label %.lr.ph536.preheader, label %.loopexit504

.lr.ph536.preheader:                              ; preds = %112
  %114 = sub i64 %1, %.2447538
  %xtraiter659 = and i64 %114, 3
  %lcmp.mod660.not = icmp eq i64 %xtraiter659, 0
  br i1 %lcmp.mod660.not, label %.lr.ph536.prol.loopexit, label %.lr.ph536.prol

.lr.ph536.prol:                                   ; preds = %.lr.ph536.preheader, %.lr.ph536.prol
  %.2534.prol = phi i64 [ %119, %.lr.ph536.prol ], [ %113, %.lr.ph536.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph536.prol ], [ 0, %.lr.ph536.preheader ]
  %115 = load ptr, ptr %105, align 8, !tbaa !9
  %116 = getelementptr inbounds ptr, ptr %115, i64 %.2534.prol
  %117 = load ptr, ptr %116, align 8, !tbaa !10
  %118 = getelementptr inbounds double, ptr %117, i64 %.2447538
  store double 0.000000e+00, ptr %118, align 8, !tbaa !12
  %119 = add i64 %.2534.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter659
  br i1 %prol.iter.cmp.not, label %.lr.ph536.prol.loopexit, label %.lr.ph536.prol, !llvm.loop !19

.lr.ph536.prol.loopexit:                          ; preds = %.lr.ph536.prol, %.lr.ph536.preheader
  %.2534.unr = phi i64 [ %113, %.lr.ph536.preheader ], [ %119, %.lr.ph536.prol ]
  %120 = sub i64 %.2447538, %1
  %121 = icmp ugt i64 %120, -4
  br i1 %121, label %.loopexit504, label %.lr.ph536

.lr.ph536:                                        ; preds = %.lr.ph536.prol.loopexit, %.lr.ph536
  %.2534 = phi i64 [ %141, %.lr.ph536 ], [ %.2534.unr, %.lr.ph536.prol.loopexit ]
  %122 = load ptr, ptr %105, align 8, !tbaa !9
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.2534
  %124 = load ptr, ptr %123, align 8, !tbaa !10
  %125 = getelementptr inbounds double, ptr %124, i64 %.2447538
  store double 0.000000e+00, ptr %125, align 8, !tbaa !12
  %126 = load ptr, ptr %105, align 8, !tbaa !9
  %127 = getelementptr ptr, ptr %126, i64 %.2534
  %128 = getelementptr i8, ptr %127, i64 8
  %129 = load ptr, ptr %128, align 8, !tbaa !10
  %130 = getelementptr inbounds double, ptr %129, i64 %.2447538
  store double 0.000000e+00, ptr %130, align 8, !tbaa !12
  %131 = load ptr, ptr %105, align 8, !tbaa !9
  %132 = getelementptr ptr, ptr %131, i64 %.2534
  %133 = getelementptr i8, ptr %132, i64 16
  %134 = load ptr, ptr %133, align 8, !tbaa !10
  %135 = getelementptr inbounds double, ptr %134, i64 %.2447538
  store double 0.000000e+00, ptr %135, align 8, !tbaa !12
  %136 = add i64 %.2534, 3
  %137 = load ptr, ptr %105, align 8, !tbaa !9
  %138 = getelementptr inbounds ptr, ptr %137, i64 %136
  %139 = load ptr, ptr %138, align 8, !tbaa !10
  %140 = getelementptr inbounds double, ptr %139, i64 %.2447538
  store double 0.000000e+00, ptr %140, align 8, !tbaa !12
  %141 = add i64 %.2534, 4
  %exitcond606.not.3 = icmp eq i64 %136, %1
  br i1 %exitcond606.not.3, label %.loopexit504, label %.lr.ph536, !llvm.loop !21

142:                                              ; preds = %107
  %143 = add nsw i64 %.2447538, 2
  %.not483529 = icmp sgt i64 %143, %1
  br i1 %.not483529, label %.loopexit504, label %.lr.ph532.preheader

.lr.ph532.preheader:                              ; preds = %142
  %144 = sub i64 %.2447538, %1
  %145 = and i64 %144, 1
  %lcmp.mod658.not.not = icmp eq i64 %145, 0
  br i1 %lcmp.mod658.not.not, label %.lr.ph532.prol, label %.lr.ph532.prol.loopexit

.lr.ph532.prol:                                   ; preds = %.lr.ph532.preheader
  %146 = load ptr, ptr %105, align 8, !tbaa !9
  %147 = getelementptr inbounds ptr, ptr %146, i64 %143
  %148 = load ptr, ptr %147, align 8, !tbaa !10
  %149 = getelementptr inbounds double, ptr %148, i64 %.2447538
  store double 0.000000e+00, ptr %149, align 8, !tbaa !12
  %150 = load ptr, ptr %105, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %150, i64 %143
  %152 = load ptr, ptr %151, align 8, !tbaa !10
  %153 = getelementptr double, ptr %152, i64 %.2447538
  %154 = getelementptr i8, ptr %153, i64 8
  store double 0.000000e+00, ptr %154, align 8, !tbaa !12
  %155 = add i64 %.2447538, 3
  br label %.lr.ph532.prol.loopexit

.lr.ph532.prol.loopexit:                          ; preds = %.lr.ph532.prol, %.lr.ph532.preheader
  %.3530.unr = phi i64 [ %143, %.lr.ph532.preheader ], [ %155, %.lr.ph532.prol ]
  %156 = icmp eq i64 %106, %.2447538
  br i1 %156, label %.loopexit504, label %.lr.ph532

.lr.ph532:                                        ; preds = %.lr.ph532.prol.loopexit, %.lr.ph532
  %.3530 = phi i64 [ %176, %.lr.ph532 ], [ %.3530.unr, %.lr.ph532.prol.loopexit ]
  %157 = load ptr, ptr %105, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %157, i64 %.3530
  %159 = load ptr, ptr %158, align 8, !tbaa !10
  %160 = getelementptr inbounds double, ptr %159, i64 %.2447538
  store double 0.000000e+00, ptr %160, align 8, !tbaa !12
  %161 = load ptr, ptr %105, align 8, !tbaa !9
  %162 = getelementptr inbounds ptr, ptr %161, i64 %.3530
  %163 = load ptr, ptr %162, align 8, !tbaa !10
  %164 = getelementptr double, ptr %163, i64 %.2447538
  %165 = getelementptr i8, ptr %164, i64 8
  store double 0.000000e+00, ptr %165, align 8, !tbaa !12
  %166 = add i64 %.3530, 1
  %167 = load ptr, ptr %105, align 8, !tbaa !9
  %168 = getelementptr inbounds ptr, ptr %167, i64 %166
  %169 = load ptr, ptr %168, align 8, !tbaa !10
  %170 = getelementptr inbounds double, ptr %169, i64 %.2447538
  store double 0.000000e+00, ptr %170, align 8, !tbaa !12
  %171 = load ptr, ptr %105, align 8, !tbaa !9
  %172 = getelementptr inbounds ptr, ptr %171, i64 %166
  %173 = load ptr, ptr %172, align 8, !tbaa !10
  %174 = getelementptr double, ptr %173, i64 %.2447538
  %175 = getelementptr i8, ptr %174, i64 8
  store double 0.000000e+00, ptr %175, align 8, !tbaa !12
  %176 = add i64 %.3530, 2
  %exitcond605.not.1 = icmp eq i64 %166, %1
  br i1 %exitcond605.not.1, label %.loopexit504, label %.lr.ph532, !llvm.loop !22

.loopexit504:                                     ; preds = %.lr.ph532.prol.loopexit, %.lr.ph532, %.lr.ph536.prol.loopexit, %.lr.ph536, %142, %112
  %.3448 = phi i64 [ %113, %112 ], [ %143, %142 ], [ %113, %.lr.ph536 ], [ %113, %.lr.ph536.prol.loopexit ], [ %143, %.lr.ph532 ], [ %143, %.lr.ph532.prol.loopexit ]
  %.not482 = icmp sgt i64 %.3448, %1
  br i1 %.not482, label %.loopexit507, label %107, !llvm.loop !23

177:                                              ; preds = %._crit_edge528
  %178 = uitofp nneg i64 %1 to double
  %179 = fdiv double %178, 1.000000e-15
  %180 = fmul double %179, 1.000000e-300
  %181 = mul nsw i64 %1, 30
  %182 = getelementptr inbounds i8, ptr %0, i64 72
  %183 = getelementptr inbounds i8, ptr %4, i64 56
  %184 = getelementptr inbounds i8, ptr %5, i64 56
  %185 = getelementptr inbounds i8, ptr %20, i64 56
  %186 = getelementptr inbounds i8, ptr %21, i64 56
  %187 = getelementptr inbounds i8, ptr %14, i64 72
  %188 = getelementptr inbounds i8, ptr %15, i64 56
  %189 = getelementptr inbounds i8, ptr %16, i64 56
  %190 = getelementptr inbounds i8, ptr %0, i64 16
  %xtraiter661 = and i64 %24, 1
  %unroll_iter663 = and i64 %24, 9223372036854775806
  %lcmp.mod662.not = icmp eq i64 %xtraiter661, 0
  %xtraiter669 = and i64 %24, 3
  %191 = icmp ult i64 %24, 4
  %unroll_iter671 = and i64 %24, 9223372036854775804
  %lcmp.mod670.not = icmp eq i64 %xtraiter669, 0
  br label %192

192:                                              ; preds = %548, %177
  %.0443 = phi i64 [ %181, %177 ], [ %549, %548 ]
  %.4 = phi i64 [ %1, %177 ], [ %550, %548 ]
  %193 = icmp slt i64 %.4, 1
  br i1 %193, label %198, label %.preheader502

.preheader502:                                    ; preds = %192
  %.not468574 = icmp slt i64 %.0443, 0
  br i1 %.not468574, label %.thread, label %.preheader501.lr.ph

.preheader501.lr.ph:                              ; preds = %.preheader502
  %194 = sub nsw i64 %.4, %23
  %195 = sub nsw i64 %.4, %24
  %196 = add nsw i64 %195, 1
  %197 = add nuw i64 %.4, 1
  br label %.preheader501

198:                                              ; preds = %192
  %.not479586 = icmp sgt i64 %1, 0
  %or.cond591.not = and i1 %.not479586, %38
  br i1 %or.cond591.not, label %.lr.ph588.preheader, label %.loopexit507

.lr.ph588.preheader:                              ; preds = %198
  %199 = add nsw i64 %1, -2
  br label %.lr.ph588

.lr.ph588:                                        ; preds = %.lr.ph588.preheader, %.loopexit
  %.4449587 = phi i64 [ %.5450, %.loopexit ], [ 1, %.lr.ph588.preheader ]
  %200 = load ptr, ptr %184, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %200, i64 %.4449587
  %202 = load double, ptr %201, align 8, !tbaa !12
  %203 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %202, double noundef 0.000000e+00)
  br i1 %203, label %204, label %234

204:                                              ; preds = %.lr.ph588
  %205 = add nsw i64 %.4449587, 1
  %.not481582.not = icmp slt i64 %.4449587, %1
  br i1 %.not481582.not, label %.lr.ph585.preheader, label %.loopexit

.lr.ph585.preheader:                              ; preds = %204
  %206 = sub i64 %1, %.4449587
  %xtraiter681 = and i64 %206, 3
  %lcmp.mod682.not = icmp eq i64 %xtraiter681, 0
  br i1 %lcmp.mod682.not, label %.lr.ph585.prol.loopexit, label %.lr.ph585.prol

.lr.ph585.prol:                                   ; preds = %.lr.ph585.preheader, %.lr.ph585.prol
  %.5583.prol = phi i64 [ %211, %.lr.ph585.prol ], [ %205, %.lr.ph585.preheader ]
  %prol.iter683 = phi i64 [ %prol.iter683.next, %.lr.ph585.prol ], [ 0, %.lr.ph585.preheader ]
  %207 = load ptr, ptr %182, align 8, !tbaa !9
  %208 = getelementptr inbounds ptr, ptr %207, i64 %.5583.prol
  %209 = load ptr, ptr %208, align 8, !tbaa !10
  %210 = getelementptr inbounds double, ptr %209, i64 %.4449587
  store double 0.000000e+00, ptr %210, align 8, !tbaa !12
  %211 = add i64 %.5583.prol, 1
  %prol.iter683.next = add i64 %prol.iter683, 1
  %prol.iter683.cmp.not = icmp eq i64 %prol.iter683.next, %xtraiter681
  br i1 %prol.iter683.cmp.not, label %.lr.ph585.prol.loopexit, label %.lr.ph585.prol, !llvm.loop !24

.lr.ph585.prol.loopexit:                          ; preds = %.lr.ph585.prol, %.lr.ph585.preheader
  %.5583.unr = phi i64 [ %205, %.lr.ph585.preheader ], [ %211, %.lr.ph585.prol ]
  %212 = sub i64 %.4449587, %1
  %213 = icmp ugt i64 %212, -4
  br i1 %213, label %.loopexit, label %.lr.ph585

.lr.ph585:                                        ; preds = %.lr.ph585.prol.loopexit, %.lr.ph585
  %.5583 = phi i64 [ %233, %.lr.ph585 ], [ %.5583.unr, %.lr.ph585.prol.loopexit ]
  %214 = load ptr, ptr %182, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %214, i64 %.5583
  %216 = load ptr, ptr %215, align 8, !tbaa !10
  %217 = getelementptr inbounds double, ptr %216, i64 %.4449587
  store double 0.000000e+00, ptr %217, align 8, !tbaa !12
  %218 = load ptr, ptr %182, align 8, !tbaa !9
  %219 = getelementptr ptr, ptr %218, i64 %.5583
  %220 = getelementptr i8, ptr %219, i64 8
  %221 = load ptr, ptr %220, align 8, !tbaa !10
  %222 = getelementptr inbounds double, ptr %221, i64 %.4449587
  store double 0.000000e+00, ptr %222, align 8, !tbaa !12
  %223 = load ptr, ptr %182, align 8, !tbaa !9
  %224 = getelementptr ptr, ptr %223, i64 %.5583
  %225 = getelementptr i8, ptr %224, i64 16
  %226 = load ptr, ptr %225, align 8, !tbaa !10
  %227 = getelementptr inbounds double, ptr %226, i64 %.4449587
  store double 0.000000e+00, ptr %227, align 8, !tbaa !12
  %228 = add i64 %.5583, 3
  %229 = load ptr, ptr %182, align 8, !tbaa !9
  %230 = getelementptr inbounds ptr, ptr %229, i64 %228
  %231 = load ptr, ptr %230, align 8, !tbaa !10
  %232 = getelementptr inbounds double, ptr %231, i64 %.4449587
  store double 0.000000e+00, ptr %232, align 8, !tbaa !12
  %233 = add i64 %.5583, 4
  %exitcond614.not.3 = icmp eq i64 %228, %1
  br i1 %exitcond614.not.3, label %.loopexit, label %.lr.ph585, !llvm.loop !25

234:                                              ; preds = %.lr.ph588
  %235 = add nsw i64 %.4449587, 2
  %.not480578 = icmp sgt i64 %235, %1
  br i1 %.not480578, label %.loopexit, label %.lr.ph581.preheader

.lr.ph581.preheader:                              ; preds = %234
  %236 = sub i64 %.4449587, %1
  %237 = and i64 %236, 1
  %lcmp.mod679.not.not = icmp eq i64 %237, 0
  br i1 %lcmp.mod679.not.not, label %.lr.ph581.prol, label %.lr.ph581.prol.loopexit

.lr.ph581.prol:                                   ; preds = %.lr.ph581.preheader
  %238 = load ptr, ptr %182, align 8, !tbaa !9
  %239 = getelementptr inbounds ptr, ptr %238, i64 %235
  %240 = load ptr, ptr %239, align 8, !tbaa !10
  %241 = getelementptr inbounds double, ptr %240, i64 %.4449587
  store double 0.000000e+00, ptr %241, align 8, !tbaa !12
  %242 = load ptr, ptr %182, align 8, !tbaa !9
  %243 = getelementptr inbounds ptr, ptr %242, i64 %235
  %244 = load ptr, ptr %243, align 8, !tbaa !10
  %245 = getelementptr double, ptr %244, i64 %.4449587
  %246 = getelementptr i8, ptr %245, i64 8
  store double 0.000000e+00, ptr %246, align 8, !tbaa !12
  %247 = add i64 %.4449587, 3
  br label %.lr.ph581.prol.loopexit

.lr.ph581.prol.loopexit:                          ; preds = %.lr.ph581.prol, %.lr.ph581.preheader
  %.6579.unr = phi i64 [ %235, %.lr.ph581.preheader ], [ %247, %.lr.ph581.prol ]
  %248 = icmp eq i64 %199, %.4449587
  br i1 %248, label %.loopexit, label %.lr.ph581

.lr.ph581:                                        ; preds = %.lr.ph581.prol.loopexit, %.lr.ph581
  %.6579 = phi i64 [ %268, %.lr.ph581 ], [ %.6579.unr, %.lr.ph581.prol.loopexit ]
  %249 = load ptr, ptr %182, align 8, !tbaa !9
  %250 = getelementptr inbounds ptr, ptr %249, i64 %.6579
  %251 = load ptr, ptr %250, align 8, !tbaa !10
  %252 = getelementptr inbounds double, ptr %251, i64 %.4449587
  store double 0.000000e+00, ptr %252, align 8, !tbaa !12
  %253 = load ptr, ptr %182, align 8, !tbaa !9
  %254 = getelementptr inbounds ptr, ptr %253, i64 %.6579
  %255 = load ptr, ptr %254, align 8, !tbaa !10
  %256 = getelementptr double, ptr %255, i64 %.4449587
  %257 = getelementptr i8, ptr %256, i64 8
  store double 0.000000e+00, ptr %257, align 8, !tbaa !12
  %258 = add i64 %.6579, 1
  %259 = load ptr, ptr %182, align 8, !tbaa !9
  %260 = getelementptr inbounds ptr, ptr %259, i64 %258
  %261 = load ptr, ptr %260, align 8, !tbaa !10
  %262 = getelementptr inbounds double, ptr %261, i64 %.4449587
  store double 0.000000e+00, ptr %262, align 8, !tbaa !12
  %263 = load ptr, ptr %182, align 8, !tbaa !9
  %264 = getelementptr inbounds ptr, ptr %263, i64 %258
  %265 = load ptr, ptr %264, align 8, !tbaa !10
  %266 = getelementptr double, ptr %265, i64 %.4449587
  %267 = getelementptr i8, ptr %266, i64 8
  store double 0.000000e+00, ptr %267, align 8, !tbaa !12
  %268 = add i64 %.6579, 2
  %exitcond613.not.1 = icmp eq i64 %258, %1
  br i1 %exitcond613.not.1, label %.loopexit, label %.lr.ph581, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph581.prol.loopexit, %.lr.ph581, %.lr.ph585.prol.loopexit, %.lr.ph585, %234, %204
  %.5450 = phi i64 [ %205, %204 ], [ %235, %234 ], [ %205, %.lr.ph585 ], [ %205, %.lr.ph585.prol.loopexit ], [ %235, %.lr.ph581 ], [ %235, %.lr.ph581.prol.loopexit ]
  %.not479 = icmp sgt i64 %.5450, %1
  br i1 %.not479, label %.loopexit507, label %.lr.ph588, !llvm.loop !27

.preheader501:                                    ; preds = %.preheader501.lr.ph, %._crit_edge573
  %.0444576 = phi i64 [ 0, %.preheader501.lr.ph ], [ %544, %._crit_edge573 ]
  %.0455575 = phi i64 [ 1, %.preheader501.lr.ph ], [ %.0452, %._crit_edge573 ]
  br label %269

269:                                              ; preds = %.preheader501, %288
  %.0452 = phi i64 [ %272, %288 ], [ %.4, %.preheader501 ]
  %.not469.not = icmp sgt i64 %.0452, %.0455575
  br i1 %.not469.not, label %270, label %298

270:                                              ; preds = %269
  %271 = load ptr, ptr %182, align 8, !tbaa !9
  %272 = add nsw i64 %.0452, -1
  %273 = getelementptr inbounds ptr, ptr %271, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !10
  %275 = getelementptr inbounds double, ptr %274, i64 %272
  %276 = load double, ptr %275, align 8, !tbaa !12
  %277 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %276, ptr noundef %8)
  %278 = load ptr, ptr %182, align 8, !tbaa !9
  %279 = getelementptr inbounds ptr, ptr %278, i64 %.0452
  %280 = load ptr, ptr %279, align 8, !tbaa !10
  %281 = getelementptr inbounds double, ptr %280, i64 %.0452
  %282 = load double, ptr %281, align 8, !tbaa !12
  %283 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %282, ptr noundef %8)
  %284 = fadd double %277, %283
  %285 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %284, double noundef 0.000000e+00)
  br i1 %285, label %286, label %288

286:                                              ; preds = %270
  %287 = call noundef double @_ZN11alglib_impl20upperhessenberg1normEPNS_9ae_matrixEllllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %0, i64 noundef %.0455575, i64 noundef %.4, i64 noundef %.0455575, i64 noundef %.4, ptr noundef nonnull %11, ptr noundef %8)
  br label %288

288:                                              ; preds = %286, %270
  %.0454 = phi double [ %287, %286 ], [ %284, %270 ]
  %289 = load ptr, ptr %182, align 8, !tbaa !9
  %290 = getelementptr inbounds ptr, ptr %289, i64 %.0452
  %291 = load ptr, ptr %290, align 8, !tbaa !10
  %292 = getelementptr inbounds double, ptr %291, i64 %272
  %293 = load double, ptr %292, align 8, !tbaa !12
  %294 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %293, ptr noundef %8)
  %295 = fmul double %.0454, 1.000000e-15
  %296 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %295, double noundef %180, ptr noundef %8)
  %297 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %294, double noundef %296)
  br i1 %297, label %298, label %269, !llvm.loop !28

298:                                              ; preds = %288, %269
  %299 = icmp sgt i64 %.0452, 1
  br i1 %299, label %300, label %306

300:                                              ; preds = %298
  %301 = load ptr, ptr %182, align 8, !tbaa !9
  %302 = getelementptr inbounds ptr, ptr %301, i64 %.0452
  %303 = load ptr, ptr %302, align 8, !tbaa !10
  %304 = getelementptr double, ptr %303, i64 %.0452
  %305 = getelementptr i8, ptr %304, i64 -8
  store double 0.000000e+00, ptr %305, align 8, !tbaa !12
  br label %306

306:                                              ; preds = %300, %298
  %.not470.not = icmp sgt i64 %.0452, %194
  br i1 %.not470.not, label %545, label %307

307:                                              ; preds = %306
  switch i64 %.0444576, label %.lr.ph547.preheader [
    i64 30, label %.lr.ph543.preheader
    i64 20, label %.lr.ph543.preheader
  ]

.lr.ph543.preheader:                              ; preds = %307, %307
  br label %.lr.ph543

.lr.ph543:                                        ; preds = %.lr.ph543.preheader, %.lr.ph543
  %.0438.in541 = phi i64 [ %.0438, %.lr.ph543 ], [ %195, %.lr.ph543.preheader ]
  %.0438 = add nsw i64 %.0438.in541, 1
  %308 = load ptr, ptr %182, align 8, !tbaa !9
  %309 = getelementptr inbounds ptr, ptr %308, i64 %.0438
  %310 = load ptr, ptr %309, align 8, !tbaa !10
  %311 = getelementptr inbounds double, ptr %310, i64 %.0438.in541
  %312 = load double, ptr %311, align 8, !tbaa !12
  %313 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %312, ptr noundef %8)
  %314 = load ptr, ptr %182, align 8, !tbaa !9
  %315 = getelementptr inbounds ptr, ptr %314, i64 %.0438
  %316 = load ptr, ptr %315, align 8, !tbaa !10
  %317 = getelementptr inbounds double, ptr %316, i64 %.0438
  %318 = load double, ptr %317, align 8, !tbaa !12
  %319 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %318, ptr noundef %8)
  %320 = fadd double %313, %319
  %321 = fmul double %320, 1.500000e+00
  %322 = load ptr, ptr %183, align 8, !tbaa !9
  %323 = getelementptr inbounds double, ptr %322, i64 %.0438
  store double %321, ptr %323, align 8, !tbaa !12
  %324 = load ptr, ptr %184, align 8, !tbaa !9
  %325 = getelementptr inbounds double, ptr %324, i64 %.0438
  store double 0.000000e+00, ptr %325, align 8, !tbaa !12
  %.not473.not = icmp slt i64 %.0438, %.4
  br i1 %.not473.not, label %.lr.ph543, label %.lr.ph553.preheader, !llvm.loop !29

.lr.ph547.preheader:                              ; preds = %307
  call void @_ZN11alglib_impl10copymatrixEPNS_9ae_matrixEllllS1_llllPNS_8ae_stateE(ptr noundef %0, i64 noundef %196, i64 noundef %.4, i64 noundef %196, i64 noundef %.4, ptr noundef nonnull %14, i64 noundef 1, i64 noundef %24, i64 noundef 1, i64 noundef %24, ptr noundef %8)
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext false, i1 noundef zeroext false, i64 noundef %24, i64 noundef 1, i64 noundef %24, ptr noundef nonnull %14, ptr noundef nonnull %20, ptr noundef nonnull %21, i64 noundef 1, i64 noundef %24, ptr noundef %6, ptr noundef nonnull %11, ptr noundef nonnull %19, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %12, ptr noundef %8)
  br label %.lr.ph547

.lr.ph547:                                        ; preds = %.lr.ph547, %.lr.ph547.preheader
  %.0436545 = phi i64 [ 1, %.lr.ph547.preheader ], [ %349, %.lr.ph547 ]
  %niter664 = phi i64 [ 0, %.lr.ph547.preheader ], [ %niter664.next.1, %.lr.ph547 ]
  %326 = load ptr, ptr %185, align 8, !tbaa !9
  %327 = getelementptr inbounds double, ptr %326, i64 %.0436545
  %328 = load double, ptr %327, align 8, !tbaa !12
  %329 = load ptr, ptr %183, align 8, !tbaa !9
  %330 = add nsw i64 %.0436545, %195
  %331 = getelementptr inbounds double, ptr %329, i64 %330
  store double %328, ptr %331, align 8, !tbaa !12
  %332 = load ptr, ptr %186, align 8, !tbaa !9
  %333 = getelementptr inbounds double, ptr %332, i64 %.0436545
  %334 = load double, ptr %333, align 8, !tbaa !12
  %335 = load ptr, ptr %184, align 8, !tbaa !9
  %336 = getelementptr inbounds double, ptr %335, i64 %330
  store double %334, ptr %336, align 8, !tbaa !12
  %337 = add nuw nsw i64 %.0436545, 1
  %338 = load ptr, ptr %185, align 8, !tbaa !9
  %339 = getelementptr inbounds double, ptr %338, i64 %337
  %340 = load double, ptr %339, align 8, !tbaa !12
  %341 = load ptr, ptr %183, align 8, !tbaa !9
  %342 = add nsw i64 %337, %195
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  store double %340, ptr %343, align 8, !tbaa !12
  %344 = load ptr, ptr %186, align 8, !tbaa !9
  %345 = getelementptr inbounds double, ptr %344, i64 %337
  %346 = load double, ptr %345, align 8, !tbaa !12
  %347 = load ptr, ptr %184, align 8, !tbaa !9
  %348 = getelementptr inbounds double, ptr %347, i64 %342
  store double %346, ptr %348, align 8, !tbaa !12
  %349 = add nuw nsw i64 %.0436545, 2
  %niter664.next.1 = add nuw nsw i64 %niter664, 2
  %niter664.ncmp.1 = icmp eq i64 %niter664.next.1, %unroll_iter663
  br i1 %niter664.ncmp.1, label %._crit_edge548.unr-lcssa, label %.lr.ph547, !llvm.loop !30

._crit_edge548.unr-lcssa:                         ; preds = %.lr.ph547
  br i1 %lcmp.mod662.not, label %._crit_edge548, label %.lr.ph547.epil

.lr.ph547.epil:                                   ; preds = %._crit_edge548.unr-lcssa
  %350 = load ptr, ptr %185, align 8, !tbaa !9
  %351 = getelementptr inbounds double, ptr %350, i64 %349
  %352 = load double, ptr %351, align 8, !tbaa !12
  %353 = load ptr, ptr %183, align 8, !tbaa !9
  %354 = add nsw i64 %349, %195
  %355 = getelementptr inbounds double, ptr %353, i64 %354
  store double %352, ptr %355, align 8, !tbaa !12
  %356 = load ptr, ptr %186, align 8, !tbaa !9
  %357 = getelementptr inbounds double, ptr %356, i64 %349
  %358 = load double, ptr %357, align 8, !tbaa !12
  %359 = load ptr, ptr %184, align 8, !tbaa !9
  %360 = getelementptr inbounds double, ptr %359, i64 %354
  store double %358, ptr %360, align 8, !tbaa !12
  br label %._crit_edge548

._crit_edge548:                                   ; preds = %._crit_edge548.unr-lcssa, %.lr.ph547.epil
  %361 = load i64, ptr %12, align 8, !tbaa !5
  %362 = icmp sgt i64 %361, 0
  br i1 %362, label %.preheader498.preheader, label %.lr.ph553.preheader

.preheader498.preheader:                          ; preds = %._crit_edge548
  %xtraiter665 = and i64 %361, 1
  %363 = icmp eq i64 %361, 1
  br i1 %363, label %.lr.ph553.preheader.loopexit.unr-lcssa, label %.preheader498.preheader.new

.preheader498.preheader.new:                      ; preds = %.preheader498.preheader
  %unroll_iter667 = and i64 %361, 9223372036854775806
  br label %.preheader498

.preheader498:                                    ; preds = %.preheader498, %.preheader498.preheader.new
  %.1439549 = phi i64 [ 1, %.preheader498.preheader.new ], [ %385, %.preheader498 ]
  %niter668 = phi i64 [ 0, %.preheader498.preheader.new ], [ %niter668.next.1, %.preheader498 ]
  %364 = load ptr, ptr %187, align 8, !tbaa !9
  %365 = getelementptr inbounds ptr, ptr %364, i64 %.1439549
  %366 = load ptr, ptr %365, align 8, !tbaa !10
  %367 = getelementptr inbounds double, ptr %366, i64 %.1439549
  %368 = load double, ptr %367, align 8, !tbaa !12
  %369 = load ptr, ptr %183, align 8, !tbaa !9
  %370 = add nsw i64 %.1439549, %195
  %371 = getelementptr inbounds double, ptr %369, i64 %370
  store double %368, ptr %371, align 8, !tbaa !12
  %372 = load ptr, ptr %184, align 8, !tbaa !9
  %373 = getelementptr inbounds double, ptr %372, i64 %370
  store double 0.000000e+00, ptr %373, align 8, !tbaa !12
  %374 = add nuw i64 %.1439549, 1
  %375 = load ptr, ptr %187, align 8, !tbaa !9
  %376 = getelementptr inbounds ptr, ptr %375, i64 %374
  %377 = load ptr, ptr %376, align 8, !tbaa !10
  %378 = getelementptr inbounds double, ptr %377, i64 %374
  %379 = load double, ptr %378, align 8, !tbaa !12
  %380 = load ptr, ptr %183, align 8, !tbaa !9
  %381 = add nsw i64 %374, %195
  %382 = getelementptr inbounds double, ptr %380, i64 %381
  store double %379, ptr %382, align 8, !tbaa !12
  %383 = load ptr, ptr %184, align 8, !tbaa !9
  %384 = getelementptr inbounds double, ptr %383, i64 %381
  store double 0.000000e+00, ptr %384, align 8, !tbaa !12
  %385 = add nuw i64 %.1439549, 2
  %niter668.next.1 = add nuw i64 %niter668, 2
  %niter668.ncmp.1 = icmp eq i64 %niter668.next.1, %unroll_iter667
  br i1 %niter668.ncmp.1, label %.lr.ph553.preheader.loopexit.unr-lcssa, label %.preheader498, !llvm.loop !31

.lr.ph553.preheader.loopexit.unr-lcssa:           ; preds = %.preheader498, %.preheader498.preheader
  %.1439549.unr = phi i64 [ 1, %.preheader498.preheader ], [ %385, %.preheader498 ]
  %lcmp.mod666.not = icmp eq i64 %xtraiter665, 0
  br i1 %lcmp.mod666.not, label %.lr.ph553.preheader, label %.preheader498.epil

.preheader498.epil:                               ; preds = %.lr.ph553.preheader.loopexit.unr-lcssa
  %386 = load ptr, ptr %187, align 8, !tbaa !9
  %387 = getelementptr inbounds ptr, ptr %386, i64 %.1439549.unr
  %388 = load ptr, ptr %387, align 8, !tbaa !10
  %389 = getelementptr inbounds double, ptr %388, i64 %.1439549.unr
  %390 = load double, ptr %389, align 8, !tbaa !12
  %391 = load ptr, ptr %183, align 8, !tbaa !9
  %392 = add nsw i64 %.1439549.unr, %195
  %393 = getelementptr inbounds double, ptr %391, i64 %392
  store double %390, ptr %393, align 8, !tbaa !12
  %394 = load ptr, ptr %184, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %394, i64 %392
  store double 0.000000e+00, ptr %395, align 8, !tbaa !12
  br label %.lr.ph553.preheader

.lr.ph553.preheader:                              ; preds = %.lr.ph543, %.preheader498.epil, %.lr.ph553.preheader.loopexit.unr-lcssa, %._crit_edge548
  %396 = load ptr, ptr %188, align 8, !tbaa !9
  %397 = getelementptr inbounds i8, ptr %396, i64 8
  store double 1.000000e+00, ptr %397, align 8, !tbaa !12
  br i1 %191, label %.lr.ph564.preheader.unr-lcssa, label %.lr.ph553

.lr.ph553:                                        ; preds = %.lr.ph553.preheader, %.lr.ph553
  %.2440551 = phi i64 [ %409, %.lr.ph553 ], [ 2, %.lr.ph553.preheader ]
  %niter672 = phi i64 [ %niter672.next.3, %.lr.ph553 ], [ 0, %.lr.ph553.preheader ]
  %398 = load ptr, ptr %188, align 8, !tbaa !9
  %399 = getelementptr inbounds double, ptr %398, i64 %.2440551
  store double 0.000000e+00, ptr %399, align 8, !tbaa !12
  %400 = or disjoint i64 %.2440551, 1
  %401 = load ptr, ptr %188, align 8, !tbaa !9
  %402 = getelementptr inbounds double, ptr %401, i64 %400
  store double 0.000000e+00, ptr %402, align 8, !tbaa !12
  %403 = load ptr, ptr %188, align 8, !tbaa !9
  %404 = getelementptr double, ptr %403, i64 %.2440551
  %405 = getelementptr i8, ptr %404, i64 16
  store double 0.000000e+00, ptr %405, align 8, !tbaa !12
  %406 = load ptr, ptr %188, align 8, !tbaa !9
  %407 = getelementptr double, ptr %406, i64 %.2440551
  %408 = getelementptr i8, ptr %407, i64 24
  store double 0.000000e+00, ptr %408, align 8, !tbaa !12
  %409 = add nuw i64 %.2440551, 4
  %niter672.next.3 = add i64 %niter672, 4
  %niter672.ncmp.3 = icmp eq i64 %niter672.next.3, %unroll_iter671
  br i1 %niter672.ncmp.3, label %.lr.ph564.preheader.unr-lcssa, label %.lr.ph553, !llvm.loop !32

.lr.ph564.preheader.unr-lcssa:                    ; preds = %.lr.ph553, %.lr.ph553.preheader
  %.2440551.unr = phi i64 [ 2, %.lr.ph553.preheader ], [ %409, %.lr.ph553 ]
  br i1 %lcmp.mod670.not, label %.lr.ph564.preheader, label %.lr.ph553.epil

.lr.ph553.epil:                                   ; preds = %.lr.ph564.preheader.unr-lcssa, %.lr.ph553.epil
  %.2440551.epil = phi i64 [ %412, %.lr.ph553.epil ], [ %.2440551.unr, %.lr.ph564.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph553.epil ], [ 0, %.lr.ph564.preheader.unr-lcssa ]
  %410 = load ptr, ptr %188, align 8, !tbaa !9
  %411 = getelementptr inbounds double, ptr %410, i64 %.2440551.epil
  store double 0.000000e+00, ptr %411, align 8, !tbaa !12
  %412 = add nuw i64 %.2440551.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter669
  br i1 %epil.iter.cmp.not, label %.lr.ph564.preheader, label %.lr.ph553.epil, !llvm.loop !33

.lr.ph564.preheader:                              ; preds = %.lr.ph553.epil, %.lr.ph564.preheader.unr-lcssa
  br label %.lr.ph564

.preheader497:                                    ; preds = %.loopexit496
  %.not476.not569 = icmp slt i64 %.0452, %.4
  br i1 %.not476.not569, label %.lr.ph572, label %._crit_edge573

.lr.ph564:                                        ; preds = %.lr.ph564.preheader, %.loopexit496
  %.6451562.in = phi i64 [ %.6451562, %.loopexit496 ], [ %195, %.lr.ph564.preheader ]
  %.0457561 = phi i64 [ %.2459, %.loopexit496 ], [ 1, %.lr.ph564.preheader ]
  %.6451562 = add nsw i64 %.6451562.in, 1
  %413 = load ptr, ptr %184, align 8, !tbaa !9
  %414 = getelementptr inbounds double, ptr %413, i64 %.6451562
  %415 = load double, ptr %414, align 8, !tbaa !12
  %416 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %415, double noundef 0.000000e+00)
  br i1 %416, label %417, label %.loopexit496

417:                                              ; preds = %.lr.ph564
  %418 = load ptr, ptr %184, align 8, !tbaa !9
  %419 = getelementptr inbounds double, ptr %418, i64 %.6451562
  %420 = load double, ptr %419, align 8, !tbaa !12
  %421 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %420, double noundef 0.000000e+00)
  br i1 %421, label %422, label %435

422:                                              ; preds = %417
  %423 = add nsw i64 %.0457561, 1
  %424 = load ptr, ptr %189, align 8, !tbaa !9
  %425 = getelementptr inbounds i8, ptr %424, i64 8
  %426 = load ptr, ptr %188, align 8, !tbaa !9
  %427 = getelementptr inbounds i8, ptr %426, i64 8
  %428 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %423)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %425, i64 noundef 1, ptr noundef nonnull %427, i64 noundef 1, i64 noundef %428)
  %429 = add nsw i64 %.0457561, %.0452
  %430 = add nsw i64 %429, -1
  %431 = load ptr, ptr %183, align 8, !tbaa !9
  %432 = getelementptr inbounds double, ptr %431, i64 %.6451562
  %433 = load double, ptr %432, align 8, !tbaa !12
  %434 = fneg double %433
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0452, i64 noundef %429, i64 noundef %.0452, i64 noundef %430, i1 noundef zeroext false, ptr noundef nonnull %16, i64 noundef 1, i64 noundef %.0457561, double noundef 1.000000e+00, ptr noundef nonnull %15, i64 noundef 1, i64 noundef %423, double noundef %434, ptr noundef %8)
  br label %474

435:                                              ; preds = %417
  %436 = load ptr, ptr %184, align 8, !tbaa !9
  %437 = getelementptr inbounds double, ptr %436, i64 %.6451562
  %438 = load double, ptr %437, align 8, !tbaa !12
  %439 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %438, double noundef 0.000000e+00)
  br i1 %439, label %440, label %474

440:                                              ; preds = %435
  %441 = add nsw i64 %.0457561, 1
  %442 = load ptr, ptr %189, align 8, !tbaa !9
  %443 = getelementptr inbounds i8, ptr %442, i64 8
  %444 = load ptr, ptr %188, align 8, !tbaa !9
  %445 = getelementptr inbounds i8, ptr %444, i64 8
  %446 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %441)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %443, i64 noundef 1, ptr noundef nonnull %445, i64 noundef 1, i64 noundef %446)
  %447 = add nsw i64 %.0457561, %.0452
  %448 = add nsw i64 %447, -1
  %449 = load ptr, ptr %183, align 8, !tbaa !9
  %450 = getelementptr inbounds double, ptr %449, i64 %.6451562
  %451 = load double, ptr %450, align 8, !tbaa !12
  %452 = fmul double %451, -2.000000e+00
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0452, i64 noundef %447, i64 noundef %.0452, i64 noundef %448, i1 noundef zeroext false, ptr noundef nonnull %15, i64 noundef 1, i64 noundef %.0457561, double noundef 1.000000e+00, ptr noundef nonnull %16, i64 noundef 1, i64 noundef %441, double noundef %452, ptr noundef %8)
  %453 = call noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 1, i64 noundef %441, ptr noundef %8)
  %454 = load ptr, ptr %189, align 8, !tbaa !9
  %455 = getelementptr inbounds double, ptr %454, i64 %453
  %456 = load double, ptr %455, align 8, !tbaa !12
  %457 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %456, ptr noundef %8)
  %458 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %457, double noundef %180, ptr noundef %8)
  %459 = fdiv double 1.000000e+00, %458
  %460 = load ptr, ptr %189, align 8, !tbaa !9
  %461 = getelementptr inbounds i8, ptr %460, i64 8
  %462 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %441)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef nonnull %461, i64 noundef 1, i64 noundef %462, double noundef %459)
  %463 = load ptr, ptr %183, align 8, !tbaa !9
  %464 = getelementptr inbounds double, ptr %463, i64 %.6451562
  %465 = load double, ptr %464, align 8, !tbaa !12
  %466 = load ptr, ptr %184, align 8, !tbaa !9
  %467 = getelementptr inbounds double, ptr %466, i64 %.6451562
  %468 = load double, ptr %467, align 8, !tbaa !12
  %469 = call noundef double @_ZN11alglib_impl7pythag2EddPNS_8ae_stateE(double noundef %465, double noundef %468, ptr noundef %8)
  %470 = fmul double %459, %469
  %471 = fmul double %469, %470
  %472 = add nsw i64 %447, 1
  %473 = add nsw i64 %.0457561, 2
  call void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef %0, i64 noundef %.0452, i64 noundef %472, i64 noundef %.0452, i64 noundef %447, i1 noundef zeroext false, ptr noundef nonnull %16, i64 noundef 1, i64 noundef %441, double noundef 1.000000e+00, ptr noundef nonnull %15, i64 noundef 1, i64 noundef %473, double noundef %471, ptr noundef %8)
  br label %474

474:                                              ; preds = %435, %440, %422
  %.1458 = phi i64 [ %423, %422 ], [ %473, %440 ], [ %.0457561, %435 ]
  %475 = call noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef 1, i64 noundef %.1458, ptr noundef %8)
  %476 = load ptr, ptr %188, align 8, !tbaa !9
  %477 = getelementptr inbounds double, ptr %476, i64 %475
  %478 = load double, ptr %477, align 8, !tbaa !12
  %479 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %478, ptr noundef %8)
  %480 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %479, double noundef 0.000000e+00)
  br i1 %480, label %481, label %499

481:                                              ; preds = %474
  %482 = load ptr, ptr %188, align 8, !tbaa !9
  %483 = getelementptr inbounds i8, ptr %482, i64 8
  store double 1.000000e+00, ptr %483, align 8, !tbaa !12
  %.not478555 = icmp slt i64 %.1458, 2
  br i1 %.not478555, label %.loopexit496, label %.lr.ph558.preheader

.lr.ph558.preheader:                              ; preds = %481
  %484 = add nsw i64 %.1458, -1
  %485 = add nsw i64 %.1458, -2
  %xtraiter673 = and i64 %484, 3
  %486 = icmp ult i64 %485, 3
  br i1 %486, label %.loopexit496.loopexit.unr-lcssa, label %.lr.ph558.preheader.new

.lr.ph558.preheader.new:                          ; preds = %.lr.ph558.preheader
  %unroll_iter676 = and i64 %484, -4
  br label %.lr.ph558

.lr.ph558:                                        ; preds = %.lr.ph558, %.lr.ph558.preheader.new
  %.3441556 = phi i64 [ 2, %.lr.ph558.preheader.new ], [ %498, %.lr.ph558 ]
  %niter677 = phi i64 [ 0, %.lr.ph558.preheader.new ], [ %niter677.next.3, %.lr.ph558 ]
  %487 = load ptr, ptr %188, align 8, !tbaa !9
  %488 = getelementptr inbounds double, ptr %487, i64 %.3441556
  store double 0.000000e+00, ptr %488, align 8, !tbaa !12
  %489 = or disjoint i64 %.3441556, 1
  %490 = load ptr, ptr %188, align 8, !tbaa !9
  %491 = getelementptr inbounds double, ptr %490, i64 %489
  store double 0.000000e+00, ptr %491, align 8, !tbaa !12
  %492 = load ptr, ptr %188, align 8, !tbaa !9
  %493 = getelementptr double, ptr %492, i64 %.3441556
  %494 = getelementptr i8, ptr %493, i64 16
  store double 0.000000e+00, ptr %494, align 8, !tbaa !12
  %495 = load ptr, ptr %188, align 8, !tbaa !9
  %496 = getelementptr double, ptr %495, i64 %.3441556
  %497 = getelementptr i8, ptr %496, i64 24
  store double 0.000000e+00, ptr %497, align 8, !tbaa !12
  %498 = add nuw i64 %.3441556, 4
  %niter677.next.3 = add i64 %niter677, 4
  %niter677.ncmp.3 = icmp eq i64 %niter677.next.3, %unroll_iter676
  br i1 %niter677.ncmp.3, label %.loopexit496.loopexit.unr-lcssa, label %.lr.ph558, !llvm.loop !34

499:                                              ; preds = %474
  %500 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %479, double noundef %180, ptr noundef %8)
  %501 = fdiv double 1.000000e+00, %500
  %502 = load ptr, ptr %188, align 8, !tbaa !9
  %503 = getelementptr inbounds i8, ptr %502, i64 8
  %504 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %.1458)
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef nonnull %503, i64 noundef 1, i64 noundef %504, double noundef %501)
  br label %.loopexit496

.loopexit496.loopexit.unr-lcssa:                  ; preds = %.lr.ph558, %.lr.ph558.preheader
  %.3441556.unr = phi i64 [ 2, %.lr.ph558.preheader ], [ %498, %.lr.ph558 ]
  %lcmp.mod675.not = icmp eq i64 %xtraiter673, 0
  br i1 %lcmp.mod675.not, label %.loopexit496, label %.lr.ph558.epil

.lr.ph558.epil:                                   ; preds = %.loopexit496.loopexit.unr-lcssa, %.lr.ph558.epil
  %.3441556.epil = phi i64 [ %507, %.lr.ph558.epil ], [ %.3441556.unr, %.loopexit496.loopexit.unr-lcssa ]
  %epil.iter674 = phi i64 [ %epil.iter674.next, %.lr.ph558.epil ], [ 0, %.loopexit496.loopexit.unr-lcssa ]
  %505 = load ptr, ptr %188, align 8, !tbaa !9
  %506 = getelementptr inbounds double, ptr %505, i64 %.3441556.epil
  store double 0.000000e+00, ptr %506, align 8, !tbaa !12
  %507 = add nuw i64 %.3441556.epil, 1
  %epil.iter674.next = add i64 %epil.iter674, 1
  %epil.iter674.cmp.not = icmp eq i64 %epil.iter674.next, %xtraiter673
  br i1 %epil.iter674.cmp.not, label %.loopexit496, label %.lr.ph558.epil, !llvm.loop !35

.loopexit496:                                     ; preds = %.loopexit496.loopexit.unr-lcssa, %.lr.ph558.epil, %481, %.lr.ph564, %499
  %.2459 = phi i64 [ %.1458, %499 ], [ %.0457561, %.lr.ph564 ], [ %.1458, %481 ], [ %.1458, %.lr.ph558.epil ], [ %.1458, %.loopexit496.loopexit.unr-lcssa ]
  %.not475.not = icmp slt i64 %.6451562, %.4
  br i1 %.not475.not, label %.lr.ph564, label %.preheader497, !llvm.loop !36

.lr.ph572:                                        ; preds = %.preheader497, %542
  %.1453570 = phi i64 [ %543, %542 ], [ %.0452, %.preheader497 ]
  %508 = sub i64 %197, %.1453570
  %509 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %27, i64 noundef %508, ptr noundef %8)
  %510 = icmp sgt i64 %.1453570, %.0452
  br i1 %510, label %.lr.ph568.preheader, label %.critedge

.lr.ph568.preheader:                              ; preds = %.lr.ph572
  %511 = add nsw i64 %.1453570, -1
  %512 = add i64 %511, %509
  store i64 %512, ptr %22, align 8, !tbaa !5
  %513 = load ptr, ptr %188, align 8, !tbaa !9
  %514 = getelementptr inbounds i8, ptr %513, i64 8
  %515 = load ptr, ptr %182, align 8, !tbaa !9
  %516 = getelementptr inbounds ptr, ptr %515, i64 %.1453570
  %517 = load ptr, ptr %516, align 8, !tbaa !10
  %518 = getelementptr double, ptr %517, i64 %.1453570
  %519 = getelementptr i8, ptr %518, i64 -8
  %520 = load i64, ptr %190, align 8, !tbaa !37
  %521 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %509)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef nonnull %514, i64 noundef 1, ptr noundef %519, i64 noundef %520, i64 noundef %521)
  call void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef nonnull %22, ptr noundef %8)
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %509, ptr noundef nonnull %13, ptr noundef %8)
  %522 = load ptr, ptr %188, align 8, !tbaa !9
  %523 = getelementptr inbounds i8, ptr %522, i64 8
  %524 = load double, ptr %523, align 8, !tbaa !12
  %525 = load ptr, ptr %182, align 8, !tbaa !9
  %526 = getelementptr inbounds ptr, ptr %525, i64 %.1453570
  %527 = load ptr, ptr %526, align 8, !tbaa !10
  %528 = getelementptr inbounds double, ptr %527, i64 %511
  store double %524, ptr %528, align 8, !tbaa !12
  br label %.lr.ph568

.lr.ph568:                                        ; preds = %.lr.ph568.preheader, %.lr.ph568
  %.4442.in566 = phi i64 [ %.4442, %.lr.ph568 ], [ %.1453570, %.lr.ph568.preheader ]
  %.4442 = add nsw i64 %.4442.in566, 1
  %529 = load ptr, ptr %182, align 8, !tbaa !9
  %530 = getelementptr inbounds ptr, ptr %529, i64 %.4442
  %531 = load ptr, ptr %530, align 8, !tbaa !10
  %532 = getelementptr inbounds double, ptr %531, i64 %511
  store double 0.000000e+00, ptr %532, align 8, !tbaa !12
  %.not477.not = icmp slt i64 %.4442, %.4
  br i1 %.not477.not, label %.lr.ph568, label %.loopexit495, !llvm.loop !41

.critedge:                                        ; preds = %.lr.ph572
  call void @_ZN11alglib_impl18generatereflectionEPNS_9ae_vectorElPdPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %509, ptr noundef nonnull %13, ptr noundef %8)
  br label %.loopexit495

.loopexit495:                                     ; preds = %.lr.ph568, %.critedge
  %533 = load ptr, ptr %188, align 8, !tbaa !9
  %534 = getelementptr inbounds i8, ptr %533, i64 8
  store double 1.000000e+00, ptr %534, align 8, !tbaa !12
  %535 = load double, ptr %13, align 8, !tbaa !12
  %536 = add nsw i64 %509, %.1453570
  %537 = add nsw i64 %536, -1
  call void @_ZN11alglib_impl26applyreflectionfromtheleftEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %0, double noundef %535, ptr noundef nonnull %15, i64 noundef %.1453570, i64 noundef %537, i64 noundef %.1453570, i64 noundef %1, ptr noundef nonnull %11, ptr noundef %8)
  %538 = load double, ptr %13, align 8, !tbaa !12
  %539 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %536, i64 noundef %.4, ptr noundef %8)
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %0, double noundef %538, ptr noundef nonnull %15, i64 noundef 1, i64 noundef %539, i64 noundef %.1453570, i64 noundef %537, ptr noundef nonnull %11, ptr noundef %8)
  br i1 %41, label %540, label %542

540:                                              ; preds = %.loopexit495
  %541 = load double, ptr %13, align 8, !tbaa !12
  call void @_ZN11alglib_impl27applyreflectionfromtherightEPNS_9ae_matrixEdPNS_9ae_vectorEllllS3_PNS_8ae_stateE(ptr noundef %6, double noundef %541, ptr noundef nonnull %15, i64 noundef 1, i64 noundef %1, i64 noundef %.1453570, i64 noundef %537, ptr noundef nonnull %11, ptr noundef %8)
  br label %542

542:                                              ; preds = %.loopexit495, %540
  %543 = add i64 %.1453570, 1
  %exitcond611.not = icmp eq i64 %543, %.4
  br i1 %exitcond611.not, label %._crit_edge573, label %.lr.ph572, !llvm.loop !42

._crit_edge573:                                   ; preds = %542, %.preheader497
  %544 = add nuw i64 %.0444576, 1
  %exitcond612.not = icmp eq i64 %.0444576, %.0443
  br i1 %exitcond612.not, label %.thread, label %.preheader501, !llvm.loop !43

.thread:                                          ; preds = %.preheader502, %._crit_edge573
  store i64 %.4, ptr %7, align 8, !tbaa !5
  br label %.loopexit507

545:                                              ; preds = %306
  call void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext %38, i1 noundef zeroext %41, i64 noundef %1, i64 noundef %.0452, i64 noundef %.4, ptr noundef %0, ptr noundef %4, ptr noundef %5, i64 noundef 1, i64 noundef %1, ptr noundef %6, ptr noundef nonnull %11, ptr noundef nonnull %19, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %7, ptr noundef %8)
  %546 = load i64, ptr %7, align 8, !tbaa !5
  %547 = icmp sgt i64 %546, 0
  br i1 %547, label %.loopexit507, label %548

548:                                              ; preds = %545
  %549 = sub nsw i64 %.0443, %.0444576
  %550 = add nsw i64 %.0452, -1
  %551 = call noundef zeroext i1 @_ZN11alglib_impl11alwaysfalseEPNS_8ae_stateE(ptr noundef %8)
  br i1 %551, label %552, label %192, !llvm.loop !44

552:                                              ; preds = %548
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.332, ptr noundef %8)
  br label %.loopexit507

.loopexit507:                                     ; preds = %.loopexit504, %545, %.loopexit, %198, %103, %.loopexit510, %552, %.thread, %68
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL24hsschur_internalauxschurEbblllPNS_9ae_matrixEPNS_9ae_vectorES3_llS1_S3_S3_S3_S3_PlPNS_8ae_stateE(i1 noundef zeroext, i1 noundef zeroext, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl20upperhessenberg1normEPNS_9ae_matrixEllllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20matrixvectormultiplyEPNS_9ae_matrixEllllbPNS_9ae_vectorElldS3_lldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i1 noundef zeroext, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare noundef i64 @_ZN11alglib_impl15vectoridxabsmaxEPNS_9ae_vectorEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl7pythag2EddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl8touchintEPlPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl11alwaysfalseEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !15}
!37 = !{!38, !6, i64 16}
!38 = !{!"_ZTSN11alglib_impl9ae_matrixE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !39, i64 32, !40, i64 40, !7, i64 72}
!39 = !{!"bool", !7, i64 0}
!40 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!41 = distinct !{!41, !15}
!42 = distinct !{!42, !15}
!43 = distinct !{!43, !15}
!44 = distinct !{!44, !15}


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