; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests (test_c)

; 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_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.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.128 = 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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

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

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

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

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

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

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

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

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

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

34:                                               ; preds = %524, %1
  %35 = load i64, ptr %5, align 8, !tbaa !13
  %36 = icmp sle i64 %35, 20
  br i1 %36, label %37, label %527

37:                                               ; preds = %34
  store i64 1, ptr %6, align 8, !tbaa !13
  br label %38

38:                                               ; preds = %520, %37
  %39 = load i64, ptr %6, align 8, !tbaa !13
  %40 = icmp sle i64 %39, 20
  br i1 %40, label %41, label %523

41:                                               ; preds = %38
  %42 = load i64, ptr %5, align 8, !tbaa !13
  %43 = load i64, ptr %6, align 8, !tbaa !13
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %42, i64 noundef %43, i64 noundef 0, i64 noundef 0, ptr noundef %19, ptr noundef %44)
  br label %45

45:                                               ; preds = %518, %41
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef %19, ptr noundef %14, ptr noundef %16, ptr noundef %46)
  br i1 %47, label %48, label %519

48:                                               ; preds = %45
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %20, i64 noundef 20, ptr noundef %49)
  %51 = add nsw i64 1, %50
  store i64 %51, ptr %7, align 8, !tbaa !13
  %52 = load i64, ptr %5, align 8, !tbaa !13
  %53 = load i64, ptr %6, align 8, !tbaa !13
  %54 = icmp ne i64 %52, %53
  br i1 %54, label %59, label %55

55:                                               ; preds = %48
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %20, ptr noundef %56)
  %58 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %57, double noundef 5.000000e-01)
  br i1 %58, label %59, label %61

59:                                               ; preds = %55, %48
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %16, ptr noundef %15, ptr noundef %60)
  br label %63

61:                                               ; preds = %55
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %16, ptr noundef %15, ptr noundef %62)
  br label %63

63:                                               ; preds = %61, %59
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %64

64:                                               ; preds = %106, %63
  %65 = load i64, ptr %12, align 8, !tbaa !13
  %66 = load i64, ptr %5, align 8, !tbaa !13
  %67 = sub nsw i64 %66, 1
  %68 = icmp sle i64 %65, %67
  br i1 %68, label %69, label %109

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

70:                                               ; preds = %102, %69
  %71 = load i64, ptr %13, align 8, !tbaa !13
  %72 = load i64, ptr %6, align 8, !tbaa !13
  %73 = sub nsw i64 %72, 1
  %74 = icmp sle i64 %71, %73
  br i1 %74, label %75, label %105

75:                                               ; preds = %70
  %76 = load i64, ptr %12, align 8, !tbaa !13
  %77 = load i64, ptr %13, align 8, !tbaa !13
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %76, i64 noundef %77, ptr noundef %78)
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = load i64, ptr %12, align 8, !tbaa !13
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i64, ptr %13, align 8, !tbaa !13
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %79, double noundef %87)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %88, ptr noundef @.str.8, i32 noundef 5456, ptr noundef @.str.115)
  %89 = load i64, ptr %12, align 8, !tbaa !13
  %90 = load i64, ptr %13, align 8, !tbaa !13
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %89, i64 noundef %90, ptr noundef %91)
  %93 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = load i64, ptr %12, align 8, !tbaa !13
  %96 = getelementptr inbounds ptr, ptr %94, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load i64, ptr %13, align 8, !tbaa !13
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %92, double noundef %100)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %101, ptr noundef @.str.8, i32 noundef 5457, ptr noundef @.str.116)
  br label %102

102:                                              ; preds = %75
  %103 = load i64, ptr %13, align 8, !tbaa !13
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %13, align 8, !tbaa !13
  br label %70, !llvm.loop !16

105:                                              ; preds = %70
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %12, align 8, !tbaa !13
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %12, align 8, !tbaa !13
  br label %64, !llvm.loop !18

109:                                              ; preds = %64
  %110 = load i64, ptr %6, align 8, !tbaa !13
  %111 = load i64, ptr %7, align 8, !tbaa !13
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %110, i64 noundef %111, ptr noundef %112)
  %113 = load i64, ptr %6, align 8, !tbaa !13
  %114 = load i64, ptr %7, align 8, !tbaa !13
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %113, i64 noundef %114, ptr noundef %115)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %116

116:                                              ; preds = %157, %109
  %117 = load i64, ptr %12, align 8, !tbaa !13
  %118 = load i64, ptr %6, align 8, !tbaa !13
  %119 = sub nsw i64 %118, 1
  %120 = icmp sle i64 %117, %119
  br i1 %120, label %121, label %160

121:                                              ; preds = %116
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %153, %121
  %123 = load i64, ptr %13, align 8, !tbaa !13
  %124 = load i64, ptr %7, align 8, !tbaa !13
  %125 = sub nsw i64 %124, 1
  %126 = icmp sle i64 %123, %125
  br i1 %126, label %127, label %156

127:                                              ; preds = %122
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %20, ptr noundef %128)
  %130 = fsub double %129, 5.000000e-01
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load i64, ptr %12, align 8, !tbaa !13
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i64, ptr %13, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  store double %130, ptr %137, align 8, !tbaa !9
  %138 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = load i64, ptr %12, align 8, !tbaa !13
  %141 = getelementptr inbounds ptr, ptr %139, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load i64, ptr %13, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = load i64, ptr %12, align 8, !tbaa !13
  %149 = getelementptr inbounds ptr, ptr %147, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load i64, ptr %13, align 8, !tbaa !13
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  store double %145, ptr %152, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %127
  %154 = load i64, ptr %13, align 8, !tbaa !13
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %13, align 8, !tbaa !13
  br label %122, !llvm.loop !19

156:                                              ; preds = %122
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %12, align 8, !tbaa !13
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %12, align 8, !tbaa !13
  br label %116, !llvm.loop !20

