; 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_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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = 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 void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

declare 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 @_Z20testlevel2triangularPN11alglib_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 %"struct.alglib_impl::ae_vector", 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 i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %18 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %19 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %struct.sparsegenerator, align 8
  %23 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i8, align 1
  %29 = 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 64, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %30, ptr noundef %4)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 64, i1 false)
  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 %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 400, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 24, i1 false)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %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 %15, 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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 0, i64 noundef 3, 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 %17, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %19, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_Z21_sparsegenerator_initPvPN11alglib_impl8ae_stateEb(ptr noundef %22, ptr noundef %41, i1 noundef zeroext true)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %23, ptr noundef %42, i1 noundef zeroext true)
  store double 0x3D95FD7FE1796496, ptr %20, align 8, !tbaa !9
  store i8 0, ptr %28, align 1, !tbaa !11
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %43)
  store i64 1, ptr %5, align 8, !tbaa !13
  br label %44

44:                                               ; preds = %368, %1
  %45 = load i64, ptr %5, align 8, !tbaa !13
  %46 = icmp sle i64 %45, 20
  br i1 %46, label %47, label %371

47:                                               ; preds = %44
  store i64 -1, ptr %27, align 8, !tbaa !13
  br label %48

48:                                               ; preds = %364, %47
  %49 = load i64, ptr %27, align 8, !tbaa !13
  %50 = icmp sle i64 %49, 1
  br i1 %50, label %51, label %367

51:                                               ; preds = %48
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %52)
  %54 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %53, double noundef 5.000000e-01)
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %24, align 1, !tbaa !11
  %56 = load i64, ptr %27, align 8, !tbaa !13
  %57 = icmp slt i64 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %51
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %59

59:                                               ; preds = %58, %51
  %60 = load i64, ptr %27, align 8, !tbaa !13
  %61 = icmp sgt i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  store i8 1, ptr %24, align 1, !tbaa !11
  br label %63

63:                                               ; preds = %62, %59
  %64 = load i64, ptr %5, align 8, !tbaa !13
  %65 = load i64, ptr %5, align 8, !tbaa !13
  %66 = load i64, ptr %27, align 8, !tbaa !13
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %64, i64 noundef %65, i64 noundef 0, i64 noundef %66, ptr noundef %22, ptr noundef %67)
  br label %68

68:                                               ; preds = %362, %63
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef %22, ptr noundef %15, ptr noundef %19, ptr noundef %69)
  br i1 %70, label %71, label %363

71:                                               ; preds = %68
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %72)
  %74 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %73, double noundef 5.000000e-01)
  %75 = zext i1 %74 to i8
  store i8 %75, ptr %25, align 1, !tbaa !11
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %23, i64 noundef 2, ptr noundef %76)
  store i64 %77, ptr %26, align 8, !tbaa !13
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %18, ptr noundef %78)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %79

79:                                               ; preds = %115, %71
  %80 = load i64, ptr %11, align 8, !tbaa !13
  %81 = load i64, ptr %5, align 8, !tbaa !13
  %82 = sub nsw i64 %81, 1
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %118

84:                                               ; preds = %79
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %85

85:                                               ; preds = %111, %84
  %86 = load i64, ptr %12, align 8, !tbaa !13
  %87 = load i64, ptr %5, align 8, !tbaa !13
  %88 = sub nsw i64 %87, 1
  %89 = icmp sle i64 %86, %88
  br i1 %89, label %90, label %114

90:                                               ; preds = %85
  %91 = load i64, ptr %12, align 8, !tbaa !13
  %92 = load i64, ptr %11, align 8, !tbaa !13
  %93 = icmp slt i64 %91, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %90
  %95 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %96 = trunc i8 %95 to i1
  br i1 %96, label %104, label %97

97:                                               ; preds = %94, %90
  %98 = load i64, ptr %12, align 8, !tbaa !13
  %99 = load i64, ptr %11, align 8, !tbaa !13
  %100 = icmp sgt i64 %98, %99
  br i1 %100, label %101, label %110

101:                                              ; preds = %97
  %102 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %103 = trunc i8 %102 to i1
  br i1 %103, label %110, label %104

104:                                              ; preds = %101, %94
  %105 = load i64, ptr %11, align 8, !tbaa !13
  %106 = load i64, ptr %12, align 8, !tbaa !13
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %107)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %18, i64 noundef %105, i64 noundef %106, double noundef %108, ptr noundef %109)
  br label %110

110:                                              ; preds = %104, %101, %97
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %12, align 8, !tbaa !13
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %12, align 8, !tbaa !13
  br label %85, !llvm.loop !17

114:                                              ; preds = %85
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %11, align 8, !tbaa !13
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %11, align 8, !tbaa !13
  br label %79, !llvm.loop !19

118:                                              ; preds = %79
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %119)
  %121 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %120, double noundef 5.000000e-01)
  br i1 %121, label %122, label %125

122:                                              ; preds = %118
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %17, ptr noundef %123)
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %124)
  br label %128

125:                                              ; preds = %118
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %17, ptr noundef %126)
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %127)
  br label %128

128:                                              ; preds = %125, %122
  %129 = load i64, ptr %5, align 8, !tbaa !13
  %130 = load i64, ptr %5, align 8, !tbaa !13
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %129, i64 noundef %130, ptr noundef %131)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %132

132:                                              ; preds = %155, %128
  %133 = load i64, ptr %11, align 8, !tbaa !13
  %134 = load i64, ptr %5, align 8, !tbaa !13
  %135 = sub nsw i64 %134, 1
  %136 = icmp sle i64 %133, %135
  br i1 %136, label %137, label %158

137:                                              ; preds = %132
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %138

138:                                              ; preds = %151, %137
  %139 = load i64, ptr %12, align 8, !tbaa !13
  %140 = load i64, ptr %5, align 8, !tbaa !13
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %139, %141
  br i1 %142, label %143, label %154

143:                                              ; preds = %138
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = load i64, ptr %11, align 8, !tbaa !13
  %147 = getelementptr inbounds ptr, ptr %145, i64 %146
  %148 = load ptr, ptr %147, align 8, !tbaa !5
  %149 = load i64, ptr %12, align 8, !tbaa !13
  %150 = getelementptr inbounds double, ptr %148, i64 %149
  store double 0.000000e+00, ptr %150, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %143
  %152 = load i64, ptr %12, align 8, !tbaa !13
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %12, align 8, !tbaa !13
  br label %138, !llvm.loop !21

154:                                              ; preds = %138
  br label %155

155:                                              ; preds = %154
  %156 = load i64, ptr %11, align 8, !tbaa !13
  %157 = add nsw i64 %156, 1
  store i64 %157, ptr %11, align 8, !tbaa !13
  br label %132, !llvm.loop !22

158:                                              ; preds = %132
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %159

159:                                              ; preds = %227, %158
  %160 = load i64, ptr %11, align 8, !tbaa !13
  %161 = load i64, ptr %5, align 8, !tbaa !13
  %162 = sub nsw i64 %161, 1
  %163 = icmp sle i64 %160, %162
  br i1 %163, label %164, label %230

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

165:                                              ; preds = %223, %164
  %166 = load i64, ptr %12, 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 %226

170:                                              ; preds = %165
  %171 = load i64, ptr %12, align 8, !tbaa !13
  %172 = load i64, ptr %11, align 8, !tbaa !13
  %173 = icmp sge i64 %171, %172
  br i1 %173, label %174, label %177

174:                                              ; preds = %170
  %175 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %176 = trunc i8 %175 to i1
  br i1 %176, label %184, label %177

177:                                              ; preds = %174, %170
  %178 = load i64, ptr %12, align 8, !tbaa !13
  %179 = load i64, ptr %11, align 8, !tbaa !13
  %180 = icmp sle i64 %178, %179
  br i1 %180, label %181, label %222

181:                                              ; preds = %177
  %182 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %183 = trunc i8 %182 to i1
  br i1 %183, label %222, label %184

184:                                              ; preds = %181, %174
  %185 = load i64, ptr %11, align 8, !tbaa !13
  store i64 %185, ptr %13, align 8, !tbaa !13
  %186 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %186, ptr %14, align 8, !tbaa !13
  %187 = load i64, ptr %26, align 8, !tbaa !13
  %188 = icmp eq i64 %187, 1
  br i1 %188, label %189, label %191

189:                                              ; preds = %184
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef %13, ptr noundef %14, ptr noundef %190)
  br label %191

191:                                              ; preds = %189, %184
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %193 = load ptr, ptr %192, align 8, !tbaa !20
  %194 = load i64, ptr %11, align 8, !tbaa !13
  %195 = getelementptr inbounds ptr, ptr %193, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load i64, ptr %12, align 8, !tbaa !13
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !9
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !20
  %202 = load i64, ptr %13, align 8, !tbaa !13
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i64, ptr %14, align 8, !tbaa !13
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  store double %199, ptr %206, align 8, !tbaa !9
  %207 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %208 = trunc i8 %207 to i1
  br i1 %208, label %209, label %221

209:                                              ; preds = %191
  %210 = load i64, ptr %13, align 8, !tbaa !13
  %211 = load i64, ptr %14, align 8, !tbaa !13
  %212 = icmp eq i64 %210, %211
  br i1 %212, label %213, label %221

213:                                              ; preds = %209
  %214 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %215 = load ptr, ptr %214, align 8, !tbaa !20
  %216 = load i64, ptr %13, align 8, !tbaa !13
  %217 = getelementptr inbounds ptr, ptr %215, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load i64, ptr %14, align 8, !tbaa !13
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  store double 1.000000e+00, ptr %220, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %213, %209, %191
  br label %222

222:                                              ; preds = %221, %181, %177
  br label %223

223:                                              ; preds = %222
  %224 = load i64, ptr %12, align 8, !tbaa !13
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %12, align 8, !tbaa !13
  br label %165, !llvm.loop !23

226:                                              ; preds = %165
  br label %227

227:                                              ; preds = %226
  %228 = load i64, ptr %11, align 8, !tbaa !13
  %229 = add nsw i64 %228, 1
  store i64 %229, ptr %11, align 8, !tbaa !13
  br label %159, !llvm.loop !24

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

235:                                              ; preds = %257, %230
  %236 = load i64, ptr %12, align 8, !tbaa !13
  %237 = load i64, ptr %5, align 8, !tbaa !13
  %238 = sub nsw i64 %237, 1
  %239 = icmp sle i64 %236, %238
  br i1 %239, label %240, label %260

240:                                              ; preds = %235
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %241)
  %243 = fsub double %242, 5.000000e-01
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !20
  %246 = load i64, ptr %12, align 8, !tbaa !13
  %247 = getelementptr inbounds double, ptr %245, i64 %246
  store double %243, ptr %247, align 8, !tbaa !9
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !20
  %250 = load i64, ptr %12, align 8, !tbaa !13
  %251 = getelementptr inbounds double, ptr %249, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !9
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !20
  %255 = load i64, ptr %12, align 8, !tbaa !13
  %256 = getelementptr inbounds double, ptr %254, i64 %255
  store double %252, ptr %256, align 8, !tbaa !9
  br label %257

