; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z7skstestPN11alglib_impl8ae_stateE)

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

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

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

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

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

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

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

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

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

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

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7skstestPN11alglib_impl8ae_stateE(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %5 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %6 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %7 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %8 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %9 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %10 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 24, 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 1, ptr %28) #4
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %3)
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  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 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 24, i1 false)
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %4, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %6, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %7, ptr noundef %33, i1 noundef zeroext true)
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %8, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %9, ptr noundef %35, i1 noundef zeroext true)
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %10, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 2, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %22, ptr noundef %41, i1 noundef zeroext true)
  store i8 0, ptr %28, align 1, !tbaa !9
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %42)
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %905, %1
  %44 = load i64, ptr %11, align 8, !tbaa !11
  %45 = icmp sle i64 %44, 20
  br i1 %45, label %46, label %908

46:                                               ; preds = %43
  %47 = load i64, ptr %11, align 8, !tbaa !11
  %48 = load i64, ptr %11, align 8, !tbaa !11
  %49 = mul nsw i64 %47, %48
  %50 = load i64, ptr %11, align 8, !tbaa !11
  %51 = sub nsw i64 %49, %50
  store i64 %51, ptr %12, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %894, %46
  %53 = load i64, ptr %11, align 8, !tbaa !11
  %54 = icmp sgt i64 %53, 1
  br i1 %54, label %55, label %65

55:                                               ; preds = %52
  %56 = load i64, ptr %12, align 8, !tbaa !11
  %57 = sitofp i64 %56 to double
  %58 = load i64, ptr %11, align 8, !tbaa !11
  %59 = load i64, ptr %11, align 8, !tbaa !11
  %60 = mul nsw i64 %58, %59
  %61 = load i64, ptr %11, align 8, !tbaa !11
  %62 = sub nsw i64 %60, %61
  %63 = sitofp i64 %62 to double
  %64 = fdiv double %57, %63
  store double %64, ptr %13, align 8, !tbaa !13
  br label %66

65:                                               ; preds = %52
  store double 1.000000e+00, ptr %13, align 8, !tbaa !13
  br label %66

66:                                               ; preds = %65, %55
  %67 = load i64, ptr %11, align 8, !tbaa !11
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %67, ptr noundef %68)
  %69 = load i64, ptr %11, align 8, !tbaa !11
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %69, ptr noundef %70)
  %71 = load i64, ptr %11, align 8, !tbaa !11
  %72 = load i64, ptr %11, align 8, !tbaa !11
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %71, i64 noundef %72, ptr noundef %73)
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %74)
  %76 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %75, double noundef 0.000000e+00)
  br i1 %76, label %77, label %181

77:                                               ; preds = %66
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %92, %77
  %79 = load i64, ptr %14, align 8, !tbaa !11
  %80 = load i64, ptr %11, align 8, !tbaa !11
  %81 = sub nsw i64 %80, 1
  %82 = icmp sle i64 %79, %81
  br i1 %82, label %83, label %95

83:                                               ; preds = %78
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  %86 = load i64, ptr %14, align 8, !tbaa !11
  %87 = getelementptr inbounds i64, ptr %85, i64 %86
  store i64 0, ptr %87, align 8, !tbaa !11
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !15
  %90 = load i64, ptr %14, align 8, !tbaa !11
  %91 = getelementptr inbounds i64, ptr %89, i64 %90
  store i64 0, ptr %91, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %83
  %93 = load i64, ptr %14, align 8, !tbaa !11
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %14, align 8, !tbaa !11
  br label %78, !llvm.loop !16

95:                                               ; preds = %78
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %174, %95
  %97 = load i64, ptr %14, align 8, !tbaa !11
  %98 = load i64, ptr %11, align 8, !tbaa !11
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %97, %99
  br i1 %100, label %101, label %177

101:                                              ; preds = %96
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %170, %101
  %103 = load i64, ptr %15, align 8, !tbaa !11
  %104 = load i64, ptr %11, align 8, !tbaa !11
  %105 = sub nsw i64 %104, 1
  %106 = icmp sle i64 %103, %105
  br i1 %106, label %107, label %173

107:                                              ; preds = %102
  %108 = load i64, ptr %14, align 8, !tbaa !11
  %109 = load i64, ptr %15, align 8, !tbaa !11
  %110 = icmp eq i64 %108, %109
  br i1 %110, label %116, label %111

111:                                              ; preds = %107
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %112)
  %114 = load double, ptr %13, align 8, !tbaa !13
  %115 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %113, double noundef %114)
  br i1 %115, label %116, label %161

116:                                              ; preds = %111, %107
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %117)
  %119 = fsub double %118, 5.000000e-01
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = load i64, ptr %14, align 8, !tbaa !11
  %123 = getelementptr inbounds ptr, ptr %121, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i64, ptr %15, align 8, !tbaa !11
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  store double %119, ptr %126, align 8, !tbaa !13
  %127 = load i64, ptr %15, align 8, !tbaa !11
  %128 = load i64, ptr %14, align 8, !tbaa !11
  %129 = icmp slt i64 %127, %128
  br i1 %129, label %130, label %145

130:                                              ; preds = %116
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load i64, ptr %14, align 8, !tbaa !11
  %134 = getelementptr inbounds i64, ptr %132, i64 %133
  %135 = load i64, ptr %134, align 8, !tbaa !11
  %136 = load i64, ptr %14, align 8, !tbaa !11
  %137 = load i64, ptr %15, align 8, !tbaa !11
  %138 = sub nsw i64 %136, %137
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %135, i64 noundef %138, ptr noundef %139)
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load i64, ptr %14, align 8, !tbaa !11
  %144 = getelementptr inbounds i64, ptr %142, i64 %143
  store i64 %140, ptr %144, align 8, !tbaa !11
  br label %160

145:                                              ; preds = %116
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = load i64, ptr %15, align 8, !tbaa !11
  %149 = getelementptr inbounds i64, ptr %147, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !11
  %151 = load i64, ptr %15, align 8, !tbaa !11
  %152 = load i64, ptr %14, align 8, !tbaa !11
  %153 = sub nsw i64 %151, %152
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %150, i64 noundef %153, ptr noundef %154)
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %158 = load i64, ptr %15, align 8, !tbaa !11
  %159 = getelementptr inbounds i64, ptr %157, i64 %158
  store i64 %155, ptr %159, align 8, !tbaa !11
  br label %160

160:                                              ; preds = %145, %130
  br label %169

161:                                              ; preds = %111
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %164 = load i64, ptr %14, align 8, !tbaa !11
  %165 = getelementptr inbounds ptr, ptr %163, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = load i64, ptr %15, align 8, !tbaa !11
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  store double 0.000000e+00, ptr %168, align 8, !tbaa !13
  br label %169

169:                                              ; preds = %161, %160
  br label %170

170:                                              ; preds = %169
  %171 = load i64, ptr %15, align 8, !tbaa !11
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %15, align 8, !tbaa !11
  br label %102, !llvm.loop !18

173:                                              ; preds = %102
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %14, align 8, !tbaa !11
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %14, align 8, !tbaa !11
  br label %96, !llvm.loop !19

177:                                              ; preds = %96
  %178 = load i64, ptr %11, align 8, !tbaa !11
  %179 = load i64, ptr %11, align 8, !tbaa !11
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecreatesksEllPKNS_9ae_vectorES2_PNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %178, i64 noundef %179, ptr noundef %20, ptr noundef %21, ptr noundef %4, ptr noundef %180)
  br label %268

181:                                              ; preds = %66
  %182 = load i64, ptr %11, align 8, !tbaa !11
  %183 = add nsw i64 %182, 1
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %22, i64 noundef %183, ptr noundef %184)
  store i64 %185, ptr %27, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %186

186:                                              ; preds = %208, %181
  %187 = load i64, ptr %14, align 8, !tbaa !11
  %188 = load i64, ptr %11, align 8, !tbaa !11
  %189 = sub nsw i64 %188, 1
  %190 = icmp sle i64 %187, %189
  br i1 %190, label %191, label %211

191:                                              ; preds = %186
  %192 = load i64, ptr %27, align 8, !tbaa !11
  %193 = load i64, ptr %14, align 8, !tbaa !11
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %192, i64 noundef %193, ptr noundef %194)
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  %198 = load i64, ptr %14, align 8, !tbaa !11
  %199 = getelementptr inbounds i64, ptr %197, i64 %198
  store i64 %195, ptr %199, align 8, !tbaa !11
  %200 = load i64, ptr %27, align 8, !tbaa !11
  %201 = load i64, ptr %14, align 8, !tbaa !11
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  %203 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %200, i64 noundef %201, ptr noundef %202)
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !15
  %206 = load i64, ptr %14, align 8, !tbaa !11
  %207 = getelementptr inbounds i64, ptr %205, i64 %206
  store i64 %203, ptr %207, align 8, !tbaa !11
  br label %208

208:                                              ; preds = %191
  %209 = load i64, ptr %14, align 8, !tbaa !11
  %210 = add nsw i64 %209, 1
  store i64 %210, ptr %14, align 8, !tbaa !11
  br label %186, !llvm.loop !20

211:                                              ; preds = %186
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %260, %211
  %213 = load i64, ptr %14, align 8, !tbaa !11
  %214 = load i64, ptr %11, align 8, !tbaa !11
  %215 = sub nsw i64 %214, 1
  %216 = icmp sle i64 %213, %215
  br i1 %216, label %217, label %263

217:                                              ; preds = %212
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %218

218:                                              ; preds = %256, %217
  %219 = load i64, ptr %15, align 8, !tbaa !11
  %220 = load i64, ptr %11, align 8, !tbaa !11
  %221 = sub nsw i64 %220, 1
  %222 = icmp sle i64 %219, %221
  br i1 %222, label %223, label %259

223:                                              ; preds = %218
  %224 = load i64, ptr %14, align 8, !tbaa !11
  %225 = load i64, ptr %15, align 8, !tbaa !11
  %226 = sub nsw i64 %224, %225
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = call noundef i64 @_ZN11alglib_impl7ae_iabsElPNS_8ae_stateE(i64 noundef %226, ptr noundef %227)
  %229 = load i64, ptr %27, align 8, !tbaa !11
  %230 = icmp sle i64 %228, %229
  br i1 %230, label %231, label %247

231:                                              ; preds = %223
  %232 = load ptr, ptr %2, align 8, !tbaa !5
  %233 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %232)
  %234 = load double, ptr %13, align 8, !tbaa !13
  %235 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %233, double noundef %234)
  br i1 %235, label %236, label %247

236:                                              ; preds = %231
  %237 = load ptr, ptr %2, align 8, !tbaa !5
  %238 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %237)
  %239 = fsub double %238, 5.000000e-01
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %241 = load ptr, ptr %240, align 8, !tbaa !15
  %242 = load i64, ptr %14, align 8, !tbaa !11
  %243 = getelementptr inbounds ptr, ptr %241, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = load i64, ptr %15, align 8, !tbaa !11
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  store double %239, ptr %246, align 8, !tbaa !13
  br label %255

247:                                              ; preds = %231, %223
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %249 = load ptr, ptr %248, align 8, !tbaa !15
  %250 = load i64, ptr %14, align 8, !tbaa !11
  %251 = getelementptr inbounds ptr, ptr %249, i64 %250
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  %253 = load i64, ptr %15, align 8, !tbaa !11
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  store double 0.000000e+00, ptr %254, align 8, !tbaa !13
  br label %255

255:                                              ; preds = %247, %236
  br label %256

256:                                              ; preds = %255
  %257 = load i64, ptr %15, align 8, !tbaa !11
  %258 = add nsw i64 %257, 1
  store i64 %258, ptr %15, align 8, !tbaa !11
  br label %218, !llvm.loop !21

259:                                              ; preds = %218
  br label %260

260:                                              ; preds = %259
  %261 = load i64, ptr %14, align 8, !tbaa !11
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %14, align 8, !tbaa !11
  br label %212, !llvm.loop !22

263:                                              ; preds = %212
  %264 = load i64, ptr %11, align 8, !tbaa !11
  %265 = load i64, ptr %11, align 8, !tbaa !11
  %266 = load i64, ptr %27, align 8, !tbaa !11
  %267 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %264, i64 noundef %265, i64 noundef %266, ptr noundef %4, ptr noundef %267)
  br label %268

268:                                              ; preds = %263, %177
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %269

269:                                              ; preds = %326, %268
  %270 = load i64, ptr %14, align 8, !tbaa !11
  %271 = load i64, ptr %11, align 8, !tbaa !11
  %272 = sub nsw i64 %271, 1
  %273 = icmp sle i64 %270, %272
  br i1 %273, label %274, label %329

274:                                              ; preds = %269
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %275

275:                                              ; preds = %322, %274
  %276 = load i64, ptr %15, align 8, !tbaa !11
  %277 = load i64, ptr %11, align 8, !tbaa !11
  %278 = sub nsw i64 %277, 1
  %279 = icmp sle i64 %276, %278
  br i1 %279, label %280, label %325

280:                                              ; preds = %275
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %282 = load ptr, ptr %281, align 8, !tbaa !15
  %283 = load i64, ptr %14, align 8, !tbaa !11
  %284 = getelementptr inbounds ptr, ptr %282, i64 %283
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load i64, ptr %15, align 8, !tbaa !11
  %287 = getelementptr inbounds double, ptr %285, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !13
  %289 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %288, double noundef 0.000000e+00)
  br i1 %289, label %290, label %321

290:                                              ; preds = %280
  %291 = load ptr, ptr %2, align 8, !tbaa !5
  %292 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %22, ptr noundef %291)
  %293 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %292, double noundef 0.000000e+00)
  br i1 %293, label %294, label %308