160:                                              ; preds = %116
  %161 = load i64, ptr %7, align 8, !tbaa !13
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemmEPNS_12sparsematrixEPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %15, ptr noundef %8, i64 noundef %161, ptr noundef %10, ptr noundef %162)
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 0
  %164 = load i64, ptr %163, align 8, !tbaa !21
  %165 = load i64, ptr %5, align 8, !tbaa !13
  %166 = icmp slt i64 %164, %165
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %166, ptr noundef @.str.8, i32 noundef 5475, ptr noundef @.str.117)
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 1
  %168 = load i64, ptr %167, align 8, !tbaa !24
  %169 = load i64, ptr %7, align 8, !tbaa !13
  %170 = icmp slt i64 %168, %169
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %170, ptr noundef @.str.8, i32 noundef 5476, ptr noundef @.str.118)
  %171 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %172 = trunc i8 %171 to i1
  br i1 %172, label %173, label %177

173:                                              ; preds = %160
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %174)
  %175 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %176 = trunc i8 %175 to i1
  store i1 %176, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %531

177:                                              ; preds = %160
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %178

178:                                              ; preds = %226, %177
  %179 = load i64, ptr %12, align 8, !tbaa !13
  %180 = load i64, ptr %5, align 8, !tbaa !13
  %181 = sub nsw i64 %180, 1
  %182 = icmp sle i64 %179, %181
  br i1 %182, label %183, label %229

183:                                              ; preds = %178
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %184

184:                                              ; preds = %222, %183
  %185 = load i64, ptr %13, align 8, !tbaa !13
  %186 = load i64, ptr %7, align 8, !tbaa !13
  %187 = sub nsw i64 %186, 1
  %188 = icmp sle i64 %185, %187
  br i1 %188, label %189, label %225

189:                                              ; preds = %184
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  %192 = load i64, ptr %12, align 8, !tbaa !13
  %193 = getelementptr inbounds ptr, ptr %191, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 0
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  %198 = getelementptr inbounds ptr, ptr %197, i64 0
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = load i64, ptr %13, align 8, !tbaa !13
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 2
  %203 = load i64, ptr %202, align 8, !tbaa !27
  %204 = load i64, ptr %6, align 8, !tbaa !13
  %205 = sub nsw i64 %204, 1
  %206 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %205)
  %207 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %195, i64 noundef 1, ptr noundef %201, i64 noundef %203, i64 noundef %206)
  store double %207, ptr %18, align 8, !tbaa !9
  %208 = load double, ptr %18, align 8, !tbaa !9
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load i64, ptr %12, align 8, !tbaa !13
  %212 = getelementptr inbounds ptr, ptr %210, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load i64, ptr %13, align 8, !tbaa !13
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !9
  %217 = fsub double %208, %216
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %217, ptr noundef %218)
  %220 = load double, ptr %17, align 8, !tbaa !9
  %221 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %219, double noundef %220)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %221, ptr noundef @.str.8, i32 noundef 5487, ptr noundef @.str.119)
  br label %222

222:                                              ; preds = %189
  %223 = load i64, ptr %13, align 8, !tbaa !13
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %13, align 8, !tbaa !13
  br label %184, !llvm.loop !28

225:                                              ; preds = %184
  br label %226

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

229:                                              ; preds = %178
  %230 = load i64, ptr %5, align 8, !tbaa !13
  %231 = load i64, ptr %7, align 8, !tbaa !13
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %230, i64 noundef %231, ptr noundef %232)
  %233 = load i64, ptr %5, align 8, !tbaa !13
  %234 = load i64, ptr %7, align 8, !tbaa !13
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %233, i64 noundef %234, ptr noundef %235)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %236

236:                                              ; preds = %277, %229
  %237 = load i64, ptr %12, align 8, !tbaa !13
  %238 = load i64, ptr %5, align 8, !tbaa !13
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %237, %239
  br i1 %240, label %241, label %280

241:                                              ; preds = %236
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %242

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

247:                                              ; preds = %242
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %20, ptr noundef %248)
  %250 = fsub double %249, 5.000000e-01
  %251 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %252 = load ptr, ptr %251, align 8, !tbaa !15
  %253 = load i64, ptr %12, align 8, !tbaa !13
  %254 = getelementptr inbounds ptr, ptr %252, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  %256 = load i64, ptr %13, align 8, !tbaa !13
  %257 = getelementptr inbounds double, ptr %255, i64 %256
  store double %250, ptr %257, align 8, !tbaa !9
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %259 = load ptr, ptr %258, align 8, !tbaa !15
  %260 = load i64, ptr %12, align 8, !tbaa !13
  %261 = getelementptr inbounds ptr, ptr %259, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = load i64, ptr %13, align 8, !tbaa !13
  %264 = getelementptr inbounds double, ptr %262, i64 %263
  %265 = load double, ptr %264, align 8, !tbaa !9
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = load i64, ptr %12, align 8, !tbaa !13
  %269 = getelementptr inbounds ptr, ptr %267, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !5
  %271 = load i64, ptr %13, align 8, !tbaa !13
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  store double %265, ptr %272, align 8, !tbaa !9
  br label %273

273:                                              ; preds = %247
  %274 = load i64, ptr %13, align 8, !tbaa !13
  %275 = add nsw i64 %274, 1
  store i64 %275, ptr %13, align 8, !tbaa !13
  br label %242, !llvm.loop !30

276:                                              ; preds = %242
  br label %277

277:                                              ; preds = %276
  %278 = load i64, ptr %12, align 8, !tbaa !13
  %279 = add nsw i64 %278, 1
  store i64 %279, ptr %12, align 8, !tbaa !13
  br label %236, !llvm.loop !31

280:                                              ; preds = %236
  %281 = load i64, ptr %7, align 8, !tbaa !13
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtmEPNS_12sparsematrixEPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %15, ptr noundef %8, i64 noundef %281, ptr noundef %10, ptr noundef %282)
  %283 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 0
  %284 = load i64, ptr %283, align 8, !tbaa !21
  %285 = load i64, ptr %6, align 8, !tbaa !13
  %286 = icmp slt i64 %284, %285
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %286, ptr noundef @.str.8, i32 noundef 5505, ptr noundef @.str.120)
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 1
  %288 = load i64, ptr %287, align 8, !tbaa !24
  %289 = load i64, ptr %7, align 8, !tbaa !13
  %290 = icmp slt i64 %288, %289
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %290, ptr noundef @.str.8, i32 noundef 5506, ptr noundef @.str.121)
  %291 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %292 = trunc i8 %291 to i1
  br i1 %292, label %293, label %297