257:                                              ; preds = %240
  %258 = load i64, ptr %12, align 8, !tbaa !13
  %259 = add nsw i64 %258, 1
  store i64 %259, ptr %12, align 8, !tbaa !13
  br label %235, !llvm.loop !25

260:                                              ; preds = %235
  %261 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %262 = trunc i8 %261 to i1
  %263 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %264 = trunc i8 %263 to i1
  %265 = load i64, ptr %26, align 8, !tbaa !13
  %266 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrmvEPNS_12sparsematrixEbblPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %262, i1 noundef zeroext %264, i64 noundef %265, ptr noundef %6, ptr noundef %8, ptr noundef %266)
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 0
  %268 = load i64, ptr %267, align 8, !tbaa !26
  %269 = load i64, ptr %5, align 8, !tbaa !13
  %270 = icmp slt i64 %268, %269
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %270, ptr noundef @.str.8, i32 noundef 6106, ptr noundef @.str.146)
  %271 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %272 = trunc i8 %271 to i1
  br i1 %272, label %273, label %277

273:                                              ; preds = %260
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %274)
  %275 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %276 = trunc i8 %275 to i1
  store i1 %276, ptr %2, align 1
  store i32 1, ptr %29, align 4
  br label %711

277:                                              ; preds = %260
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %278

278:                                              ; preds = %308, %277
  %279 = load i64, ptr %11, align 8, !tbaa !13
  %280 = load i64, ptr %5, align 8, !tbaa !13
  %281 = sub nsw i64 %280, 1
  %282 = icmp sle i64 %279, %281
  br i1 %282, label %283, label %311

283:                                              ; preds = %278
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !20
  %286 = load i64, ptr %11, align 8, !tbaa !13
  %287 = getelementptr inbounds ptr, ptr %285, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = getelementptr inbounds double, ptr %288, i64 0
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !20
  %292 = getelementptr inbounds double, ptr %291, i64 0
  %293 = load i64, ptr %5, align 8, !tbaa !13
  %294 = sub nsw i64 %293, 1
  %295 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %294)
  %296 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %289, i64 noundef 1, ptr noundef %292, i64 noundef 1, i64 noundef %295)
  store double %296, ptr %21, align 8, !tbaa !9
  %297 = load double, ptr %21, align 8, !tbaa !9
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !20
  %300 = load i64, ptr %11, align 8, !tbaa !13
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !9
  %303 = fsub double %297, %302
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  %305 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %303, ptr noundef %304)
  %306 = load double, ptr %20, align 8, !tbaa !9
  %307 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %305, double noundef %306)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %307, ptr noundef @.str.8, i32 noundef 6115, ptr noundef @.str.147)
  br label %308

308:                                              ; preds = %283
  %309 = load i64, ptr %11, align 8, !tbaa !13
  %310 = add nsw i64 %309, 1
  store i64 %310, ptr %11, align 8, !tbaa !13
  br label %278, !llvm.loop !29

311:                                              ; preds = %278
  %312 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %313 = trunc i8 %312 to i1
  %314 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %315 = trunc i8 %314 to i1
  %316 = load i64, ptr %26, align 8, !tbaa !13
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrmvEPNS_12sparsematrixEbblPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %313, i1 noundef zeroext %315, i64 noundef %316, ptr noundef %6, ptr noundef %9, ptr noundef %317)
  %318 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %319 = load i64, ptr %318, align 8, !tbaa !26
  %320 = load i64, ptr %5, align 8, !tbaa !13
  %321 = icmp slt i64 %319, %320
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %321, ptr noundef @.str.8, i32 noundef 6118, ptr noundef @.str.148)
  %322 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %323 = trunc i8 %322 to i1
  br i1 %323, label %324, label %328

324:                                              ; preds = %311
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %325)
  %326 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %327 = trunc i8 %326 to i1
  store i1 %327, ptr %2, align 1
  store i32 1, ptr %29, align 4
  br label %711

328:                                              ; preds = %311
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %329

329:                                              ; preds = %359, %328
  %330 = load i64, ptr %11, align 8, !tbaa !13
  %331 = load i64, ptr %5, align 8, !tbaa !13
  %332 = sub nsw i64 %331, 1
  %333 = icmp sle i64 %330, %332
  br i1 %333, label %334, label %362

334:                                              ; preds = %329
  %335 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %336 = load ptr, ptr %335, align 8, !tbaa !20
  %337 = load i64, ptr %11, align 8, !tbaa !13
  %338 = getelementptr inbounds ptr, ptr %336, i64 %337
  %339 = load ptr, ptr %338, align 8, !tbaa !5
  %340 = getelementptr inbounds double, ptr %339, i64 0
  %341 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %342 = load ptr, ptr %341, align 8, !tbaa !20
  %343 = getelementptr inbounds double, ptr %342, i64 0
  %344 = load i64, ptr %5, align 8, !tbaa !13
  %345 = sub nsw i64 %344, 1
  %346 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %345)
  %347 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %340, i64 noundef 1, ptr noundef %343, i64 noundef 1, i64 noundef %346)
  store double %347, ptr %21, align 8, !tbaa !9
  %348 = load double, ptr %21, align 8, !tbaa !9
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %350 = load ptr, ptr %349, align 8, !tbaa !20
  %351 = load i64, ptr %11, align 8, !tbaa !13
  %352 = getelementptr inbounds double, ptr %350, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !9
  %354 = fsub double %348, %353
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  %356 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %354, ptr noundef %355)
  %357 = load double, ptr %20, align 8, !tbaa !9
  %358 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %356, double noundef %357)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %358, ptr noundef @.str.8, i32 noundef 6127, ptr noundef @.str.149)
  br label %359

359:                                              ; preds = %334
  %360 = load i64, ptr %11, align 8, !tbaa !13
  %361 = add nsw i64 %360, 1
  store i64 %361, ptr %11, align 8, !tbaa !13
  br label %329, !llvm.loop !30

362:                                              ; preds = %329
  br label %68, !llvm.loop !31

363:                                              ; preds = %68
  br label %364

364:                                              ; preds = %363
  %365 = load i64, ptr %27, align 8, !tbaa !13
  %366 = add nsw i64 %365, 1
  store i64 %366, ptr %27, align 8, !tbaa !13
  br label %48, !llvm.loop !32

367:                                              ; preds = %48
  br label %368

368:                                              ; preds = %367
  %369 = load i64, ptr %5, align 8, !tbaa !13
  %370 = add nsw i64 %369, 1
  store i64 %370, ptr %5, align 8, !tbaa !13
  br label %44, !llvm.loop !33

371:                                              ; preds = %44
  store i64 1, ptr %5, align 8, !tbaa !13
  br label %372

372:                                              ; preds = %704, %371
  %373 = load i64, ptr %5, align 8, !tbaa !13
  %374 = icmp sle i64 %373, 20
  br i1 %374, label %375, label %707

375:                                              ; preds = %372
  store i64 -1, ptr %27, align 8, !tbaa !13
  br label %376

376:                                              ; preds = %700, %375
  %377 = load i64, ptr %27, align 8, !tbaa !13
  %378 = icmp sle i64 %377, 1
  br i1 %378, label %379, label %703

379:                                              ; preds = %376
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  %381 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %380)
  %382 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %381, double noundef 5.000000e-01)
  %383 = zext i1 %382 to i8
  store i8 %383, ptr %24, align 1, !tbaa !11
  %384 = load i64, ptr %27, align 8, !tbaa !13
  %385 = icmp eq i64 %384, -1
  br i1 %385, label %386, label %387

386:                                              ; preds = %379
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %387

387:                                              ; preds = %386, %379
  %388 = load i64, ptr %27, align 8, !tbaa !13
  %389 = icmp eq i64 %388, 1
  br i1 %389, label %390, label %391

390:                                              ; preds = %387
  store i8 1, ptr %24, align 1, !tbaa !11
  br label %391

391:                                              ; preds = %390, %387
  %392 = load i64, ptr %5, align 8, !tbaa !13
  %393 = load i64, ptr %5, align 8, !tbaa !13
  %394 = load i64, ptr %27, align 8, !tbaa !13
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %392, i64 noundef %393, i64 noundef 1, i64 noundef %394, ptr noundef %22, ptr noundef %395)
  br label %396

396:                                              ; preds = %698, %391
  %397 = load ptr, ptr %3, align 8, !tbaa !5
  %398 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef %22, ptr noundef %15, ptr noundef %19, ptr noundef %397)
  br i1 %398, label %399, label %699

399:                                              ; preds = %396
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %400)
  %402 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %401, double noundef 5.000000e-01)
  %403 = zext i1 %402 to i8
  store i8 %403, ptr %25, align 1, !tbaa !11
  %404 = load ptr, ptr %3, align 8, !tbaa !5
  %405 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %23, i64 noundef 2, ptr noundef %404)
  store i64 %405, ptr %26, align 8, !tbaa !13
  %406 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %18, ptr noundef %406)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %407

407:                                              ; preds = %443, %399
  %408 = load i64, ptr %11, align 8, !tbaa !13
  %409 = load i64, ptr %5, align 8, !tbaa !13
  %410 = sub nsw i64 %409, 1
  %411 = icmp sle i64 %408, %410
  br i1 %411, label %412, label %446

412:                                              ; preds = %407
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %413

413:                                              ; preds = %439, %412
  %414 = load i64, ptr %12, align 8, !tbaa !13
  %415 = load i64, ptr %5, align 8, !tbaa !13
  %416 = sub nsw i64 %415, 1
  %417 = icmp sle i64 %414, %416
  br i1 %417, label %418, label %442

418:                                              ; preds = %413
  %419 = load i64, ptr %12, align 8, !tbaa !13
  %420 = load i64, ptr %11, align 8, !tbaa !13
  %421 = icmp slt i64 %419, %420
  br i1 %421, label %422, label %425

422:                                              ; preds = %418
  %423 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %424 = trunc i8 %423 to i1
  br i1 %424, label %432, label %425

425:                                              ; preds = %422, %418
  %426 = load i64, ptr %12, align 8, !tbaa !13
  %427 = load i64, ptr %11, align 8, !tbaa !13
  %428 = icmp sgt i64 %426, %427
  br i1 %428, label %429, label %438

429:                                              ; preds = %425
  %430 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %431 = trunc i8 %430 to i1
  br i1 %431, label %438, label %432

432:                                              ; preds = %429, %422
  %433 = load i64, ptr %11, align 8, !tbaa !13
  %434 = load i64, ptr %12, align 8, !tbaa !13
  %435 = load ptr, ptr %3, align 8, !tbaa !5
  %436 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %435)
  %437 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %18, i64 noundef %433, i64 noundef %434, double noundef %436, ptr noundef %437)
  br label %438

438:                                              ; preds = %432, %429, %425
  br label %439

439:                                              ; preds = %438
  %440 = load i64, ptr %12, align 8, !tbaa !13
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %12, align 8, !tbaa !13
  br label %413, !llvm.loop !34

442:                                              ; preds = %413
  br label %443

