; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z21testlevel2unsymmetricPN11alglib_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::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::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.sparsegenerator = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

42:                                               ; preds = %622, %1
  %43 = load i64, ptr %5, align 8, !tbaa !13
  %44 = icmp sle i64 %43, 20
  br i1 %44, label %45, label %625

45:                                               ; preds = %42
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %46

46:                                               ; preds = %618, %45
  %47 = load i64, ptr %6, align 8, !tbaa !13
  %48 = icmp sle i64 %47, 20
  br i1 %48, label %49, label %621

49:                                               ; preds = %46
  %50 = load i64, ptr %5, align 8, !tbaa !13
  %51 = load i64, ptr %6, align 8, !tbaa !13
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %50, i64 noundef %51, i64 noundef 0, i64 noundef 0, ptr noundef %27, ptr noundef %52)
  br label %53

53:                                               ; preds = %616, %49
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef %27, ptr noundef %13, ptr noundef %15, ptr noundef %54)
  br i1 %55, label %56, label %617

56:                                               ; preds = %53
  %57 = load i64, ptr %5, align 8, !tbaa !13
  %58 = load i64, ptr %6, align 8, !tbaa !13
  %59 = icmp ne i64 %57, %58
  br i1 %59, label %64, label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %61)
  %63 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %62, double noundef 5.000000e-01)
  br i1 %63, label %64, label %66

64:                                               ; preds = %60, %56
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %15, ptr noundef %14, ptr noundef %65)
  br label %68

66:                                               ; preds = %60
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef %15, ptr noundef %14, ptr noundef %67)
  br label %68

68:                                               ; preds = %66, %64
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %69

69:                                               ; preds = %119, %68
  %70 = load i64, ptr %11, align 8, !tbaa !13
  %71 = load i64, ptr %5, align 8, !tbaa !13
  %72 = sub nsw i64 %71, 1
  %73 = icmp sle i64 %70, %72
  br i1 %73, label %74, label %122

74:                                               ; preds = %69
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %115, %74
  %76 = load i64, ptr %12, align 8, !tbaa !13
  %77 = load i64, ptr %6, align 8, !tbaa !13
  %78 = sub nsw i64 %77, 1
  %79 = icmp sle i64 %76, %78
  br i1 %79, label %80, label %118

80:                                               ; preds = %75
  %81 = load i64, ptr %11, align 8, !tbaa !13
  %82 = load i64, ptr %12, align 8, !tbaa !13
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %81, i64 noundef %82, ptr noundef %83)
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = load i64, ptr %11, align 8, !tbaa !13
  %88 = getelementptr inbounds ptr, ptr %86, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !13
  %91 = getelementptr inbounds double, ptr %89, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = fsub double %84, %92
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %93, ptr noundef %94)
  %96 = load double, ptr %16, align 8, !tbaa !9
  %97 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %95, double noundef %96)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %97, ptr noundef @.str.19, i32 noundef 15549, ptr noundef @.str.226)
  %98 = load i64, ptr %11, align 8, !tbaa !13
  %99 = load i64, ptr %12, align 8, !tbaa !13
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %14, i64 noundef %98, i64 noundef %99, ptr noundef %100)
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %103 = load ptr, ptr %102, align 8, !tbaa !15
  %104 = load i64, ptr %11, align 8, !tbaa !13
  %105 = getelementptr inbounds ptr, ptr %103, i64 %104
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = load i64, ptr %12, align 8, !tbaa !13
  %108 = getelementptr inbounds double, ptr %106, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !9
  %110 = fsub double %101, %109
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %110, ptr noundef %111)
  %113 = load double, ptr %16, align 8, !tbaa !9
  %114 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %112, double noundef %113)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %114, ptr noundef @.str.19, i32 noundef 15550, ptr noundef @.str.227)
  br label %115

115:                                              ; preds = %80
  %116 = load i64, ptr %12, align 8, !tbaa !13
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %12, align 8, !tbaa !13
  br label %75, !llvm.loop !16

118:                                              ; preds = %75
  br label %119

119:                                              ; preds = %118
  %120 = load i64, ptr %11, align 8, !tbaa !13
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %11, align 8, !tbaa !13
  br label %69, !llvm.loop !18

122:                                              ; preds = %69
  %123 = load i64, ptr %6, align 8, !tbaa !13
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %123, ptr noundef %124)
  %125 = load i64, ptr %6, align 8, !tbaa !13
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %125, ptr noundef %126)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %127

127:                                              ; preds = %149, %122
  %128 = load i64, ptr %12, align 8, !tbaa !13
  %129 = load i64, ptr %6, align 8, !tbaa !13
  %130 = sub nsw i64 %129, 1
  %131 = icmp sle i64 %128, %130
  br i1 %131, label %132, label %152

132:                                              ; preds = %127
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %133)
  %135 = fsub double %134, 5.000000e-01
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = load i64, ptr %12, align 8, !tbaa !13
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double %135, ptr %139, align 8, !tbaa !9
  %140 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = load i64, ptr %12, align 8, !tbaa !13
  %143 = getelementptr inbounds double, ptr %141, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !15
  %147 = load i64, ptr %12, align 8, !tbaa !13
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double %144, ptr %148, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %132
  %150 = load i64, ptr %12, align 8, !tbaa !13
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %12, align 8, !tbaa !13
  br label %127, !llvm.loop !19

152:                                              ; preds = %127
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %14, ptr noundef %7, ptr noundef %9, ptr noundef %153)
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %155 = load i64, ptr %154, align 8, !tbaa !20
  %156 = load i64, ptr %5, align 8, !tbaa !13
  %157 = icmp slt i64 %155, %156
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %157, ptr noundef @.str.19, i32 noundef 15565, ptr noundef @.str.228)
  %158 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %164

160:                                              ; preds = %152
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %161)
  %162 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %163 = trunc i8 %162 to i1
  store i1 %163, ptr %2, align 1
  store i32 1, ptr %30, align 4
  br label %629

164:                                              ; preds = %152
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %195, %164
  %166 = load i64, ptr %11, align 8, !tbaa !13
  %167 = load i64, ptr %5, align 8, !tbaa !13
  %168 = sub nsw i64 %167, 1
  %169 = icmp sle i64 %166, %168
  br i1 %169, label %170, label %198

170:                                              ; preds = %165
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = load i64, ptr %11, align 8, !tbaa !13
  %174 = getelementptr inbounds ptr, ptr %172, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 0
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = getelementptr inbounds double, ptr %178, i64 0
  %180 = load i64, ptr %6, align 8, !tbaa !13
  %181 = sub nsw i64 %180, 1
  %182 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %181)
  %183 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %176, i64 noundef 1, ptr noundef %179, i64 noundef 1, i64 noundef %182)
  store double %183, ptr %17, align 8, !tbaa !9
  %184 = load double, ptr %17, align 8, !tbaa !9
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i64, ptr %11, align 8, !tbaa !13
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !9
  %190 = fsub double %184, %189
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %190, ptr noundef %191)
  %193 = load double, ptr %16, align 8, !tbaa !9
  %194 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %192, double noundef %193)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %194, ptr noundef @.str.19, i32 noundef 15574, ptr noundef @.str.229)
  br label %195

195:                                              ; preds = %170
  %196 = load i64, ptr %11, align 8, !tbaa !13
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %11, align 8, !tbaa !13
  br label %165, !llvm.loop !25

198:                                              ; preds = %165
  %199 = load i64, ptr %5, align 8, !tbaa !13
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %199, ptr noundef %200)
  %201 = load i64, ptr %5, align 8, !tbaa !13
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %201, ptr noundef %202)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %203

203:                                              ; preds = %225, %198
  %204 = load i64, ptr %12, align 8, !tbaa !13
  %205 = load i64, ptr %5, align 8, !tbaa !13
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %228

208:                                              ; preds = %203
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %209)
  %211 = fsub double %210, 5.000000e-01
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !15
  %214 = load i64, ptr %12, align 8, !tbaa !13
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  store double %211, ptr %215, align 8, !tbaa !9
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %12, align 8, !tbaa !13
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = load i64, ptr %12, align 8, !tbaa !13
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  store double %220, ptr %224, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %208
  %226 = load i64, ptr %12, align 8, !tbaa !13
  %227 = add nsw i64 %226, 1
  store i64 %227, ptr %12, align 8, !tbaa !13
  br label %203, !llvm.loop !26

228:                                              ; preds = %203
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef %14, ptr noundef %7, ptr noundef %9, ptr noundef %229)
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %231 = load i64, ptr %230, align 8, !tbaa !20
  %232 = load i64, ptr %6, align 8, !tbaa !13
  %233 = icmp slt i64 %231, %232
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %233, ptr noundef @.str.19, i32 noundef 15588, ptr noundef @.str.230)
  %234 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %235 = trunc i8 %234 to i1
  br i1 %235, label %236, label %240

236:                                              ; preds = %228
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %237)
  %238 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %239 = trunc i8 %238 to i1
  store i1 %239, ptr %2, align 1
  store i32 1, ptr %30, align 4
  br label %629

240:                                              ; preds = %228
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %241

241:                                              ; preds = %273, %240
  %242 = load i64, ptr %12, align 8, !tbaa !13
  %243 = load i64, ptr %6, align 8, !tbaa !13
  %244 = sub nsw i64 %243, 1
  %245 = icmp sle i64 %242, %244
  br i1 %245, label %246, label %276