293:                                              ; preds = %280
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %294)
  %295 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %296 = trunc i8 %295 to i1
  store i1 %296, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %531

297:                                              ; preds = %280
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %298

298:                                              ; preds = %348, %297
  %299 = load i64, ptr %12, align 8, !tbaa !13
  %300 = load i64, ptr %6, align 8, !tbaa !13
  %301 = sub nsw i64 %300, 1
  %302 = icmp sle i64 %299, %301
  br i1 %302, label %303, label %351

303:                                              ; preds = %298
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %304

304:                                              ; preds = %344, %303
  %305 = load i64, ptr %13, align 8, !tbaa !13
  %306 = load i64, ptr %7, align 8, !tbaa !13
  %307 = sub nsw i64 %306, 1
  %308 = icmp sle i64 %305, %307
  br i1 %308, label %309, label %347

309:                                              ; preds = %304
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %311 = load ptr, ptr %310, align 8, !tbaa !15
  %312 = getelementptr inbounds ptr, ptr %311, i64 0
  %313 = load ptr, ptr %312, align 8, !tbaa !5
  %314 = load i64, ptr %12, align 8, !tbaa !13
  %315 = getelementptr inbounds double, ptr %313, i64 %314
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %317 = load i64, ptr %316, align 8, !tbaa !27
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %319 = load ptr, ptr %318, align 8, !tbaa !15
  %320 = getelementptr inbounds ptr, ptr %319, i64 0
  %321 = load ptr, ptr %320, align 8, !tbaa !5
  %322 = load i64, ptr %13, align 8, !tbaa !13
  %323 = getelementptr inbounds double, ptr %321, i64 %322
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 2
  %325 = load i64, ptr %324, align 8, !tbaa !27
  %326 = load i64, ptr %5, align 8, !tbaa !13
  %327 = sub nsw i64 %326, 1
  %328 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %327)
  %329 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %315, i64 noundef %317, ptr noundef %323, i64 noundef %325, i64 noundef %328)
  store double %329, ptr %18, align 8, !tbaa !9
  %330 = load double, ptr %18, align 8, !tbaa !9
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %332 = load ptr, ptr %331, align 8, !tbaa !15
  %333 = load i64, ptr %12, align 8, !tbaa !13
  %334 = getelementptr inbounds ptr, ptr %332, i64 %333
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  %336 = load i64, ptr %13, align 8, !tbaa !13
  %337 = getelementptr inbounds double, ptr %335, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !9
  %339 = fsub double %330, %338
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %339, ptr noundef %340)
  %342 = load double, ptr %17, align 8, !tbaa !9
  %343 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %341, double noundef %342)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %343, ptr noundef @.str.8, i32 noundef 5517, ptr noundef @.str.122)
  br label %344

344:                                              ; preds = %309
  %345 = load i64, ptr %13, align 8, !tbaa !13
  %346 = add nsw i64 %345, 1
  store i64 %346, ptr %13, align 8, !tbaa !13
  br label %304, !llvm.loop !32

347:                                              ; preds = %304
  br label %348

348:                                              ; preds = %347
  %349 = load i64, ptr %12, align 8, !tbaa !13
  %350 = add nsw i64 %349, 1
  store i64 %350, ptr %12, align 8, !tbaa !13
  br label %298, !llvm.loop !33

351:                                              ; preds = %298
  %352 = load i64, ptr %5, align 8, !tbaa !13
  %353 = load i64, ptr %6, align 8, !tbaa !13
  %354 = icmp eq i64 %352, %353
  br i1 %354, label %355, label %518

355:                                              ; preds = %351
  %356 = load i64, ptr %6, align 8, !tbaa !13
  %357 = load i64, ptr %7, align 8, !tbaa !13
  %358 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %356, i64 noundef %357, ptr noundef %358)
  %359 = load i64, ptr %6, align 8, !tbaa !13
  %360 = load i64, ptr %7, align 8, !tbaa !13
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %359, i64 noundef %360, ptr noundef %361)
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %362

362:                                              ; preds = %403, %355
  %363 = load i64, ptr %12, align 8, !tbaa !13
  %364 = load i64, ptr %6, align 8, !tbaa !13
  %365 = sub nsw i64 %364, 1
  %366 = icmp sle i64 %363, %365
  br i1 %366, label %367, label %406

367:                                              ; preds = %362
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %368

368:                                              ; preds = %399, %367
  %369 = load i64, ptr %13, align 8, !tbaa !13
  %370 = load i64, ptr %7, align 8, !tbaa !13
  %371 = sub nsw i64 %370, 1
  %372 = icmp sle i64 %369, %371
  br i1 %372, label %373, label %402

373:                                              ; preds = %368
  %374 = load ptr, ptr %3, align 8, !tbaa !5
  %375 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %20, ptr noundef %374)
  %376 = fsub double %375, 5.000000e-01
  %377 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %378 = load ptr, ptr %377, align 8, !tbaa !15
  %379 = load i64, ptr %12, align 8, !tbaa !13
  %380 = getelementptr inbounds ptr, ptr %378, i64 %379
  %381 = load ptr, ptr %380, align 8, !tbaa !5
  %382 = load i64, ptr %13, align 8, !tbaa !13
  %383 = getelementptr inbounds double, ptr %381, i64 %382
  store double %376, ptr %383, align 8, !tbaa !9
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %385 = load ptr, ptr %384, align 8, !tbaa !15
  %386 = load i64, ptr %12, align 8, !tbaa !13
  %387 = getelementptr inbounds ptr, ptr %385, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !5
  %389 = load i64, ptr %13, align 8, !tbaa !13
  %390 = getelementptr inbounds double, ptr %388, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !9
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %393 = load ptr, ptr %392, align 8, !tbaa !15
  %394 = load i64, ptr %12, align 8, !tbaa !13
  %395 = getelementptr inbounds ptr, ptr %393, i64 %394
  %396 = load ptr, ptr %395, align 8, !tbaa !5
  %397 = load i64, ptr %13, align 8, !tbaa !13
  %398 = getelementptr inbounds double, ptr %396, i64 %397
  store double %391, ptr %398, align 8, !tbaa !9
  br label %399