443:                                              ; preds = %442
  %444 = load i64, ptr %11, align 8, !tbaa !13
  %445 = add nsw i64 %444, 1
  store i64 %445, ptr %11, align 8, !tbaa !13
  br label %407, !llvm.loop !35

446:                                              ; preds = %407
  %447 = load ptr, ptr %3, align 8, !tbaa !5
  %448 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %447)
  %449 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %448, double noundef 5.000000e-01)
  br i1 %449, label %450, label %453

450:                                              ; preds = %446
  %451 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %17, ptr noundef %451)
  %452 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %452)
  br label %456

453:                                              ; preds = %446
  %454 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %19, ptr noundef %17, ptr noundef %454)
  %455 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %455)
  br label %456

456:                                              ; preds = %453, %450
  %457 = load i64, ptr %5, align 8, !tbaa !13
  %458 = load i64, ptr %5, align 8, !tbaa !13
  %459 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %457, i64 noundef %458, ptr noundef %459)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %460

460:                                              ; preds = %483, %456
  %461 = load i64, ptr %11, align 8, !tbaa !13
  %462 = load i64, ptr %5, align 8, !tbaa !13
  %463 = sub nsw i64 %462, 1
  %464 = icmp sle i64 %461, %463
  br i1 %464, label %465, label %486

465:                                              ; preds = %460
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %466

466:                                              ; preds = %479, %465
  %467 = load i64, ptr %12, align 8, !tbaa !13
  %468 = load i64, ptr %5, align 8, !tbaa !13
  %469 = sub nsw i64 %468, 1
  %470 = icmp sle i64 %467, %469
  br i1 %470, label %471, label %482

471:                                              ; preds = %466
  %472 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %473 = load ptr, ptr %472, align 8, !tbaa !20
  %474 = load i64, ptr %11, align 8, !tbaa !13
  %475 = getelementptr inbounds ptr, ptr %473, i64 %474
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = load i64, ptr %12, align 8, !tbaa !13
  %478 = getelementptr inbounds double, ptr %476, i64 %477
  store double 0.000000e+00, ptr %478, align 8, !tbaa !9
  br label %479

479:                                              ; preds = %471
  %480 = load i64, ptr %12, align 8, !tbaa !13
  %481 = add nsw i64 %480, 1
  store i64 %481, ptr %12, align 8, !tbaa !13
  br label %466, !llvm.loop !36

482:                                              ; preds = %466
  br label %483

483:                                              ; preds = %482
  %484 = load i64, ptr %11, align 8, !tbaa !13
  %485 = add nsw i64 %484, 1
  store i64 %485, ptr %11, align 8, !tbaa !13
  br label %460, !llvm.loop !37

486:                                              ; preds = %460
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %487

487:                                              ; preds = %555, %486
  %488 = load i64, ptr %11, align 8, !tbaa !13
  %489 = load i64, ptr %5, align 8, !tbaa !13
  %490 = sub nsw i64 %489, 1
  %491 = icmp sle i64 %488, %490
  br i1 %491, label %492, label %558

492:                                              ; preds = %487
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %493

493:                                              ; preds = %551, %492
  %494 = load i64, ptr %12, align 8, !tbaa !13
  %495 = load i64, ptr %5, align 8, !tbaa !13
  %496 = sub nsw i64 %495, 1
  %497 = icmp sle i64 %494, %496
  br i1 %497, label %498, label %554

498:                                              ; preds = %493
  %499 = load i64, ptr %12, align 8, !tbaa !13
  %500 = load i64, ptr %11, align 8, !tbaa !13
  %501 = icmp sge i64 %499, %500
  br i1 %501, label %502, label %505

502:                                              ; preds = %498
  %503 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %504 = trunc i8 %503 to i1
  br i1 %504, label %512, label %505

505:                                              ; preds = %502, %498
  %506 = load i64, ptr %12, align 8, !tbaa !13
  %507 = load i64, ptr %11, align 8, !tbaa !13
  %508 = icmp sle i64 %506, %507
  br i1 %508, label %509, label %550

509:                                              ; preds = %505
  %510 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %511 = trunc i8 %510 to i1
  br i1 %511, label %550, label %512

512:                                              ; preds = %509, %502
  %513 = load i64, ptr %11, align 8, !tbaa !13
  store i64 %513, ptr %13, align 8, !tbaa !13
  %514 = load i64, ptr %12, align 8, !tbaa !13
  store i64 %514, ptr %14, align 8, !tbaa !13
  %515 = load i64, ptr %26, align 8, !tbaa !13
  %516 = icmp eq i64 %515, 1
  br i1 %516, label %517, label %519

517:                                              ; preds = %512
  %518 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef %13, ptr noundef %14, ptr noundef %518)
  br label %519

519:                                              ; preds = %517, %512
  %520 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %521 = load ptr, ptr %520, align 8, !tbaa !20
  %522 = load i64, ptr %11, align 8, !tbaa !13
  %523 = getelementptr inbounds ptr, ptr %521, i64 %522
  %524 = load ptr, ptr %523, align 8, !tbaa !5
  %525 = load i64, ptr %12, align 8, !tbaa !13
  %526 = getelementptr inbounds double, ptr %524, i64 %525
  %527 = load double, ptr %526, align 8, !tbaa !9
  %528 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %529 = load ptr, ptr %528, align 8, !tbaa !20
  %530 = load i64, ptr %13, align 8, !tbaa !13
  %531 = getelementptr inbounds ptr, ptr %529, i64 %530
  %532 = load ptr, ptr %531, align 8, !tbaa !5
  %533 = load i64, ptr %14, align 8, !tbaa !13
  %534 = getelementptr inbounds double, ptr %532, i64 %533
  store double %527, ptr %534, align 8, !tbaa !9
  %535 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %536 = trunc i8 %535 to i1
  br i1 %536, label %537, label %549

537:                                              ; preds = %519
  %538 = load i64, ptr %13, align 8, !tbaa !13
  %539 = load i64, ptr %14, align 8, !tbaa !13
  %540 = icmp eq i64 %538, %539
  br i1 %540, label %541, label %549

541:                                              ; preds = %537
  %542 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %543 = load ptr, ptr %542, align 8, !tbaa !20
  %544 = load i64, ptr %13, align 8, !tbaa !13
  %545 = getelementptr inbounds ptr, ptr %543, i64 %544
  %546 = load ptr, ptr %545, align 8, !tbaa !5
  %547 = load i64, ptr %14, align 8, !tbaa !13
  %548 = getelementptr inbounds double, ptr %546, i64 %547
  store double 1.000000e+00, ptr %548, align 8, !tbaa !9
  br label %549

549:                                              ; preds = %541, %537, %519
  br label %550

550:                                              ; preds = %549, %509, %505
  br label %551

551:                                              ; preds = %550
  %552 = load i64, ptr %12, align 8, !tbaa !13
  %553 = add nsw i64 %552, 1
  store i64 %553, ptr %12, align 8, !tbaa !13
  br label %493, !llvm.loop !38

554:                                              ; preds = %493
  br label %555

555:                                              ; preds = %554
  %556 = load i64, ptr %11, align 8, !tbaa !13
  %557 = add nsw i64 %556, 1
  store i64 %557, ptr %11, align 8, !tbaa !13
  br label %487, !llvm.loop !39

558:                                              ; preds = %487
  %559 = load i64, ptr %5, align 8, !tbaa !13
  %560 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %559, ptr noundef %560)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %561

561:                                              ; preds = %574, %558
  %562 = load i64, ptr %11, align 8, !tbaa !13
  %563 = load i64, ptr %5, align 8, !tbaa !13
  %564 = sub nsw i64 %563, 1
  %565 = icmp sle i64 %562, %564
  br i1 %565, label %566, label %577

566:                                              ; preds = %561
  %567 = load ptr, ptr %3, align 8, !tbaa !5
  %568 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %23, ptr noundef %567)
  %569 = fsub double %568, 5.000000e-01
  %570 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %571 = load ptr, ptr %570, align 8, !tbaa !20
  %572 = load i64, ptr %11, align 8, !tbaa !13
  %573 = getelementptr inbounds double, ptr %571, i64 %572
  store double %569, ptr %573, align 8, !tbaa !9
  br label %574

574:                                              ; preds = %566
  %575 = load i64, ptr %11, align 8, !tbaa !13
  %576 = add nsw i64 %575, 1
  store i64 %576, ptr %11, align 8, !tbaa !13
  br label %561, !llvm.loop !40

577:                                              ; preds = %561
  %578 = load i64, ptr %5, align 8, !tbaa !13
  %579 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %578, ptr noundef %579)
  %580 = load i64, ptr %5, align 8, !tbaa !13
  %581 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %580, ptr noundef %581)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %582

582:                                              ; preds = %611, %577
  %583 = load i64, ptr %11, align 8, !tbaa !13
  %584 = load i64, ptr %5, align 8, !tbaa !13
  %585 = sub nsw i64 %584, 1
  %586 = icmp sle i64 %583, %585
  br i1 %586, label %587, label %614

587:                                              ; preds = %582
  %588 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %589 = load ptr, ptr %588, align 8, !tbaa !20
  %590 = load i64, ptr %11, align 8, !tbaa !13
  %591 = getelementptr inbounds ptr, ptr %589, i64 %590
  %592 = load ptr, ptr %591, align 8, !tbaa !5
  %593 = getelementptr inbounds double, ptr %592, i64 0
  %594 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %595 = load ptr, ptr %594, align 8, !tbaa !20
  %596 = getelementptr inbounds double, ptr %595, i64 0
  %597 = load i64, ptr %5, 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 %593, i64 noundef 1, ptr noundef %596, i64 noundef 1, i64 noundef %599)
  store double %600, ptr %21, align 8, !tbaa !9
  %601 = load double, ptr %21, align 8, !tbaa !9
  %602 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %603 = load ptr, ptr %602, align 8, !tbaa !20
  %604 = load i64, ptr %11, align 8, !tbaa !13
  %605 = getelementptr inbounds double, ptr %603, i64 %604
  store double %601, ptr %605, align 8, !tbaa !9
  %606 = load double, ptr %21, align 8, !tbaa !9
  %607 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %608 = load ptr, ptr %607, align 8, !tbaa !20
  %609 = load i64, ptr %11, align 8, !tbaa !13
  %610 = getelementptr inbounds double, ptr %608, i64 %609
  store double %606, ptr %610, align 8, !tbaa !9
  br label %611

611:                                              ; preds = %587
  %612 = load i64, ptr %11, align 8, !tbaa !13
  %613 = add nsw i64 %612, 1
  store i64 %613, ptr %11, align 8, !tbaa !13
  br label %582, !llvm.loop !41