294:                                              ; preds = %290
  %295 = load i64, ptr %14, align 8, !tbaa !11
  %296 = load i64, ptr %15, align 8, !tbaa !11
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %298 = load ptr, ptr %297, align 8, !tbaa !15
  %299 = load i64, ptr %14, align 8, !tbaa !11
  %300 = getelementptr inbounds ptr, ptr %298, i64 %299
  %301 = load ptr, ptr %300, align 8, !tbaa !5
  %302 = load i64, ptr %15, align 8, !tbaa !11
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  %304 = load double, ptr %303, align 8, !tbaa !13
  %305 = load ptr, ptr %2, align 8, !tbaa !5
  %306 = call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %4, i64 noundef %295, i64 noundef %296, double noundef %304, ptr noundef %305)
  %307 = xor i1 %306, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %307, ptr noundef @.str.19, i32 noundef 14488, ptr noundef @.str.128)
  br label %320

308:                                              ; preds = %290
  %309 = load i64, ptr %14, align 8, !tbaa !11
  %310 = load i64, ptr %15, align 8, !tbaa !11
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %312 = load ptr, ptr %311, align 8, !tbaa !15
  %313 = load i64, ptr %14, align 8, !tbaa !11
  %314 = getelementptr inbounds ptr, ptr %312, i64 %313
  %315 = load ptr, ptr %314, align 8, !tbaa !5
  %316 = load i64, ptr %15, align 8, !tbaa !11
  %317 = getelementptr inbounds double, ptr %315, i64 %316
  %318 = load double, ptr %317, align 8, !tbaa !13
  %319 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %4, i64 noundef %309, i64 noundef %310, double noundef %318, ptr noundef %319)
  br label %320

320:                                              ; preds = %308, %294
  br label %321

321:                                              ; preds = %320, %280
  br label %322

322:                                              ; preds = %321
  %323 = load i64, ptr %15, align 8, !tbaa !11
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %15, align 8, !tbaa !11
  br label %275, !llvm.loop !23

325:                                              ; preds = %275
  br label %326

326:                                              ; preds = %325
  %327 = load i64, ptr %14, align 8, !tbaa !11
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %14, align 8, !tbaa !11
  br label %269, !llvm.loop !24

329:                                              ; preds = %269
  store i64 0, ptr %25, align 8, !tbaa !11
  store i64 0, ptr %26, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %330

330:                                              ; preds = %350, %329
  %331 = load i64, ptr %14, align 8, !tbaa !11
  %332 = load i64, ptr %11, align 8, !tbaa !11
  %333 = sub nsw i64 %332, 1
  %334 = icmp sle i64 %331, %333
  br i1 %334, label %335, label %353

335:                                              ; preds = %330
  %336 = load i64, ptr %25, align 8, !tbaa !11
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !15
  %339 = load i64, ptr %14, align 8, !tbaa !11
  %340 = getelementptr inbounds i64, ptr %338, i64 %339
  %341 = load i64, ptr %340, align 8, !tbaa !11
  %342 = add nsw i64 %336, %341
  store i64 %342, ptr %25, align 8, !tbaa !11
  %343 = load i64, ptr %26, align 8, !tbaa !11
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %345 = load ptr, ptr %344, align 8, !tbaa !15
  %346 = load i64, ptr %14, align 8, !tbaa !11
  %347 = getelementptr inbounds i64, ptr %345, i64 %346
  %348 = load i64, ptr %347, align 8, !tbaa !11
  %349 = add nsw i64 %343, %348
  store i64 %349, ptr %26, align 8, !tbaa !11
  br label %350

350:                                              ; preds = %335
  %351 = load i64, ptr %14, align 8, !tbaa !11
  %352 = add nsw i64 %351, 1
  store i64 %352, ptr %14, align 8, !tbaa !11
  br label %330, !llvm.loop !25

353:                                              ; preds = %330
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %354

354:                                              ; preds = %448, %353
  %355 = load i64, ptr %14, align 8, !tbaa !11
  %356 = load i64, ptr %11, align 8, !tbaa !11
  %357 = sub nsw i64 %356, 1
  %358 = icmp sle i64 %355, %357
  br i1 %358, label %359, label %451

359:                                              ; preds = %354
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %360

360:                                              ; preds = %444, %359
  %361 = load i64, ptr %15, align 8, !tbaa !11
  %362 = load i64, ptr %11, align 8, !tbaa !11
  %363 = sub nsw i64 %362, 1
  %364 = icmp sle i64 %361, %363
  br i1 %364, label %365, label %447

365:                                              ; preds = %360
  %366 = load i64, ptr %14, align 8, !tbaa !11
  %367 = load i64, ptr %15, align 8, !tbaa !11
  %368 = icmp sge i64 %366, %367
  br i1 %368, label %369, label %384

369:                                              ; preds = %365
  %370 = load i64, ptr %14, align 8, !tbaa !11
  %371 = load i64, ptr %15, align 8, !tbaa !11
  %372 = sub nsw i64 %370, %371
  %373 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %374 = load ptr, ptr %373, align 8, !tbaa !15
  %375 = load i64, ptr %14, align 8, !tbaa !11
  %376 = getelementptr inbounds i64, ptr %374, i64 %375
  %377 = load i64, ptr %376, align 8, !tbaa !11
  %378 = icmp sgt i64 %372, %377
  br i1 %378, label %379, label %384

379:                                              ; preds = %369
  %380 = load i64, ptr %14, align 8, !tbaa !11
  %381 = load i64, ptr %15, align 8, !tbaa !11
  %382 = load ptr, ptr %2, align 8, !tbaa !5
  %383 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %380, i64 noundef %381, ptr noundef %382)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %383, ptr noundef @.str.19, i32 noundef 14514, ptr noundef @.str.129)
  br label %384

384:                                              ; preds = %379, %369, %365
  %385 = load i64, ptr %14, align 8, !tbaa !11
  %386 = load i64, ptr %15, align 8, !tbaa !11
  %387 = icmp sge i64 %385, %386
  br i1 %387, label %388, label %404

388:                                              ; preds = %384
  %389 = load i64, ptr %14, align 8, !tbaa !11
  %390 = load i64, ptr %15, align 8, !tbaa !11
  %391 = sub nsw i64 %389, %390
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %393 = load ptr, ptr %392, align 8, !tbaa !15
  %394 = load i64, ptr %14, align 8, !tbaa !11
  %395 = getelementptr inbounds i64, ptr %393, i64 %394
  %396 = load i64, ptr %395, align 8, !tbaa !11
  %397 = icmp sle i64 %391, %396
  br i1 %397, label %398, label %404

398:                                              ; preds = %388
  %399 = load i64, ptr %14, align 8, !tbaa !11
  %400 = load i64, ptr %15, align 8, !tbaa !11
  %401 = load ptr, ptr %2, align 8, !tbaa !5
  %402 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %399, i64 noundef %400, ptr noundef %401)
  %403 = xor i1 %402, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %403, ptr noundef @.str.19, i32 noundef 14518, ptr noundef @.str.130)
  br label %404

404:                                              ; preds = %398, %388, %384
  %405 = load i64, ptr %14, align 8, !tbaa !11
  %406 = load i64, ptr %15, align 8, !tbaa !11
  %407 = icmp sle i64 %405, %406
  br i1 %407, label %408, label %423

408:                                              ; preds = %404
  %409 = load i64, ptr %15, align 8, !tbaa !11
  %410 = load i64, ptr %14, align 8, !tbaa !11
  %411 = sub nsw i64 %409, %410
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %413 = load ptr, ptr %412, align 8, !tbaa !15
  %414 = load i64, ptr %15, align 8, !tbaa !11
  %415 = getelementptr inbounds i64, ptr %413, i64 %414
  %416 = load i64, ptr %415, align 8, !tbaa !11
  %417 = icmp sgt i64 %411, %416
  br i1 %417, label %418, label %423

418:                                              ; preds = %408
  %419 = load i64, ptr %14, align 8, !tbaa !11
  %420 = load i64, ptr %15, align 8, !tbaa !11
  %421 = load ptr, ptr %2, align 8, !tbaa !5
  %422 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %419, i64 noundef %420, ptr noundef %421)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %422, ptr noundef @.str.19, i32 noundef 14522, ptr noundef @.str.131)
  br label %423

423:                                              ; preds = %418, %408, %404
  %424 = load i64, ptr %14, align 8, !tbaa !11
  %425 = load i64, ptr %15, align 8, !tbaa !11
  %426 = icmp sle i64 %424, %425
  br i1 %426, label %427, label %443

427:                                              ; preds = %423
  %428 = load i64, ptr %15, align 8, !tbaa !11
  %429 = load i64, ptr %14, align 8, !tbaa !11
  %430 = sub nsw i64 %428, %429
  %431 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %432 = load ptr, ptr %431, align 8, !tbaa !15
  %433 = load i64, ptr %15, align 8, !tbaa !11
  %434 = getelementptr inbounds i64, ptr %432, i64 %433
  %435 = load i64, ptr %434, align 8, !tbaa !11
  %436 = icmp sle i64 %430, %435
  br i1 %436, label %437, label %443

437:                                              ; preds = %427
  %438 = load i64, ptr %14, align 8, !tbaa !11
  %439 = load i64, ptr %15, align 8, !tbaa !11
  %440 = load ptr, ptr %2, align 8, !tbaa !5
  %441 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %438, i64 noundef %439, ptr noundef %440)
  %442 = xor i1 %441, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %442, ptr noundef @.str.19, i32 noundef 14526, ptr noundef @.str.132)
  br label %443

443:                                              ; preds = %437, %427, %423
  br label %444

444:                                              ; preds = %443
  %445 = load i64, ptr %15, align 8, !tbaa !11
  %446 = add nsw i64 %445, 1
  store i64 %446, ptr %15, align 8, !tbaa !11
  br label %360, !llvm.loop !26

447:                                              ; preds = %360
  br label %448

448:                                              ; preds = %447
  %449 = load i64, ptr %14, align 8, !tbaa !11
  %450 = add nsw i64 %449, 1
  store i64 %450, ptr %14, align 8, !tbaa !11
  br label %354, !llvm.loop !27

451:                                              ; preds = %354
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %452

452:                                              ; preds = %501, %451
  %453 = load i64, ptr %14, align 8, !tbaa !11
  %454 = load i64, ptr %11, align 8, !tbaa !11
  %455 = sub nsw i64 %454, 1
  %456 = icmp sle i64 %453, %455
  br i1 %456, label %457, label %504

457:                                              ; preds = %452
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %458

458:                                              ; preds = %497, %457
  %459 = load i64, ptr %15, align 8, !tbaa !11
  %460 = load i64, ptr %11, align 8, !tbaa !11
  %461 = sub nsw i64 %460, 1
  %462 = icmp sle i64 %459, %461
  br i1 %462, label %463, label %500

463:                                              ; preds = %458
  %464 = load i64, ptr %14, align 8, !tbaa !11
  %465 = load i64, ptr %15, align 8, !tbaa !11
  %466 = icmp sge i64 %464, %465
  br i1 %466, label %467, label %477

467:                                              ; preds = %463
  %468 = load i64, ptr %14, align 8, !tbaa !11
  %469 = load i64, ptr %15, align 8, !tbaa !11
  %470 = sub nsw i64 %468, %469
  %471 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %472 = load ptr, ptr %471, align 8, !tbaa !15
  %473 = load i64, ptr %14, align 8, !tbaa !11
  %474 = getelementptr inbounds i64, ptr %472, i64 %473
  %475 = load i64, ptr %474, align 8, !tbaa !11
  %476 = icmp sgt i64 %470, %475
  br i1 %476, label %491, label %477

477:                                              ; preds = %467, %463
  %478 = load i64, ptr %14, align 8, !tbaa !11
  %479 = load i64, ptr %15, align 8, !tbaa !11
  %480 = icmp sle i64 %478, %479
  br i1 %480, label %481, label %496

481:                                              ; preds = %477
  %482 = load i64, ptr %15, align 8, !tbaa !11
  %483 = load i64, ptr %14, align 8, !tbaa !11
  %484 = sub nsw i64 %482, %483
  %485 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %486 = load ptr, ptr %485, align 8, !tbaa !15
  %487 = load i64, ptr %15, align 8, !tbaa !11
  %488 = getelementptr inbounds i64, ptr %486, i64 %487
  %489 = load i64, ptr %488, align 8, !tbaa !11
  %490 = icmp sgt i64 %484, %489
  br i1 %490, label %491, label %496

491:                                              ; preds = %481, %467
  %492 = load i64, ptr %14, align 8, !tbaa !11
  %493 = load i64, ptr %15, align 8, !tbaa !11
  %494 = load ptr, ptr %2, align 8, !tbaa !5
  %495 = call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %4, i64 noundef %492, i64 noundef %493, double noundef 1.000000e+00, ptr noundef %494)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %495, ptr noundef @.str.19, i32 noundef 14540, ptr noundef @.str.133)
  br label %496

496:                                              ; preds = %491, %481, %477
  br label %497

497:                                              ; preds = %496
  %498 = load i64, ptr %15, align 8, !tbaa !11
  %499 = add nsw i64 %498, 1
  store i64 %499, ptr %15, align 8, !tbaa !11
  br label %458, !llvm.loop !28

500:                                              ; preds = %458
  br label %501

501:                                              ; preds = %500
  %502 = load i64, ptr %14, align 8, !tbaa !11
  %503 = add nsw i64 %502, 1
  store i64 %503, ptr %14, align 8, !tbaa !11
  br label %452, !llvm.loop !29