246:                                              ; preds = %241
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %248 = load ptr, ptr %247, align 8, !tbaa !15
  %249 = getelementptr inbounds ptr, ptr %248, i64 0
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i64, ptr %12, align 8, !tbaa !13
  %252 = getelementptr inbounds double, ptr %250, i64 %251
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 2
  %254 = load i64, ptr %253, align 8, !tbaa !27
  %255 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !15
  %257 = getelementptr inbounds double, ptr %256, i64 0
  %258 = load i64, ptr %5, align 8, !tbaa !13
  %259 = sub nsw i64 %258, 1
  %260 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %259)
  %261 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %252, i64 noundef %254, ptr noundef %257, i64 noundef 1, i64 noundef %260)
  store double %261, ptr %17, align 8, !tbaa !9
  %262 = load double, ptr %17, align 8, !tbaa !9
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !15
  %265 = load i64, ptr %12, align 8, !tbaa !13
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !9
  %268 = fsub double %262, %267
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %268, ptr noundef %269)
  %271 = load double, ptr %16, align 8, !tbaa !9
  %272 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %270, double noundef %271)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %272, ptr noundef @.str.19, i32 noundef 15597, ptr noundef @.str.231)
  br label %273

273:                                              ; preds = %246
  %274 = load i64, ptr %12, align 8, !tbaa !13
  %275 = add nsw i64 %274, 1
  store i64 %275, ptr %12, align 8, !tbaa !13
  br label %241, !llvm.loop !29

276:                                              ; preds = %241
  store i64 0, ptr %22, align 8, !tbaa !13
  br label %277

277:                                              ; preds = %502, %276
  %278 = load i64, ptr %22, align 8, !tbaa !13
  %279 = icmp sle i64 %278, 1
  br i1 %279, label %280, label %505

280:                                              ; preds = %277
  store i64 0, ptr %25, align 8, !tbaa !13
  br label %281

281:                                              ; preds = %498, %280
  %282 = load i64, ptr %25, align 8, !tbaa !13
  %283 = icmp sle i64 %282, 1
  br i1 %283, label %284, label %501

284:                                              ; preds = %281
  store i64 0, ptr %26, align 8, !tbaa !13
  br label %285

285:                                              ; preds = %494, %284
  %286 = load i64, ptr %26, align 8, !tbaa !13
  %287 = icmp sle i64 %286, 1
  br i1 %287, label %288, label %497

288:                                              ; preds = %285
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %28, i64 noundef 50, ptr noundef %289)
  store i64 %290, ptr %18, align 8, !tbaa !13
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %28, i64 noundef 50, ptr noundef %291)
  store i64 %292, ptr %19, align 8, !tbaa !13
  %293 = load i64, ptr %25, align 8, !tbaa !13
  %294 = sitofp i64 %293 to double
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %295)
  %297 = fmul double %294, %296
  store double %297, ptr %20, align 8, !tbaa !9
  %298 = load i64, ptr %26, align 8, !tbaa !13
  %299 = sitofp i64 %298 to double
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %300)
  %302 = fmul double %299, %301
  store double %302, ptr %21, align 8, !tbaa !9
  %303 = load i64, ptr %22, align 8, !tbaa !13
  %304 = icmp eq i64 %303, 0
  br i1 %304, label %305, label %308

305:                                              ; preds = %288
  %306 = load i64, ptr %5, align 8, !tbaa !13
  store i64 %306, ptr %23, align 8, !tbaa !13
  %307 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %307, ptr %24, align 8, !tbaa !13
  br label %311

308:                                              ; preds = %288
  %309 = load i64, ptr %6, align 8, !tbaa !13
  store i64 %309, ptr %23, align 8, !tbaa !13
  %310 = load i64, ptr %5, align 8, !tbaa !13
  store i64 %310, ptr %24, align 8, !tbaa !13
  br label %311

311:                                              ; preds = %308, %305
  %312 = load i64, ptr %18, align 8, !tbaa !13
  %313 = load i64, ptr %24, align 8, !tbaa !13
  %314 = add nsw i64 %312, %313
  %315 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %314, ptr noundef %315)
  %316 = load i64, ptr %18, align 8, !tbaa !13
  %317 = load i64, ptr %24, align 8, !tbaa !13
  %318 = add nsw i64 %316, %317
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %318, ptr noundef %319)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %320

320:                                              ; preds = %344, %311
  %321 = load i64, ptr %12, align 8, !tbaa !13
  %322 = load i64, ptr %18, align 8, !tbaa !13
  %323 = load i64, ptr %24, align 8, !tbaa !13
  %324 = add nsw i64 %322, %323
  %325 = sub nsw i64 %324, 1
  %326 = icmp sle i64 %321, %325
  br i1 %326, label %327, label %347

327:                                              ; preds = %320
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %328)
  %330 = fsub double %329, 5.000000e-01
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !15
  %333 = load i64, ptr %12, align 8, !tbaa !13
  %334 = getelementptr inbounds double, ptr %332, i64 %333
  store double %330, ptr %334, align 8, !tbaa !9
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %336 = load ptr, ptr %335, align 8, !tbaa !15
  %337 = load i64, ptr %12, align 8, !tbaa !13
  %338 = getelementptr inbounds double, ptr %336, i64 %337
  %339 = load double, ptr %338, align 8, !tbaa !9
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = load i64, ptr %12, align 8, !tbaa !13
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  store double %339, ptr %343, align 8, !tbaa !9
  br label %344

344:                                              ; preds = %327
  %345 = load i64, ptr %12, align 8, !tbaa !13
  %346 = add nsw i64 %345, 1
  store i64 %346, ptr %12, align 8, !tbaa !13
  br label %320, !llvm.loop !30

347:                                              ; preds = %320
  %348 = load i64, ptr %19, align 8, !tbaa !13
  %349 = load i64, ptr %23, align 8, !tbaa !13
  %350 = add nsw i64 %348, %349
  %351 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %350, ptr noundef %351)
  %352 = load i64, ptr %19, align 8, !tbaa !13
  %353 = load i64, ptr %23, align 8, !tbaa !13
  %354 = add nsw i64 %352, %353
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %354, ptr noundef %355)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %356

356:                                              ; preds = %380, %347
  %357 = load i64, ptr %12, align 8, !tbaa !13
  %358 = load i64, ptr %19, align 8, !tbaa !13
  %359 = load i64, ptr %23, align 8, !tbaa !13
  %360 = add nsw i64 %358, %359
  %361 = sub nsw i64 %360, 1
  %362 = icmp sle i64 %357, %361
  br i1 %362, label %363, label %383

363:                                              ; preds = %356
  %364 = load ptr, ptr %3, align 8, !tbaa !5
  %365 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %364)
  %366 = fsub double %365, 5.000000e-01
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !15
  %369 = load i64, ptr %12, align 8, !tbaa !13
  %370 = getelementptr inbounds double, ptr %368, i64 %369
  store double %366, ptr %370, align 8, !tbaa !9
  %371 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %372 = load ptr, ptr %371, align 8, !tbaa !15
  %373 = load i64, ptr %12, align 8, !tbaa !13
  %374 = getelementptr inbounds double, ptr %372, i64 %373
  %375 = load double, ptr %374, align 8, !tbaa !9
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !15
  %378 = load i64, ptr %12, align 8, !tbaa !13
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  store double %375, ptr %379, align 8, !tbaa !9
  br label %380

380:                                              ; preds = %363
  %381 = load i64, ptr %12, align 8, !tbaa !13
  %382 = add nsw i64 %381, 1
  store i64 %382, ptr %12, align 8, !tbaa !13
  br label %356, !llvm.loop !31

383:                                              ; preds = %356
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %384

384:                                              ; preds = %457, %383
  %385 = load i64, ptr %11, align 8, !tbaa !13
  %386 = load i64, ptr %23, align 8, !tbaa !13
  %387 = sub nsw i64 %386, 1
  %388 = icmp sle i64 %385, %387
  br i1 %388, label %389, label %460

389:                                              ; preds = %384
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %390

390:                                              ; preds = %435, %389
  %391 = load i64, ptr %12, align 8, !tbaa !13
  %392 = load i64, ptr %24, align 8, !tbaa !13
  %393 = sub nsw i64 %392, 1
  %394 = icmp sle i64 %391, %393
  br i1 %394, label %395, label %438

395:                                              ; preds = %390
  %396 = load i64, ptr %22, align 8, !tbaa !13
  %397 = icmp eq i64 %396, 0
  br i1 %397, label %398, label %416

398:                                              ; preds = %395
  %399 = load double, ptr %17, align 8, !tbaa !9
  %400 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %401 = load ptr, ptr %400, align 8, !tbaa !15
  %402 = load i64, ptr %11, align 8, !tbaa !13
  %403 = getelementptr inbounds ptr, ptr %401, i64 %402
  %404 = load ptr, ptr %403, align 8, !tbaa !5
  %405 = load i64, ptr %12, align 8, !tbaa !13
  %406 = getelementptr inbounds double, ptr %404, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !9
  %408 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %409 = load ptr, ptr %408, align 8, !tbaa !15
  %410 = load i64, ptr %18, align 8, !tbaa !13
  %411 = load i64, ptr %12, align 8, !tbaa !13
  %412 = add nsw i64 %410, %411
  %413 = getelementptr inbounds double, ptr %409, i64 %412
  %414 = load double, ptr %413, align 8, !tbaa !9
  %415 = call double @llvm.fmuladd.f64(double %407, double %414, double %399)
  store double %415, ptr %17, align 8, !tbaa !9
  br label %434

416:                                              ; preds = %395
  %417 = load double, ptr %17, align 8, !tbaa !9
  %418 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %419 = load ptr, ptr %418, align 8, !tbaa !15
  %420 = load i64, ptr %12, align 8, !tbaa !13
  %421 = getelementptr inbounds ptr, ptr %419, i64 %420
  %422 = load ptr, ptr %421, align 8, !tbaa !5
  %423 = load i64, ptr %11, align 8, !tbaa !13
  %424 = getelementptr inbounds double, ptr %422, i64 %423
  %425 = load double, ptr %424, align 8, !tbaa !9
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !15
  %428 = load i64, ptr %18, align 8, !tbaa !13
  %429 = load i64, ptr %12, align 8, !tbaa !13
  %430 = add nsw i64 %428, %429
  %431 = getelementptr inbounds double, ptr %427, i64 %430
  %432 = load double, ptr %431, align 8, !tbaa !9
  %433 = call double @llvm.fmuladd.f64(double %425, double %432, double %417)
  store double %433, ptr %17, align 8, !tbaa !9
  br label %434