614:                                              ; preds = %582
  %615 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %616 = trunc i8 %615 to i1
  %617 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %618 = trunc i8 %617 to i1
  %619 = load i64, ptr %26, align 8, !tbaa !13
  %620 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %17, i1 noundef zeroext %616, i1 noundef zeroext %618, i64 noundef %619, ptr noundef %6, ptr noundef %620)
  %621 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 0
  %622 = load i64, ptr %621, align 8, !tbaa !26
  %623 = load i64, ptr %5, align 8, !tbaa !13
  %624 = icmp slt i64 %622, %623
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %624, ptr noundef @.str.8, i32 noundef 6237, ptr noundef @.str.150)
  %625 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %626 = trunc i8 %625 to i1
  br i1 %626, label %627, label %631

627:                                              ; preds = %614
  %628 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %628)
  %629 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %630 = trunc i8 %629 to i1
  store i1 %630, ptr %2, align 1
  store i32 1, ptr %29, align 4
  br label %711

631:                                              ; preds = %614
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %632

632:                                              ; preds = %653, %631
  %633 = load i64, ptr %11, align 8, !tbaa !13
  %634 = load i64, ptr %5, align 8, !tbaa !13
  %635 = sub nsw i64 %634, 1
  %636 = icmp sle i64 %633, %635
  br i1 %636, label %637, label %656

637:                                              ; preds = %632
  %638 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %639 = load ptr, ptr %638, align 8, !tbaa !20
  %640 = load i64, ptr %11, align 8, !tbaa !13
  %641 = getelementptr inbounds double, ptr %639, i64 %640
  %642 = load double, ptr %641, align 8, !tbaa !9
  %643 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %644 = load ptr, ptr %643, align 8, !tbaa !20
  %645 = load i64, ptr %11, align 8, !tbaa !13
  %646 = getelementptr inbounds double, ptr %644, i64 %645
  %647 = load double, ptr %646, align 8, !tbaa !9
  %648 = fsub double %642, %647
  %649 = load ptr, ptr %3, align 8, !tbaa !5
  %650 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %648, ptr noundef %649)
  %651 = load double, ptr %20, align 8, !tbaa !9
  %652 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %650, double noundef %651)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %652, ptr noundef @.str.8, i32 noundef 6245, ptr noundef @.str.151)
  br label %653

653:                                              ; preds = %637
  %654 = load i64, ptr %11, align 8, !tbaa !13
  %655 = add nsw i64 %654, 1
  store i64 %655, ptr %11, align 8, !tbaa !13
  br label %632, !llvm.loop !42

656:                                              ; preds = %632
  %657 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %658 = trunc i8 %657 to i1
  %659 = load i8, ptr %25, align 1, !tbaa !11, !range !15, !noundef !16
  %660 = trunc i8 %659 to i1
  %661 = load i64, ptr %26, align 8, !tbaa !13
  %662 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %18, i1 noundef zeroext %658, i1 noundef zeroext %660, i64 noundef %661, ptr noundef %7, ptr noundef %662)
  %663 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 0
  %664 = load i64, ptr %663, align 8, !tbaa !26
  %665 = load i64, ptr %5, align 8, !tbaa !13
  %666 = icmp slt i64 %664, %665
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %666, ptr noundef @.str.8, i32 noundef 6248, ptr noundef @.str.152)
  %667 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %668 = trunc i8 %667 to i1
  br i1 %668, label %669, label %673

669:                                              ; preds = %656
  %670 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %670)
  %671 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %672 = trunc i8 %671 to i1
  store i1 %672, ptr %2, align 1
  store i32 1, ptr %29, align 4
  br label %711

673:                                              ; preds = %656
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %674

674:                                              ; preds = %695, %673
  %675 = load i64, ptr %11, align 8, !tbaa !13
  %676 = load i64, ptr %5, align 8, !tbaa !13
  %677 = sub nsw i64 %676, 1
  %678 = icmp sle i64 %675, %677
  br i1 %678, label %679, label %698

679:                                              ; preds = %674
  %680 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %681 = load ptr, ptr %680, align 8, !tbaa !20
  %682 = load i64, ptr %11, align 8, !tbaa !13
  %683 = getelementptr inbounds double, ptr %681, i64 %682
  %684 = load double, ptr %683, align 8, !tbaa !9
  %685 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %686 = load ptr, ptr %685, align 8, !tbaa !20
  %687 = load i64, ptr %11, align 8, !tbaa !13
  %688 = getelementptr inbounds double, ptr %686, i64 %687
  %689 = load double, ptr %688, align 8, !tbaa !9
  %690 = fsub double %684, %689
  %691 = load ptr, ptr %3, align 8, !tbaa !5
  %692 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %690, ptr noundef %691)
  %693 = load double, ptr %20, align 8, !tbaa !9
  %694 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %692, double noundef %693)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %28, i1 noundef zeroext %694, ptr noundef @.str.8, i32 noundef 6256, ptr noundef @.str.153)
  br label %695

695:                                              ; preds = %679
  %696 = load i64, ptr %11, align 8, !tbaa !13
  %697 = add nsw i64 %696, 1
  store i64 %697, ptr %11, align 8, !tbaa !13
  br label %674, !llvm.loop !43

698:                                              ; preds = %674
  br label %396, !llvm.loop !44

699:                                              ; preds = %396
  br label %700

700:                                              ; preds = %699
  %701 = load i64, ptr %27, align 8, !tbaa !13
  %702 = add nsw i64 %701, 1
  store i64 %702, ptr %27, align 8, !tbaa !13
  br label %376, !llvm.loop !45

703:                                              ; preds = %376
  br label %704

704:                                              ; preds = %703
  %705 = load i64, ptr %5, align 8, !tbaa !13
  %706 = add nsw i64 %705, 1
  store i64 %706, ptr %5, align 8, !tbaa !13
  br label %372, !llvm.loop !46

707:                                              ; preds = %372
  %708 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %708)
  %709 = load i8, ptr %28, align 1, !tbaa !11, !range !15, !noundef !16
  %710 = trunc i8 %709 to i1
  store i1 %710, ptr %2, align 1
  store i32 1, ptr %29, align 4
  br label %711

711:                                              ; preds = %707, %669, %627, %324, %273
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 64, 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
  %712 = load i1, ptr %2, align 1
  ret i1 %712
}

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

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

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

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

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

declare void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr 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_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 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 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = !{!27, !14, i64 0}
!27 = !{!"_ZTSN11alglib_impl9ae_vectorE", !14, i64 0, !14, i64 8, !12, i64 16, !28, i64 24, !7, i64 56}
!28 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = distinct !{!29, !18}
!30 = distinct !{!30, !18}
!31 = distinct !{!31, !18}
!32 = distinct !{!32, !18}
!33 = distinct !{!33, !18}
!34 = distinct !{!34, !18}
!35 = distinct !{!35, !18}
!36 = distinct !{!36, !18}
!37 = distinct !{!37, !18}
!38 = distinct !{!38, !18}
!39 = distinct !{!39, !18}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}
!42 = distinct !{!42, !18}
!43 = distinct !{!43, !18}
!44 = distinct !{!44, !18}
!45 = distinct !{!45, !18}
!46 = distinct !{!46, !18}


; 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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.153 = 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 void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr 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 @_Z20testlevel2triangularPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #3 {
  %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_vector", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %13 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %14 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %15 = alloca %struct.sparsegenerator, align 8
  %16 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %17 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #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(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(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %12, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %13, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %14, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(400) %15, i8 0, i64 400, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %16, 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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, 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 %10, 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 %11, 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 %12, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %0, i1 noundef zeroext true)
  call void @_Z21_sparsegenerator_initPvPN11alglib_impl8ae_stateEb(ptr noundef nonnull %15, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef %0, i1 noundef zeroext true)
  store i8 0, ptr %17, align 1, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %18 = getelementptr inbounds i8, ptr %11, i64 72
  %19 = getelementptr inbounds i8, ptr %10, i64 72
  %20 = getelementptr inbounds i8, ptr %3, i64 56
  %21 = getelementptr inbounds i8, ptr %4, i64 56
  %22 = getelementptr inbounds i8, ptr %5, i64 56
  %23 = getelementptr inbounds i8, ptr %6, i64 56
  br label %.preheader315

.preheader315:                                    ; preds = %1, %200
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %200 ]
  %.0247352 = phi i64 [ 1, %1 ], [ %201, %200 ]
  %24 = add nsw i64 %.0247352, -1
  %xtraiter = and i64 %.0247352, 3
  %25 = icmp ult i64 %indvar, 3
  %unroll_iter = and i64 %.0247352, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %27

.preheader307:                                    ; preds = %200
  %26 = getelementptr inbounds i8, ptr %7, i64 56
  br label %.preheader306

27:                                               ; preds = %.preheader315, %._crit_edge
  %.0351 = phi i64 [ -1, %.preheader315 ], [ %199, %._crit_edge ]
  %28 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %29 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %28, double noundef 5.000000e-01)
  %30 = icmp sgt i64 %.0351, -1
  %narrow268 = and i1 %30, %29
  %31 = icmp eq i64 %.0351, 1
  %narrow269 = or i1 %31, %narrow268
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %.0247352, i64 noundef %.0247352, i64 noundef 0, i64 noundef %.0351, ptr noundef nonnull %15, ptr noundef %0)
  %32 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %27
  %narrow269.not284 = xor i1 %narrow269, true
  br label %34

.loopexit312:                                     ; preds = %.preheader311
  %33 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %33, label %34, label %._crit_edge, !llvm.loop !9

34:                                               ; preds = %.lr.ph, %.loopexit312
  %35 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %36 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %35, double noundef 5.000000e-01)
  %37 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef %0)
  br label %.preheader310

.preheader310:                                    ; preds = %34, %45
  %.0240318 = phi i64 [ 0, %34 ], [ %46, %45 ]
  br label %38

38:                                               ; preds = %.preheader310, %43
  %.0238317 = phi i64 [ 0, %.preheader310 ], [ %44, %43 ]
  %39 = icmp uge i64 %.0238317, %.0240318
  %40 = icmp ule i64 %.0238317, %.0240318
  %or.cond299 = select i1 %narrow269, i1 %39, i1 %40
  br i1 %or.cond299, label %43, label %41

41:                                               ; preds = %38
  %42 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.0240318, i64 noundef %.0238317, double noundef %42, ptr noundef %0)
  br label %43

43:                                               ; preds = %38, %41
  %44 = add nuw nsw i64 %.0238317, 1
  %exitcond.not = icmp eq i64 %44, %.0247352
  br i1 %exitcond.not, label %45, label %38, !llvm.loop !11

45:                                               ; preds = %43
  %46 = add nuw nsw i64 %.0240318, 1
  %exitcond401.not = icmp eq i64 %46, %.0247352
  br i1 %exitcond401.not, label %47, label %.preheader310, !llvm.loop !12

47:                                               ; preds = %45
  %48 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %49 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %48, double noundef 5.000000e-01)
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %0)
  br label %52

51:                                               ; preds = %47
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %0)
  br label %52

52:                                               ; preds = %51, %50
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0247352, i64 noundef %.0247352, ptr noundef %0)
  br label %.preheader309

.preheader314:                                    ; preds = %.epilog-lcssa
  %53 = icmp eq i64 %37, 1
  br i1 %53, label %.preheader314.split.us, label %.preheader314.split