399:                                              ; preds = %373
  %400 = load i64, ptr %13, align 8, !tbaa !13
  %401 = add nsw i64 %400, 1
  store i64 %401, ptr %13, align 8, !tbaa !13
  br label %368, !llvm.loop !34

402:                                              ; preds = %368
  br label %403

403:                                              ; preds = %402
  %404 = load i64, ptr %12, align 8, !tbaa !13
  %405 = add nsw i64 %404, 1
  store i64 %405, ptr %12, align 8, !tbaa !13
  br label %362, !llvm.loop !35

406:                                              ; preds = %362
  %407 = load i64, ptr %7, align 8, !tbaa !13
  %408 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemm2EPNS_12sparsematrixEPNS_9ae_matrixElS3_S3_PNS_8ae_stateE(ptr noundef %15, ptr noundef %8, i64 noundef %407, ptr noundef %10, ptr noundef %11, ptr noundef %408)
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 0
  %410 = load i64, ptr %409, align 8, !tbaa !21
  %411 = load i64, ptr %6, align 8, !tbaa !13
  %412 = icmp slt i64 %410, %411
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %412, ptr noundef @.str.8, i32 noundef 5537, ptr noundef @.str.123)
  %413 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 1
  %414 = load i64, ptr %413, align 8, !tbaa !24
  %415 = load i64, ptr %7, align 8, !tbaa !13
  %416 = icmp slt i64 %414, %415
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %416, ptr noundef @.str.8, i32 noundef 5538, ptr noundef @.str.124)
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 0
  %418 = load i64, ptr %417, align 8, !tbaa !21
  %419 = load i64, ptr %6, align 8, !tbaa !13
  %420 = icmp slt i64 %418, %419
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %420, ptr noundef @.str.8, i32 noundef 5539, ptr noundef @.str.125)
  %421 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 1
  %422 = load i64, ptr %421, align 8, !tbaa !24
  %423 = load i64, ptr %7, align 8, !tbaa !13
  %424 = icmp slt i64 %422, %423
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %424, ptr noundef @.str.8, i32 noundef 5540, ptr noundef @.str.126)
  %425 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %426 = trunc i8 %425 to i1
  br i1 %426, label %427, label %431

427:                                              ; preds = %406
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %428)
  %429 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %430 = trunc i8 %429 to i1
  store i1 %430, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %531

431:                                              ; preds = %406
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %432

432:                                              ; preds = %514, %431
  %433 = load i64, ptr %12, align 8, !tbaa !13
  %434 = load i64, ptr %6, align 8, !tbaa !13
  %435 = sub nsw i64 %434, 1
  %436 = icmp sle i64 %433, %435
  br i1 %436, label %437, label %517

437:                                              ; preds = %432
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %438

438:                                              ; preds = %510, %437
  %439 = load i64, ptr %13, align 8, !tbaa !13
  %440 = load i64, ptr %7, align 8, !tbaa !13
  %441 = sub nsw i64 %440, 1
  %442 = icmp sle i64 %439, %441
  br i1 %442, label %443, label %513

443:                                              ; preds = %438
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %445 = load ptr, ptr %444, align 8, !tbaa !15
  %446 = load i64, ptr %12, align 8, !tbaa !13
  %447 = getelementptr inbounds ptr, ptr %445, i64 %446
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  %449 = getelementptr inbounds double, ptr %448, i64 0
  %450 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %451 = load ptr, ptr %450, align 8, !tbaa !15
  %452 = getelementptr inbounds ptr, ptr %451, i64 0
  %453 = load ptr, ptr %452, align 8, !tbaa !5
  %454 = load i64, ptr %13, align 8, !tbaa !13
  %455 = getelementptr inbounds double, ptr %453, i64 %454
  %456 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 2
  %457 = load i64, ptr %456, align 8, !tbaa !27
  %458 = load i64, ptr %6, align 8, !tbaa !13
  %459 = sub nsw i64 %458, 1
  %460 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %459)
  %461 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %449, i64 noundef 1, ptr noundef %455, i64 noundef %457, i64 noundef %460)
  store double %461, ptr %18, align 8, !tbaa !9
  %462 = load double, ptr %18, align 8, !tbaa !9
  %463 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %464 = load ptr, ptr %463, align 8, !tbaa !15
  %465 = load i64, ptr %12, align 8, !tbaa !13
  %466 = getelementptr inbounds ptr, ptr %464, i64 %465
  %467 = load ptr, ptr %466, align 8, !tbaa !5
  %468 = load i64, ptr %13, align 8, !tbaa !13
  %469 = getelementptr inbounds double, ptr %467, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !9
  %471 = fsub double %462, %470
  %472 = load ptr, ptr %3, align 8, !tbaa !5
  %473 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %471, ptr noundef %472)
  %474 = load double, ptr %17, align 8, !tbaa !9
  %475 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %473, double noundef %474)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %475, ptr noundef @.str.8, i32 noundef 5551, ptr noundef @.str.127)
  %476 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %477 = load ptr, ptr %476, align 8, !tbaa !15
  %478 = getelementptr inbounds ptr, ptr %477, i64 0
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = load i64, ptr %12, align 8, !tbaa !13
  %481 = getelementptr inbounds double, ptr %479, i64 %480
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 2
  %483 = load i64, ptr %482, align 8, !tbaa !27
  %484 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %485 = load ptr, ptr %484, align 8, !tbaa !15
  %486 = getelementptr inbounds ptr, ptr %485, i64 0
  %487 = load ptr, ptr %486, align 8, !tbaa !5
  %488 = load i64, ptr %13, align 8, !tbaa !13
  %489 = getelementptr inbounds double, ptr %487, i64 %488
  %490 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 2
  %491 = load i64, ptr %490, align 8, !tbaa !27
  %492 = load i64, ptr %6, align 8, !tbaa !13
  %493 = sub nsw i64 %492, 1
  %494 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %493)
  %495 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %481, i64 noundef %483, ptr noundef %489, i64 noundef %491, i64 noundef %494)
  store double %495, ptr %18, align 8, !tbaa !9
  %496 = load double, ptr %18, align 8, !tbaa !9
  %497 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %11, i32 0, i32 6
  %498 = load ptr, ptr %497, align 8, !tbaa !15
  %499 = load i64, ptr %12, align 8, !tbaa !13
  %500 = getelementptr inbounds ptr, ptr %498, i64 %499
  %501 = load ptr, ptr %500, align 8, !tbaa !5
  %502 = load i64, ptr %13, align 8, !tbaa !13
  %503 = getelementptr inbounds double, ptr %501, i64 %502
  %504 = load double, ptr %503, align 8, !tbaa !9
  %505 = fsub double %496, %504
  %506 = load ptr, ptr %3, align 8, !tbaa !5
  %507 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %505, ptr noundef %506)
  %508 = load double, ptr %17, align 8, !tbaa !9
  %509 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %507, double noundef %508)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %509, ptr noundef @.str.8, i32 noundef 5553, ptr noundef @.str.128)
  br label %510