504:                                              ; preds = %452
  %505 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %5, ptr noundef %505)
  %506 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %506)
  %507 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %6, ptr noundef %507)
  %508 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %7, ptr noundef %508)
  %509 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl16sparsecopytohashEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %8, ptr noundef %509)
  %510 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl19sparsecopytohashbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %9, ptr noundef %510)
  %511 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %10, ptr noundef %511)
  %512 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl19sparseconverttohashEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %10, ptr noundef %512)
  %513 = load ptr, ptr %2, align 8, !tbaa !5
  %514 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %513)
  %515 = load i64, ptr %11, align 8, !tbaa !11
  %516 = icmp ne i64 %514, %515
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %516, ptr noundef @.str.19, i32 noundef 14556, ptr noundef @.str.134)
  %517 = load ptr, ptr %2, align 8, !tbaa !5
  %518 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %517)
  %519 = load i64, ptr %11, align 8, !tbaa !11
  %520 = icmp ne i64 %518, %519
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %520, ptr noundef @.str.19, i32 noundef 14557, ptr noundef @.str.135)
  %521 = load ptr, ptr %2, align 8, !tbaa !5
  %522 = call noundef i64 @_ZN11alglib_impl19sparsegetmatrixtypeEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %521)
  %523 = icmp ne i64 %522, 2
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %523, ptr noundef @.str.19, i32 noundef 14558, ptr noundef @.str.136)
  %524 = load ptr, ptr %2, align 8, !tbaa !5
  %525 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %524)
  %526 = xor i1 %525, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %526, ptr noundef @.str.19, i32 noundef 14559, ptr noundef @.str.137)
  %527 = load ptr, ptr %2, align 8, !tbaa !5
  %528 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %527)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %528, ptr noundef @.str.19, i32 noundef 14560, ptr noundef @.str.138)
  %529 = load ptr, ptr %2, align 8, !tbaa !5
  %530 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %529)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %530, ptr noundef @.str.19, i32 noundef 14561, ptr noundef @.str.139)
  %531 = load ptr, ptr %2, align 8, !tbaa !5
  %532 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %531)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %532, ptr noundef @.str.19, i32 noundef 14562, ptr noundef @.str.140)
  %533 = load ptr, ptr %2, align 8, !tbaa !5
  %534 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %533)
  %535 = xor i1 %534, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %535, ptr noundef @.str.19, i32 noundef 14563, ptr noundef @.str.141)
  %536 = load ptr, ptr %2, align 8, !tbaa !5
  %537 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %536)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %537, ptr noundef @.str.19, i32 noundef 14564, ptr noundef @.str.142)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %538

538:                                              ; preds = %558, %504
  %539 = load i64, ptr %14, align 8, !tbaa !11
  %540 = load i64, ptr %11, align 8, !tbaa !11
  %541 = sub nsw i64 %540, 1
  %542 = icmp sle i64 %539, %541
  br i1 %542, label %543, label %561

543:                                              ; preds = %538
  %544 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %545 = load ptr, ptr %544, align 8, !tbaa !15
  %546 = load i64, ptr %14, align 8, !tbaa !11
  %547 = getelementptr inbounds ptr, ptr %545, i64 %546
  %548 = load ptr, ptr %547, align 8, !tbaa !5
  %549 = load i64, ptr %14, align 8, !tbaa !11
  %550 = getelementptr inbounds double, ptr %548, i64 %549
  %551 = load double, ptr %550, align 8, !tbaa !13
  store double %551, ptr %24, align 8, !tbaa !13
  %552 = load i64, ptr %14, align 8, !tbaa !11
  %553 = load ptr, ptr %2, align 8, !tbaa !5
  %554 = call noundef double @_ZN11alglib_impl17sparsegetdiagonalEPKNS_12sparsematrixElPNS_8ae_stateE(ptr noundef %4, i64 noundef %552, ptr noundef %553)
  store double %554, ptr %23, align 8, !tbaa !13
  %555 = load double, ptr %23, align 8, !tbaa !13
  %556 = load double, ptr %24, align 8, !tbaa !13
  %557 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %555, double noundef %556)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %557, ptr noundef @.str.19, i32 noundef 14569, ptr noundef @.str.143)
  br label %558

558:                                              ; preds = %543
  %559 = load i64, ptr %14, align 8, !tbaa !11
  %560 = add nsw i64 %559, 1
  store i64 %560, ptr %14, align 8, !tbaa !11
  br label %538, !llvm.loop !30

561:                                              ; preds = %538
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %562

562:                                              ; preds = %635, %561
  %563 = load i64, ptr %14, align 8, !tbaa !11
  %564 = load i64, ptr %11, align 8, !tbaa !11
  %565 = sub nsw i64 %564, 1
  %566 = icmp sle i64 %563, %565
  br i1 %566, label %567, label %638

567:                                              ; preds = %562
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %568

568:                                              ; preds = %631, %567
  %569 = load i64, ptr %15, align 8, !tbaa !11
  %570 = load i64, ptr %11, align 8, !tbaa !11
  %571 = sub nsw i64 %570, 1
  %572 = icmp sle i64 %569, %571
  br i1 %572, label %573, label %634

573:                                              ; preds = %568
  %574 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %575 = load ptr, ptr %574, align 8, !tbaa !15
  %576 = load i64, ptr %14, align 8, !tbaa !11
  %577 = getelementptr inbounds ptr, ptr %575, i64 %576
  %578 = load ptr, ptr %577, align 8, !tbaa !5
  %579 = load i64, ptr %15, align 8, !tbaa !11
  %580 = getelementptr inbounds double, ptr %578, i64 %579
  %581 = load double, ptr %580, align 8, !tbaa !13
  store double %581, ptr %24, align 8, !tbaa !13
  %582 = load i64, ptr %14, align 8, !tbaa !11
  %583 = load i64, ptr %15, align 8, !tbaa !11
  %584 = load ptr, ptr %2, align 8, !tbaa !5
  %585 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %582, i64 noundef %583, ptr noundef %584)
  store double %585, ptr %23, align 8, !tbaa !13
  %586 = load double, ptr %23, align 8, !tbaa !13
  %587 = load double, ptr %24, align 8, !tbaa !13
  %588 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %586, double noundef %587)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %588, ptr noundef @.str.19, i32 noundef 14577, ptr noundef @.str.144)
  %589 = load i64, ptr %14, align 8, !tbaa !11
  %590 = load i64, ptr %15, align 8, !tbaa !11
  %591 = load ptr, ptr %2, align 8, !tbaa !5
  %592 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %589, i64 noundef %590, ptr noundef %591)
  store double %592, ptr %23, align 8, !tbaa !13
  %593 = load double, ptr %23, align 8, !tbaa !13
  %594 = load double, ptr %24, align 8, !tbaa !13
  %595 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %593, double noundef %594)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %595, ptr noundef @.str.19, i32 noundef 14579, ptr noundef @.str.145)
  %596 = load i64, ptr %14, align 8, !tbaa !11
  %597 = load i64, ptr %15, align 8, !tbaa !11
  %598 = load ptr, ptr %2, align 8, !tbaa !5
  %599 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %596, i64 noundef %597, ptr noundef %598)
  store double %599, ptr %23, align 8, !tbaa !13
  %600 = load double, ptr %23, align 8, !tbaa !13
  %601 = load double, ptr %24, align 8, !tbaa !13
  %602 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %600, double noundef %601)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %602, ptr noundef @.str.19, i32 noundef 14581, ptr noundef @.str.146)
  %603 = load i64, ptr %14, align 8, !tbaa !11
  %604 = load i64, ptr %15, align 8, !tbaa !11
  %605 = load ptr, ptr %2, align 8, !tbaa !5
  %606 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %603, i64 noundef %604, ptr noundef %605)
  store double %606, ptr %23, align 8, !tbaa !13
  %607 = load double, ptr %23, align 8, !tbaa !13
  %608 = load double, ptr %24, align 8, !tbaa !13
  %609 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %607, double noundef %608)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %609, ptr noundef @.str.19, i32 noundef 14583, ptr noundef @.str.147)
  %610 = load i64, ptr %14, align 8, !tbaa !11
  %611 = load i64, ptr %15, align 8, !tbaa !11
  %612 = load ptr, ptr %2, align 8, !tbaa !5
  %613 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %610, i64 noundef %611, ptr noundef %612)
  store double %613, ptr %23, align 8, !tbaa !13
  %614 = load double, ptr %23, align 8, !tbaa !13
  %615 = load double, ptr %24, align 8, !tbaa !13
  %616 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %614, double noundef %615)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %616, ptr noundef @.str.19, i32 noundef 14585, ptr noundef @.str.148)
  %617 = load i64, ptr %14, align 8, !tbaa !11
  %618 = load i64, ptr %15, align 8, !tbaa !11
  %619 = load ptr, ptr %2, align 8, !tbaa !5
  %620 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %617, i64 noundef %618, ptr noundef %619)
  store double %620, ptr %23, align 8, !tbaa !13
  %621 = load double, ptr %23, align 8, !tbaa !13
  %622 = load double, ptr %24, align 8, !tbaa !13
  %623 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %621, double noundef %622)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %623, ptr noundef @.str.19, i32 noundef 14587, ptr noundef @.str.149)
  %624 = load i64, ptr %14, align 8, !tbaa !11
  %625 = load i64, ptr %15, align 8, !tbaa !11
  %626 = load ptr, ptr %2, align 8, !tbaa !5
  %627 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %10, i64 noundef %624, i64 noundef %625, ptr noundef %626)
  store double %627, ptr %23, align 8, !tbaa !13
  %628 = load double, ptr %23, align 8, !tbaa !13
  %629 = load double, ptr %24, align 8, !tbaa !13
  %630 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %628, double noundef %629)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %630, ptr noundef @.str.19, i32 noundef 14589, ptr noundef @.str.150)
  br label %631

631:                                              ; preds = %573
  %632 = load i64, ptr %15, align 8, !tbaa !11
  %633 = add nsw i64 %632, 1
  store i64 %633, ptr %15, align 8, !tbaa !11
  br label %568, !llvm.loop !31

634:                                              ; preds = %568
  br label %635

635:                                              ; preds = %634
  %636 = load i64, ptr %14, align 8, !tbaa !11
  %637 = add nsw i64 %636, 1
  store i64 %637, ptr %14, align 8, !tbaa !11
  br label %562, !llvm.loop !32

638:                                              ; preds = %562
  %639 = load i64, ptr %11, align 8, !tbaa !11
  %640 = load i64, ptr %11, align 8, !tbaa !11
  %641 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %19, i64 noundef %639, i64 noundef %640, ptr noundef %641)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %642

642:                                              ; preds = %665, %638
  %643 = load i64, ptr %14, align 8, !tbaa !11
  %644 = load i64, ptr %11, align 8, !tbaa !11
  %645 = sub nsw i64 %644, 1
  %646 = icmp sle i64 %643, %645
  br i1 %646, label %647, label %668

647:                                              ; preds = %642
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %648

648:                                              ; preds = %661, %647
  %649 = load i64, ptr %15, align 8, !tbaa !11
  %650 = load i64, ptr %11, align 8, !tbaa !11
  %651 = sub nsw i64 %650, 1
  %652 = icmp sle i64 %649, %651
  br i1 %652, label %653, label %664

653:                                              ; preds = %648
  %654 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %655 = load ptr, ptr %654, align 8, !tbaa !15
  %656 = load i64, ptr %14, align 8, !tbaa !11
  %657 = getelementptr inbounds ptr, ptr %655, i64 %656
  %658 = load ptr, ptr %657, align 8, !tbaa !5
  %659 = load i64, ptr %15, align 8, !tbaa !11
  %660 = getelementptr inbounds i8, ptr %658, i64 %659
  store i8 0, ptr %660, align 1, !tbaa !9
  br label %661

661:                                              ; preds = %653
  %662 = load i64, ptr %15, align 8, !tbaa !11
  %663 = add nsw i64 %662, 1
  store i64 %663, ptr %15, align 8, !tbaa !11
  br label %648, !llvm.loop !33

664:                                              ; preds = %648
  br label %665

665:                                              ; preds = %664
  %666 = load i64, ptr %14, align 8, !tbaa !11
  %667 = add nsw i64 %666, 1
  store i64 %667, ptr %14, align 8, !tbaa !11
  br label %642, !llvm.loop !34

668:                                              ; preds = %642
  store i64 0, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %669

669:                                              ; preds = %672, %668
  %670 = load ptr, ptr %2, align 8, !tbaa !5
  %671 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef %4, ptr noundef %16, ptr noundef %17, ptr noundef %14, ptr noundef %15, ptr noundef %23, ptr noundef %670)
  br i1 %671, label %672, label %689

672:                                              ; preds = %669
  %673 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %674 = load ptr, ptr %673, align 8, !tbaa !15
  %675 = load i64, ptr %14, align 8, !tbaa !11
  %676 = getelementptr inbounds ptr, ptr %674, i64 %675
  %677 = load ptr, ptr %676, align 8, !tbaa !5
  %678 = load i64, ptr %15, align 8, !tbaa !11
  %679 = getelementptr inbounds i8, ptr %677, i64 %678
  %680 = load i8, ptr %679, align 1, !tbaa !9, !range !35, !noundef !36
  %681 = trunc i8 %680 to i1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %681, ptr noundef @.str.19, i32 noundef 14610, ptr noundef @.str.151)
  %682 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %683 = load ptr, ptr %682, align 8, !tbaa !15
  %684 = load i64, ptr %14, align 8, !tbaa !11
  %685 = getelementptr inbounds ptr, ptr %683, i64 %684
  %686 = load ptr, ptr %685, align 8, !tbaa !5
  %687 = load i64, ptr %15, align 8, !tbaa !11
  %688 = getelementptr inbounds i8, ptr %686, i64 %687
  store i8 1, ptr %688, align 1, !tbaa !9
  br label %669, !llvm.loop !37