434:                                              ; preds = %416, %398
  br label %435

435:                                              ; preds = %434
  %436 = load i64, ptr %12, align 8, !tbaa !13
  %437 = add nsw i64 %436, 1
  store i64 %437, ptr %12, align 8, !tbaa !13
  br label %390, !llvm.loop !32

438:                                              ; preds = %390
  %439 = load double, ptr %20, align 8, !tbaa !9
  %440 = load double, ptr %17, align 8, !tbaa !9
  %441 = load double, ptr %21, align 8, !tbaa !9
  %442 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %443 = load ptr, ptr %442, align 8, !tbaa !15
  %444 = load i64, ptr %19, align 8, !tbaa !13
  %445 = load i64, ptr %11, align 8, !tbaa !13
  %446 = add nsw i64 %444, %445
  %447 = getelementptr inbounds double, ptr %443, i64 %446
  %448 = load double, ptr %447, align 8, !tbaa !9
  %449 = fmul double %441, %448
  %450 = call double @llvm.fmuladd.f64(double %439, double %440, double %449)
  %451 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %452 = load ptr, ptr %451, align 8, !tbaa !15
  %453 = load i64, ptr %19, align 8, !tbaa !13
  %454 = load i64, ptr %11, align 8, !tbaa !13
  %455 = add nsw i64 %453, %454
  %456 = getelementptr inbounds double, ptr %452, i64 %455
  store double %450, ptr %456, align 8, !tbaa !9
  br label %457

457:                                              ; preds = %438
  %458 = load i64, ptr %11, align 8, !tbaa !13
  %459 = add nsw i64 %458, 1
  store i64 %459, ptr %11, align 8, !tbaa !13
  br label %384, !llvm.loop !33

460:                                              ; preds = %384
  %461 = load double, ptr %20, align 8, !tbaa !9
  %462 = load i64, ptr %22, align 8, !tbaa !13
  %463 = load i64, ptr %18, align 8, !tbaa !13
  %464 = load double, ptr %21, align 8, !tbaa !9
  %465 = load i64, ptr %19, align 8, !tbaa !13
  %466 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsegemvEPKNS_12sparsematrixEdlPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(ptr noundef %14, double noundef %461, i64 noundef %462, ptr noundef %7, i64 noundef %463, double noundef %464, ptr noundef %9, i64 noundef %465, ptr noundef %466)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %467

467:                                              ; preds = %490, %460
  %468 = load i64, ptr %12, align 8, !tbaa !13
  %469 = load i64, ptr %19, align 8, !tbaa !13
  %470 = load i64, ptr %23, align 8, !tbaa !13
  %471 = add nsw i64 %469, %470
  %472 = sub nsw i64 %471, 1
  %473 = icmp sle i64 %468, %472
  br i1 %473, label %474, label %493

474:                                              ; preds = %467
  %475 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %476 = load ptr, ptr %475, align 8, !tbaa !15
  %477 = load i64, ptr %12, align 8, !tbaa !13
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  %479 = load double, ptr %478, align 8, !tbaa !9
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %481 = load ptr, ptr %480, align 8, !tbaa !15
  %482 = load i64, ptr %12, align 8, !tbaa !13
  %483 = getelementptr inbounds double, ptr %481, i64 %482
  %484 = load double, ptr %483, align 8, !tbaa !9
  %485 = fsub double %479, %484
  %486 = load ptr, ptr %3, align 8, !tbaa !5
  %487 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %485, ptr noundef %486)
  %488 = load double, ptr %16, align 8, !tbaa !9
  %489 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %487, double noundef %488)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %489, ptr noundef @.str.19, i32 noundef 15668, ptr noundef @.str.232)
  br label %490

490:                                              ; preds = %474
  %491 = load i64, ptr %12, align 8, !tbaa !13
  %492 = add nsw i64 %491, 1
  store i64 %492, ptr %12, align 8, !tbaa !13
  br label %467, !llvm.loop !34

493:                                              ; preds = %467
  br label %494

494:                                              ; preds = %493
  %495 = load i64, ptr %26, align 8, !tbaa !13
  %496 = add nsw i64 %495, 1
  store i64 %496, ptr %26, align 8, !tbaa !13
  br label %285, !llvm.loop !35

497:                                              ; preds = %285
  br label %498

498:                                              ; preds = %497
  %499 = load i64, ptr %25, align 8, !tbaa !13
  %500 = add nsw i64 %499, 1
  store i64 %500, ptr %25, align 8, !tbaa !13
  br label %281, !llvm.loop !36

501:                                              ; preds = %281
  br label %502

502:                                              ; preds = %501
  %503 = load i64, ptr %22, align 8, !tbaa !13
  %504 = add nsw i64 %503, 1
  store i64 %504, ptr %22, align 8, !tbaa !13
  br label %277, !llvm.loop !37

505:                                              ; preds = %277
  %506 = load i64, ptr %5, align 8, !tbaa !13
  %507 = load i64, ptr %6, align 8, !tbaa !13
  %508 = icmp eq i64 %506, %507
  br i1 %508, label %509, label %616

509:                                              ; preds = %505
  %510 = load i64, ptr %6, align 8, !tbaa !13
  %511 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %510, ptr noundef %511)
  %512 = load i64, ptr %6, align 8, !tbaa !13
  %513 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %512, ptr noundef %513)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %514

514:                                              ; preds = %536, %509
  %515 = load i64, ptr %12, align 8, !tbaa !13
  %516 = load i64, ptr %6, align 8, !tbaa !13
  %517 = sub nsw i64 %516, 1
  %518 = icmp sle i64 %515, %517
  br i1 %518, label %519, label %539

519:                                              ; preds = %514
  %520 = load ptr, ptr %3, align 8, !tbaa !5
  %521 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %28, ptr noundef %520)
  %522 = fsub double %521, 5.000000e-01
  %523 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %524 = load ptr, ptr %523, align 8, !tbaa !15
  %525 = load i64, ptr %12, align 8, !tbaa !13
  %526 = getelementptr inbounds double, ptr %524, i64 %525
  store double %522, ptr %526, align 8, !tbaa !9
  %527 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %528 = load ptr, ptr %527, align 8, !tbaa !15
  %529 = load i64, ptr %12, align 8, !tbaa !13
  %530 = getelementptr inbounds double, ptr %528, i64 %529
  %531 = load double, ptr %530, align 8, !tbaa !9
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !15
  %534 = load i64, ptr %12, align 8, !tbaa !13
  %535 = getelementptr inbounds double, ptr %533, i64 %534
  store double %531, ptr %535, align 8, !tbaa !9
  br label %536

536:                                              ; preds = %519
  %537 = load i64, ptr %12, align 8, !tbaa !13
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %12, align 8, !tbaa !13
  br label %514, !llvm.loop !38

539:                                              ; preds = %514
  %540 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemv2EPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_S6_PNS_8ae_stateE(ptr noundef %14, ptr noundef %7, ptr noundef %9, ptr noundef %10, ptr noundef %540)
  %541 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %542 = load i64, ptr %541, align 8, !tbaa !20
  %543 = load i64, ptr %6, align 8, !tbaa !13
  %544 = icmp slt i64 %542, %543
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %544, ptr noundef @.str.19, i32 noundef 15687, ptr noundef @.str.233)
  %545 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 0
  %546 = load i64, ptr %545, align 8, !tbaa !20
  %547 = load i64, ptr %6, align 8, !tbaa !13
  %548 = icmp slt i64 %546, %547
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %548, ptr noundef @.str.19, i32 noundef 15688, ptr noundef @.str.234)
  %549 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %550 = trunc i8 %549 to i1
  br i1 %550, label %551, label %555

551:                                              ; preds = %539
  %552 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %552)
  %553 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %554 = trunc i8 %553 to i1
  store i1 %554, ptr %2, align 1
  store i32 1, ptr %30, align 4
  br label %629

555:                                              ; preds = %539
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %556

556:                                              ; preds = %612, %555
  %557 = load i64, ptr %12, align 8, !tbaa !13
  %558 = load i64, ptr %6, align 8, !tbaa !13
  %559 = sub nsw i64 %558, 1
  %560 = icmp sle i64 %557, %559
  br i1 %560, label %561, label %615