510:                                              ; preds = %443
  %511 = load i64, ptr %13, align 8, !tbaa !13
  %512 = add nsw i64 %511, 1
  store i64 %512, ptr %13, align 8, !tbaa !13
  br label %438, !llvm.loop !36

513:                                              ; preds = %438
  br label %514

514:                                              ; preds = %513
  %515 = load i64, ptr %12, align 8, !tbaa !13
  %516 = add nsw i64 %515, 1
  store i64 %516, ptr %12, align 8, !tbaa !13
  br label %432, !llvm.loop !37

517:                                              ; preds = %432
  br label %518

518:                                              ; preds = %517, %351
  br label %45, !llvm.loop !38

519:                                              ; preds = %45
  br label %520

520:                                              ; preds = %519
  %521 = load i64, ptr %6, align 8, !tbaa !13
  %522 = add nsw i64 %521, 1
  store i64 %522, ptr %6, align 8, !tbaa !13
  br label %38, !llvm.loop !39

523:                                              ; preds = %38
  br label %524

524:                                              ; preds = %523
  %525 = load i64, ptr %5, align 8, !tbaa !13
  %526 = add nsw i64 %525, 1
  store i64 %526, ptr %5, align 8, !tbaa !13
  br label %34, !llvm.loop !40

527:                                              ; preds = %34
  %528 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %528)
  %529 = load i8, ptr %21, align 1, !tbaa !11, !range !25, !noundef !26
  %530 = trunc i8 %529 to i1
  store i1 %530, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %531

531:                                              ; preds = %527, %427, %293, %173
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  %532 = load i1, ptr %2, align 1
  ret i1 %532
}

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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 = distinct !{!20, !17}
!21 = !{!22, !14, i64 0}
!22 = !{!"_ZTSN11alglib_impl9ae_matrixE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !12, i64 32, !23, i64 40, !7, i64 72}
!23 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!22, !14, i64 8}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!22, !14, i64 16}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = distinct !{!40, !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_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.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.128 = 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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z21testlevel3unsymmetricPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", 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) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  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(80) %3, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %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 72
  %15 = getelementptr inbounds i8, ptr %4, i64 72
  %16 = getelementptr inbounds i8, ptr %5, i64 8
  %17 = getelementptr inbounds i8, ptr %4, i64 16
  %18 = getelementptr inbounds i8, ptr %5, i64 72
  %19 = getelementptr inbounds i8, ptr %7, i64 16
  %20 = getelementptr inbounds i8, ptr %6, i64 8
  %21 = getelementptr inbounds i8, ptr %6, i64 72
  br label %.preheader203

.preheader203:                                    ; preds = %1, %211
  %.0176245 = phi i64 [ 1, %1 ], [ %212, %211 ]
  %22 = add nsw i64 %.0176245, -1
  br label %23

23:                                               ; preds = %.preheader203, %._crit_edge243
  %.0177244 = phi i64 [ 1, %.preheader203 ], [ %210, %._crit_edge243 ]
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %.0176245, i64 noundef %.0177244, i64 noundef 0, i64 noundef 0, ptr noundef nonnull %10, ptr noundef %0)
  %24 = 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 %24, label %.lr.ph, label %._crit_edge243

.lr.ph:                                           ; preds = %23
  %.not = icmp eq i64 %.0176245, %.0177244
  %25 = add nsw i64 %.0177244, -1
  br label %26

26:                                               ; preds = %.lr.ph, %.loopexit
  %27 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef 20, ptr noundef %0)
  %28 = add i64 %27, 1
  br i1 %.not, label %29, label %32

29:                                               ; preds = %26
  %30 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %31 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %30, double noundef 5.000000e-01)
  br i1 %31, label %32, label %33

32:                                               ; preds = %29, %26
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %0)
  br label %.preheader199.preheader

33:                                               ; preds = %29
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %0)
  br label %.preheader199.preheader

.preheader199.preheader:                          ; preds = %33, %32
  br label %.preheader199

.preheader199:                                    ; preds = %.preheader199.preheader, %50
  %.0169206 = phi i64 [ %51, %50 ], [ 0, %.preheader199.preheader ]
  br label %34

34:                                               ; preds = %.preheader199, %34
  %.0168205 = phi i64 [ 0, %.preheader199 ], [ %49, %34 ]
  %35 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0169206, i64 noundef %.0168205, ptr noundef %0)
  %36 = load ptr, ptr %13, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.0169206
  %38 = load ptr, ptr %37, align 8, !tbaa !10
  %39 = getelementptr inbounds double, ptr %38, i64 %.0168205
  %40 = load double, ptr %39, align 8, !tbaa !12
  %41 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %35, double noundef %40)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %41, ptr noundef nonnull @.str.8, i32 noundef 5456, ptr noundef nonnull @.str.115)
  %42 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0169206, i64 noundef %.0168205, ptr noundef %0)
  %43 = load ptr, ptr %13, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.0169206
  %45 = load ptr, ptr %44, align 8, !tbaa !10
  %46 = getelementptr inbounds double, ptr %45, i64 %.0168205
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %42, double noundef %47)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %48, ptr noundef nonnull @.str.8, i32 noundef 5457, ptr noundef nonnull @.str.116)
  %49 = add nuw nsw i64 %.0168205, 1
  %exitcond.not = icmp eq i64 %49, %.0177244
  br i1 %exitcond.not, label %50, label %34, !llvm.loop !14