.preheader314.split.us:                           ; preds = %.preheader314
  br i1 %36, label %.preheader308.us.us, label %.preheader308.us

.preheader308.us.us:                              ; preds = %.preheader314.split.us, %.split.us.us.split.us346
  %.2242330.us.us = phi i64 [ %75, %.split.us.us.split.us346 ], [ 0, %.preheader314.split.us ]
  br label %54

54:                                               ; preds = %.preheader308.us.us, %73
  %.2321.us.us.us339 = phi i64 [ 0, %.preheader308.us.us ], [ %74, %73 ]
  %.not277.us.us.us340 = icmp ult i64 %.2321.us.us.us339, %.2242330.us.us
  %brmerge285.us.us.us341 = or i1 %.not277.us.us.us340, %narrow269.not284
  %.not278.us.us.us342 = icmp ugt i64 %.2321.us.us.us339, %.2242330.us.us
  %brmerge286.us.us.us343 = or i1 %narrow269, %.not278.us.us.us342
  %or.cond.us.us.us344 = and i1 %brmerge285.us.us.us341, %brmerge286.us.us.us343
  br i1 %or.cond.us.us.us344, label %73, label %55

55:                                               ; preds = %54
  store i64 %.2242330.us.us, ptr %8, align 8, !tbaa !13
  store i64 %.2321.us.us.us339, ptr %9, align 8, !tbaa !13
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %0)
  %56 = load ptr, ptr %19, align 8, !tbaa !15
  %57 = getelementptr inbounds ptr, ptr %56, i64 %.2242330.us.us
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = getelementptr inbounds double, ptr %58, i64 %.2321.us.us.us339
  %60 = load double, ptr %59, align 8, !tbaa !18
  %61 = load ptr, ptr %18, align 8, !tbaa !15
  %62 = load i64, ptr %8, align 8, !tbaa !13
  %63 = getelementptr inbounds ptr, ptr %61, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %65 = load i64, ptr %9, align 8, !tbaa !13
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  store double %60, ptr %66, align 8, !tbaa !18
  %67 = icmp eq i64 %62, %65
  br i1 %67, label %68, label %73

68:                                               ; preds = %55
  %69 = load ptr, ptr %18, align 8, !tbaa !15
  %70 = getelementptr inbounds ptr, ptr %69, i64 %62
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds double, ptr %71, i64 %62
  store double 1.000000e+00, ptr %72, align 8, !tbaa !18
  br label %73

73:                                               ; preds = %68, %55, %54
  %74 = add nuw nsw i64 %.2321.us.us.us339, 1
  %exitcond410.not = icmp eq i64 %74, %.0247352
  br i1 %exitcond410.not, label %.split.us.us.split.us346, label %54, !llvm.loop !20

.split.us.us.split.us346:                         ; preds = %73
  %75 = add nuw nsw i64 %.2242330.us.us, 1
  %exitcond411.not = icmp eq i64 %75, %.0247352
  br i1 %exitcond411.not, label %.split333.us, label %.preheader308.us.us, !llvm.loop !21

.preheader308.us:                                 ; preds = %.preheader314.split.us, %.split.us.us.split.us
  %.2242330.us = phi i64 [ %91, %.split.us.us.split.us ], [ 0, %.preheader314.split.us ]
  br label %76

76:                                               ; preds = %89, %.preheader308.us
  %.2321.us.us.us = phi i64 [ 0, %.preheader308.us ], [ %90, %89 ]
  %.not277.us.us.us = icmp ult i64 %.2321.us.us.us, %.2242330.us
  %brmerge285.us.us.us = or i1 %.not277.us.us.us, %narrow269.not284
  %.not278.us.us.us = icmp ugt i64 %.2321.us.us.us, %.2242330.us
  %brmerge286.us.us.us = or i1 %narrow269, %.not278.us.us.us
  %or.cond.us.us.us = and i1 %brmerge285.us.us.us, %brmerge286.us.us.us
  br i1 %or.cond.us.us.us, label %89, label %77

77:                                               ; preds = %76
  store i64 %.2242330.us, ptr %8, align 8, !tbaa !13
  store i64 %.2321.us.us.us, ptr %9, align 8, !tbaa !13
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %0)
  %78 = load ptr, ptr %19, align 8, !tbaa !15
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.2242330.us
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds double, ptr %80, i64 %.2321.us.us.us
  %82 = load double, ptr %81, align 8, !tbaa !18
  %83 = load ptr, ptr %18, align 8, !tbaa !15
  %84 = load i64, ptr %8, align 8, !tbaa !13
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = load i64, ptr %9, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  store double %82, ptr %88, align 8, !tbaa !18
  br label %89

89:                                               ; preds = %77, %76
  %90 = add nuw nsw i64 %.2321.us.us.us, 1
  %exitcond408.not = icmp eq i64 %90, %.0247352
  br i1 %exitcond408.not, label %.split.us.us.split.us, label %76, !llvm.loop !20

.split.us.us.split.us:                            ; preds = %89
  %91 = add nuw nsw i64 %.2242330.us, 1
  %exitcond409.not = icmp eq i64 %91, %.0247352
  br i1 %exitcond409.not, label %.split333.us, label %.preheader308.us, !llvm.loop !21

.preheader314.split:                              ; preds = %.preheader314
  br i1 %36, label %.preheader308.us334, label %.preheader308

.preheader308.us334:                              ; preds = %.preheader314.split, %.split.split.us336
  %.2242330.us335 = phi i64 [ %92, %.split.split.us336 ], [ 0, %.preheader314.split ]
  br label %93

.split.split.us336:                               ; preds = %110
  %92 = add nuw nsw i64 %.2242330.us335, 1
  %exitcond407.not = icmp eq i64 %92, %.0247352
  br i1 %exitcond407.not, label %.split333.us, label %.preheader308.us334, !llvm.loop !21

93:                                               ; preds = %.preheader308.us334, %110
  %.2321.us = phi i64 [ 0, %.preheader308.us334 ], [ %111, %110 ]
  %.not277.us = icmp ult i64 %.2321.us, %.2242330.us335
  %brmerge285.us = or i1 %.not277.us, %narrow269.not284
  %.not278.us = icmp ugt i64 %.2321.us, %.2242330.us335
  %brmerge286.us = or i1 %narrow269, %.not278.us
  %or.cond.us = and i1 %brmerge285.us, %brmerge286.us
  br i1 %or.cond.us, label %110, label %94

94:                                               ; preds = %93
  store i64 %.2242330.us335, ptr %8, align 8, !tbaa !13
  store i64 %.2321.us, ptr %9, align 8, !tbaa !13
  %95 = load ptr, ptr %19, align 8, !tbaa !15
  %96 = getelementptr inbounds ptr, ptr %95, i64 %.2242330.us335
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds double, ptr %97, i64 %.2321.us
  %99 = load double, ptr %98, align 8, !tbaa !18
  %100 = load ptr, ptr %18, align 8, !tbaa !15
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.2242330.us335
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = getelementptr inbounds double, ptr %102, i64 %.2321.us
  store double %99, ptr %103, align 8, !tbaa !18
  %104 = icmp eq i64 %.2242330.us335, %.2321.us
  br i1 %104, label %105, label %110

105:                                              ; preds = %94
  %106 = load ptr, ptr %18, align 8, !tbaa !15
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.2242330.us335
  %108 = load ptr, ptr %107, align 8, !tbaa !16
  %109 = getelementptr inbounds double, ptr %108, i64 %.2242330.us335
  store double 1.000000e+00, ptr %109, align 8, !tbaa !18
  br label %110

110:                                              ; preds = %105, %94, %93
  %111 = add nuw nsw i64 %.2321.us, 1
  %exitcond406.not = icmp eq i64 %111, %.0247352
  br i1 %exitcond406.not, label %.split.split.us336, label %93, !llvm.loop !20

.preheader309:                                    ; preds = %52, %.epilog-lcssa
  %.1241320 = phi i64 [ 0, %52 ], [ %137, %.epilog-lcssa ]
  br i1 %25, label %.unr-lcssa, label %.preheader309.new

.preheader309.new:                                ; preds = %.preheader309, %.preheader309.new
  %.1239319 = phi i64 [ %131, %.preheader309.new ], [ 0, %.preheader309 ]
  %niter = phi i64 [ %niter.next.3, %.preheader309.new ], [ 0, %.preheader309 ]
  %112 = load ptr, ptr %18, align 8, !tbaa !15
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.1241320
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  %115 = getelementptr inbounds double, ptr %114, i64 %.1239319
  store double 0.000000e+00, ptr %115, align 8, !tbaa !18
  %116 = or disjoint i64 %.1239319, 1
  %117 = load ptr, ptr %18, align 8, !tbaa !15
  %118 = getelementptr inbounds ptr, ptr %117, i64 %.1241320
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  %120 = getelementptr inbounds double, ptr %119, i64 %116
  store double 0.000000e+00, ptr %120, align 8, !tbaa !18
  %121 = or disjoint i64 %.1239319, 2
  %122 = load ptr, ptr %18, align 8, !tbaa !15
  %123 = getelementptr inbounds ptr, ptr %122, i64 %.1241320
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = getelementptr inbounds double, ptr %124, i64 %121
  store double 0.000000e+00, ptr %125, align 8, !tbaa !18
  %126 = or disjoint i64 %.1239319, 3
  %127 = load ptr, ptr %18, align 8, !tbaa !15
  %128 = getelementptr inbounds ptr, ptr %127, i64 %.1241320
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  %130 = getelementptr inbounds double, ptr %129, i64 %126
  store double 0.000000e+00, ptr %130, align 8, !tbaa !18
  %131 = add nuw nsw i64 %.1239319, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %.preheader309.new, !llvm.loop !22