561:                                              ; preds = %556
  %562 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %563 = load ptr, ptr %562, align 8, !tbaa !15
  %564 = load i64, ptr %12, align 8, !tbaa !13
  %565 = getelementptr inbounds ptr, ptr %563, i64 %564
  %566 = load ptr, ptr %565, align 8, !tbaa !5
  %567 = getelementptr inbounds double, ptr %566, i64 0
  %568 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %569 = load ptr, ptr %568, align 8, !tbaa !15
  %570 = getelementptr inbounds double, ptr %569, i64 0
  %571 = load i64, ptr %6, align 8, !tbaa !13
  %572 = sub nsw i64 %571, 1
  %573 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %572)
  %574 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %567, i64 noundef 1, ptr noundef %570, i64 noundef 1, i64 noundef %573)
  store double %574, ptr %17, align 8, !tbaa !9
  %575 = load double, ptr %17, align 8, !tbaa !9
  %576 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %577 = load ptr, ptr %576, align 8, !tbaa !15
  %578 = load i64, ptr %12, align 8, !tbaa !13
  %579 = getelementptr inbounds double, ptr %577, i64 %578
  %580 = load double, ptr %579, align 8, !tbaa !9
  %581 = fsub double %575, %580
  %582 = load ptr, ptr %3, align 8, !tbaa !5
  %583 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %581, ptr noundef %582)
  %584 = load double, ptr %16, align 8, !tbaa !9
  %585 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %583, double noundef %584)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %585, ptr noundef @.str.19, i32 noundef 15697, ptr noundef @.str.235)
  %586 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %587 = load ptr, ptr %586, align 8, !tbaa !15
  %588 = getelementptr inbounds ptr, ptr %587, i64 0
  %589 = load ptr, ptr %588, align 8, !tbaa !5
  %590 = load i64, ptr %12, align 8, !tbaa !13
  %591 = getelementptr inbounds double, ptr %589, i64 %590
  %592 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 2
  %593 = load i64, ptr %592, align 8, !tbaa !27
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !15
  %596 = getelementptr inbounds double, ptr %595, i64 0
  %597 = load i64, ptr %6, align 8, !tbaa !13
  %598 = sub nsw i64 %597, 1
  %599 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %598)
  %600 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %591, i64 noundef %593, ptr noundef %596, i64 noundef 1, i64 noundef %599)
  store double %600, ptr %17, align 8, !tbaa !9
  %601 = load double, ptr %17, align 8, !tbaa !9
  %602 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %603 = load ptr, ptr %602, align 8, !tbaa !15
  %604 = load i64, ptr %12, align 8, !tbaa !13
  %605 = getelementptr inbounds double, ptr %603, i64 %604
  %606 = load double, ptr %605, align 8, !tbaa !9
  %607 = fsub double %601, %606
  %608 = load ptr, ptr %3, align 8, !tbaa !5
  %609 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %607, ptr noundef %608)
  %610 = load double, ptr %16, align 8, !tbaa !9
  %611 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %609, double noundef %610)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %29, i1 noundef zeroext %611, ptr noundef @.str.19, i32 noundef 15699, ptr noundef @.str.236)
  br label %612

612:                                              ; preds = %561
  %613 = load i64, ptr %12, align 8, !tbaa !13
  %614 = add nsw i64 %613, 1
  store i64 %614, ptr %12, align 8, !tbaa !13
  br label %556, !llvm.loop !39

615:                                              ; preds = %556
  br label %616

616:                                              ; preds = %615, %505
  br label %53, !llvm.loop !40

617:                                              ; preds = %53
  br label %618

618:                                              ; preds = %617
  %619 = load i64, ptr %6, align 8, !tbaa !13
  %620 = add nsw i64 %619, 1
  store i64 %620, ptr %6, align 8, !tbaa !13
  br label %46, !llvm.loop !41

621:                                              ; preds = %46
  br label %622

622:                                              ; preds = %621
  %623 = load i64, ptr %5, align 8, !tbaa !13
  %624 = add nsw i64 %623, 1
  store i64 %624, ptr %5, align 8, !tbaa !13
  br label %42, !llvm.loop !42

625:                                              ; preds = %42
  %626 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %626)
  %627 = load i8, ptr %29, align 1, !tbaa !11, !range !23, !noundef !24
  %628 = trunc i8 %627 to i1
  store i1 %628, ptr %2, align 1
  store i32 1, ptr %30, align 4
  br label %629

629:                                              ; preds = %625, %551, %236, %160
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %630 = load i1, ptr %2, align 1
  ret i1 %630
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21_sparsegenerator_initPvPN11alglib_impl8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !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 = !{!21, !14, i64 0}
!21 = !{!"_ZTSN11alglib_impl9ae_vectorE", !14, i64 0, !14, i64 8, !12, i64 16, !22, i64 24, !7, i64 56}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{!28, !14, i64 16}
!28 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !12, i64 32, !22, i64 40, !7, i64 72}
!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 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !17}
!41 = distinct !{!41, !17}
!42 = distinct !{!42, !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::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::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.sparsegenerator = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.233 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.234 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [23 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

.preheader243:                                    ; preds = %1, %408
  %.0211274 = phi i64 [ 1, %1 ], [ %409, %408 ]
  %19 = add nsw i64 %.0211274, -1
  br label %20

20:                                               ; preds = %.preheader243, %._crit_edge272
  %.0212273 = phi i64 [ 1, %.preheader243 ], [ %407, %._crit_edge272 ]
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %.0211274, i64 noundef %.0212273, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %10, ptr noundef %0)
  %21 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef %0)
  br i1 %21, label %.lr.ph271, label %._crit_edge272

.lr.ph271:                                        ; preds = %20
  %.not = icmp eq i64 %.0211274, %.0212273
  %22 = add nsw i64 %.0212273, -1
  br label %23

23:                                               ; preds = %.lr.ph271, %.loopexit
  br i1 %.not, label %24, label %27

24:                                               ; preds = %23
  %25 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %26 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %25, double noundef 5.000000e-01)
  br i1 %26, label %27, label %28

27:                                               ; preds = %24, %23
  call void @_ZN11alglib_impl15sparsecopytocrsEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %0)
  br label %.preheader238.preheader

28:                                               ; preds = %24
  call void @_ZN11alglib_impl15sparsecopytosksEPKNS_12sparsematrixEPS0_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %0)
  br label %.preheader238.preheader

.preheader238.preheader:                          ; preds = %28, %27
  br label %.preheader238

.preheader238:                                    ; preds = %.preheader238.preheader, %49
  %.0213246 = phi i64 [ %50, %49 ], [ 0, %.preheader238.preheader ]
  br label %29

29:                                               ; preds = %.preheader238, %29
  %.0216245 = phi i64 [ 0, %.preheader238 ], [ %48, %29 ]
  %30 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0213246, i64 noundef %.0216245, ptr noundef %0)
  %31 = load ptr, ptr %13, align 8, !tbaa !9
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0213246
  %33 = load ptr, ptr %32, align 8, !tbaa !10
  %34 = getelementptr inbounds double, ptr %33, i64 %.0216245
  %35 = load double, ptr %34, align 8, !tbaa !12
  %36 = fsub double %30, %35
  %37 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %36, ptr noundef %0)
  %38 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %37, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %38, ptr noundef nonnull @.str.19, i32 noundef 15549, ptr noundef nonnull @.str.226)
  %39 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0213246, i64 noundef %.0216245, ptr noundef %0)
  %40 = load ptr, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0213246
  %42 = load ptr, ptr %41, align 8, !tbaa !10
  %43 = getelementptr inbounds double, ptr %42, i64 %.0216245
  %44 = load double, ptr %43, align 8, !tbaa !12
  %45 = fsub double %39, %44
  %46 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %45, ptr noundef %0)
  %47 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %46, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %47, ptr noundef nonnull @.str.19, i32 noundef 15550, ptr noundef nonnull @.str.227)
  %48 = add nuw nsw i64 %.0216245, 1
  %exitcond.not = icmp eq i64 %48, %.0212273
  br i1 %exitcond.not, label %49, label %29, !llvm.loop !14

49:                                               ; preds = %29
  %50 = add nuw nsw i64 %.0213246, 1
  %exitcond277.not = icmp eq i64 %50, %.0211274
  br i1 %exitcond277.not, label %51, label %.preheader238, !llvm.loop !16

51:                                               ; preds = %49
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0212273, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0212273, ptr noundef %0)
  br label %52

52:                                               ; preds = %51, %52
  %.1217247 = phi i64 [ 0, %51 ], [ %62, %52 ]
  %53 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %54 = fadd double %53, -5.000000e-01
  %55 = load ptr, ptr %14, align 8, !tbaa !9
  %56 = getelementptr inbounds double, ptr %55, i64 %.1217247
  store double %54, ptr %56, align 8, !tbaa !12
  %57 = load ptr, ptr %14, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %57, i64 %.1217247
  %59 = load double, ptr %58, align 8, !tbaa !12
  %60 = load ptr, ptr %15, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %60, i64 %.1217247
  store double %59, ptr %61, align 8, !tbaa !12
  %62 = add nuw nsw i64 %.1217247, 1
  %exitcond278.not = icmp eq i64 %62, %.0212273
  br i1 %exitcond278.not, label %63, label %52, !llvm.loop !17

63:                                               ; preds = %52
  call void @_ZN11alglib_impl8sparsemvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  %64 = load i64, ptr %5, align 8, !tbaa !18
  %65 = icmp slt i64 %64, %.0211274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %65, ptr noundef nonnull @.str.19, i32 noundef 15565, ptr noundef nonnull @.str.228)
  %66 = load i8, ptr %12, align 1, !tbaa !5, !range !22, !noundef !23
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %.loopexit301, label %.preheader242

.preheader242:                                    ; preds = %63, %.preheader242
  %.1248 = phi i64 [ %80, %.preheader242 ], [ 0, %63 ]
  %68 = load ptr, ptr %13, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.1248
  %70 = load ptr, ptr %69, align 8, !tbaa !10
  %71 = load ptr, ptr %15, align 8, !tbaa !9
  %72 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  %73 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %70, i64 noundef 1, ptr noundef %71, i64 noundef 1, i64 noundef %72)
  %74 = load ptr, ptr %16, align 8, !tbaa !9
  %75 = getelementptr inbounds double, ptr %74, i64 %.1248
  %76 = load double, ptr %75, align 8, !tbaa !12
  %77 = fsub double %73, %76
  %78 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %77, ptr noundef %0)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %78, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %79, ptr noundef nonnull @.str.19, i32 noundef 15574, ptr noundef nonnull @.str.229)
  %80 = add nuw nsw i64 %.1248, 1
  %exitcond279.not = icmp eq i64 %80, %.0211274
  br i1 %exitcond279.not, label %81, label %.preheader242, !llvm.loop !24

81:                                               ; preds = %.preheader242
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0211274, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0211274, ptr noundef %0)
  br label %82

82:                                               ; preds = %81, %82
  %.2218249 = phi i64 [ 0, %81 ], [ %92, %82 ]
  %83 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %84 = fadd double %83, -5.000000e-01
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 %.2218249
  store double %84, ptr %86, align 8, !tbaa !12
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = getelementptr inbounds double, ptr %87, i64 %.2218249
  %89 = load double, ptr %88, align 8, !tbaa !12
  %90 = load ptr, ptr %15, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 %.2218249
  store double %89, ptr %91, align 8, !tbaa !12
  %92 = add nuw nsw i64 %.2218249, 1
  %exitcond280.not = icmp eq i64 %92, %.0211274
  br i1 %exitcond280.not, label %93, label %82, !llvm.loop !25