50:                                               ; preds = %34
  %51 = add nuw nsw i64 %.0169206, 1
  %exitcond252.not = icmp eq i64 %51, %.0176245
  br i1 %exitcond252.not, label %52, label %.preheader199, !llvm.loop !16

52:                                               ; preds = %50
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0177244, i64 noundef %28, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0177244, i64 noundef %28, ptr noundef %0)
  %.not192207 = icmp slt i64 %27, 0
  br i1 %.not192207, label %.split211.us, label %.preheader198

.preheader198:                                    ; preds = %52, %._crit_edge
  %.1170209 = phi i64 [ %70, %._crit_edge ], [ 0, %52 ]
  br label %53

53:                                               ; preds = %.preheader198, %53
  %.1208 = phi i64 [ 0, %.preheader198 ], [ %69, %53 ]
  %54 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %55 = fadd double %54, -5.000000e-01
  %56 = load ptr, ptr %14, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.1170209
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  %59 = getelementptr inbounds double, ptr %58, i64 %.1208
  store double %55, ptr %59, align 8, !tbaa !12
  %60 = load ptr, ptr %14, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.1170209
  %62 = load ptr, ptr %61, align 8, !tbaa !10
  %63 = getelementptr inbounds double, ptr %62, i64 %.1208
  %64 = load double, ptr %63, align 8, !tbaa !12
  %65 = load ptr, ptr %15, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.1170209
  %67 = load ptr, ptr %66, align 8, !tbaa !10
  %68 = getelementptr inbounds double, ptr %67, i64 %.1208
  store double %64, ptr %68, align 8, !tbaa !12
  %69 = add nuw i64 %.1208, 1
  %exitcond253.not = icmp eq i64 %.1208, %27
  br i1 %exitcond253.not, label %._crit_edge, label %53, !llvm.loop !17

._crit_edge:                                      ; preds = %53
  %70 = add nuw nsw i64 %.1170209, 1
  %exitcond254.not = icmp eq i64 %70, %.0177244
  br i1 %exitcond254.not, label %.split211.us, label %.preheader198, !llvm.loop !18

.split211.us:                                     ; preds = %._crit_edge, %52
  call void @_ZN11alglib_impl8sparsemmEPNS_12sparsematrixEPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, i64 noundef %28, ptr noundef nonnull %5, ptr noundef %0)
  %71 = load i64, ptr %5, align 8, !tbaa !19
  %72 = icmp slt i64 %71, %.0176245
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %72, ptr noundef nonnull @.str.8, i32 noundef 5475, ptr noundef nonnull @.str.117)
  %73 = load i64, ptr %16, align 8, !tbaa !23
  %74 = icmp sle i64 %73, %27
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %74, ptr noundef nonnull @.str.8, i32 noundef 5476, ptr noundef nonnull @.str.118)
  %75 = load i8, ptr %12, align 1, !tbaa !5, !range !24, !noundef !25
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %.loopexit267, label %.preheader202

.preheader202:                                    ; preds = %.split211.us
  br i1 %.not192207, label %.split224.us.critedge, label %.preheader197

.preheader197:                                    ; preds = %.preheader202, %._crit_edge214
  %.2171215 = phi i64 [ %96, %._crit_edge214 ], [ 0, %.preheader202 ]
  br label %77

77:                                               ; preds = %.preheader197, %77
  %.2213 = phi i64 [ 0, %.preheader197 ], [ %95, %77 ]
  %78 = load ptr, ptr %13, align 8, !tbaa !9
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.2171215
  %80 = load ptr, ptr %79, align 8, !tbaa !10
  %81 = load ptr, ptr %15, align 8, !tbaa !9
  %82 = load ptr, ptr %81, align 8, !tbaa !10
  %83 = getelementptr inbounds double, ptr %82, i64 %.2213
  %84 = load i64, ptr %17, align 8, !tbaa !26
  %85 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %25)
  %86 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %80, i64 noundef 1, ptr noundef %83, i64 noundef %84, i64 noundef %85)
  %87 = load ptr, ptr %18, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 %.2171215
  %89 = load ptr, ptr %88, align 8, !tbaa !10
  %90 = getelementptr inbounds double, ptr %89, i64 %.2213
  %91 = load double, ptr %90, align 8, !tbaa !12
  %92 = fsub double %86, %91
  %93 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %92, ptr noundef %0)
  %94 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %93, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %94, ptr noundef nonnull @.str.8, i32 noundef 5487, ptr noundef nonnull @.str.119)
  %95 = add nuw i64 %.2213, 1
  %exitcond255.not = icmp eq i64 %.2213, %27
  br i1 %exitcond255.not, label %._crit_edge214, label %77, !llvm.loop !27

._crit_edge214:                                   ; preds = %77
  %96 = add nuw nsw i64 %.2171215, 1
  %exitcond256.not = icmp eq i64 %96, %.0176245
  br i1 %exitcond256.not, label %.split217.us, label %.preheader197, !llvm.loop !28

.split217.us:                                     ; preds = %._crit_edge214
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  br i1 %.not192207, label %.split224.us, label %.preheader196

.preheader196:                                    ; preds = %.split217.us, %._crit_edge220
  %.3172221 = phi i64 [ %114, %._crit_edge220 ], [ 0, %.split217.us ]
  br label %97