689:                                              ; preds = %669
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %690

690:                                              ; preds = %727, %689
  %691 = load i64, ptr %14, align 8, !tbaa !11
  %692 = load i64, ptr %11, align 8, !tbaa !11
  %693 = sub nsw i64 %692, 1
  %694 = icmp sle i64 %691, %693
  br i1 %694, label %695, label %730

695:                                              ; preds = %690
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %696

696:                                              ; preds = %723, %695
  %697 = load i64, ptr %15, align 8, !tbaa !11
  %698 = load i64, ptr %11, align 8, !tbaa !11
  %699 = sub nsw i64 %698, 1
  %700 = icmp sle i64 %697, %699
  br i1 %700, label %701, label %726

701:                                              ; preds = %696
  %702 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %703 = load ptr, ptr %702, align 8, !tbaa !15
  %704 = load i64, ptr %14, align 8, !tbaa !11
  %705 = getelementptr inbounds ptr, ptr %703, i64 %704
  %706 = load ptr, ptr %705, align 8, !tbaa !5
  %707 = load i64, ptr %15, align 8, !tbaa !11
  %708 = getelementptr inbounds double, ptr %706, i64 %707
  %709 = load double, ptr %708, align 8, !tbaa !13
  %710 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %709, double noundef 0.000000e+00)
  br i1 %710, label %711, label %722

711:                                              ; preds = %701
  %712 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %713 = load ptr, ptr %712, align 8, !tbaa !15
  %714 = load i64, ptr %14, align 8, !tbaa !11
  %715 = getelementptr inbounds ptr, ptr %713, i64 %714
  %716 = load ptr, ptr %715, align 8, !tbaa !5
  %717 = load i64, ptr %15, align 8, !tbaa !11
  %718 = getelementptr inbounds i8, ptr %716, i64 %717
  %719 = load i8, ptr %718, align 1, !tbaa !9, !range !35, !noundef !36
  %720 = trunc i8 %719 to i1
  %721 = xor i1 %720, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %721, ptr noundef @.str.19, i32 noundef 14619, ptr noundef @.str.152)
  br label %722

722:                                              ; preds = %711, %701
  br label %723

723:                                              ; preds = %722
  %724 = load i64, ptr %15, align 8, !tbaa !11
  %725 = add nsw i64 %724, 1
  store i64 %725, ptr %15, align 8, !tbaa !11
  br label %696, !llvm.loop !38

726:                                              ; preds = %696
  br label %727

727:                                              ; preds = %726
  %728 = load i64, ptr %14, align 8, !tbaa !11
  %729 = add nsw i64 %728, 1
  store i64 %729, ptr %14, align 8, !tbaa !11
  br label %690, !llvm.loop !39

730:                                              ; preds = %690
  %731 = load ptr, ptr %2, align 8, !tbaa !5
  %732 = call noundef i64 @_ZN11alglib_impl19sparsegetuppercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %731)
  %733 = load i64, ptr %25, align 8, !tbaa !11
  %734 = icmp ne i64 %732, %733
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %734, ptr noundef @.str.19, i32 noundef 14627, ptr noundef @.str.153)
  %735 = load ptr, ptr %2, align 8, !tbaa !5
  %736 = call noundef i64 @_ZN11alglib_impl19sparsegetlowercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %4, ptr noundef %735)
  %737 = load i64, ptr %26, align 8, !tbaa !11
  %738 = icmp ne i64 %736, %737
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %738, ptr noundef @.str.19, i32 noundef 14628, ptr noundef @.str.154)
  %739 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %5, ptr noundef %739)
  %740 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsetransposesksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %740)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %741

741:                                              ; preds = %768, %730
  %742 = load i64, ptr %14, align 8, !tbaa !11
  %743 = load i64, ptr %11, align 8, !tbaa !11
  %744 = sub nsw i64 %743, 1
  %745 = icmp sle i64 %742, %744
  br i1 %745, label %746, label %771

746:                                              ; preds = %741
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %747

747:                                              ; preds = %764, %746
  %748 = load i64, ptr %15, align 8, !tbaa !11
  %749 = load i64, ptr %11, align 8, !tbaa !11
  %750 = sub nsw i64 %749, 1
  %751 = icmp sle i64 %748, %750
  br i1 %751, label %752, label %767

752:                                              ; preds = %747
  %753 = load i64, ptr %14, align 8, !tbaa !11
  %754 = load i64, ptr %15, align 8, !tbaa !11
  %755 = load ptr, ptr %2, align 8, !tbaa !5
  %756 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %4, i64 noundef %753, i64 noundef %754, ptr noundef %755)
  store double %756, ptr %23, align 8, !tbaa !13
  %757 = load i64, ptr %15, align 8, !tbaa !11
  %758 = load i64, ptr %14, align 8, !tbaa !11
  %759 = load ptr, ptr %2, align 8, !tbaa !5
  %760 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %757, i64 noundef %758, ptr noundef %759)
  store double %760, ptr %24, align 8, !tbaa !13
  %761 = load double, ptr %23, align 8, !tbaa !13
  %762 = load double, ptr %24, align 8, !tbaa !13
  %763 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %761, double noundef %762)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %763, ptr noundef @.str.19, i32 noundef 14641, ptr noundef @.str.155)
  br label %764

764:                                              ; preds = %752
  %765 = load i64, ptr %15, align 8, !tbaa !11
  %766 = add nsw i64 %765, 1
  store i64 %766, ptr %15, align 8, !tbaa !11
  br label %747, !llvm.loop !40

767:                                              ; preds = %747
  br label %768

768:                                              ; preds = %767
  %769 = load i64, ptr %14, align 8, !tbaa !11
  %770 = add nsw i64 %769, 1
  store i64 %770, ptr %14, align 8, !tbaa !11
  br label %741, !llvm.loop !41

771:                                              ; preds = %741
  %772 = load i64, ptr %11, align 8, !tbaa !11
  %773 = load i64, ptr %11, align 8, !tbaa !11
  %774 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %772, i64 noundef %773, i64 noundef 0, ptr noundef %4, ptr noundef %774)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %775

775:                                              ; preds = %813, %771
  %776 = load i64, ptr %14, align 8, !tbaa !11
  %777 = load i64, ptr %11, align 8, !tbaa !11
  %778 = sub nsw i64 %777, 1
  %779 = icmp sle i64 %776, %778
  br i1 %779, label %780, label %816

780:                                              ; preds = %775
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %781

781:                                              ; preds = %809, %780
  %782 = load i64, ptr %15, align 8, !tbaa !11
  %783 = load i64, ptr %11, align 8, !tbaa !11
  %784 = sub nsw i64 %783, 1
  %785 = icmp sle i64 %782, %784
  br i1 %785, label %786, label %812

786:                                              ; preds = %781
  %787 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %788 = load ptr, ptr %787, align 8, !tbaa !15
  %789 = load i64, ptr %14, align 8, !tbaa !11
  %790 = getelementptr inbounds ptr, ptr %788, i64 %789
  %791 = load ptr, ptr %790, align 8, !tbaa !5
  %792 = load i64, ptr %15, align 8, !tbaa !11
  %793 = getelementptr inbounds double, ptr %791, i64 %792
  %794 = load double, ptr %793, align 8, !tbaa !13
  %795 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %794, double noundef 0.000000e+00)
  br i1 %795, label %796, label %808

796:                                              ; preds = %786
  %797 = load i64, ptr %14, align 8, !tbaa !11
  %798 = load i64, ptr %15, align 8, !tbaa !11
  %799 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %800 = load ptr, ptr %799, align 8, !tbaa !15
  %801 = load i64, ptr %14, align 8, !tbaa !11
  %802 = getelementptr inbounds ptr, ptr %800, i64 %801
  %803 = load ptr, ptr %802, align 8, !tbaa !5
  %804 = load i64, ptr %15, align 8, !tbaa !11
  %805 = getelementptr inbounds double, ptr %803, i64 %804
  %806 = load double, ptr %805, align 8, !tbaa !13
  %807 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %4, i64 noundef %797, i64 noundef %798, double noundef %806, ptr noundef %807)
  br label %808

808:                                              ; preds = %796, %786
  br label %809

809:                                              ; preds = %808
  %810 = load i64, ptr %15, align 8, !tbaa !11
  %811 = add nsw i64 %810, 1
  store i64 %811, ptr %15, align 8, !tbaa !11
  br label %781, !llvm.loop !42

812:                                              ; preds = %781
  br label %813

813:                                              ; preds = %812
  %814 = load i64, ptr %14, align 8, !tbaa !11
  %815 = add nsw i64 %814, 1
  store i64 %815, ptr %14, align 8, !tbaa !11
  br label %775, !llvm.loop !43

816:                                              ; preds = %775
  %817 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %5, ptr noundef %817)
  %818 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %818)
  %819 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %6, ptr noundef %819)
  %820 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsecopytosksbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %4, ptr noundef %7, ptr noundef %820)
  %821 = load ptr, ptr %2, align 8, !tbaa !5
  %822 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %821)
  %823 = xor i1 %822, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %823, ptr noundef @.str.19, i32 noundef 14664, ptr noundef @.str.156)
  %824 = load ptr, ptr %2, align 8, !tbaa !5
  %825 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %824)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %825, ptr noundef @.str.19, i32 noundef 14665, ptr noundef @.str.157)
  %826 = load ptr, ptr %2, align 8, !tbaa !5
  %827 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %826)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %827, ptr noundef @.str.19, i32 noundef 14666, ptr noundef @.str.158)
  %828 = load ptr, ptr %2, align 8, !tbaa !5
  %829 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %6, ptr noundef %828)
  %830 = xor i1 %829, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %830, ptr noundef @.str.19, i32 noundef 14667, ptr noundef @.str.159)
  %831 = load ptr, ptr %2, align 8, !tbaa !5
  %832 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %6, ptr noundef %831)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %832, ptr noundef @.str.19, i32 noundef 14668, ptr noundef @.str.160)
  %833 = load ptr, ptr %2, align 8, !tbaa !5
  %834 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %6, ptr noundef %833)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %834, ptr noundef @.str.19, i32 noundef 14669, ptr noundef @.str.161)
  %835 = load ptr, ptr %2, align 8, !tbaa !5
  %836 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef %835)
  %837 = xor i1 %836, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %837, ptr noundef @.str.19, i32 noundef 14670, ptr noundef @.str.162)
  %838 = load ptr, ptr %2, align 8, !tbaa !5
  %839 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef %838)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %839, ptr noundef @.str.19, i32 noundef 14671, ptr noundef @.str.163)
  %840 = load ptr, ptr %2, align 8, !tbaa !5
  %841 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef %840)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %841, ptr noundef @.str.19, i32 noundef 14672, ptr noundef @.str.164)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %842

842:                                              ; preds = %887, %816
  %843 = load i64, ptr %14, align 8, !tbaa !11
  %844 = load i64, ptr %11, align 8, !tbaa !11
  %845 = sub nsw i64 %844, 1
  %846 = icmp sle i64 %843, %845
  br i1 %846, label %847, label %890

847:                                              ; preds = %842
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %848

848:                                              ; preds = %883, %847
  %849 = load i64, ptr %15, align 8, !tbaa !11
  %850 = load i64, ptr %11, align 8, !tbaa !11
  %851 = sub nsw i64 %850, 1
  %852 = icmp sle i64 %849, %851
  br i1 %852, label %853, label %886

853:                                              ; preds = %848
  %854 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %855 = load ptr, ptr %854, align 8, !tbaa !15
  %856 = load i64, ptr %14, align 8, !tbaa !11
  %857 = getelementptr inbounds ptr, ptr %855, i64 %856
  %858 = load ptr, ptr %857, align 8, !tbaa !5
  %859 = load i64, ptr %15, align 8, !tbaa !11
  %860 = getelementptr inbounds double, ptr %858, i64 %859
  %861 = load double, ptr %860, align 8, !tbaa !13
  store double %861, ptr %24, align 8, !tbaa !13
  %862 = load i64, ptr %14, align 8, !tbaa !11
  %863 = load i64, ptr %15, align 8, !tbaa !11
  %864 = load ptr, ptr %2, align 8, !tbaa !5
  %865 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %862, i64 noundef %863, ptr noundef %864)
  store double %865, ptr %23, align 8, !tbaa !13
  %866 = load double, ptr %23, align 8, !tbaa !13
  %867 = load double, ptr %24, align 8, !tbaa !13
  %868 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %866, double noundef %867)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %868, ptr noundef @.str.19, i32 noundef 14679, ptr noundef @.str.165)
  %869 = load i64, ptr %14, align 8, !tbaa !11
  %870 = load i64, ptr %15, align 8, !tbaa !11
  %871 = load ptr, ptr %2, align 8, !tbaa !5
  %872 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %869, i64 noundef %870, ptr noundef %871)
  store double %872, ptr %23, align 8, !tbaa !13
  %873 = load double, ptr %23, align 8, !tbaa !13
  %874 = load double, ptr %24, align 8, !tbaa !13
  %875 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %873, double noundef %874)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %875, ptr noundef @.str.19, i32 noundef 14681, ptr noundef @.str.166)
  %876 = load i64, ptr %14, align 8, !tbaa !11
  %877 = load i64, ptr %15, align 8, !tbaa !11
  %878 = load ptr, ptr %2, align 8, !tbaa !5
  %879 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %876, i64 noundef %877, ptr noundef %878)
  store double %879, ptr %23, align 8, !tbaa !13
  %880 = load double, ptr %23, align 8, !tbaa !13
  %881 = load double, ptr %24, align 8, !tbaa !13
  %882 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %880, double noundef %881)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %882, ptr noundef @.str.19, i32 noundef 14683, ptr noundef @.str.167)
  br label %883