.unr-lcssa:                                       ; preds = %.preheader309.new, %.preheader309
  %.1239319.unr = phi i64 [ 0, %.preheader309 ], [ %131, %.preheader309.new ]
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %.1239319.epil = phi i64 [ %136, %.epil.preheader ], [ %.1239319.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %132 = load ptr, ptr %18, align 8, !tbaa !15
  %133 = getelementptr inbounds ptr, ptr %132, i64 %.1241320
  %134 = load ptr, ptr %133, align 8, !tbaa !16
  %135 = getelementptr inbounds double, ptr %134, i64 %.1239319.epil
  store double 0.000000e+00, ptr %135, align 8, !tbaa !18
  %136 = add nuw nsw i64 %.1239319.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 %.epilog-lcssa, label %.epil.preheader, !llvm.loop !23

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %137 = add nuw nsw i64 %.1241320, 1
  %exitcond403.not = icmp eq i64 %137, %.0247352
  br i1 %exitcond403.not, label %.preheader314, label %.preheader309, !llvm.loop !25

.preheader308:                                    ; preds = %.preheader314.split, %.split.split.us
  %.2242330 = phi i64 [ %151, %.split.split.us ], [ 0, %.preheader314.split ]
  br label %138

138:                                              ; preds = %149, %.preheader308
  %.2321.us322 = phi i64 [ 0, %.preheader308 ], [ %150, %149 ]
  %.not277.us323 = icmp ult i64 %.2321.us322, %.2242330
  %brmerge285.us324 = or i1 %.not277.us323, %narrow269.not284
  %.not278.us325 = icmp ugt i64 %.2321.us322, %.2242330
  %brmerge286.us326 = or i1 %narrow269, %.not278.us325
  %or.cond.us327 = and i1 %brmerge285.us324, %brmerge286.us326
  br i1 %or.cond.us327, label %149, label %139

139:                                              ; preds = %138
  store i64 %.2242330, ptr %8, align 8, !tbaa !13
  store i64 %.2321.us322, ptr %9, align 8, !tbaa !13
  %140 = load ptr, ptr %19, align 8, !tbaa !15
  %141 = getelementptr inbounds ptr, ptr %140, i64 %.2242330
  %142 = load ptr, ptr %141, align 8, !tbaa !16
  %143 = getelementptr inbounds double, ptr %142, i64 %.2321.us322
  %144 = load double, ptr %143, align 8, !tbaa !18
  %145 = load ptr, ptr %18, align 8, !tbaa !15
  %146 = getelementptr inbounds ptr, ptr %145, i64 %.2242330
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = getelementptr inbounds double, ptr %147, i64 %.2321.us322
  store double %144, ptr %148, align 8, !tbaa !18
  br label %149

149:                                              ; preds = %139, %138
  %150 = add nuw nsw i64 %.2321.us322, 1
  %exitcond404.not = icmp eq i64 %150, %.0247352
  br i1 %exitcond404.not, label %.split.split.us, label %138, !llvm.loop !20

.split.split.us:                                  ; preds = %149
  %151 = add nuw nsw i64 %.2242330, 1
  %exitcond405.not = icmp eq i64 %151, %.0247352
  br i1 %exitcond405.not, label %.split333.us, label %.preheader308, !llvm.loop !21

.split333.us:                                     ; preds = %.split.split.us, %.split.split.us336, %.split.us.us.split.us, %.split.us.us.split.us346
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0247352, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0247352, ptr noundef %0)
  br label %152

152:                                              ; preds = %.split333.us, %152
  %.3348 = phi i64 [ 0, %.split333.us ], [ %162, %152 ]
  %153 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %154 = fadd double %153, -5.000000e-01
  %155 = load ptr, ptr %20, align 8, !tbaa !15
  %156 = getelementptr inbounds double, ptr %155, i64 %.3348
  store double %154, ptr %156, align 8, !tbaa !18
  %157 = load ptr, ptr %20, align 8, !tbaa !15
  %158 = getelementptr inbounds double, ptr %157, i64 %.3348
  %159 = load double, ptr %158, align 8, !tbaa !18
  %160 = load ptr, ptr %21, align 8, !tbaa !15
  %161 = getelementptr inbounds double, ptr %160, i64 %.3348
  store double %159, ptr %161, align 8, !tbaa !18
  %162 = add nuw nsw i64 %.3348, 1
  %exitcond412.not = icmp eq i64 %162, %.0247352
  br i1 %exitcond412.not, label %163, label %152, !llvm.loop !26

163:                                              ; preds = %152
  call void @_ZN11alglib_impl10sparsetrmvEPNS_12sparsematrixEbblPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %12, i1 noundef zeroext %narrow269, i1 noundef zeroext %36, i64 noundef %37, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  %164 = load i64, ptr %5, align 8, !tbaa !27
  %165 = icmp slt i64 %164, %.0247352
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %165, ptr noundef nonnull @.str.8, i32 noundef 6106, ptr noundef nonnull @.str.146)
  %166 = load i8, ptr %17, align 1, !tbaa !5, !range !30, !noundef !31
  %167 = trunc nuw i8 %166 to i1
  br i1 %167, label %.loopexit444, label %.preheader313

.preheader313:                                    ; preds = %163, %.preheader313
  %.3243349 = phi i64 [ %180, %.preheader313 ], [ 0, %163 ]
  %168 = load ptr, ptr %18, align 8, !tbaa !15
  %169 = getelementptr inbounds ptr, ptr %168, i64 %.3243349
  %170 = load ptr, ptr %169, align 8, !tbaa !16
  %171 = load ptr, ptr %21, align 8, !tbaa !15
  %172 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  %173 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %170, i64 noundef 1, ptr noundef %171, i64 noundef 1, i64 noundef %172)
  %174 = load ptr, ptr %22, align 8, !tbaa !15
  %175 = getelementptr inbounds double, ptr %174, i64 %.3243349
  %176 = load double, ptr %175, align 8, !tbaa !18
  %177 = fsub double %173, %176
  %178 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %177, ptr noundef %0)
  %179 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %178, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %179, ptr noundef nonnull @.str.8, i32 noundef 6115, ptr noundef nonnull @.str.147)
  %180 = add nuw nsw i64 %.3243349, 1
  %exitcond413.not = icmp eq i64 %180, %.0247352
  br i1 %exitcond413.not, label %181, label %.preheader313, !llvm.loop !32

181:                                              ; preds = %.preheader313
  call void @_ZN11alglib_impl10sparsetrmvEPNS_12sparsematrixEbblPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %12, i1 noundef zeroext %narrow269, i1 noundef zeroext %36, i64 noundef %37, ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef %0)
  %182 = load i64, ptr %6, align 8, !tbaa !27
  %183 = icmp slt i64 %182, %.0247352
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %183, ptr noundef nonnull @.str.8, i32 noundef 6118, ptr noundef nonnull @.str.148)
  %184 = load i8, ptr %17, align 1, !tbaa !5, !range !30, !noundef !31
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %.loopexit444, label %.preheader311

.preheader311:                                    ; preds = %181, %.preheader311
  %.4244350 = phi i64 [ %198, %.preheader311 ], [ 0, %181 ]
  %186 = load ptr, ptr %18, align 8, !tbaa !15
  %187 = getelementptr inbounds ptr, ptr %186, i64 %.4244350
  %188 = load ptr, ptr %187, align 8, !tbaa !16
  %189 = load ptr, ptr %21, align 8, !tbaa !15
  %190 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %24)
  %191 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %188, i64 noundef 1, ptr noundef %189, i64 noundef 1, i64 noundef %190)
  %192 = load ptr, ptr %23, align 8, !tbaa !15
  %193 = getelementptr inbounds double, ptr %192, i64 %.4244350
  %194 = load double, ptr %193, align 8, !tbaa !18
  %195 = fsub double %191, %194
  %196 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %195, ptr noundef %0)
  %197 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %196, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %197, ptr noundef nonnull @.str.8, i32 noundef 6127, ptr noundef nonnull @.str.149)
  %198 = add nuw nsw i64 %.4244350, 1
  %exitcond414.not = icmp eq i64 %198, %.0247352
  br i1 %exitcond414.not, label %.loopexit312, label %.preheader311, !llvm.loop !33

._crit_edge:                                      ; preds = %.loopexit312, %27
  %199 = add nsw i64 %.0351, 1
  %exitcond415.not = icmp eq i64 %199, 2
  br i1 %exitcond415.not, label %200, label %27, !llvm.loop !34

200:                                              ; preds = %._crit_edge
  %201 = add nuw nsw i64 %.0247352, 1
  %exitcond416.not = icmp eq i64 %201, 21
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond416.not, label %.preheader307, label %.preheader315, !llvm.loop !35

.preheader306:                                    ; preds = %.preheader307, %379
  %indvar460 = phi i64 [ 0, %.preheader307 ], [ %indvar.next461, %379 ]
  %.1248394 = phi i64 [ 1, %.preheader307 ], [ %380, %379 ]
  %202 = add nsw i64 %.1248394, -1
  %xtraiter462 = and i64 %.1248394, 3
  %203 = icmp ult i64 %indvar460, 3
  %unroll_iter466 = and i64 %.1248394, 9223372036854775804
  %lcmp.mod464.not = icmp eq i64 %xtraiter462, 0
  br label %204

204:                                              ; preds = %.preheader306, %._crit_edge392
  %.1393 = phi i64 [ -1, %.preheader306 ], [ %378, %._crit_edge392 ]
  %205 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %206 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %205, double noundef 5.000000e-01)
  %207 = icmp ne i64 %.1393, -1
  %narrow = and i1 %207, %206
  %208 = icmp eq i64 %.1393, 1
  %narrow257 = or i1 %208, %narrow
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %.1248394, i64 noundef %.1248394, i64 noundef 1, i64 noundef %.1393, ptr noundef nonnull %15, ptr noundef %0)
  %209 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %209, label %.lr.ph391, label %._crit_edge392

.lr.ph391:                                        ; preds = %204
  %narrow257.not291 = xor i1 %narrow257, true
  br label %211

.loopexit:                                        ; preds = %.preheader303
  %210 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %15, ptr noundef nonnull %10, ptr noundef nonnull %14, ptr noundef %0)
  br i1 %210, label %211, label %._crit_edge392, !llvm.loop !36

211:                                              ; preds = %.lr.ph391, %.loopexit
  %212 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %213 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %212, double noundef 5.000000e-01)
  %214 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef 2, ptr noundef %0)
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef %0)
  br label %.preheader302

.preheader302:                                    ; preds = %211, %222
  %.5245354 = phi i64 [ 0, %211 ], [ %223, %222 ]
  br label %215

215:                                              ; preds = %.preheader302, %220
  %.4353 = phi i64 [ 0, %.preheader302 ], [ %221, %220 ]
  %216 = icmp uge i64 %.4353, %.5245354
  %217 = icmp ule i64 %.4353, %.5245354
  %or.cond300 = select i1 %narrow257, i1 %216, i1 %217
  br i1 %or.cond300, label %220, label %218

218:                                              ; preds = %215
  %219 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.5245354, i64 noundef %.4353, double noundef %219, ptr noundef %0)
  br label %220

220:                                              ; preds = %215, %218
  %221 = add nuw nsw i64 %.4353, 1
  %exitcond417.not = icmp eq i64 %221, %.1248394
  br i1 %exitcond417.not, label %222, label %215, !llvm.loop !37

222:                                              ; preds = %220
  %223 = add nuw nsw i64 %.5245354, 1
  %exitcond418.not = icmp eq i64 %223, %.1248394
  br i1 %exitcond418.not, label %224, label %.preheader302, !llvm.loop !38

224:                                              ; preds = %222
  %225 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %226 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %225, double noundef 5.000000e-01)
  br i1 %226, label %227, label %228

227:                                              ; preds = %224
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %0)
  br label %229

228:                                              ; preds = %224
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %0)
  br label %229

229:                                              ; preds = %228, %227
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.1248394, i64 noundef %.1248394, ptr noundef %0)
  br label %.preheader301

.preheader305:                                    ; preds = %.epilog-lcssa465
  %230 = icmp eq i64 %214, 1
  br i1 %230, label %.preheader305.split.us, label %.preheader305.split

.preheader305.split.us:                           ; preds = %.preheader305
  br i1 %213, label %.preheader.us.us, label %.preheader.us