97:                                               ; preds = %.preheader196, %97
  %.3219 = phi i64 [ 0, %.preheader196 ], [ %113, %97 ]
  %98 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %99 = fadd double %98, -5.000000e-01
  %100 = load ptr, ptr %14, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.3172221
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = getelementptr inbounds double, ptr %102, i64 %.3219
  store double %99, ptr %103, align 8, !tbaa !12
  %104 = load ptr, ptr %14, align 8, !tbaa !9
  %105 = getelementptr inbounds ptr, ptr %104, i64 %.3172221
  %106 = load ptr, ptr %105, align 8, !tbaa !10
  %107 = getelementptr inbounds double, ptr %106, i64 %.3219
  %108 = load double, ptr %107, align 8, !tbaa !12
  %109 = load ptr, ptr %15, align 8, !tbaa !9
  %110 = getelementptr inbounds ptr, ptr %109, i64 %.3172221
  %111 = load ptr, ptr %110, align 8, !tbaa !10
  %112 = getelementptr inbounds double, ptr %111, i64 %.3219
  store double %108, ptr %112, align 8, !tbaa !12
  %113 = add nuw i64 %.3219, 1
  %exitcond257.not = icmp eq i64 %.3219, %27
  br i1 %exitcond257.not, label %._crit_edge220, label %97, !llvm.loop !29

._crit_edge220:                                   ; preds = %97
  %114 = add nuw nsw i64 %.3172221, 1
  %exitcond258.not = icmp eq i64 %114, %.0176245
  br i1 %exitcond258.not, label %.split224.us, label %.preheader196, !llvm.loop !30

.split224.us.critedge:                            ; preds = %.preheader202
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  br label %.split224.us

.split224.us:                                     ; preds = %._crit_edge220, %.split224.us.critedge, %.split217.us
  call void @_ZN11alglib_impl9sparsemtmEPNS_12sparsematrixEPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, i64 noundef %28, ptr noundef nonnull %5, ptr noundef %0)
  %115 = load i64, ptr %5, align 8, !tbaa !19
  %116 = icmp slt i64 %115, %.0177244
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %116, ptr noundef nonnull @.str.8, i32 noundef 5505, ptr noundef nonnull @.str.120)
  %117 = load i64, ptr %16, align 8, !tbaa !23
  %118 = icmp sle i64 %117, %27
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %118, ptr noundef nonnull @.str.8, i32 noundef 5506, ptr noundef nonnull @.str.121)
  %119 = load i8, ptr %12, align 1, !tbaa !5, !range !24, !noundef !25
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %.loopexit267, label %.preheader201

.preheader201:                                    ; preds = %.split224.us
  br i1 %.not192207, label %.split230.us, label %.preheader195

.preheader195:                                    ; preds = %.preheader201, %._crit_edge227
  %.4173228 = phi i64 [ %141, %._crit_edge227 ], [ 0, %.preheader201 ]
  br label %121

121:                                              ; preds = %.preheader195, %121
  %.4226 = phi i64 [ 0, %.preheader195 ], [ %140, %121 ]
  %122 = load ptr, ptr %13, align 8, !tbaa !9
  %123 = load ptr, ptr %122, align 8, !tbaa !10
  %124 = getelementptr inbounds double, ptr %123, i64 %.4173228
  %125 = load i64, ptr %19, align 8, !tbaa !26
  %126 = load ptr, ptr %15, align 8, !tbaa !9
  %127 = load ptr, ptr %126, align 8, !tbaa !10
  %128 = getelementptr inbounds double, ptr %127, i64 %.4226
  %129 = load i64, ptr %17, align 8, !tbaa !26
  %130 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %22)
  %131 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %124, i64 noundef %125, ptr noundef %128, i64 noundef %129, i64 noundef %130)
  %132 = load ptr, ptr %18, align 8, !tbaa !9
  %133 = getelementptr inbounds ptr, ptr %132, i64 %.4173228
  %134 = load ptr, ptr %133, align 8, !tbaa !10
  %135 = getelementptr inbounds double, ptr %134, i64 %.4226
  %136 = load double, ptr %135, align 8, !tbaa !12
  %137 = fsub double %131, %136
  %138 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %137, ptr noundef %0)
  %139 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %138, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %139, ptr noundef nonnull @.str.8, i32 noundef 5517, ptr noundef nonnull @.str.122)
  %140 = add nuw i64 %.4226, 1
  %exitcond259.not = icmp eq i64 %.4226, %27
  br i1 %exitcond259.not, label %._crit_edge227, label %121, !llvm.loop !31

._crit_edge227:                                   ; preds = %121
  %141 = add nuw nsw i64 %.4173228, 1
  %exitcond260.not = icmp eq i64 %141, %.0177244
  br i1 %exitcond260.not, label %.split230.us, label %.preheader195, !llvm.loop !32

.split230.us:                                     ; preds = %._crit_edge227, %.preheader201
  br i1 %.not, label %142, label %.loopexit

142:                                              ; preds = %.split230.us
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0176245, i64 noundef %28, ptr noundef %0)
  br i1 %.not192207, label %.split237.us, label %.preheader194

.preheader194:                                    ; preds = %142, %._crit_edge233
  %.5174234 = phi i64 [ %160, %._crit_edge233 ], [ 0, %142 ]
  br label %143

143:                                              ; preds = %.preheader194, %143
  %.5232 = phi i64 [ 0, %.preheader194 ], [ %159, %143 ]
  %144 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef %0)
  %145 = fadd double %144, -5.000000e-01
  %146 = load ptr, ptr %14, align 8, !tbaa !9
  %147 = getelementptr inbounds ptr, ptr %146, i64 %.5174234
  %148 = load ptr, ptr %147, align 8, !tbaa !10
  %149 = getelementptr inbounds double, ptr %148, i64 %.5232
  store double %145, ptr %149, align 8, !tbaa !12
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.5174234
  %152 = load ptr, ptr %151, align 8, !tbaa !10
  %153 = getelementptr inbounds double, ptr %152, i64 %.5232
  %154 = load double, ptr %153, align 8, !tbaa !12
  %155 = load ptr, ptr %15, align 8, !tbaa !9
  %156 = getelementptr inbounds ptr, ptr %155, i64 %.5174234
  %157 = load ptr, ptr %156, align 8, !tbaa !10
  %158 = getelementptr inbounds double, ptr %157, i64 %.5232
  store double %154, ptr %158, align 8, !tbaa !12
  %159 = add nuw i64 %.5232, 1
  %exitcond261.not = icmp eq i64 %.5232, %27
  br i1 %exitcond261.not, label %._crit_edge233, label %143, !llvm.loop !33

._crit_edge233:                                   ; preds = %143
  %160 = add nuw nsw i64 %.5174234, 1
  %exitcond262.not = icmp eq i64 %160, %.0176245
  br i1 %exitcond262.not, label %.split237.us, label %.preheader194, !llvm.loop !34