883:                                              ; preds = %853
  %884 = load i64, ptr %15, align 8, !tbaa !11
  %885 = add nsw i64 %884, 1
  store i64 %885, ptr %15, align 8, !tbaa !11
  br label %848, !llvm.loop !44

886:                                              ; preds = %848
  br label %887

887:                                              ; preds = %886
  %888 = load i64, ptr %14, align 8, !tbaa !11
  %889 = add nsw i64 %888, 1
  store i64 %889, ptr %14, align 8, !tbaa !11
  br label %842, !llvm.loop !45

890:                                              ; preds = %842
  %891 = load i64, ptr %12, align 8, !tbaa !11
  %892 = icmp eq i64 %891, 0
  br i1 %892, label %893, label %894

893:                                              ; preds = %890
  br label %904

894:                                              ; preds = %890
  %895 = load i64, ptr %12, align 8, !tbaa !11
  %896 = sitofp i64 %895 to double
  %897 = fmul double %896, 0x3FEE666666666666
  %898 = load ptr, ptr %2, align 8, !tbaa !5
  %899 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %897, ptr noundef %898)
  %900 = load i64, ptr %12, align 8, !tbaa !11
  %901 = sub nsw i64 %900, 1
  %902 = load ptr, ptr %2, align 8, !tbaa !5
  %903 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %899, i64 noundef %901, ptr noundef %902)
  store i64 %903, ptr %12, align 8, !tbaa !11
  br label %52, !llvm.loop !46

904:                                              ; preds = %893
  br label %905

905:                                              ; preds = %904
  %906 = load i64, ptr %11, align 8, !tbaa !11
  %907 = add nsw i64 %906, 1
  store i64 %907, ptr %11, align 8, !tbaa !11
  br label %43, !llvm.loop !47

908:                                              ; preds = %43
  %909 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %909)
  %910 = load i8, ptr %28, align 1, !tbaa !9, !range !35, !noundef !36
  %911 = trunc i8 %910 to i1
  call void @llvm.lifetime.end.p0(i64 1, 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 24, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  ret i1 %911
}

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl15sparsecreatesksEllPKNS_9ae_vectorES2_PNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

declare noundef i64 @_ZN11alglib_impl7ae_iabsElPNS_8ae_stateE(i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl16sparsecopytohashEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl19sparsecopytohashbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl19sparseconverttohashEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl19sparsegetmatrixtypeEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl17sparsegetdiagonalEPKNS_12sparsematrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl19sparsegetuppercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef i64 @_ZN11alglib_impl19sparsegetlowercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparsetransposesksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparsecopytosksbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !17}
!43 = distinct !{!43, !17}
!44 = distinct !{!44, !17}
!45 = distinct !{!45, !17}
!46 = distinct !{!46, !17}
!47 = distinct !{!47, !17}


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

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [22 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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 #1

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

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

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

declare noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7skstestPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %4 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %5 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %6 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %7 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %8 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %9 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", 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::hqrndstate", align 8
  %19 = alloca double, align 8
  %20 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %3, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %4, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %5, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %6, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %7, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %8, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %9, i8 0, i64 368, 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(80) %15, i8 0, i64 80, 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(24) %18, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %0, 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 %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 0, i64 noundef 1, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %0, i1 noundef zeroext true)
  store i8 0, ptr %20, align 1, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %21 = getelementptr inbounds i8, ptr %16, i64 56
  %22 = getelementptr inbounds i8, ptr %17, i64 56
  %23 = getelementptr inbounds i8, ptr %14, i64 72
  %24 = getelementptr inbounds i8, ptr %15, i64 72
  %scevgep = getelementptr inbounds i8, ptr %10, i64 8
  br label %25

25:                                               ; preds = %1, %507
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %507 ]
  %.0299 = phi i64 [ 1, %1 ], [ %31, %507 ]
  %26 = shl nuw nsw i64 %indvar, 3
  %27 = add nuw i64 %26, 8
  %.0203 = add nsw i64 %.0299, -1
  %28 = mul nuw nsw i64 %.0203, %.0299
  %29 = icmp ugt i64 %.0299, 1
  %30 = sitofp i64 %28 to double
  %31 = add nuw nsw i64 %.0299, 1
  %min.iters.check = icmp ult i64 %.0299, 6
  %n.vec = and i64 %.0299, 9223372036854775804
  %cmp.n = icmp eq i64 %.0299, %n.vec
  %xtraiter = and i64 %.0299, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter337 = and i64 %.0299, 3
  %32 = icmp ult i64 %indvar, 3
  %unroll_iter = and i64 %.0299, 9223372036854775804
  %lcmp.mod338.not = icmp eq i64 %xtraiter337, 0
  br label %33

33:                                               ; preds = %502, %25
  %.0170 = phi i64 [ %28, %25 ], [ %506, %502 ]
  %34 = sitofp i64 %.0170 to double
  %35 = fdiv double %34, %30
  %.0169 = select i1 %29, double %35, double 1.000000e+00
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %.0299, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %.0299, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %.0299, i64 noundef %.0299, ptr noundef %0)
  %36 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %37 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %36, double noundef 0.000000e+00)
  br i1 %37, label %.preheader278, label %94

.preheader278:                                    ; preds = %33
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %38

.preheader277:                                    ; preds = %38
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader270

38:                                               ; preds = %.preheader278, %38
  %storemerge208282 = phi i64 [ 0, %.preheader278 ], [ %45, %38 ]
  %39 = load ptr, ptr %21, align 8, !tbaa !11
  %40 = getelementptr inbounds i64, ptr %39, i64 %storemerge208282
  store i64 0, ptr %40, align 8, !tbaa !9
  %41 = load ptr, ptr %22, align 8, !tbaa !11
  %42 = load i64, ptr %10, align 8, !tbaa !9
  %43 = getelementptr inbounds i64, ptr %41, i64 %42
  store i64 0, ptr %43, align 8, !tbaa !9
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %10, align 8, !tbaa !9
  %.not209.not = icmp slt i64 %45, %.0299
  br i1 %.not209.not, label %38, label %.preheader277, !llvm.loop !12

.preheader270:                                    ; preds = %.preheader277, %90
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %.preheader270, %87
  %storemerge260283 = phi i64 [ 0, %.preheader270 ], [ %89, %87 ]
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = icmp eq i64 %47, %storemerge260283
  br i1 %48, label %52, label %49

49:                                               ; preds = %46
  %50 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %51 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %50, double noundef %.0169)
  br i1 %51, label %52, label %80

52:                                               ; preds = %49, %46
  %53 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %54 = fadd double %53, -5.000000e-01
  %55 = load ptr, ptr %23, align 8, !tbaa !11
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %55, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !14
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = getelementptr inbounds double, ptr %58, i64 %59
  store double %54, ptr %60, align 8, !tbaa !16
  %61 = icmp slt i64 %59, %56
  br i1 %61, label %62, label %71

62:                                               ; preds = %52
  %63 = load ptr, ptr %21, align 8, !tbaa !11
  %64 = getelementptr inbounds i64, ptr %63, i64 %56
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = sub nsw i64 %56, %59
  %67 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %65, i64 noundef %66, ptr noundef %0)
  %68 = load ptr, ptr %21, align 8, !tbaa !11
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = getelementptr inbounds i64, ptr %68, i64 %69
  store i64 %67, ptr %70, align 8, !tbaa !9
  br label %87

71:                                               ; preds = %52
  %72 = load ptr, ptr %22, align 8, !tbaa !11
  %73 = getelementptr inbounds i64, ptr %72, i64 %59
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = sub nsw i64 %59, %56
  %76 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %74, i64 noundef %75, ptr noundef %0)
  %77 = load ptr, ptr %22, align 8, !tbaa !11
  %78 = load i64, ptr %11, align 8, !tbaa !9
  %79 = getelementptr inbounds i64, ptr %77, i64 %78
  store i64 %76, ptr %79, align 8, !tbaa !9
  br label %87

80:                                               ; preds = %49
  %81 = load ptr, ptr %23, align 8, !tbaa !11
  %82 = load i64, ptr %10, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = load i64, ptr %11, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  store double 0.000000e+00, ptr %86, align 8, !tbaa !16
  br label %87

87:                                               ; preds = %80, %71, %62
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %11, align 8, !tbaa !9
  %.not261.not = icmp slt i64 %89, %.0299
  br i1 %.not261.not, label %46, label %90, !llvm.loop !18

90:                                               ; preds = %87
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %10, align 8, !tbaa !9
  %.not211.not = icmp slt i64 %92, %.0299
  br i1 %.not211.not, label %.preheader270, label %93, !llvm.loop !19

93:                                               ; preds = %90
  call void @_ZN11alglib_impl15sparsecreatesksEllPKNS_9ae_vectorES2_PNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0299, i64 noundef %.0299, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %3, ptr noundef %0)
  br label %139

94:                                               ; preds = %33
  %95 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %18, i64 noundef %31, ptr noundef %0)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %96

.preheader279:                                    ; preds = %96
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader271

96:                                               ; preds = %94, %96
  %storemerge280 = phi i64 [ 0, %94 ], [ %107, %96 ]
  %97 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %95, i64 noundef %storemerge280, ptr noundef %0)
  %98 = load ptr, ptr %21, align 8, !tbaa !11
  %99 = load i64, ptr %10, align 8, !tbaa !9
  %100 = getelementptr inbounds i64, ptr %98, i64 %99
  store i64 %97, ptr %100, align 8, !tbaa !9
  %101 = load i64, ptr %10, align 8, !tbaa !9
  %102 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %95, i64 noundef %101, ptr noundef %0)
  %103 = load ptr, ptr %22, align 8, !tbaa !11
  %104 = load i64, ptr %10, align 8, !tbaa !9
  %105 = getelementptr inbounds i64, ptr %103, i64 %104
  store i64 %102, ptr %105, align 8, !tbaa !9
  %106 = load i64, ptr %10, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %10, align 8, !tbaa !9
  %.not.not = icmp slt i64 %107, %.0299
  br i1 %.not.not, label %96, label %.preheader279, !llvm.loop !20

.preheader271:                                    ; preds = %.preheader279, %136
  %108 = phi i64 [ 0, %.preheader279 ], [ %137, %136 ]
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %.preheader271, %132
  %110 = phi i64 [ %108, %.preheader271 ], [ %134, %132 ]
  %storemerge206281 = phi i64 [ 0, %.preheader271 ], [ %135, %132 ]
  %111 = sub nsw i64 %110, %storemerge206281
  %112 = call noundef i64 @_ZN11alglib_impl7ae_iabsElPNS_8ae_stateE(i64 noundef %111, ptr noundef %0)
  %.not = icmp sgt i64 %112, %95
  br i1 %.not, label %125, label %113

113:                                              ; preds = %109
  %114 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %115 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %114, double noundef %.0169)
  br i1 %115, label %116, label %125

116:                                              ; preds = %113
  %117 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %118 = fadd double %117, -5.000000e-01
  %119 = load ptr, ptr %23, align 8, !tbaa !11
  %120 = load i64, ptr %10, align 8, !tbaa !9
  %121 = getelementptr inbounds ptr, ptr %119, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = load i64, ptr %11, align 8, !tbaa !9
  %124 = getelementptr inbounds double, ptr %122, i64 %123
  store double %118, ptr %124, align 8, !tbaa !16
  br label %132

125:                                              ; preds = %113, %109
  %126 = load ptr, ptr %23, align 8, !tbaa !11
  %127 = load i64, ptr %10, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !14
  %130 = load i64, ptr %11, align 8, !tbaa !9
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  store double 0.000000e+00, ptr %131, align 8, !tbaa !16
  br label %132

132:                                              ; preds = %116, %125
  %133 = phi i64 [ %123, %116 ], [ %130, %125 ]
  %134 = phi i64 [ %120, %116 ], [ %127, %125 ]
  %135 = add nsw i64 %133, 1
  store i64 %135, ptr %11, align 8, !tbaa !9
  %.not.not207 = icmp slt i64 %135, %.0299
  br i1 %.not.not207, label %109, label %136, !llvm.loop !21

136:                                              ; preds = %132
  %137 = add nsw i64 %134, 1
  store i64 %137, ptr %10, align 8, !tbaa !9
  %.not.not205 = icmp slt i64 %137, %.0299
  br i1 %.not.not205, label %.preheader271, label %138, !llvm.loop !22

138:                                              ; preds = %136
  call void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0299, i64 noundef %.0299, i64 noundef %95, ptr noundef nonnull %3, ptr noundef %0)
  br label %139

139:                                              ; preds = %138, %93
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader269