.preheader.us.us:                                 ; preds = %.preheader305.split.us, %.split.us.us.split.us384
  %.7367.us.us = phi i64 [ %252, %.split.us.us.split.us384 ], [ 0, %.preheader305.split.us ]
  br label %231

231:                                              ; preds = %.preheader.us.us, %250
  %.6357.us.us.us377 = phi i64 [ 0, %.preheader.us.us ], [ %251, %250 ]
  %.not.us.us.us378 = icmp ult i64 %.6357.us.us.us377, %.7367.us.us
  %brmerge292.us.us.us379 = or i1 %.not.us.us.us378, %narrow257.not291
  %.not265.us.us.us380 = icmp ugt i64 %.6357.us.us.us377, %.7367.us.us
  %brmerge293.us.us.us381 = or i1 %narrow257, %.not265.us.us.us380
  %or.cond294.us.us.us382 = and i1 %brmerge292.us.us.us379, %brmerge293.us.us.us381
  br i1 %or.cond294.us.us.us382, label %250, label %232

232:                                              ; preds = %231
  store i64 %.7367.us.us, ptr %8, align 8, !tbaa !13
  store i64 %.6357.us.us.us377, ptr %9, align 8, !tbaa !13
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %0)
  %233 = load ptr, ptr %19, align 8, !tbaa !15
  %234 = getelementptr inbounds ptr, ptr %233, i64 %.7367.us.us
  %235 = load ptr, ptr %234, align 8, !tbaa !16
  %236 = getelementptr inbounds double, ptr %235, i64 %.6357.us.us.us377
  %237 = load double, ptr %236, align 8, !tbaa !18
  %238 = load ptr, ptr %18, align 8, !tbaa !15
  %239 = load i64, ptr %8, align 8, !tbaa !13
  %240 = getelementptr inbounds ptr, ptr %238, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !16
  %242 = load i64, ptr %9, align 8, !tbaa !13
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  store double %237, ptr %243, align 8, !tbaa !18
  %244 = icmp eq i64 %239, %242
  br i1 %244, label %245, label %250

245:                                              ; preds = %232
  %246 = load ptr, ptr %18, align 8, !tbaa !15
  %247 = getelementptr inbounds ptr, ptr %246, i64 %239
  %248 = load ptr, ptr %247, align 8, !tbaa !16
  %249 = getelementptr inbounds double, ptr %248, i64 %239
  store double 1.000000e+00, ptr %249, align 8, !tbaa !18
  br label %250

250:                                              ; preds = %245, %232, %231
  %251 = add nuw nsw i64 %.6357.us.us.us377, 1
  %exitcond427.not = icmp eq i64 %251, %.1248394
  br i1 %exitcond427.not, label %.split.us.us.split.us384, label %231, !llvm.loop !39

.split.us.us.split.us384:                         ; preds = %250
  %252 = add nuw nsw i64 %.7367.us.us, 1
  %exitcond428.not = icmp eq i64 %252, %.1248394
  br i1 %exitcond428.not, label %.split370.us, label %.preheader.us.us, !llvm.loop !40

.preheader.us:                                    ; preds = %.preheader305.split.us, %.split.us.us.split.us376
  %.7367.us = phi i64 [ %268, %.split.us.us.split.us376 ], [ 0, %.preheader305.split.us ]
  br label %253

253:                                              ; preds = %266, %.preheader.us
  %.6357.us.us.us = phi i64 [ 0, %.preheader.us ], [ %267, %266 ]
  %.not.us.us.us = icmp ult i64 %.6357.us.us.us, %.7367.us
  %brmerge292.us.us.us = or i1 %.not.us.us.us, %narrow257.not291
  %.not265.us.us.us = icmp ugt i64 %.6357.us.us.us, %.7367.us
  %brmerge293.us.us.us = or i1 %narrow257, %.not265.us.us.us
  %or.cond294.us.us.us = and i1 %brmerge292.us.us.us, %brmerge293.us.us.us
  br i1 %or.cond294.us.us.us, label %266, label %254

254:                                              ; preds = %253
  store i64 %.7367.us, ptr %8, align 8, !tbaa !13
  store i64 %.6357.us.us.us, ptr %9, align 8, !tbaa !13
  call void @_ZN11alglib_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %0)
  %255 = load ptr, ptr %19, align 8, !tbaa !15
  %256 = getelementptr inbounds ptr, ptr %255, i64 %.7367.us
  %257 = load ptr, ptr %256, align 8, !tbaa !16
  %258 = getelementptr inbounds double, ptr %257, i64 %.6357.us.us.us
  %259 = load double, ptr %258, align 8, !tbaa !18
  %260 = load ptr, ptr %18, align 8, !tbaa !15
  %261 = load i64, ptr %8, align 8, !tbaa !13
  %262 = getelementptr inbounds ptr, ptr %260, i64 %261
  %263 = load ptr, ptr %262, align 8, !tbaa !16
  %264 = load i64, ptr %9, align 8, !tbaa !13
  %265 = getelementptr inbounds double, ptr %263, i64 %264
  store double %259, ptr %265, align 8, !tbaa !18
  br label %266

266:                                              ; preds = %254, %253
  %267 = add nuw nsw i64 %.6357.us.us.us, 1
  %exitcond425.not = icmp eq i64 %267, %.1248394
  br i1 %exitcond425.not, label %.split.us.us.split.us376, label %253, !llvm.loop !39

.split.us.us.split.us376:                         ; preds = %266
  %268 = add nuw nsw i64 %.7367.us, 1
  %exitcond426.not = icmp eq i64 %268, %.1248394
  br i1 %exitcond426.not, label %.split370.us, label %.preheader.us, !llvm.loop !40

.preheader305.split:                              ; preds = %.preheader305
  br i1 %213, label %.preheader.us371, label %.preheader

.preheader.us371:                                 ; preds = %.preheader305.split, %.split.split.us373
  %.7367.us372 = phi i64 [ %269, %.split.split.us373 ], [ 0, %.preheader305.split ]
  br label %270

.split.split.us373:                               ; preds = %287
  %269 = add nuw nsw i64 %.7367.us372, 1
  %exitcond424.not = icmp eq i64 %269, %.1248394
  br i1 %exitcond424.not, label %.split370.us, label %.preheader.us371, !llvm.loop !40

270:                                              ; preds = %.preheader.us371, %287
  %.6357.us = phi i64 [ 0, %.preheader.us371 ], [ %288, %287 ]
  %.not.us = icmp ult i64 %.6357.us, %.7367.us372
  %brmerge292.us = or i1 %.not.us, %narrow257.not291
  %.not265.us = icmp ugt i64 %.6357.us, %.7367.us372
  %brmerge293.us = or i1 %narrow257, %.not265.us
  %or.cond294.us = and i1 %brmerge292.us, %brmerge293.us
  br i1 %or.cond294.us, label %287, label %271

271:                                              ; preds = %270
  store i64 %.7367.us372, ptr %8, align 8, !tbaa !13
  store i64 %.6357.us, ptr %9, align 8, !tbaa !13
  %272 = load ptr, ptr %19, align 8, !tbaa !15
  %273 = getelementptr inbounds ptr, ptr %272, i64 %.7367.us372
  %274 = load ptr, ptr %273, align 8, !tbaa !16
  %275 = getelementptr inbounds double, ptr %274, i64 %.6357.us
  %276 = load double, ptr %275, align 8, !tbaa !18
  %277 = load ptr, ptr %18, align 8, !tbaa !15
  %278 = getelementptr inbounds ptr, ptr %277, i64 %.7367.us372
  %279 = load ptr, ptr %278, align 8, !tbaa !16
  %280 = getelementptr inbounds double, ptr %279, i64 %.6357.us
  store double %276, ptr %280, align 8, !tbaa !18
  %281 = icmp eq i64 %.7367.us372, %.6357.us
  br i1 %281, label %282, label %287

282:                                              ; preds = %271
  %283 = load ptr, ptr %18, align 8, !tbaa !15
  %284 = getelementptr inbounds ptr, ptr %283, i64 %.7367.us372
  %285 = load ptr, ptr %284, align 8, !tbaa !16
  %286 = getelementptr inbounds double, ptr %285, i64 %.7367.us372
  store double 1.000000e+00, ptr %286, align 8, !tbaa !18
  br label %287

287:                                              ; preds = %282, %271, %270
  %288 = add nuw nsw i64 %.6357.us, 1
  %exitcond423.not = icmp eq i64 %288, %.1248394
  br i1 %exitcond423.not, label %.split.split.us373, label %270, !llvm.loop !39

.preheader301:                                    ; preds = %229, %.epilog-lcssa465
  %.6246356 = phi i64 [ 0, %229 ], [ %314, %.epilog-lcssa465 ]
  br i1 %203, label %.unr-lcssa458, label %.preheader301.new

.preheader301.new:                                ; preds = %.preheader301, %.preheader301.new
  %.5355 = phi i64 [ %308, %.preheader301.new ], [ 0, %.preheader301 ]
  %niter467 = phi i64 [ %niter467.next.3, %.preheader301.new ], [ 0, %.preheader301 ]
  %289 = load ptr, ptr %18, align 8, !tbaa !15
  %290 = getelementptr inbounds ptr, ptr %289, i64 %.6246356
  %291 = load ptr, ptr %290, align 8, !tbaa !16
  %292 = getelementptr inbounds double, ptr %291, i64 %.5355
  store double 0.000000e+00, ptr %292, align 8, !tbaa !18
  %293 = or disjoint i64 %.5355, 1
  %294 = load ptr, ptr %18, align 8, !tbaa !15
  %295 = getelementptr inbounds ptr, ptr %294, i64 %.6246356
  %296 = load ptr, ptr %295, align 8, !tbaa !16
  %297 = getelementptr inbounds double, ptr %296, i64 %293
  store double 0.000000e+00, ptr %297, align 8, !tbaa !18
  %298 = or disjoint i64 %.5355, 2
  %299 = load ptr, ptr %18, align 8, !tbaa !15
  %300 = getelementptr inbounds ptr, ptr %299, i64 %.6246356
  %301 = load ptr, ptr %300, align 8, !tbaa !16
  %302 = getelementptr inbounds double, ptr %301, i64 %298
  store double 0.000000e+00, ptr %302, align 8, !tbaa !18
  %303 = or disjoint i64 %.5355, 3
  %304 = load ptr, ptr %18, align 8, !tbaa !15
  %305 = getelementptr inbounds ptr, ptr %304, i64 %.6246356
  %306 = load ptr, ptr %305, align 8, !tbaa !16
  %307 = getelementptr inbounds double, ptr %306, i64 %303
  store double 0.000000e+00, ptr %307, align 8, !tbaa !18
  %308 = add nuw nsw i64 %.5355, 4
  %niter467.next.3 = add i64 %niter467, 4
  %niter467.ncmp.3 = icmp eq i64 %niter467.next.3, %unroll_iter466
  br i1 %niter467.ncmp.3, label %.unr-lcssa458, label %.preheader301.new, !llvm.loop !41