93:                                               ; preds = %82
  call void @_ZN11alglib_impl9sparsemtvEPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  %94 = load i64, ptr %5, align 8, !tbaa !18
  %95 = icmp slt i64 %94, %.0212273
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %95, ptr noundef nonnull @.str.19, i32 noundef 15588, ptr noundef nonnull @.str.230)
  %96 = load i8, ptr %12, align 1, !tbaa !5, !range !22, !noundef !23
  %97 = trunc nuw i8 %96 to i1
  br i1 %97, label %.loopexit301, label %.preheader241

.preheader241:                                    ; preds = %93, %.preheader241
  %.3250 = phi i64 [ %111, %.preheader241 ], [ 0, %93 ]
  %98 = load ptr, ptr %13, align 8, !tbaa !9
  %99 = load ptr, ptr %98, align 8, !tbaa !10
  %100 = getelementptr inbounds double, ptr %99, i64 %.3250
  %101 = load i64, ptr %17, align 8, !tbaa !26
  %102 = load ptr, ptr %15, align 8, !tbaa !9
  %103 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %19)
  %104 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %100, i64 noundef %101, ptr noundef %102, i64 noundef 1, i64 noundef %103)
  %105 = load ptr, ptr %16, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %105, i64 %.3250
  %107 = load double, ptr %106, align 8, !tbaa !12
  %108 = fsub double %104, %107
  %109 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %108, ptr noundef %0)
  %110 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %109, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %110, ptr noundef nonnull @.str.19, i32 noundef 15597, ptr noundef nonnull @.str.231)
  %111 = add nuw nsw i64 %.3250, 1
  %exitcond281.not = icmp eq i64 %111, %.0212273
  br i1 %exitcond281.not, label %.preheader237, label %.preheader241, !llvm.loop !28

.preheader237:                                    ; preds = %.preheader241, %359
  %112 = phi i1 [ false, %359 ], [ true, %.preheader241 ]
  %.0209267 = phi i64 [ 1, %359 ], [ 0, %.preheader241 ]
  %.0211..0212 = select i1 %112, i64 %.0211274, i64 %.0212273
  %.0212..0211 = select i1 %112, i64 %.0212273, i64 %.0211274
  %xtraiter = and i64 %.0212..0211, 3
  %113 = icmp ult i64 %.0212..0211, 4
  %unroll_iter = and i64 %.0212..0211, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter316 = and i64 %.0212..0211, 3
  %114 = icmp ult i64 %.0212..0211, 4
  %unroll_iter320 = and i64 %.0212..0211, 9223372036854775804
  %lcmp.mod318.not = icmp eq i64 %xtraiter316, 0
  %xtraiter324 = and i64 %.0212..0211, 3
  %115 = icmp ult i64 %.0212..0211, 4
  %unroll_iter328 = and i64 %.0212..0211, 9223372036854775804
  %lcmp.mod326.not = icmp eq i64 %xtraiter324, 0
  %xtraiter331 = and i64 %.0212..0211, 3
  %116 = icmp ult i64 %.0212..0211, 4
  %unroll_iter335 = and i64 %.0212..0211, 9223372036854775804
  %lcmp.mod333.not = icmp eq i64 %xtraiter331, 0
  br label %.preheader236

.preheader236:                                    ; preds = %.preheader237, %._crit_edge264.1
  %117 = phi i1 [ true, %.preheader237 ], [ false, %._crit_edge264.1 ]
  %.0206266 = phi double [ 0.000000e+00, %.preheader237 ], [ 1.000000e+00, %._crit_edge264.1 ]
  %118 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 50, ptr noundef %0)
  %119 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 50, ptr noundef %0)
  %120 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %121 = fmul double %120, %.0206266
  %122 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %123 = fmul double %122, 0.000000e+00
  %124 = add nsw i64 %118, %.0212..0211
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %124, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %124, ptr noundef %0)
  %.not229.not251 = icmp sgt i64 %124, 0
  br i1 %.not229.not251, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader236, %.lr.ph
  %.4252 = phi i64 [ %134, %.lr.ph ], [ 0, %.preheader236 ]
  %125 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %126 = fadd double %125, -5.000000e-01
  %127 = load ptr, ptr %14, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %127, i64 %.4252
  store double %126, ptr %128, align 8, !tbaa !12
  %129 = load ptr, ptr %14, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %129, i64 %.4252
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = load ptr, ptr %15, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 %.4252
  store double %131, ptr %133, align 8, !tbaa !12
  %134 = add nuw nsw i64 %.4252, 1
  %exitcond282.not = icmp eq i64 %134, %124
  br i1 %exitcond282.not, label %._crit_edge, label %.lr.ph, !llvm.loop !29

._crit_edge:                                      ; preds = %.lr.ph, %.preheader236
  %135 = add nsw i64 %119, %.0211..0212
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %135, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %135, ptr noundef %0)
  %.not230.not253 = icmp sgt i64 %135, 0
  br i1 %.not230.not253, label %.lr.ph256, label %.preheader.preheader

.lr.ph256:                                        ; preds = %._crit_edge, %.lr.ph256
  %.5254 = phi i64 [ %145, %.lr.ph256 ], [ 0, %._crit_edge ]
  %136 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %137 = fadd double %136, -5.000000e-01
  %138 = load ptr, ptr %16, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %138, i64 %.5254
  store double %137, ptr %139, align 8, !tbaa !12
  %140 = load ptr, ptr %16, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %140, i64 %.5254
  %142 = load double, ptr %141, align 8, !tbaa !12
  %143 = load ptr, ptr %18, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %143, i64 %.5254
  store double %142, ptr %144, align 8, !tbaa !12
  %145 = add nuw nsw i64 %.5254, 1
  %exitcond283.not = icmp eq i64 %145, %135
  br i1 %exitcond283.not, label %.preheader.preheader, label %.lr.ph256, !llvm.loop !30

.preheader.preheader:                             ; preds = %.lr.ph256, %._crit_edge
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.split.us
  %.2259 = phi i64 [ %227, %.split.us ], [ 0, %.preheader.preheader ]
  %146 = load ptr, ptr %13, align 8
  %147 = load ptr, ptr %15, align 8
  %148 = getelementptr double, ptr %147, i64 %118
  br i1 %112, label %.preheader.split.us, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  br i1 %113, label %.split.us.loopexit307.unr-lcssa, label %.preheader.split

.preheader.split.us:                              ; preds = %.preheader
  %149 = getelementptr inbounds ptr, ptr %146, i64 %.2259
  %150 = load ptr, ptr %149, align 8, !tbaa !10
  br i1 %114, label %.split.us.loopexit.unr-lcssa, label %.preheader.split.us.new

.preheader.split.us.new:                          ; preds = %.preheader.split.us, %.preheader.split.us.new
  %.0214258.us = phi double [ %173, %.preheader.split.us.new ], [ 0.000000e+00, %.preheader.split.us ]
  %.6257.us = phi i64 [ %174, %.preheader.split.us.new ], [ 0, %.preheader.split.us ]
  %niter321 = phi i64 [ %niter321.next.3, %.preheader.split.us.new ], [ 0, %.preheader.split.us ]
  %151 = getelementptr inbounds double, ptr %150, i64 %.6257.us
  %152 = load double, ptr %151, align 8, !tbaa !12
  %153 = getelementptr double, ptr %148, i64 %.6257.us
  %154 = load double, ptr %153, align 8, !tbaa !12
  %155 = call double @llvm.fmuladd.f64(double %152, double %154, double %.0214258.us)
  %156 = or disjoint i64 %.6257.us, 1
  %157 = getelementptr inbounds double, ptr %150, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !12
  %159 = getelementptr double, ptr %148, i64 %156
  %160 = load double, ptr %159, align 8, !tbaa !12
  %161 = call double @llvm.fmuladd.f64(double %158, double %160, double %155)
  %162 = or disjoint i64 %.6257.us, 2
  %163 = getelementptr inbounds double, ptr %150, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !12
  %165 = getelementptr double, ptr %148, i64 %162
  %166 = load double, ptr %165, align 8, !tbaa !12
  %167 = call double @llvm.fmuladd.f64(double %164, double %166, double %161)
  %168 = or disjoint i64 %.6257.us, 3
  %169 = getelementptr inbounds double, ptr %150, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !12
  %171 = getelementptr double, ptr %148, i64 %168
  %172 = load double, ptr %171, align 8, !tbaa !12
  %173 = call double @llvm.fmuladd.f64(double %170, double %172, double %167)
  %174 = add nuw nsw i64 %.6257.us, 4
  %niter321.next.3 = add i64 %niter321, 4
  %niter321.ncmp.3 = icmp eq i64 %niter321.next.3, %unroll_iter320
  br i1 %niter321.ncmp.3, label %.split.us.loopexit.unr-lcssa, label %.preheader.split.us.new, !llvm.loop !31