.preheader276:                                    ; preds = %190
  %140 = load ptr, ptr %22, align 8, !tbaa !11
  %141 = load ptr, ptr %21, align 8, !tbaa !11
  store i64 0, ptr %10, align 8, !tbaa !9
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader276
  %.0167287.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader276 ], [ %163, %middle.block ]
  %.0168286.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader276 ], [ %164, %middle.block ]
  %storemerge214285.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.preheader276 ], [ %n.vec, %middle.block ]
  %142 = sub i64 %indvar, %storemerge214285.ph
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.0167287.prol = phi i64 [ %148, %scalar.ph.prol ], [ %.0167287.ph, %scalar.ph.preheader ]
  %.0168286.prol = phi i64 [ %145, %scalar.ph.prol ], [ %.0168286.ph, %scalar.ph.preheader ]
  %storemerge214285.prol = phi i64 [ %149, %scalar.ph.prol ], [ %storemerge214285.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %143 = getelementptr inbounds i64, ptr %140, i64 %storemerge214285.prol
  %144 = load i64, ptr %143, align 8, !tbaa !9
  %145 = add nsw i64 %144, %.0168286.prol
  %146 = getelementptr inbounds i64, ptr %141, i64 %storemerge214285.prol
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = add nsw i64 %147, %.0167287.prol
  %149 = add nuw nsw i64 %storemerge214285.prol, 1
  store i64 %149, ptr %10, align 8, !tbaa !9
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !23

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.lcssa336.unr = phi i64 [ poison, %scalar.ph.preheader ], [ %145, %scalar.ph.prol ]
  %.lcssa335.unr = phi i64 [ poison, %scalar.ph.preheader ], [ %148, %scalar.ph.prol ]
  %.0167287.unr = phi i64 [ %.0167287.ph, %scalar.ph.preheader ], [ %148, %scalar.ph.prol ]
  %.0168286.unr = phi i64 [ %.0168286.ph, %scalar.ph.preheader ], [ %145, %scalar.ph.prol ]
  %storemerge214285.unr = phi i64 [ %storemerge214285.ph, %scalar.ph.preheader ], [ %149, %scalar.ph.prol ]
  %150 = icmp ult i64 %142, 3
  br i1 %150, label %.preheader275, label %scalar.ph

vector.memcheck:                                  ; preds = %.preheader276
  %scevgep317 = getelementptr i8, ptr %140, i64 %27
  %scevgep318 = getelementptr i8, ptr %141, i64 %27
  %bound0 = icmp ult ptr %10, %scevgep317
  %bound1 = icmp ult ptr %140, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0319 = icmp ult ptr %10, %scevgep318
  %bound1320 = icmp ult ptr %141, %scevgep
  %found.conflict321 = and i1 %bound0319, %bound1320
  %conflict.rdx = or i1 %found.conflict, %found.conflict321
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %vec.phi = phi <2 x i64> [ %158, %vector.body ], [ zeroinitializer, %vector.memcheck ]
  %vec.phi322 = phi <2 x i64> [ %159, %vector.body ], [ zeroinitializer, %vector.memcheck ]
  %vec.phi323 = phi <2 x i64> [ %154, %vector.body ], [ zeroinitializer, %vector.memcheck ]
  %vec.phi324 = phi <2 x i64> [ %155, %vector.body ], [ zeroinitializer, %vector.memcheck ]
  %151 = phi i64 [ %161, %vector.body ], [ 1, %vector.memcheck ]
  %152 = getelementptr inbounds i64, ptr %140, i64 %index
  %153 = getelementptr inbounds i8, ptr %152, i64 16
  %wide.load = load <2 x i64>, ptr %152, align 8, !tbaa !9, !alias.scope !25
  %wide.load326 = load <2 x i64>, ptr %153, align 8, !tbaa !9, !alias.scope !25
  %154 = add <2 x i64> %wide.load, %vec.phi323
  %155 = add <2 x i64> %wide.load326, %vec.phi324
  %156 = getelementptr inbounds i64, ptr %141, i64 %index
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  %wide.load327 = load <2 x i64>, ptr %156, align 8, !tbaa !9, !alias.scope !28
  %wide.load328 = load <2 x i64>, ptr %157, align 8, !tbaa !9, !alias.scope !28
  %158 = add <2 x i64> %wide.load327, %vec.phi
  %159 = add <2 x i64> %wide.load328, %vec.phi322
  %160 = add i64 %151, 3
  %index.next = add nuw i64 %index, 4
  %161 = add i64 %151, 4
  %162 = icmp eq i64 %index.next, %n.vec
  br i1 %162, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  store i64 %160, ptr %10, align 8, !tbaa !9, !alias.scope !33, !noalias !35
  %bin.rdx = add <2 x i64> %159, %158
  %163 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %bin.rdx329 = add <2 x i64> %155, %154
  %164 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx329)
  br i1 %cmp.n, label %.preheader275, label %scalar.ph.preheader

.preheader269:                                    ; preds = %139, %190
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %.preheader269, %187
  %storemerge258284 = phi i64 [ 0, %.preheader269 ], [ %189, %187 ]
  %166 = load ptr, ptr %23, align 8, !tbaa !11
  %167 = load i64, ptr %10, align 8, !tbaa !9
  %168 = getelementptr inbounds ptr, ptr %166, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !14
  %170 = getelementptr inbounds double, ptr %169, i64 %storemerge258284
  %171 = load double, ptr %170, align 8, !tbaa !16
  %172 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %171, double noundef 0.000000e+00)
  br i1 %172, label %173, label %187

173:                                              ; preds = %165
  %174 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef %0)
  %175 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %174, double noundef 0.000000e+00)
  %176 = load i64, ptr %10, align 8, !tbaa !9
  %177 = load i64, ptr %11, align 8, !tbaa !9
  %178 = load ptr, ptr %23, align 8, !tbaa !11
  %179 = getelementptr inbounds ptr, ptr %178, i64 %176
  %180 = load ptr, ptr %179, align 8, !tbaa !14
  %181 = getelementptr inbounds double, ptr %180, i64 %177
  %182 = load double, ptr %181, align 8, !tbaa !16
  br i1 %175, label %183, label %186

183:                                              ; preds = %173
  %184 = call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %176, i64 noundef %177, double noundef %182, ptr noundef %0)
  %185 = xor i1 %184, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %185, ptr noundef nonnull @.str.19, i32 noundef 14488, ptr noundef nonnull @.str.128)
  br label %187

186:                                              ; preds = %173
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %176, i64 noundef %177, double noundef %182, ptr noundef %0)
  br label %187

187:                                              ; preds = %165, %186, %183
  %188 = load i64, ptr %11, align 8, !tbaa !9
  %189 = add nsw i64 %188, 1
  store i64 %189, ptr %11, align 8, !tbaa !9
  %.not259.not = icmp slt i64 %189, %.0299
  br i1 %.not259.not, label %165, label %190, !llvm.loop !36

190:                                              ; preds = %187
  %191 = load i64, ptr %10, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %10, align 8, !tbaa !9
  %.not213.not = icmp slt i64 %192, %.0299
  br i1 %.not213.not, label %.preheader269, label %.preheader276, !llvm.loop !37

.preheader275:                                    ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.lcssa316 = phi i64 [ %164, %middle.block ], [ %.lcssa336.unr, %scalar.ph.prol.loopexit ], [ %216, %scalar.ph ]
  %.lcssa315 = phi i64 [ %163, %middle.block ], [ %.lcssa335.unr, %scalar.ph.prol.loopexit ], [ %219, %scalar.ph ]
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader268

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.0167287 = phi i64 [ %219, %scalar.ph ], [ %.0167287.unr, %scalar.ph.prol.loopexit ]
  %.0168286 = phi i64 [ %216, %scalar.ph ], [ %.0168286.unr, %scalar.ph.prol.loopexit ]
  %storemerge214285 = phi i64 [ %220, %scalar.ph ], [ %storemerge214285.unr, %scalar.ph.prol.loopexit ]
  %193 = getelementptr inbounds i64, ptr %140, i64 %storemerge214285
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = add nsw i64 %194, %.0168286
  %196 = getelementptr inbounds i64, ptr %141, i64 %storemerge214285
  %197 = load i64, ptr %196, align 8, !tbaa !9
  %198 = add nsw i64 %197, %.0167287
  %199 = add nuw nsw i64 %storemerge214285, 1
  store i64 %199, ptr %10, align 8, !tbaa !9
  %200 = getelementptr inbounds i64, ptr %140, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !9
  %202 = add nsw i64 %201, %195
  %203 = getelementptr inbounds i64, ptr %141, i64 %199
  %204 = load i64, ptr %203, align 8, !tbaa !9
  %205 = add nsw i64 %204, %198
  %206 = add nuw nsw i64 %storemerge214285, 2
  store i64 %206, ptr %10, align 8, !tbaa !9
  %207 = getelementptr inbounds i64, ptr %140, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !9
  %209 = add nsw i64 %208, %202
  %210 = getelementptr inbounds i64, ptr %141, i64 %206
  %211 = load i64, ptr %210, align 8, !tbaa !9
  %212 = add nsw i64 %211, %205
  %213 = add nuw nsw i64 %storemerge214285, 3
  store i64 %213, ptr %10, align 8, !tbaa !9
  %214 = getelementptr inbounds i64, ptr %140, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = add nsw i64 %215, %209
  %217 = getelementptr inbounds i64, ptr %141, i64 %213
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = add nsw i64 %218, %212
  %220 = add nuw nsw i64 %storemerge214285, 4
  store i64 %220, ptr %10, align 8, !tbaa !9
  %exitcond.not.3 = icmp eq i64 %220, %.0299
  br i1 %exitcond.not.3, label %.preheader275, label %scalar.ph, !llvm.loop !38

.preheader274:                                    ; preds = %267
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader267

.preheader268:                                    ; preds = %.preheader275, %267
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %.preheader268, %264
  %storemerge250288 = phi i64 [ 0, %.preheader268 ], [ %266, %264 ]
  %222 = load i64, ptr %10, align 8, !tbaa !9
  %.not252 = icmp slt i64 %222, %storemerge250288
  br i1 %.not252, label %231, label %223

223:                                              ; preds = %221
  %224 = sub nsw i64 %222, %storemerge250288
  %225 = load ptr, ptr %21, align 8, !tbaa !11
  %226 = getelementptr inbounds i64, ptr %225, i64 %222
  %227 = load i64, ptr %226, align 8, !tbaa !9
  %228 = icmp sgt i64 %224, %227
  br i1 %228, label %229, label %231

229:                                              ; preds = %223
  %230 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %222, i64 noundef %storemerge250288, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %230, ptr noundef nonnull @.str.19, i32 noundef 14514, ptr noundef nonnull @.str.129)
  %.pre = load i64, ptr %10, align 8, !tbaa !9
  %.pre306 = load i64, ptr %11, align 8, !tbaa !9
  br label %231

231:                                              ; preds = %229, %223, %221
  %232 = phi i64 [ %.pre306, %229 ], [ %storemerge250288, %223 ], [ %storemerge250288, %221 ]
  %233 = phi i64 [ %.pre, %229 ], [ %222, %223 ], [ %222, %221 ]
  %.not253 = icmp slt i64 %233, %232
  br i1 %.not253, label %242, label %234

234:                                              ; preds = %231
  %235 = sub nsw i64 %233, %232
  %236 = load ptr, ptr %21, align 8, !tbaa !11
  %237 = getelementptr inbounds i64, ptr %236, i64 %233
  %238 = load i64, ptr %237, align 8, !tbaa !9
  %.not254 = icmp sgt i64 %235, %238
  br i1 %.not254, label %242, label %239

239:                                              ; preds = %234
  %240 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %233, i64 noundef %232, ptr noundef %0)
  %241 = xor i1 %240, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %241, ptr noundef nonnull @.str.19, i32 noundef 14518, ptr noundef nonnull @.str.130)
  %.pre307 = load i64, ptr %10, align 8, !tbaa !9
  %.pre308 = load i64, ptr %11, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %239, %234, %231
  %243 = phi i64 [ %.pre308, %239 ], [ %232, %234 ], [ %232, %231 ]
  %244 = phi i64 [ %.pre307, %239 ], [ %233, %234 ], [ %233, %231 ]
  %.not255 = icmp sgt i64 %244, %243
  br i1 %.not255, label %253, label %245

245:                                              ; preds = %242
  %246 = sub nsw i64 %243, %244
  %247 = load ptr, ptr %22, align 8, !tbaa !11
  %248 = getelementptr inbounds i64, ptr %247, i64 %243
  %249 = load i64, ptr %248, align 8, !tbaa !9
  %250 = icmp sgt i64 %246, %249
  br i1 %250, label %251, label %253

251:                                              ; preds = %245
  %252 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %244, i64 noundef %243, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %252, ptr noundef nonnull @.str.19, i32 noundef 14522, ptr noundef nonnull @.str.131)
  %.pre309 = load i64, ptr %10, align 8, !tbaa !9
  %.pre310 = load i64, ptr %11, align 8, !tbaa !9
  br label %253

253:                                              ; preds = %251, %245, %242
  %254 = phi i64 [ %.pre310, %251 ], [ %243, %245 ], [ %243, %242 ]
  %255 = phi i64 [ %.pre309, %251 ], [ %244, %245 ], [ %244, %242 ]
  %.not256 = icmp sgt i64 %255, %254
  br i1 %.not256, label %264, label %256

256:                                              ; preds = %253
  %257 = sub nsw i64 %254, %255
  %258 = load ptr, ptr %22, align 8, !tbaa !11
  %259 = getelementptr inbounds i64, ptr %258, i64 %254
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %.not257 = icmp sgt i64 %257, %260
  br i1 %.not257, label %264, label %261

261:                                              ; preds = %256
  %262 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %255, i64 noundef %254, ptr noundef %0)
  %263 = xor i1 %262, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %263, ptr noundef nonnull @.str.19, i32 noundef 14526, ptr noundef nonnull @.str.132)
  %.pre311 = load i64, ptr %11, align 8, !tbaa !9
  br label %264

264:                                              ; preds = %253, %256, %261
  %265 = phi i64 [ %254, %253 ], [ %254, %256 ], [ %.pre311, %261 ]
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %11, align 8, !tbaa !9
  %.not251.not = icmp slt i64 %266, %.0299
  br i1 %.not251.not, label %221, label %267, !llvm.loop !39