.split237.us:                                     ; preds = %._crit_edge233, %142
  call void @_ZN11alglib_impl9sparsemm2EPNS_12sparsematrixEPNS_9ae_matrixElS3_S3_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %3, i64 noundef %28, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %0)
  %161 = load i64, ptr %5, align 8, !tbaa !19
  %162 = icmp slt i64 %161, %.0176245
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %162, ptr noundef nonnull @.str.8, i32 noundef 5537, ptr noundef nonnull @.str.123)
  %163 = load i64, ptr %16, align 8, !tbaa !23
  %164 = icmp sle i64 %163, %27
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %164, ptr noundef nonnull @.str.8, i32 noundef 5538, ptr noundef nonnull @.str.124)
  %165 = load i64, ptr %6, align 8, !tbaa !19
  %166 = icmp slt i64 %165, %.0176245
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %166, ptr noundef nonnull @.str.8, i32 noundef 5539, ptr noundef nonnull @.str.125)
  %167 = load i64, ptr %20, align 8, !tbaa !23
  %168 = icmp sle i64 %167, %27
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %168, ptr noundef nonnull @.str.8, i32 noundef 5540, ptr noundef nonnull @.str.126)
  %169 = load i8, ptr %12, align 1, !tbaa !5, !range !24, !noundef !25
  %170 = trunc nuw i8 %169 to i1
  br i1 %170, label %.loopexit267, label %.preheader200

.preheader200:                                    ; preds = %.split237.us
  br i1 %.not192207, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.preheader200, %._crit_edge240
  %.6175241 = phi i64 [ %208, %._crit_edge240 ], [ 0, %.preheader200 ]
  br label %171

171:                                              ; preds = %.preheader, %171
  %.6239 = phi i64 [ 0, %.preheader ], [ %207, %171 ]
  %172 = load ptr, ptr %13, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %172, i64 %.6175241
  %174 = load ptr, ptr %173, align 8, !tbaa !10
  %175 = load ptr, ptr %15, align 8, !tbaa !9
  %176 = load ptr, ptr %175, align 8, !tbaa !10
  %177 = getelementptr inbounds double, ptr %176, i64 %.6239
  %178 = load i64, ptr %17, align 8, !tbaa !26
  %179 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %25)
  %180 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %174, i64 noundef 1, ptr noundef %177, i64 noundef %178, i64 noundef %179)
  %181 = load ptr, ptr %18, align 8, !tbaa !9
  %182 = getelementptr inbounds ptr, ptr %181, i64 %.6175241
  %183 = load ptr, ptr %182, align 8, !tbaa !10
  %184 = getelementptr inbounds double, ptr %183, i64 %.6239
  %185 = load double, ptr %184, align 8, !tbaa !12
  %186 = fsub double %180, %185
  %187 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %186, ptr noundef %0)
  %188 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %187, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %188, ptr noundef nonnull @.str.8, i32 noundef 5551, ptr noundef nonnull @.str.127)
  %189 = load ptr, ptr %13, align 8, !tbaa !9
  %190 = load ptr, ptr %189, align 8, !tbaa !10
  %191 = getelementptr inbounds double, ptr %190, i64 %.6175241
  %192 = load i64, ptr %19, align 8, !tbaa !26
  %193 = load ptr, ptr %15, align 8, !tbaa !9
  %194 = load ptr, ptr %193, align 8, !tbaa !10
  %195 = getelementptr inbounds double, ptr %194, i64 %.6239
  %196 = load i64, ptr %17, align 8, !tbaa !26
  %197 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %25)
  %198 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %191, i64 noundef %192, ptr noundef %195, i64 noundef %196, i64 noundef %197)
  %199 = load ptr, ptr %21, align 8, !tbaa !9
  %200 = getelementptr inbounds ptr, ptr %199, i64 %.6175241
  %201 = load ptr, ptr %200, align 8, !tbaa !10
  %202 = getelementptr inbounds double, ptr %201, i64 %.6239
  %203 = load double, ptr %202, align 8, !tbaa !12
  %204 = fsub double %198, %203
  %205 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %204, ptr noundef %0)
  %206 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %205, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %206, ptr noundef nonnull @.str.8, i32 noundef 5553, ptr noundef nonnull @.str.128)
  %207 = add nuw i64 %.6239, 1
  %exitcond263.not = icmp eq i64 %.6239, %27
  br i1 %exitcond263.not, label %._crit_edge240, label %171, !llvm.loop !35

._crit_edge240:                                   ; preds = %171
  %208 = add nuw nsw i64 %.6175241, 1
  %exitcond264.not = icmp eq i64 %208, %.0176245
  br i1 %exitcond264.not, label %.loopexit, label %.preheader, !llvm.loop !36

.loopexit:                                        ; preds = %._crit_edge240, %.preheader200, %.split230.us
  %209 = 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 %209, label %26, label %._crit_edge243, !llvm.loop !37

._crit_edge243:                                   ; preds = %.loopexit, %23
  %210 = add nuw nsw i64 %.0177244, 1
  %exitcond265.not = icmp eq i64 %210, 21
  br i1 %exitcond265.not, label %211, label %23, !llvm.loop !38

211:                                              ; preds = %._crit_edge243
  %212 = add nuw nsw i64 %.0176245, 1
  %exitcond266.not = icmp eq i64 %212, 21
  br i1 %exitcond266.not, label %.loopexit267, label %.preheader203, !llvm.loop !39

.loopexit267:                                     ; preds = %211, %.split237.us, %.split224.us, %.split211.us
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %.0.in = load i8, ptr %12, align 1, !tbaa !5, !range !24, !noundef !25
  %.0 = trunc nuw i8 %.0.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret i1 %.0
}

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

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

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

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

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

; 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 #3

; 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 #3

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = distinct !{!18, !15}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN11alglib_impl9ae_matrixE", !21, i64 0, !21, i64 8, !21, i64 16, !21, i64 24, !6, i64 32, !22, i64 40, !7, i64 72}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!23 = !{!20, !21, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!20, !21, i64 16}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}


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