.preheader.split:                                 ; preds = %.preheader.split.preheader, %.preheader.split
  %.0214258 = phi double [ %205, %.preheader.split ], [ 0.000000e+00, %.preheader.split.preheader ]
  %.6257 = phi i64 [ %206, %.preheader.split ], [ 0, %.preheader.split.preheader ]
  %niter = phi i64 [ %niter.next.3, %.preheader.split ], [ 0, %.preheader.split.preheader ]
  %175 = getelementptr inbounds ptr, ptr %146, i64 %.6257
  %176 = load ptr, ptr %175, align 8, !tbaa !10
  %177 = getelementptr inbounds double, ptr %176, i64 %.2259
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = getelementptr double, ptr %148, i64 %.6257
  %180 = load double, ptr %179, align 8, !tbaa !12
  %181 = call double @llvm.fmuladd.f64(double %178, double %180, double %.0214258)
  %182 = or disjoint i64 %.6257, 1
  %183 = getelementptr inbounds ptr, ptr %146, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !10
  %185 = getelementptr inbounds double, ptr %184, i64 %.2259
  %186 = load double, ptr %185, align 8, !tbaa !12
  %187 = getelementptr double, ptr %148, i64 %182
  %188 = load double, ptr %187, align 8, !tbaa !12
  %189 = call double @llvm.fmuladd.f64(double %186, double %188, double %181)
  %190 = or disjoint i64 %.6257, 2
  %191 = getelementptr inbounds ptr, ptr %146, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !10
  %193 = getelementptr inbounds double, ptr %192, i64 %.2259
  %194 = load double, ptr %193, align 8, !tbaa !12
  %195 = getelementptr double, ptr %148, i64 %190
  %196 = load double, ptr %195, align 8, !tbaa !12
  %197 = call double @llvm.fmuladd.f64(double %194, double %196, double %189)
  %198 = or disjoint i64 %.6257, 3
  %199 = getelementptr inbounds ptr, ptr %146, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !10
  %201 = getelementptr inbounds double, ptr %200, i64 %.2259
  %202 = load double, ptr %201, align 8, !tbaa !12
  %203 = getelementptr double, ptr %148, i64 %198
  %204 = load double, ptr %203, align 8, !tbaa !12
  %205 = call double @llvm.fmuladd.f64(double %202, double %204, double %197)
  %206 = add nuw nsw i64 %.6257, 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 %.split.us.loopexit307.unr-lcssa, label %.preheader.split, !llvm.loop !31

.split.us.loopexit.unr-lcssa:                     ; preds = %.preheader.split.us.new, %.preheader.split.us
  %.lcssa309.ph = phi double [ poison, %.preheader.split.us ], [ %173, %.preheader.split.us.new ]
  %.0214258.us.unr = phi double [ 0.000000e+00, %.preheader.split.us ], [ %173, %.preheader.split.us.new ]
  %.6257.us.unr = phi i64 [ 0, %.preheader.split.us ], [ %174, %.preheader.split.us.new ]
  br i1 %lcmp.mod318.not, label %.split.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %.split.us.loopexit.unr-lcssa, %.epil.preheader
  %.0214258.us.epil = phi double [ %211, %.epil.preheader ], [ %.0214258.us.unr, %.split.us.loopexit.unr-lcssa ]
  %.6257.us.epil = phi i64 [ %212, %.epil.preheader ], [ %.6257.us.unr, %.split.us.loopexit.unr-lcssa ]
  %epil.iter317 = phi i64 [ %epil.iter317.next, %.epil.preheader ], [ 0, %.split.us.loopexit.unr-lcssa ]
  %207 = getelementptr inbounds double, ptr %150, i64 %.6257.us.epil
  %208 = load double, ptr %207, align 8, !tbaa !12
  %209 = getelementptr double, ptr %148, i64 %.6257.us.epil
  %210 = load double, ptr %209, align 8, !tbaa !12
  %211 = call double @llvm.fmuladd.f64(double %208, double %210, double %.0214258.us.epil)
  %212 = add nuw nsw i64 %.6257.us.epil, 1
  %epil.iter317.next = add i64 %epil.iter317, 1
  %epil.iter317.cmp.not = icmp eq i64 %epil.iter317.next, %xtraiter316
  br i1 %epil.iter317.cmp.not, label %.split.us, label %.epil.preheader, !llvm.loop !32

.split.us.loopexit307.unr-lcssa:                  ; preds = %.preheader.split, %.preheader.split.preheader
  %.lcssa.ph = phi double [ poison, %.preheader.split.preheader ], [ %205, %.preheader.split ]
  %.0214258.unr = phi double [ 0.000000e+00, %.preheader.split.preheader ], [ %205, %.preheader.split ]
  %.6257.unr = phi i64 [ 0, %.preheader.split.preheader ], [ %206, %.preheader.split ]
  br i1 %lcmp.mod.not, label %.split.us, label %.preheader.split.epil

.preheader.split.epil:                            ; preds = %.split.us.loopexit307.unr-lcssa, %.preheader.split.epil
  %.0214258.epil = phi double [ %219, %.preheader.split.epil ], [ %.0214258.unr, %.split.us.loopexit307.unr-lcssa ]
  %.6257.epil = phi i64 [ %220, %.preheader.split.epil ], [ %.6257.unr, %.split.us.loopexit307.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.split.epil ], [ 0, %.split.us.loopexit307.unr-lcssa ]
  %213 = getelementptr inbounds ptr, ptr %146, i64 %.6257.epil
  %214 = load ptr, ptr %213, align 8, !tbaa !10
  %215 = getelementptr inbounds double, ptr %214, i64 %.2259
  %216 = load double, ptr %215, align 8, !tbaa !12
  %217 = getelementptr double, ptr %148, i64 %.6257.epil
  %218 = load double, ptr %217, align 8, !tbaa !12
  %219 = call double @llvm.fmuladd.f64(double %216, double %218, double %.0214258.epil)
  %220 = add nuw nsw i64 %.6257.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.split.us, label %.preheader.split.epil, !llvm.loop !34

.split.us:                                        ; preds = %.split.us.loopexit307.unr-lcssa, %.preheader.split.epil, %.split.us.loopexit.unr-lcssa, %.epil.preheader
  %.us-phi = phi double [ %.lcssa309.ph, %.split.us.loopexit.unr-lcssa ], [ %211, %.epil.preheader ], [ %.lcssa.ph, %.split.us.loopexit307.unr-lcssa ], [ %219, %.preheader.split.epil ]
  %221 = load ptr, ptr %18, align 8, !tbaa !9
  %222 = getelementptr double, ptr %221, i64 %119
  %223 = getelementptr double, ptr %222, i64 %.2259
  %224 = load double, ptr %223, align 8, !tbaa !12
  %225 = fmul double %123, %224
  %226 = call double @llvm.fmuladd.f64(double %121, double %.us-phi, double %225)
  store double %226, ptr %223, align 8, !tbaa !12
  %227 = add nuw nsw i64 %.2259, 1
  %exitcond288.not = icmp eq i64 %227, %.0211..0212
  br i1 %exitcond288.not, label %228, label %.preheader, !llvm.loop !35

228:                                              ; preds = %.split.us
  call void @_ZN11alglib_impl10sparsegemvEPKNS_12sparsematrixEdlPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(ptr noundef nonnull %8, double noundef %121, i64 noundef %.0209267, ptr noundef nonnull %3, i64 noundef %118, double noundef %123, ptr noundef nonnull %5, i64 noundef %119, ptr noundef %0)
  br i1 %.not230.not253, label %.lr.ph263, label %._crit_edge264

.lr.ph263:                                        ; preds = %228, %.lr.ph263
  %.7261 = phi i64 [ %238, %.lr.ph263 ], [ 0, %228 ]
  %229 = load ptr, ptr %16, align 8, !tbaa !9
  %230 = getelementptr inbounds double, ptr %229, i64 %.7261
  %231 = load double, ptr %230, align 8, !tbaa !12
  %232 = load ptr, ptr %18, align 8, !tbaa !9
  %233 = getelementptr inbounds double, ptr %232, i64 %.7261
  %234 = load double, ptr %233, align 8, !tbaa !12
  %235 = fsub double %231, %234
  %236 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %235, ptr noundef %0)
  %237 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %236, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %237, ptr noundef nonnull @.str.19, i32 noundef 15668, ptr noundef nonnull @.str.232)
  %238 = add nuw nsw i64 %.7261, 1
  %exitcond289.not = icmp eq i64 %238, %135
  br i1 %exitcond289.not, label %._crit_edge264, label %.lr.ph263, !llvm.loop !36

._crit_edge264:                                   ; preds = %.lr.ph263, %228
  %239 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 50, ptr noundef %0)
  %240 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 50, ptr noundef %0)
  %241 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %242 = fmul double %241, %.0206266
  %243 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %244 = add nsw i64 %239, %.0212..0211
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %244, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %244, ptr noundef %0)
  %.not229.not251.1 = icmp sgt i64 %244, 0
  br i1 %.not229.not251.1, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge264, %.lr.ph.1
  %.4252.1 = phi i64 [ %254, %.lr.ph.1 ], [ 0, %._crit_edge264 ]
  %245 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %246 = fadd double %245, -5.000000e-01
  %247 = load ptr, ptr %14, align 8, !tbaa !9
  %248 = getelementptr inbounds double, ptr %247, i64 %.4252.1
  store double %246, ptr %248, align 8, !tbaa !12
  %249 = load ptr, ptr %14, align 8, !tbaa !9
  %250 = getelementptr inbounds double, ptr %249, i64 %.4252.1
  %251 = load double, ptr %250, align 8, !tbaa !12
  %252 = load ptr, ptr %15, align 8, !tbaa !9
  %253 = getelementptr inbounds double, ptr %252, i64 %.4252.1
  store double %251, ptr %253, align 8, !tbaa !12
  %254 = add nuw nsw i64 %.4252.1, 1
  %exitcond282.1.not = icmp eq i64 %254, %244
  br i1 %exitcond282.1.not, label %._crit_edge.1, label %.lr.ph.1, !llvm.loop !29

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge264
  %255 = add nsw i64 %240, %.0211..0212
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %255, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %255, ptr noundef %0)
  %.not230.not253.1 = icmp sgt i64 %255, 0
  br i1 %.not230.not253.1, label %.lr.ph256.1, label %.preheader.1.preheader