.unr-lcssa458:                                    ; preds = %.preheader301.new, %.preheader301
  %.5355.unr = phi i64 [ 0, %.preheader301 ], [ %308, %.preheader301.new ]
  br i1 %lcmp.mod464.not, label %.epilog-lcssa465, label %.epil.preheader459

.epil.preheader459:                               ; preds = %.unr-lcssa458, %.epil.preheader459
  %.5355.epil = phi i64 [ %313, %.epil.preheader459 ], [ %.5355.unr, %.unr-lcssa458 ]
  %epil.iter463 = phi i64 [ %epil.iter463.next, %.epil.preheader459 ], [ 0, %.unr-lcssa458 ]
  %309 = load ptr, ptr %18, align 8, !tbaa !15
  %310 = getelementptr inbounds ptr, ptr %309, i64 %.6246356
  %311 = load ptr, ptr %310, align 8, !tbaa !16
  %312 = getelementptr inbounds double, ptr %311, i64 %.5355.epil
  store double 0.000000e+00, ptr %312, align 8, !tbaa !18
  %313 = add nuw nsw i64 %.5355.epil, 1
  %epil.iter463.next = add i64 %epil.iter463, 1
  %epil.iter463.cmp.not = icmp eq i64 %epil.iter463.next, %xtraiter462
  br i1 %epil.iter463.cmp.not, label %.epilog-lcssa465, label %.epil.preheader459, !llvm.loop !42

.epilog-lcssa465:                                 ; preds = %.epil.preheader459, %.unr-lcssa458
  %314 = add nuw nsw i64 %.6246356, 1
  %exitcond420.not = icmp eq i64 %314, %.1248394
  br i1 %exitcond420.not, label %.preheader305, label %.preheader301, !llvm.loop !43

.preheader:                                       ; preds = %.preheader305.split, %.split.split.us366
  %.7367 = phi i64 [ %328, %.split.split.us366 ], [ 0, %.preheader305.split ]
  br label %315

315:                                              ; preds = %326, %.preheader
  %.6357.us358 = phi i64 [ 0, %.preheader ], [ %327, %326 ]
  %.not.us359 = icmp ult i64 %.6357.us358, %.7367
  %brmerge292.us360 = or i1 %.not.us359, %narrow257.not291
  %.not265.us361 = icmp ugt i64 %.6357.us358, %.7367
  %brmerge293.us362 = or i1 %narrow257, %.not265.us361
  %or.cond294.us363 = and i1 %brmerge292.us360, %brmerge293.us362
  br i1 %or.cond294.us363, label %326, label %316

316:                                              ; preds = %315
  store i64 %.7367, ptr %8, align 8, !tbaa !13
  store i64 %.6357.us358, ptr %9, align 8, !tbaa !13
  %317 = load ptr, ptr %19, align 8, !tbaa !15
  %318 = getelementptr inbounds ptr, ptr %317, i64 %.7367
  %319 = load ptr, ptr %318, align 8, !tbaa !16
  %320 = getelementptr inbounds double, ptr %319, i64 %.6357.us358
  %321 = load double, ptr %320, align 8, !tbaa !18
  %322 = load ptr, ptr %18, align 8, !tbaa !15
  %323 = getelementptr inbounds ptr, ptr %322, i64 %.7367
  %324 = load ptr, ptr %323, align 8, !tbaa !16
  %325 = getelementptr inbounds double, ptr %324, i64 %.6357.us358
  store double %321, ptr %325, align 8, !tbaa !18
  br label %326

326:                                              ; preds = %316, %315
  %327 = add nuw nsw i64 %.6357.us358, 1
  %exitcond421.not = icmp eq i64 %327, %.1248394
  br i1 %exitcond421.not, label %.split.split.us366, label %315, !llvm.loop !39

.split.split.us366:                               ; preds = %326
  %328 = add nuw nsw i64 %.7367, 1
  %exitcond422.not = icmp eq i64 %328, %.1248394
  br i1 %exitcond422.not, label %.split370.us, label %.preheader, !llvm.loop !40

.split370.us:                                     ; preds = %.split.split.us366, %.split.split.us373, %.split.us.us.split.us376, %.split.us.us.split.us384
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.1248394, ptr noundef %0)
  br label %329

329:                                              ; preds = %.split370.us, %329
  %.8386 = phi i64 [ 0, %.split370.us ], [ %334, %329 ]
  %330 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef %0)
  %331 = fadd double %330, -5.000000e-01
  %332 = load ptr, ptr %26, align 8, !tbaa !15
  %333 = getelementptr inbounds double, ptr %332, i64 %.8386
  store double %331, ptr %333, align 8, !tbaa !18
  %334 = add nuw nsw i64 %.8386, 1
  %exitcond429.not = icmp eq i64 %334, %.1248394
  br i1 %exitcond429.not, label %335, label %329, !llvm.loop !44

335:                                              ; preds = %329
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1248394, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1248394, ptr noundef %0)
  br label %336

336:                                              ; preds = %335, %336
  %.9387 = phi i64 [ 0, %335 ], [ %347, %336 ]
  %337 = load ptr, ptr %18, align 8, !tbaa !15
  %338 = getelementptr inbounds ptr, ptr %337, i64 %.9387
  %339 = load ptr, ptr %338, align 8, !tbaa !16
  %340 = load ptr, ptr %26, align 8, !tbaa !15
  %341 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %202)
  %342 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %339, i64 noundef 1, ptr noundef %340, i64 noundef 1, i64 noundef %341)
  %343 = load ptr, ptr %20, align 8, !tbaa !15
  %344 = getelementptr inbounds double, ptr %343, i64 %.9387
  store double %342, ptr %344, align 8, !tbaa !18
  %345 = load ptr, ptr %21, align 8, !tbaa !15
  %346 = getelementptr inbounds double, ptr %345, i64 %.9387
  store double %342, ptr %346, align 8, !tbaa !18
  %347 = add nuw nsw i64 %.9387, 1
  %exitcond430.not = icmp eq i64 %347, %.1248394
  br i1 %exitcond430.not, label %348, label %336, !llvm.loop !45

348:                                              ; preds = %336
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %12, i1 noundef zeroext %narrow257, i1 noundef zeroext %213, i64 noundef %214, ptr noundef nonnull %3, ptr noundef %0)
  %349 = load i64, ptr %3, align 8, !tbaa !27
  %350 = icmp slt i64 %349, %.1248394
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %350, ptr noundef nonnull @.str.8, i32 noundef 6237, ptr noundef nonnull @.str.150)
  %351 = load i8, ptr %17, align 1, !tbaa !5, !range !30, !noundef !31
  %352 = trunc nuw i8 %351 to i1
  br i1 %352, label %.loopexit444, label %.preheader304

.preheader304:                                    ; preds = %348, %.preheader304
  %.10388 = phi i64 [ %362, %.preheader304 ], [ 0, %348 ]
  %353 = load ptr, ptr %26, align 8, !tbaa !15
  %354 = getelementptr inbounds double, ptr %353, i64 %.10388
  %355 = load double, ptr %354, align 8, !tbaa !18
  %356 = load ptr, ptr %20, align 8, !tbaa !15
  %357 = getelementptr inbounds double, ptr %356, i64 %.10388
  %358 = load double, ptr %357, align 8, !tbaa !18
  %359 = fsub double %355, %358
  %360 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %359, ptr noundef %0)
  %361 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %360, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %361, ptr noundef nonnull @.str.8, i32 noundef 6245, ptr noundef nonnull @.str.151)
  %362 = add nuw nsw i64 %.10388, 1
  %exitcond431.not = icmp eq i64 %362, %.1248394
  br i1 %exitcond431.not, label %363, label %.preheader304, !llvm.loop !46

363:                                              ; preds = %.preheader304
  call void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %13, i1 noundef zeroext %narrow257, i1 noundef zeroext %213, i64 noundef %214, ptr noundef nonnull %4, ptr noundef %0)
  %364 = load i64, ptr %4, align 8, !tbaa !27
  %365 = icmp slt i64 %364, %.1248394
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %365, ptr noundef nonnull @.str.8, i32 noundef 6248, ptr noundef nonnull @.str.152)
  %366 = load i8, ptr %17, align 1, !tbaa !5, !range !30, !noundef !31
  %367 = trunc nuw i8 %366 to i1
  br i1 %367, label %.loopexit444, label %.preheader303

.preheader303:                                    ; preds = %363, %.preheader303
  %.11389 = phi i64 [ %377, %.preheader303 ], [ 0, %363 ]
  %368 = load ptr, ptr %26, align 8, !tbaa !15
  %369 = getelementptr inbounds double, ptr %368, i64 %.11389
  %370 = load double, ptr %369, align 8, !tbaa !18
  %371 = load ptr, ptr %21, align 8, !tbaa !15
  %372 = getelementptr inbounds double, ptr %371, i64 %.11389
  %373 = load double, ptr %372, align 8, !tbaa !18
  %374 = fsub double %370, %373
  %375 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %374, ptr noundef %0)
  %376 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %375, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %17, i1 noundef zeroext %376, ptr noundef nonnull @.str.8, i32 noundef 6256, ptr noundef nonnull @.str.153)
  %377 = add nuw nsw i64 %.11389, 1
  %exitcond432.not = icmp eq i64 %377, %.1248394
  br i1 %exitcond432.not, label %.loopexit, label %.preheader303, !llvm.loop !47

._crit_edge392:                                   ; preds = %.loopexit, %204
  %378 = add nsw i64 %.1393, 1
  %exitcond433.not = icmp eq i64 %378, 2
  br i1 %exitcond433.not, label %379, label %204, !llvm.loop !48

379:                                              ; preds = %._crit_edge392
  %380 = add nuw nsw i64 %.1248394, 1
  %exitcond434.not = icmp eq i64 %380, 21
  %indvar.next461 = add i64 %indvar460, 1
  br i1 %exitcond434.not, label %.loopexit444, label %.preheader306, !llvm.loop !49

.loopexit444:                                     ; preds = %181, %163, %379, %363, %348
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %.0237.in = load i8, ptr %17, align 1, !tbaa !5, !range !30, !noundef !31
  %.0237 = trunc nuw i8 %.0237.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret i1 %.0237
}

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

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

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

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

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

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

declare void @_ZN11alglib_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_impl5swapiEPlS0_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl10sparsetrsvEPNS_12sparsematrixEbblPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i64 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = !{!28, !14, i64 0}
!28 = !{!"_ZTSN11alglib_impl9ae_vectorE", !14, i64 0, !14, i64 8, !6, i64 16, !29, i64 24, !7, i64 56}
!29 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10}
!36 = distinct !{!36, !10}
!37 = distinct !{!37, !10}
!38 = distinct !{!38, !10}
!39 = distinct !{!39, !10}
!40 = distinct !{!40, !10}
!41 = distinct !{!41, !10}
!42 = distinct !{!42, !24}
!43 = distinct !{!43, !10}
!44 = distinct !{!44, !10}
!45 = distinct !{!45, !10}
!46 = distinct !{!46, !10}
!47 = distinct !{!47, !10}
!48 = distinct !{!48, !10}
!49 = distinct !{!49, !10}


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