267:                                              ; preds = %264
  %268 = load i64, ptr %10, align 8, !tbaa !9
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %10, align 8, !tbaa !9
  %.not217.not = icmp slt i64 %269, %.0299
  br i1 %.not217.not, label %.preheader268, label %.preheader274, !llvm.loop !40

.preheader267:                                    ; preds = %.preheader274, %290
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %270

270:                                              ; preds = %.preheader267, %287
  %storemerge246289 = phi i64 [ 0, %.preheader267 ], [ %289, %287 ]
  %271 = load i64, ptr %10, align 8, !tbaa !9
  %.not248 = icmp slt i64 %271, %storemerge246289
  br i1 %.not248, label %278, label %272

272:                                              ; preds = %270
  %273 = sub nsw i64 %271, %storemerge246289
  %274 = load ptr, ptr %21, align 8, !tbaa !11
  %275 = getelementptr inbounds i64, ptr %274, i64 %271
  %276 = load i64, ptr %275, align 8, !tbaa !9
  %277 = icmp sgt i64 %273, %276
  br i1 %277, label %285, label %278

278:                                              ; preds = %272, %270
  %.not249 = icmp sgt i64 %271, %storemerge246289
  br i1 %.not249, label %287, label %279

279:                                              ; preds = %278
  %280 = sub nsw i64 %storemerge246289, %271
  %281 = load ptr, ptr %22, align 8, !tbaa !11
  %282 = getelementptr inbounds i64, ptr %281, i64 %storemerge246289
  %283 = load i64, ptr %282, align 8, !tbaa !9
  %284 = icmp sgt i64 %280, %283
  br i1 %284, label %285, label %287

285:                                              ; preds = %279, %272
  %286 = call noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %271, i64 noundef %storemerge246289, double noundef 1.000000e+00, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %286, ptr noundef nonnull @.str.19, i32 noundef 14540, ptr noundef nonnull @.str.133)
  %.pre312 = load i64, ptr %11, align 8, !tbaa !9
  br label %287

287:                                              ; preds = %278, %279, %285
  %288 = phi i64 [ %storemerge246289, %278 ], [ %storemerge246289, %279 ], [ %.pre312, %285 ]
  %289 = add nsw i64 %288, 1
  store i64 %289, ptr %11, align 8, !tbaa !9
  %.not247.not = icmp slt i64 %289, %.0299
  br i1 %.not247.not, label %270, label %290, !llvm.loop !41

290:                                              ; preds = %287
  %291 = load i64, ptr %10, align 8, !tbaa !9
  %292 = add nsw i64 %291, 1
  store i64 %292, ptr %10, align 8, !tbaa !9
  %.not219.not = icmp slt i64 %292, %.0299
  br i1 %.not219.not, label %.preheader267, label %293, !llvm.loop !42

293:                                              ; preds = %290
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  call void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef %0)
  call void @_ZN11alglib_impl16sparsecopytohashEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %7, ptr noundef %0)
  call void @_ZN11alglib_impl19sparsecopytohashbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %8, ptr noundef %0)
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl19sparseconverttohashEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  %294 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %295 = icmp ne i64 %294, %.0299
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %295, ptr noundef nonnull @.str.19, i32 noundef 14556, ptr noundef nonnull @.str.134)
  %296 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %297 = icmp ne i64 %296, %.0299
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %297, ptr noundef nonnull @.str.19, i32 noundef 14557, ptr noundef nonnull @.str.135)
  %298 = call noundef i64 @_ZN11alglib_impl19sparsegetmatrixtypeEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %299 = icmp ne i64 %298, 2
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %299, ptr noundef nonnull @.str.19, i32 noundef 14558, ptr noundef nonnull @.str.136)
  %300 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %301 = xor i1 %300, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %301, ptr noundef nonnull @.str.19, i32 noundef 14559, ptr noundef nonnull @.str.137)
  %302 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %302, ptr noundef nonnull @.str.19, i32 noundef 14560, ptr noundef nonnull @.str.138)
  %303 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %303, ptr noundef nonnull @.str.19, i32 noundef 14561, ptr noundef nonnull @.str.139)
  %304 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %304, ptr noundef nonnull @.str.19, i32 noundef 14562, ptr noundef nonnull @.str.140)
  %305 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  %306 = xor i1 %305, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %306, ptr noundef nonnull @.str.19, i32 noundef 14563, ptr noundef nonnull @.str.141)
  %307 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %307, ptr noundef nonnull @.str.19, i32 noundef 14564, ptr noundef nonnull @.str.142)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %308

.preheader273:                                    ; preds = %308
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader266

308:                                              ; preds = %293, %308
  %storemerge220290 = phi i64 [ 0, %293 ], [ %317, %308 ]
  %309 = load ptr, ptr %23, align 8, !tbaa !11
  %310 = getelementptr inbounds ptr, ptr %309, i64 %storemerge220290
  %311 = load ptr, ptr %310, align 8, !tbaa !14
  %312 = getelementptr inbounds double, ptr %311, i64 %storemerge220290
  %313 = load double, ptr %312, align 8, !tbaa !16
  %314 = call noundef double @_ZN11alglib_impl17sparsegetdiagonalEPKNS_12sparsematrixElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %storemerge220290, ptr noundef %0)
  store double %314, ptr %19, align 8, !tbaa !16
  %315 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %314, double noundef %313)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %315, ptr noundef nonnull @.str.19, i32 noundef 14569, ptr noundef nonnull @.str.143)
  %316 = load i64, ptr %10, align 8, !tbaa !9
  %317 = add nsw i64 %316, 1
  store i64 %317, ptr %10, align 8, !tbaa !9
  %.not221.not = icmp slt i64 %317, %.0299
  br i1 %.not221.not, label %308, label %.preheader273, !llvm.loop !43

.preheader266:                                    ; preds = %.preheader273, %353
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %318

318:                                              ; preds = %.preheader266, %318
  %storemerge244291 = phi i64 [ 0, %.preheader266 ], [ %352, %318 ]
  %319 = load ptr, ptr %23, align 8, !tbaa !11
  %320 = load i64, ptr %10, align 8, !tbaa !9
  %321 = getelementptr inbounds ptr, ptr %319, i64 %320
  %322 = load ptr, ptr %321, align 8, !tbaa !14
  %323 = getelementptr inbounds double, ptr %322, i64 %storemerge244291
  %324 = load double, ptr %323, align 8, !tbaa !16
  %325 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %320, i64 noundef %storemerge244291, ptr noundef %0)
  store double %325, ptr %19, align 8, !tbaa !16
  %326 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %325, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %326, ptr noundef nonnull @.str.19, i32 noundef 14577, ptr noundef nonnull @.str.144)
  %327 = load i64, ptr %10, align 8, !tbaa !9
  %328 = load i64, ptr %11, align 8, !tbaa !9
  %329 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %327, i64 noundef %328, ptr noundef %0)
  store double %329, ptr %19, align 8, !tbaa !16
  %330 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %329, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %330, ptr noundef nonnull @.str.19, i32 noundef 14579, ptr noundef nonnull @.str.145)
  %331 = load i64, ptr %10, align 8, !tbaa !9
  %332 = load i64, ptr %11, align 8, !tbaa !9
  %333 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %331, i64 noundef %332, ptr noundef %0)
  store double %333, ptr %19, align 8, !tbaa !16
  %334 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %333, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %334, ptr noundef nonnull @.str.19, i32 noundef 14581, ptr noundef nonnull @.str.146)
  %335 = load i64, ptr %10, align 8, !tbaa !9
  %336 = load i64, ptr %11, align 8, !tbaa !9
  %337 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %335, i64 noundef %336, ptr noundef %0)
  store double %337, ptr %19, align 8, !tbaa !16
  %338 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %337, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %338, ptr noundef nonnull @.str.19, i32 noundef 14583, ptr noundef nonnull @.str.147)
  %339 = load i64, ptr %10, align 8, !tbaa !9
  %340 = load i64, ptr %11, align 8, !tbaa !9
  %341 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %339, i64 noundef %340, ptr noundef %0)
  store double %341, ptr %19, align 8, !tbaa !16
  %342 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %341, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %342, ptr noundef nonnull @.str.19, i32 noundef 14585, ptr noundef nonnull @.str.148)
  %343 = load i64, ptr %10, align 8, !tbaa !9
  %344 = load i64, ptr %11, align 8, !tbaa !9
  %345 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %343, i64 noundef %344, ptr noundef %0)
  store double %345, ptr %19, align 8, !tbaa !16
  %346 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %345, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %346, ptr noundef nonnull @.str.19, i32 noundef 14587, ptr noundef nonnull @.str.149)
  %347 = load i64, ptr %10, align 8, !tbaa !9
  %348 = load i64, ptr %11, align 8, !tbaa !9
  %349 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %347, i64 noundef %348, ptr noundef %0)
  store double %349, ptr %19, align 8, !tbaa !16
  %350 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %349, double noundef %324)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %350, ptr noundef nonnull @.str.19, i32 noundef 14589, ptr noundef nonnull @.str.150)
  %351 = load i64, ptr %11, align 8, !tbaa !9
  %352 = add nsw i64 %351, 1
  store i64 %352, ptr %11, align 8, !tbaa !9
  %.not245.not = icmp slt i64 %352, %.0299
  br i1 %.not245.not, label %318, label %353, !llvm.loop !44

353:                                              ; preds = %318
  %354 = load i64, ptr %10, align 8, !tbaa !9
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %10, align 8, !tbaa !9
  %.not223.not = icmp slt i64 %355, %.0299
  br i1 %.not223.not, label %.preheader266, label %356, !llvm.loop !45

356:                                              ; preds = %353
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %.0299, i64 noundef %.0299, ptr noundef %0)
  br label %.preheader265

.preheader265:                                    ; preds = %356, %.epilog-lcssa
  %storemerge224294 = phi i64 [ 0, %356 ], [ %382, %.epilog-lcssa ]
  br i1 %32, label %.unr-lcssa, label %.preheader265.new

.preheader265.new:                                ; preds = %.preheader265, %.preheader265.new
  %storemerge242292 = phi i64 [ %376, %.preheader265.new ], [ 0, %.preheader265 ]
  %niter = phi i64 [ %niter.next.3, %.preheader265.new ], [ 0, %.preheader265 ]
  %357 = load ptr, ptr %24, align 8, !tbaa !11
  %358 = getelementptr inbounds ptr, ptr %357, i64 %storemerge224294
  %359 = load ptr, ptr %358, align 8, !tbaa !14
  %360 = getelementptr inbounds i8, ptr %359, i64 %storemerge242292
  store i8 0, ptr %360, align 1, !tbaa !5
  %361 = or disjoint i64 %storemerge242292, 1
  %362 = load ptr, ptr %24, align 8, !tbaa !11
  %363 = getelementptr inbounds ptr, ptr %362, i64 %storemerge224294
  %364 = load ptr, ptr %363, align 8, !tbaa !14
  %365 = getelementptr inbounds i8, ptr %364, i64 %361
  store i8 0, ptr %365, align 1, !tbaa !5
  %366 = or disjoint i64 %storemerge242292, 2
  %367 = load ptr, ptr %24, align 8, !tbaa !11
  %368 = getelementptr inbounds ptr, ptr %367, i64 %storemerge224294
  %369 = load ptr, ptr %368, align 8, !tbaa !14
  %370 = getelementptr inbounds i8, ptr %369, i64 %366
  store i8 0, ptr %370, align 1, !tbaa !5
  %371 = or disjoint i64 %storemerge242292, 3
  %372 = load ptr, ptr %24, align 8, !tbaa !11
  %373 = getelementptr inbounds ptr, ptr %372, i64 %storemerge224294
  %374 = load ptr, ptr %373, align 8, !tbaa !14
  %375 = getelementptr inbounds i8, ptr %374, i64 %371
  store i8 0, ptr %375, align 1, !tbaa !5
  %376 = add nuw nsw i64 %storemerge242292, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %.preheader265.new, !llvm.loop !46

.unr-lcssa:                                       ; preds = %.preheader265.new, %.preheader265
  %storemerge242292.unr = phi i64 [ 0, %.preheader265 ], [ %376, %.preheader265.new ]
  br i1 %lcmp.mod338.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %storemerge242292.epil = phi i64 [ %381, %.epil.preheader ], [ %storemerge242292.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %377 = load ptr, ptr %24, align 8, !tbaa !11
  %378 = getelementptr inbounds ptr, ptr %377, i64 %storemerge224294
  %379 = load ptr, ptr %378, align 8, !tbaa !14
  %380 = getelementptr inbounds i8, ptr %379, i64 %storemerge242292.epil
  store i8 0, ptr %380, align 1, !tbaa !5
  %381 = add nuw nsw i64 %storemerge242292.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter337
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.epil.preheader, !llvm.loop !47

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %382 = add nuw nsw i64 %storemerge224294, 1
  %exitcond304.not = icmp eq i64 %382, %.0299
  br i1 %exitcond304.not, label %383, label %.preheader265, !llvm.loop !48

383:                                              ; preds = %.epilog-lcssa
  store i64 %.0299, ptr %10, align 8, !tbaa !9
  store i64 %.0299, ptr %11, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !9
  %384 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %19, ptr noundef %0)
  br i1 %384, label %.lr.ph, label %.preheader272

.preheader272:                                    ; preds = %.lr.ph, %383
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader264