.lr.ph256.1:                                      ; preds = %._crit_edge.1, %.lr.ph256.1
  %.5254.1 = phi i64 [ %265, %.lr.ph256.1 ], [ 0, %._crit_edge.1 ]
  %256 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %257 = fadd double %256, -5.000000e-01
  %258 = load ptr, ptr %16, align 8, !tbaa !9
  %259 = getelementptr inbounds double, ptr %258, i64 %.5254.1
  store double %257, ptr %259, align 8, !tbaa !12
  %260 = load ptr, ptr %16, align 8, !tbaa !9
  %261 = getelementptr inbounds double, ptr %260, i64 %.5254.1
  %262 = load double, ptr %261, align 8, !tbaa !12
  %263 = load ptr, ptr %18, align 8, !tbaa !9
  %264 = getelementptr inbounds double, ptr %263, i64 %.5254.1
  store double %262, ptr %264, align 8, !tbaa !12
  %265 = add nuw nsw i64 %.5254.1, 1
  %exitcond283.1.not = icmp eq i64 %265, %255
  br i1 %exitcond283.1.not, label %.preheader.1.preheader, label %.lr.ph256.1, !llvm.loop !30

.preheader.1.preheader:                           ; preds = %.lr.ph256.1, %._crit_edge.1
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.1.preheader, %.split.us.1
  %.2259.1 = phi i64 [ %347, %.split.us.1 ], [ 0, %.preheader.1.preheader ]
  %266 = load ptr, ptr %13, align 8
  %267 = load ptr, ptr %15, align 8
  %268 = getelementptr double, ptr %267, i64 %239
  br i1 %112, label %.preheader.split.us.1, label %.preheader.split.1.preheader

.preheader.split.1.preheader:                     ; preds = %.preheader.1
  br i1 %115, label %.split.us.1.loopexit306.unr-lcssa, label %.preheader.split.1

.preheader.split.1:                               ; preds = %.preheader.split.1.preheader, %.preheader.split.1
  %.0214258.1 = phi double [ %299, %.preheader.split.1 ], [ 0.000000e+00, %.preheader.split.1.preheader ]
  %.6257.1 = phi i64 [ %300, %.preheader.split.1 ], [ 0, %.preheader.split.1.preheader ]
  %niter329 = phi i64 [ %niter329.next.3, %.preheader.split.1 ], [ 0, %.preheader.split.1.preheader ]
  %269 = getelementptr inbounds ptr, ptr %266, i64 %.6257.1
  %270 = load ptr, ptr %269, align 8, !tbaa !10
  %271 = getelementptr inbounds double, ptr %270, i64 %.2259.1
  %272 = load double, ptr %271, align 8, !tbaa !12
  %273 = getelementptr double, ptr %268, i64 %.6257.1
  %274 = load double, ptr %273, align 8, !tbaa !12
  %275 = call double @llvm.fmuladd.f64(double %272, double %274, double %.0214258.1)
  %276 = or disjoint i64 %.6257.1, 1
  %277 = getelementptr inbounds ptr, ptr %266, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !10
  %279 = getelementptr inbounds double, ptr %278, i64 %.2259.1
  %280 = load double, ptr %279, align 8, !tbaa !12
  %281 = getelementptr double, ptr %268, i64 %276
  %282 = load double, ptr %281, align 8, !tbaa !12
  %283 = call double @llvm.fmuladd.f64(double %280, double %282, double %275)
  %284 = or disjoint i64 %.6257.1, 2
  %285 = getelementptr inbounds ptr, ptr %266, i64 %284
  %286 = load ptr, ptr %285, align 8, !tbaa !10
  %287 = getelementptr inbounds double, ptr %286, i64 %.2259.1
  %288 = load double, ptr %287, align 8, !tbaa !12
  %289 = getelementptr double, ptr %268, i64 %284
  %290 = load double, ptr %289, align 8, !tbaa !12
  %291 = call double @llvm.fmuladd.f64(double %288, double %290, double %283)
  %292 = or disjoint i64 %.6257.1, 3
  %293 = getelementptr inbounds ptr, ptr %266, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !10
  %295 = getelementptr inbounds double, ptr %294, i64 %.2259.1
  %296 = load double, ptr %295, align 8, !tbaa !12
  %297 = getelementptr double, ptr %268, i64 %292
  %298 = load double, ptr %297, align 8, !tbaa !12
  %299 = call double @llvm.fmuladd.f64(double %296, double %298, double %291)
  %300 = add nuw nsw i64 %.6257.1, 4
  %niter329.next.3 = add i64 %niter329, 4
  %niter329.ncmp.3 = icmp eq i64 %niter329.next.3, %unroll_iter328
  br i1 %niter329.ncmp.3, label %.split.us.1.loopexit306.unr-lcssa, label %.preheader.split.1, !llvm.loop !31

.preheader.split.us.1:                            ; preds = %.preheader.1
  %301 = getelementptr inbounds ptr, ptr %266, i64 %.2259.1
  %302 = load ptr, ptr %301, align 8, !tbaa !10
  br i1 %116, label %.split.us.1.loopexit.unr-lcssa, label %.preheader.split.us.1.new

.preheader.split.us.1.new:                        ; preds = %.preheader.split.us.1, %.preheader.split.us.1.new
  %.0214258.us.1 = phi double [ %325, %.preheader.split.us.1.new ], [ 0.000000e+00, %.preheader.split.us.1 ]
  %.6257.us.1 = phi i64 [ %326, %.preheader.split.us.1.new ], [ 0, %.preheader.split.us.1 ]
  %niter336 = phi i64 [ %niter336.next.3, %.preheader.split.us.1.new ], [ 0, %.preheader.split.us.1 ]
  %303 = getelementptr inbounds double, ptr %302, i64 %.6257.us.1
  %304 = load double, ptr %303, align 8, !tbaa !12
  %305 = getelementptr double, ptr %268, i64 %.6257.us.1
  %306 = load double, ptr %305, align 8, !tbaa !12
  %307 = call double @llvm.fmuladd.f64(double %304, double %306, double %.0214258.us.1)
  %308 = or disjoint i64 %.6257.us.1, 1
  %309 = getelementptr inbounds double, ptr %302, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !12
  %311 = getelementptr double, ptr %268, i64 %308
  %312 = load double, ptr %311, align 8, !tbaa !12
  %313 = call double @llvm.fmuladd.f64(double %310, double %312, double %307)
  %314 = or disjoint i64 %.6257.us.1, 2
  %315 = getelementptr inbounds double, ptr %302, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !12
  %317 = getelementptr double, ptr %268, i64 %314
  %318 = load double, ptr %317, align 8, !tbaa !12
  %319 = call double @llvm.fmuladd.f64(double %316, double %318, double %313)
  %320 = or disjoint i64 %.6257.us.1, 3
  %321 = getelementptr inbounds double, ptr %302, i64 %320
  %322 = load double, ptr %321, align 8, !tbaa !12
  %323 = getelementptr double, ptr %268, i64 %320
  %324 = load double, ptr %323, align 8, !tbaa !12
  %325 = call double @llvm.fmuladd.f64(double %322, double %324, double %319)
  %326 = add nuw nsw i64 %.6257.us.1, 4
  %niter336.next.3 = add i64 %niter336, 4
  %niter336.ncmp.3 = icmp eq i64 %niter336.next.3, %unroll_iter335
  br i1 %niter336.ncmp.3, label %.split.us.1.loopexit.unr-lcssa, label %.preheader.split.us.1.new, !llvm.loop !31

.split.us.1.loopexit.unr-lcssa:                   ; preds = %.preheader.split.us.1.new, %.preheader.split.us.1
  %.lcssa311.ph = phi double [ poison, %.preheader.split.us.1 ], [ %325, %.preheader.split.us.1.new ]
  %.0214258.us.1.unr = phi double [ 0.000000e+00, %.preheader.split.us.1 ], [ %325, %.preheader.split.us.1.new ]
  %.6257.us.1.unr = phi i64 [ 0, %.preheader.split.us.1 ], [ %326, %.preheader.split.us.1.new ]
  br i1 %lcmp.mod333.not, label %.split.us.1, label %.epil.preheader330

.epil.preheader330:                               ; preds = %.split.us.1.loopexit.unr-lcssa, %.epil.preheader330
  %.0214258.us.1.epil = phi double [ %331, %.epil.preheader330 ], [ %.0214258.us.1.unr, %.split.us.1.loopexit.unr-lcssa ]
  %.6257.us.1.epil = phi i64 [ %332, %.epil.preheader330 ], [ %.6257.us.1.unr, %.split.us.1.loopexit.unr-lcssa ]
  %epil.iter332 = phi i64 [ %epil.iter332.next, %.epil.preheader330 ], [ 0, %.split.us.1.loopexit.unr-lcssa ]
  %327 = getelementptr inbounds double, ptr %302, i64 %.6257.us.1.epil
  %328 = load double, ptr %327, align 8, !tbaa !12
  %329 = getelementptr double, ptr %268, i64 %.6257.us.1.epil
  %330 = load double, ptr %329, align 8, !tbaa !12
  %331 = call double @llvm.fmuladd.f64(double %328, double %330, double %.0214258.us.1.epil)
  %332 = add nuw nsw i64 %.6257.us.1.epil, 1
  %epil.iter332.next = add i64 %epil.iter332, 1
  %epil.iter332.cmp.not = icmp eq i64 %epil.iter332.next, %xtraiter331
  br i1 %epil.iter332.cmp.not, label %.split.us.1, label %.epil.preheader330, !llvm.loop !37

.split.us.1.loopexit306.unr-lcssa:                ; preds = %.preheader.split.1, %.preheader.split.1.preheader
  %.lcssa310.ph = phi double [ poison, %.preheader.split.1.preheader ], [ %299, %.preheader.split.1 ]
  %.0214258.1.unr = phi double [ 0.000000e+00, %.preheader.split.1.preheader ], [ %299, %.preheader.split.1 ]
  %.6257.1.unr = phi i64 [ 0, %.preheader.split.1.preheader ], [ %300, %.preheader.split.1 ]
  br i1 %lcmp.mod326.not, label %.split.us.1, label %.preheader.split.1.epil

.preheader.split.1.epil:                          ; preds = %.split.us.1.loopexit306.unr-lcssa, %.preheader.split.1.epil
  %.0214258.1.epil = phi double [ %339, %.preheader.split.1.epil ], [ %.0214258.1.unr, %.split.us.1.loopexit306.unr-lcssa ]
  %.6257.1.epil = phi i64 [ %340, %.preheader.split.1.epil ], [ %.6257.1.unr, %.split.us.1.loopexit306.unr-lcssa ]
  %epil.iter325 = phi i64 [ %epil.iter325.next, %.preheader.split.1.epil ], [ 0, %.split.us.1.loopexit306.unr-lcssa ]
  %333 = getelementptr inbounds ptr, ptr %266, i64 %.6257.1.epil
  %334 = load ptr, ptr %333, align 8, !tbaa !10
  %335 = getelementptr inbounds double, ptr %334, i64 %.2259.1
  %336 = load double, ptr %335, align 8, !tbaa !12
  %337 = getelementptr double, ptr %268, i64 %.6257.1.epil
  %338 = load double, ptr %337, align 8, !tbaa !12
  %339 = call double @llvm.fmuladd.f64(double %336, double %338, double %.0214258.1.epil)
  %340 = add nuw nsw i64 %.6257.1.epil, 1
  %epil.iter325.next = add i64 %epil.iter325, 1
  %epil.iter325.cmp.not = icmp eq i64 %epil.iter325.next, %xtraiter324
  br i1 %epil.iter325.cmp.not, label %.split.us.1, label %.preheader.split.1.epil, !llvm.loop !38

.split.us.1:                                      ; preds = %.split.us.1.loopexit306.unr-lcssa, %.preheader.split.1.epil, %.split.us.1.loopexit.unr-lcssa, %.epil.preheader330
  %.us-phi.1 = phi double [ %.lcssa311.ph, %.split.us.1.loopexit.unr-lcssa ], [ %331, %.epil.preheader330 ], [ %.lcssa310.ph, %.split.us.1.loopexit306.unr-lcssa ], [ %339, %.preheader.split.1.epil ]
  %341 = load ptr, ptr %18, align 8, !tbaa !9
  %342 = getelementptr double, ptr %341, i64 %240
  %343 = getelementptr double, ptr %342, i64 %.2259.1
  %344 = load double, ptr %343, align 8, !tbaa !12
  %345 = fmul double %243, %344
  %346 = call double @llvm.fmuladd.f64(double %242, double %.us-phi.1, double %345)
  store double %346, ptr %343, align 8, !tbaa !12
  %347 = add nuw nsw i64 %.2259.1, 1
  %exitcond288.1.not = icmp eq i64 %347, %.0211..0212
  br i1 %exitcond288.1.not, label %348, label %.preheader.1, !llvm.loop !35

348:                                              ; preds = %.split.us.1
  call void @_ZN11alglib_impl10sparsegemvEPKNS_12sparsematrixEdlPKNS_9ae_vectorEldPS3_lPNS_8ae_stateE(ptr noundef nonnull %8, double noundef %242, i64 noundef %.0209267, ptr noundef nonnull %3, i64 noundef %239, double noundef %243, ptr noundef nonnull %5, i64 noundef %240, ptr noundef %0)
  br i1 %.not230.not253.1, label %.lr.ph263.1, label %._crit_edge264.1

.lr.ph263.1:                                      ; preds = %348, %.lr.ph263.1
  %.7261.1 = phi i64 [ %358, %.lr.ph263.1 ], [ 0, %348 ]
  %349 = load ptr, ptr %16, align 8, !tbaa !9
  %350 = getelementptr inbounds double, ptr %349, i64 %.7261.1
  %351 = load double, ptr %350, align 8, !tbaa !12
  %352 = load ptr, ptr %18, align 8, !tbaa !9
  %353 = getelementptr inbounds double, ptr %352, i64 %.7261.1
  %354 = load double, ptr %353, align 8, !tbaa !12
  %355 = fsub double %351, %354
  %356 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %355, ptr noundef %0)
  %357 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %356, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %357, ptr noundef nonnull @.str.19, i32 noundef 15668, ptr noundef nonnull @.str.232)
  %358 = add nuw nsw i64 %.7261.1, 1
  %exitcond289.1.not = icmp eq i64 %358, %255
  br i1 %exitcond289.1.not, label %._crit_edge264.1, label %.lr.ph263.1, !llvm.loop !36

._crit_edge264.1:                                 ; preds = %.lr.ph263.1, %348
  br i1 %117, label %.preheader236, label %359, !llvm.loop !39

359:                                              ; preds = %._crit_edge264.1
  br i1 %112, label %.preheader237, label %360, !llvm.loop !40

360:                                              ; preds = %359
  br i1 %.not, label %361, label %.loopexit

361:                                              ; preds = %360
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0211274, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0211274, ptr noundef %0)
  br label %362

362:                                              ; preds = %361, %362
  %.8268 = phi i64 [ 0, %361 ], [ %372, %362 ]
  %363 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %364 = fadd double %363, -5.000000e-01
  %365 = load ptr, ptr %14, align 8, !tbaa !9
  %366 = getelementptr inbounds double, ptr %365, i64 %.8268
  store double %364, ptr %366, align 8, !tbaa !12
  %367 = load ptr, ptr %14, align 8, !tbaa !9
  %368 = getelementptr inbounds double, ptr %367, i64 %.8268
  %369 = load double, ptr %368, align 8, !tbaa !12
  %370 = load ptr, ptr %15, align 8, !tbaa !9
  %371 = getelementptr inbounds double, ptr %370, i64 %.8268
  store double %369, ptr %371, align 8, !tbaa !12
  %372 = add nuw nsw i64 %.8268, 1
  %exitcond290.not = icmp eq i64 %372, %.0211274
  br i1 %exitcond290.not, label %373, label %362, !llvm.loop !41

373:                                              ; preds = %362
  call void @_ZN11alglib_impl9sparsemv2EPKNS_12sparsematrixEPKNS_9ae_vectorEPS3_S6_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %0)
  %374 = load i64, ptr %5, align 8, !tbaa !18
  %375 = icmp slt i64 %374, %.0211274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %375, ptr noundef nonnull @.str.19, i32 noundef 15687, ptr noundef nonnull @.str.233)
  %376 = load i64, ptr %6, align 8, !tbaa !18
  %377 = icmp slt i64 %376, %.0211274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %377, ptr noundef nonnull @.str.19, i32 noundef 15688, ptr noundef nonnull @.str.234)
  %378 = load i8, ptr %12, align 1, !tbaa !5, !range !22, !noundef !23
  %379 = trunc nuw i8 %378 to i1
  br i1 %379, label %.loopexit301, label %.preheader239

.preheader239:                                    ; preds = %373, %.preheader239
  %.9269 = phi i64 [ %405, %.preheader239 ], [ 0, %373 ]
  %380 = load ptr, ptr %13, align 8, !tbaa !9
  %381 = getelementptr inbounds ptr, ptr %380, i64 %.9269
  %382 = load ptr, ptr %381, align 8, !tbaa !10
  %383 = load ptr, ptr %15, align 8, !tbaa !9
  %384 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  %385 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %382, i64 noundef 1, ptr noundef %383, i64 noundef 1, i64 noundef %384)
  %386 = load ptr, ptr %16, align 8, !tbaa !9
  %387 = getelementptr inbounds double, ptr %386, i64 %.9269
  %388 = load double, ptr %387, align 8, !tbaa !12
  %389 = fsub double %385, %388
  %390 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %389, ptr noundef %0)
  %391 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %390, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %391, ptr noundef nonnull @.str.19, i32 noundef 15697, ptr noundef nonnull @.str.235)
  %392 = load ptr, ptr %13, align 8, !tbaa !9
  %393 = load ptr, ptr %392, align 8, !tbaa !10
  %394 = getelementptr inbounds double, ptr %393, i64 %.9269
  %395 = load i64, ptr %17, align 8, !tbaa !26
  %396 = load ptr, ptr %15, align 8, !tbaa !9
  %397 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  %398 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %394, i64 noundef %395, ptr noundef %396, i64 noundef 1, i64 noundef %397)
  %399 = load ptr, ptr %18, align 8, !tbaa !9
  %400 = getelementptr inbounds double, ptr %399, i64 %.9269
  %401 = load double, ptr %400, align 8, !tbaa !12
  %402 = fsub double %398, %401
  %403 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %402, ptr noundef %0)
  %404 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %403, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %404, ptr noundef nonnull @.str.19, i32 noundef 15699, ptr noundef nonnull @.str.236)
  %405 = add nuw nsw i64 %.9269, 1
  %exitcond291.not = icmp eq i64 %405, %.0211274
  br i1 %exitcond291.not, label %.loopexit, label %.preheader239, !llvm.loop !42

.loopexit:                                        ; preds = %.preheader239, %360
  %406 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef %0)
  br i1 %406, label %23, label %._crit_edge272, !llvm.loop !43

._crit_edge272:                                   ; preds = %.loopexit, %20
  %407 = add nuw nsw i64 %.0212273, 1
  %exitcond292.not = icmp eq i64 %407, 21
  br i1 %exitcond292.not, label %408, label %20, !llvm.loop !44

408:                                              ; preds = %._crit_edge272
  %409 = add nuw nsw i64 %.0211274, 1
  %exitcond293.not = icmp eq i64 %409, 21
  br i1 %exitcond293.not, label %.loopexit301, label %.preheader243, !llvm.loop !45

.loopexit301:                                     ; preds = %408, %373, %93, %63
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %.0210.in = load i8, ptr %12, align 1, !tbaa !5, !range !22, !noundef !23
  %.0210 = trunc nuw i8 %.0210.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 400, 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 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %.0210
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z21_sparsegenerator_initPvPN11alglib_impl8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

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


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