.lr.ph:                                           ; preds = %383, %.lr.ph
  %385 = load ptr, ptr %24, align 8, !tbaa !11
  %386 = load i64, ptr %10, align 8, !tbaa !9
  %387 = getelementptr inbounds ptr, ptr %385, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !14
  %389 = load i64, ptr %11, align 8, !tbaa !9
  %390 = getelementptr inbounds i8, ptr %388, i64 %389
  %391 = load i8, ptr %390, align 1, !tbaa !5, !range !49, !noundef !50
  %392 = trunc nuw i8 %391 to i1
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %392, ptr noundef nonnull @.str.19, i32 noundef 14610, ptr noundef nonnull @.str.151)
  %393 = load ptr, ptr %24, align 8, !tbaa !11
  %394 = load i64, ptr %10, align 8, !tbaa !9
  %395 = getelementptr inbounds ptr, ptr %393, i64 %394
  %396 = load ptr, ptr %395, align 8, !tbaa !14
  %397 = load i64, ptr %11, align 8, !tbaa !9
  %398 = getelementptr inbounds i8, ptr %396, i64 %397
  store i8 1, ptr %398, align 1, !tbaa !5
  %399 = call noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %19, ptr noundef %0)
  br i1 %399, label %.lr.ph, label %.preheader272, !llvm.loop !51

.preheader264:                                    ; preds = %.preheader272, %421
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %400

400:                                              ; preds = %.preheader264, %418
  %storemerge240295 = phi i64 [ 0, %.preheader264 ], [ %420, %418 ]
  %401 = load ptr, ptr %23, align 8, !tbaa !11
  %402 = load i64, ptr %10, align 8, !tbaa !9
  %403 = getelementptr inbounds ptr, ptr %401, i64 %402
  %404 = load ptr, ptr %403, align 8, !tbaa !14
  %405 = getelementptr inbounds double, ptr %404, i64 %storemerge240295
  %406 = load double, ptr %405, align 8, !tbaa !16
  %407 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %406, double noundef 0.000000e+00)
  br i1 %407, label %408, label %418

408:                                              ; preds = %400
  %409 = load ptr, ptr %24, align 8, !tbaa !11
  %410 = load i64, ptr %10, align 8, !tbaa !9
  %411 = getelementptr inbounds ptr, ptr %409, i64 %410
  %412 = load ptr, ptr %411, align 8, !tbaa !14
  %413 = load i64, ptr %11, align 8, !tbaa !9
  %414 = getelementptr inbounds i8, ptr %412, i64 %413
  %415 = load i8, ptr %414, align 1, !tbaa !5, !range !49, !noundef !50
  %416 = trunc nuw i8 %415 to i1
  %417 = xor i1 %416, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %417, ptr noundef nonnull @.str.19, i32 noundef 14619, ptr noundef nonnull @.str.152)
  br label %418

418:                                              ; preds = %400, %408
  %419 = load i64, ptr %11, align 8, !tbaa !9
  %420 = add nsw i64 %419, 1
  store i64 %420, ptr %11, align 8, !tbaa !9
  %.not241.not = icmp slt i64 %420, %.0299
  br i1 %.not241.not, label %400, label %421, !llvm.loop !52

421:                                              ; preds = %418
  %422 = load i64, ptr %10, align 8, !tbaa !9
  %423 = add nsw i64 %422, 1
  store i64 %423, ptr %10, align 8, !tbaa !9
  %.not227.not = icmp slt i64 %423, %.0299
  br i1 %.not227.not, label %.preheader264, label %424, !llvm.loop !53

424:                                              ; preds = %421
  %425 = call noundef i64 @_ZN11alglib_impl19sparsegetuppercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %426 = icmp ne i64 %425, %.lcssa316
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %426, ptr noundef nonnull @.str.19, i32 noundef 14627, ptr noundef nonnull @.str.153)
  %427 = call noundef i64 @_ZN11alglib_impl19sparsegetlowercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %428 = icmp ne i64 %427, %.lcssa315
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %428, ptr noundef nonnull @.str.19, i32 noundef 14628, ptr noundef nonnull @.str.154)
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl18sparsetransposesksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader263

.preheader263:                                    ; preds = %424, %439
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %429

429:                                              ; preds = %.preheader263, %429
  %storemerge238296 = phi i64 [ 0, %.preheader263 ], [ %438, %429 ]
  %430 = load i64, ptr %10, align 8, !tbaa !9
  %431 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %430, i64 noundef %storemerge238296, ptr noundef %0)
  store double %431, ptr %19, align 8, !tbaa !16
  %432 = load i64, ptr %11, align 8, !tbaa !9
  %433 = load i64, ptr %10, align 8, !tbaa !9
  %434 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %432, i64 noundef %433, ptr noundef %0)
  %435 = load double, ptr %19, align 8, !tbaa !16
  %436 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %435, double noundef %434)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %436, ptr noundef nonnull @.str.19, i32 noundef 14641, ptr noundef nonnull @.str.155)
  %437 = load i64, ptr %11, align 8, !tbaa !9
  %438 = add nsw i64 %437, 1
  store i64 %438, ptr %11, align 8, !tbaa !9
  %.not239.not = icmp slt i64 %438, %.0299
  br i1 %.not239.not, label %429, label %439, !llvm.loop !54

439:                                              ; preds = %429
  %440 = load i64, ptr %10, align 8, !tbaa !9
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %10, align 8, !tbaa !9
  %.not229.not = icmp slt i64 %441, %.0299
  br i1 %.not229.not, label %.preheader263, label %442, !llvm.loop !55

442:                                              ; preds = %439
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0299, i64 noundef %.0299, i64 noundef 0, ptr noundef nonnull %3, ptr noundef %0)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader262

.preheader262:                                    ; preds = %442, %462
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %443

443:                                              ; preds = %.preheader262, %459
  %storemerge236297 = phi i64 [ 0, %.preheader262 ], [ %461, %459 ]
  %444 = load ptr, ptr %23, align 8, !tbaa !11
  %445 = load i64, ptr %10, align 8, !tbaa !9
  %446 = getelementptr inbounds ptr, ptr %444, i64 %445
  %447 = load ptr, ptr %446, align 8, !tbaa !14
  %448 = getelementptr inbounds double, ptr %447, i64 %storemerge236297
  %449 = load double, ptr %448, align 8, !tbaa !16
  %450 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %449, double noundef 0.000000e+00)
  br i1 %450, label %451, label %459

451:                                              ; preds = %443
  %452 = load i64, ptr %10, align 8, !tbaa !9
  %453 = load i64, ptr %11, align 8, !tbaa !9
  %454 = load ptr, ptr %23, align 8, !tbaa !11
  %455 = getelementptr inbounds ptr, ptr %454, i64 %452
  %456 = load ptr, ptr %455, align 8, !tbaa !14
  %457 = getelementptr inbounds double, ptr %456, i64 %453
  %458 = load double, ptr %457, align 8, !tbaa !16
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %452, i64 noundef %453, double noundef %458, ptr noundef %0)
  br label %459

459:                                              ; preds = %443, %451
  %460 = load i64, ptr %11, align 8, !tbaa !9
  %461 = add nsw i64 %460, 1
  store i64 %461, ptr %11, align 8, !tbaa !9
  %.not237.not = icmp slt i64 %461, %.0299
  br i1 %.not237.not, label %443, label %462, !llvm.loop !56

462:                                              ; preds = %459
  %463 = load i64, ptr %10, align 8, !tbaa !9
  %464 = add nsw i64 %463, 1
  store i64 %464, ptr %10, align 8, !tbaa !9
  %.not231.not = icmp slt i64 %464, %.0299
  br i1 %.not231.not, label %.preheader262, label %465, !llvm.loop !57

465:                                              ; preds = %462
  call void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  call void @_ZN11alglib_impl18sparsecopytosksbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef %0)
  %466 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  %467 = xor i1 %466, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %467, ptr noundef nonnull @.str.19, i32 noundef 14664, ptr noundef nonnull @.str.156)
  %468 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %468, ptr noundef nonnull @.str.19, i32 noundef 14665, ptr noundef nonnull @.str.157)
  %469 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %469, ptr noundef nonnull @.str.19, i32 noundef 14666, ptr noundef nonnull @.str.158)
  %470 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %0)
  %471 = xor i1 %470, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %471, ptr noundef nonnull @.str.19, i32 noundef 14667, ptr noundef nonnull @.str.159)
  %472 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %472, ptr noundef nonnull @.str.19, i32 noundef 14668, ptr noundef nonnull @.str.160)
  %473 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %473, ptr noundef nonnull @.str.19, i32 noundef 14669, ptr noundef nonnull @.str.161)
  %474 = call noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %0)
  %475 = xor i1 %474, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %475, ptr noundef nonnull @.str.19, i32 noundef 14670, ptr noundef nonnull @.str.162)
  %476 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %476, ptr noundef nonnull @.str.19, i32 noundef 14671, ptr noundef nonnull @.str.163)
  %477 = call noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %0)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %477, ptr noundef nonnull @.str.19, i32 noundef 14672, ptr noundef nonnull @.str.164)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %465, %497
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %478

478:                                              ; preds = %.preheader, %478
  %storemerge234298 = phi i64 [ 0, %.preheader ], [ %496, %478 ]
  %479 = load ptr, ptr %23, align 8, !tbaa !11
  %480 = load i64, ptr %10, align 8, !tbaa !9
  %481 = getelementptr inbounds ptr, ptr %479, i64 %480
  %482 = load ptr, ptr %481, align 8, !tbaa !14
  %483 = getelementptr inbounds double, ptr %482, i64 %storemerge234298
  %484 = load double, ptr %483, align 8, !tbaa !16
  %485 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %480, i64 noundef %storemerge234298, ptr noundef %0)
  store double %485, ptr %19, align 8, !tbaa !16
  %486 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %485, double noundef %484)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %486, ptr noundef nonnull @.str.19, i32 noundef 14679, ptr noundef nonnull @.str.165)
  %487 = load i64, ptr %10, align 8, !tbaa !9
  %488 = load i64, ptr %11, align 8, !tbaa !9
  %489 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %487, i64 noundef %488, ptr noundef %0)
  store double %489, ptr %19, align 8, !tbaa !16
  %490 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %489, double noundef %484)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %490, ptr noundef nonnull @.str.19, i32 noundef 14681, ptr noundef nonnull @.str.166)
  %491 = load i64, ptr %10, align 8, !tbaa !9
  %492 = load i64, ptr %11, align 8, !tbaa !9
  %493 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %491, i64 noundef %492, ptr noundef %0)
  store double %493, ptr %19, align 8, !tbaa !16
  %494 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %493, double noundef %484)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %20, i1 noundef zeroext %494, ptr noundef nonnull @.str.19, i32 noundef 14683, ptr noundef nonnull @.str.167)
  %495 = load i64, ptr %11, align 8, !tbaa !9
  %496 = add nsw i64 %495, 1
  store i64 %496, ptr %11, align 8, !tbaa !9
  %.not235.not = icmp slt i64 %496, %.0299
  br i1 %.not235.not, label %478, label %497, !llvm.loop !58

497:                                              ; preds = %478
  %498 = load i64, ptr %10, align 8, !tbaa !9
  %499 = add nsw i64 %498, 1
  store i64 %499, ptr %10, align 8, !tbaa !9
  %.not233.not = icmp slt i64 %499, %.0299
  br i1 %.not233.not, label %.preheader, label %500, !llvm.loop !59

500:                                              ; preds = %497
  %501 = icmp eq i64 %.0170, 0
  br i1 %501, label %507, label %502

502:                                              ; preds = %500
  %503 = fmul double %34, 0x3FEE666666666666
  %504 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %503, ptr noundef %0)
  %505 = add nsw i64 %.0170, -1
  %506 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %504, i64 noundef %505, ptr noundef %0)
  br label %33, !llvm.loop !60

507:                                              ; preds = %500
  %exitcond305.not = icmp eq i64 %31, 21
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond305.not, label %508, label %25, !llvm.loop !61

508:                                              ; preds = %507
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %509 = load i8, ptr %20, align 1, !tbaa !5, !range !49, !noundef !50
  %510 = trunc nuw i8 %509 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %510
}

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl15sparsecreatesksEllPKNS_9ae_vectorES2_PNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef i64 @_ZN11alglib_impl7ae_iabsElPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl19sparsecreatesksbandElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl21sparserewriteexistingEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl10sparsecopyEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparsecopytocrsbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl16sparsecopytohashEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl19sparsecopytohashbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl19sparseconverttohashEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl19sparsegetmatrixtypeEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl11sparseissksEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl12sparseishashEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl17sparsegetdiagonalEPKNS_12sparsematrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl15sparseenumerateEPKNS_12sparsematrixEPlS3_S3_S3_PdPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl19sparsegetuppercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZN11alglib_impl19sparsegetlowercountEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparsetransposesksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparsecopytosksbufEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !13, !31, !32}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = !{!34}
!34 = distinct !{!34, !27}
!35 = !{!26, !29}
!36 = distinct !{!36, !13}
!37 = distinct !{!37, !13}
!38 = distinct !{!38, !13, !31}
!39 = distinct !{!39, !13}
!40 = distinct !{!40, !13}
!41 = distinct !{!41, !13}
!42 = distinct !{!42, !13}
!43 = distinct !{!43, !13}
!44 = distinct !{!44, !13}
!45 = distinct !{!45, !13}
!46 = distinct !{!46, !13}
!47 = distinct !{!47, !24}
!48 = distinct !{!48, !13}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = distinct !{!51, !13}
!52 = distinct !{!52, !13}
!53 = distinct !{!53, !13}
!54 = distinct !{!54, !13}
!55 = distinct !{!55, !13}
!56 = distinct !{!56, !13}
!57 = distinct !{!57, !13}
!58 = distinct !{!58, !13}
!59 = distinct !{!59, !13}
!60 = distinct !{!60, !13}
!61 = distinct !{!61, !13}


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