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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%struct.sparsegenerator = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::hqrndstate", %"struct.alglib_impl::rcommstate" }
%"struct.alglib_impl::hqrndstate" = type { i64, i64, i64 }
%"struct.alglib_impl::rcommstate" = type { i32, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.138 = 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 noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

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

38:                                               ; preds = %473, %1
  %39 = load i64, ptr %5, align 8, !tbaa !13
  %40 = icmp sle i64 %39, 20
  br i1 %40, label %41, label %476

41:                                               ; preds = %38
  store i64 -1, ptr %23, align 8, !tbaa !13
  br label %42

42:                                               ; preds = %469, %41
  %43 = load i64, ptr %23, align 8, !tbaa !13
  %44 = icmp sle i64 %43, 1
  br i1 %44, label %45, label %472

45:                                               ; preds = %42
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %21, ptr noundef %46)
  %48 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %47, double noundef 5.000000e-01)
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %22, align 1, !tbaa !11
  %50 = load i64, ptr %23, align 8, !tbaa !13
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %45
  store i8 0, ptr %22, align 1, !tbaa !11
  br label %53

53:                                               ; preds = %52, %45
  %54 = load i64, ptr %23, align 8, !tbaa !13
  %55 = icmp sgt i64 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %53
  store i8 1, ptr %22, align 1, !tbaa !11
  br label %57

57:                                               ; preds = %56, %53
  %58 = load i64, ptr %5, align 8, !tbaa !13
  %59 = load i64, ptr %5, align 8, !tbaa !13
  %60 = load i64, ptr %23, align 8, !tbaa !13
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %58, i64 noundef %59, i64 noundef 0, i64 noundef %60, ptr noundef %20, ptr noundef %61)
  br label %62

62:                                               ; preds = %445, %57
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef %20, ptr noundef %12, ptr noundef %15, ptr noundef %63)
  br i1 %64, label %65, label %468

65:                                               ; preds = %62
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %15, ptr noundef %14, ptr noundef %66)
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %67

67:                                               ; preds = %103, %65
  %68 = load i64, ptr %10, align 8, !tbaa !13
  %69 = load i64, ptr %5, align 8, !tbaa !13
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %106

72:                                               ; preds = %67
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %73

73:                                               ; preds = %99, %72
  %74 = load i64, ptr %11, align 8, !tbaa !13
  %75 = load i64, ptr %5, align 8, !tbaa !13
  %76 = sub nsw i64 %75, 1
  %77 = icmp sle i64 %74, %76
  br i1 %77, label %78, label %102

78:                                               ; preds = %73
  %79 = load i64, ptr %11, align 8, !tbaa !13
  %80 = load i64, ptr %10, align 8, !tbaa !13
  %81 = icmp slt i64 %79, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %78
  %83 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %84 = trunc i8 %83 to i1
  br i1 %84, label %92, label %85

85:                                               ; preds = %82, %78
  %86 = load i64, ptr %11, align 8, !tbaa !13
  %87 = load i64, ptr %10, align 8, !tbaa !13
  %88 = icmp sgt i64 %86, %87
  br i1 %88, label %89, label %98

89:                                               ; preds = %85
  %90 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %91 = trunc i8 %90 to i1
  br i1 %91, label %98, label %92

92:                                               ; preds = %89, %82
  %93 = load i64, ptr %10, align 8, !tbaa !13
  %94 = load i64, ptr %11, align 8, !tbaa !13
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %21, ptr noundef %95)
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %14, i64 noundef %93, i64 noundef %94, double noundef %96, ptr noundef %97)
  br label %98

98:                                               ; preds = %92, %89, %85
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %11, align 8, !tbaa !13
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %11, align 8, !tbaa !13
  br label %73, !llvm.loop !17

102:                                              ; preds = %73
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %10, align 8, !tbaa !13
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %10, align 8, !tbaa !13
  br label %67, !llvm.loop !19

106:                                              ; preds = %67
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %21, ptr noundef %107)
  %109 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %108, double noundef 5.000000e-01)
  br i1 %109, label %110, label %113

110:                                              ; preds = %106
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %15, ptr noundef %13, ptr noundef %111)
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %112)
  br label %116

113:                                              ; preds = %106
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %15, ptr noundef %13, ptr noundef %114)
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %115)
  br label %116

116:                                              ; preds = %113, %110
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %117

117:                                              ; preds = %195, %116
  %118 = load i64, ptr %10, align 8, !tbaa !13
  %119 = load i64, ptr %5, align 8, !tbaa !13
  %120 = sub nsw i64 %119, 1
  %121 = icmp sle i64 %118, %120
  br i1 %121, label %122, label %198

122:                                              ; preds = %117
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %123

123:                                              ; preds = %191, %122
  %124 = load i64, ptr %11, align 8, !tbaa !13
  %125 = load i64, ptr %5, align 8, !tbaa !13
  %126 = sub nsw i64 %125, 1
  %127 = icmp sle i64 %124, %126
  br i1 %127, label %128, label %194

128:                                              ; preds = %123
  %129 = load i64, ptr %10, align 8, !tbaa !13
  %130 = load i64, ptr %11, align 8, !tbaa !13
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %129, i64 noundef %130, ptr noundef %131)
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !20
  %135 = load i64, ptr %10, align 8, !tbaa !13
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i64, ptr %11, align 8, !tbaa !13
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = fsub double %132, %140
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %141, ptr noundef %142)
  %144 = load double, ptr %16, align 8, !tbaa !9
  %145 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %143, double noundef %144)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %145, ptr noundef @.str.8, i32 noundef 5679, ptr noundef @.str.129)
  %146 = load i64, ptr %10, align 8, !tbaa !13
  %147 = load i64, ptr %11, align 8, !tbaa !13
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %146, i64 noundef %147, ptr noundef %148)
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !20
  %152 = load i64, ptr %10, align 8, !tbaa !13
  %153 = getelementptr inbounds ptr, ptr %151, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load i64, ptr %11, align 8, !tbaa !13
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = fsub double %149, %157
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %158, ptr noundef %159)
  %161 = load double, ptr %16, align 8, !tbaa !9
  %162 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %160, double noundef %161)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %162, ptr noundef @.str.8, i32 noundef 5680, ptr noundef @.str.130)
  %163 = load i64, ptr %11, align 8, !tbaa !13
  %164 = load i64, ptr %10, align 8, !tbaa !13
  %165 = icmp slt i64 %163, %164
  br i1 %165, label %166, label %175

166:                                              ; preds = %128
  %167 = load i64, ptr %23, align 8, !tbaa !13
  %168 = icmp eq i64 %167, 1
  br i1 %168, label %169, label %175

169:                                              ; preds = %166
  %170 = load i64, ptr %10, align 8, !tbaa !13
  %171 = load i64, ptr %11, align 8, !tbaa !13
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %170, i64 noundef %171, ptr noundef %172)
  %174 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %173, double noundef 0.000000e+00)
  br label %175

175:                                              ; preds = %169, %166, %128
  %176 = phi i1 [ false, %166 ], [ false, %128 ], [ %174, %169 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %176, ptr noundef @.str.8, i32 noundef 5681, ptr noundef @.str.131)
  %177 = load i64, ptr %11, align 8, !tbaa !13
  %178 = load i64, ptr %10, align 8, !tbaa !13
  %179 = icmp sgt i64 %177, %178
  br i1 %179, label %180, label %189

180:                                              ; preds = %175
  %181 = load i64, ptr %23, align 8, !tbaa !13
  %182 = icmp eq i64 %181, -1
  br i1 %182, label %183, label %189

183:                                              ; preds = %180
  %184 = load i64, ptr %10, align 8, !tbaa !13
  %185 = load i64, ptr %11, align 8, !tbaa !13
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %184, i64 noundef %185, ptr noundef %186)
  %188 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %187, double noundef 0.000000e+00)
  br label %189

189:                                              ; preds = %183, %180, %175
  %190 = phi i1 [ false, %180 ], [ false, %175 ], [ %188, %183 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %190, ptr noundef @.str.8, i32 noundef 5682, ptr noundef @.str.132)
  br label %191

191:                                              ; preds = %189
  %192 = load i64, ptr %11, align 8, !tbaa !13
  %193 = add nsw i64 %192, 1
  store i64 %193, ptr %11, align 8, !tbaa !13
  br label %123, !llvm.loop !21

194:                                              ; preds = %123
  br label %195

195:                                              ; preds = %194
  %196 = load i64, ptr %10, align 8, !tbaa !13
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %10, align 8, !tbaa !13
  br label %117, !llvm.loop !22

198:                                              ; preds = %117
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %199

199:                                              ; preds = %245, %198
  %200 = load i64, ptr %10, align 8, !tbaa !13
  %201 = load i64, ptr %5, align 8, !tbaa !13
  %202 = sub nsw i64 %201, 1
  %203 = icmp sle i64 %200, %202
  br i1 %203, label %204, label %248

204:                                              ; preds = %199
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %205

205:                                              ; preds = %241, %204
  %206 = load i64, ptr %11, align 8, !tbaa !13
  %207 = load i64, ptr %5, align 8, !tbaa !13
  %208 = sub nsw i64 %207, 1
  %209 = icmp sle i64 %206, %208
  br i1 %209, label %210, label %244

210:                                              ; preds = %205
  %211 = load i64, ptr %11, align 8, !tbaa !13
  %212 = load i64, ptr %10, align 8, !tbaa !13
  %213 = icmp slt i64 %211, %212
  br i1 %213, label %214, label %217

214:                                              ; preds = %210
  %215 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %216 = trunc i8 %215 to i1
  br i1 %216, label %224, label %217

217:                                              ; preds = %214, %210
  %218 = load i64, ptr %11, align 8, !tbaa !13
  %219 = load i64, ptr %10, align 8, !tbaa !13
  %220 = icmp sgt i64 %218, %219
  br i1 %220, label %221, label %240

221:                                              ; preds = %217
  %222 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %223 = trunc i8 %222 to i1
  br i1 %223, label %240, label %224

224:                                              ; preds = %221, %214
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %226 = load ptr, ptr %225, align 8, !tbaa !20
  %227 = load i64, ptr %11, align 8, !tbaa !13
  %228 = getelementptr inbounds ptr, ptr %226, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = load i64, ptr %10, align 8, !tbaa !13
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !9
  %233 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %234 = load ptr, ptr %233, align 8, !tbaa !20
  %235 = load i64, ptr %10, align 8, !tbaa !13
  %236 = getelementptr inbounds ptr, ptr %234, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = load i64, ptr %11, align 8, !tbaa !13
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  store double %232, ptr %239, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %224, %221, %217
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %11, align 8, !tbaa !13
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %11, align 8, !tbaa !13
  br label %205, !llvm.loop !23

244:                                              ; preds = %205
  br label %245

245:                                              ; preds = %244
  %246 = load i64, ptr %10, align 8, !tbaa !13
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %10, align 8, !tbaa !13
  br label %199, !llvm.loop !24

248:                                              ; preds = %199
  %249 = load i64, ptr %5, align 8, !tbaa !13
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %249, ptr noundef %250)
  %251 = load i64, ptr %5, align 8, !tbaa !13
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %251, ptr noundef %252)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %253

253:                                              ; preds = %275, %248
  %254 = load i64, ptr %11, align 8, !tbaa !13
  %255 = load i64, ptr %5, align 8, !tbaa !13
  %256 = sub nsw i64 %255, 1
  %257 = icmp sle i64 %254, %256
  br i1 %257, label %258, label %278

258:                                              ; preds = %253
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %21, ptr noundef %259)
  %261 = fsub double %260, 5.000000e-01
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !20
  %264 = load i64, ptr %11, align 8, !tbaa !13
  %265 = getelementptr inbounds double, ptr %263, i64 %264
  store double %261, ptr %265, align 8, !tbaa !9
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !20
  %268 = load i64, ptr %11, align 8, !tbaa !13
  %269 = getelementptr inbounds double, ptr %267, i64 %268
  %270 = load double, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !20
  %273 = load i64, ptr %11, align 8, !tbaa !13
  %274 = getelementptr inbounds double, ptr %272, i64 %273
  store double %270, ptr %274, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %258
  %276 = load i64, ptr %11, align 8, !tbaa !13
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %11, align 8, !tbaa !13
  br label %253, !llvm.loop !25

278:                                              ; preds = %253
  %279 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %280 = trunc i8 %279 to i1
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %13, i1 noundef zeroext %280, ptr noundef %6, ptr noundef %8, ptr noundef %281)
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 0
  %283 = load i64, ptr %282, align 8, !tbaa !26
  %284 = load i64, ptr %5, align 8, !tbaa !13
  %285 = icmp slt i64 %283, %284
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %285, ptr noundef @.str.8, i32 noundef 5712, ptr noundef @.str.133)
  %286 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %287 = trunc i8 %286 to i1
  br i1 %287, label %288, label %292

288:                                              ; preds = %278
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %289)
  %290 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %291 = trunc i8 %290 to i1
  store i1 %291, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %480

292:                                              ; preds = %278
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %293

293:                                              ; preds = %323, %292
  %294 = load i64, ptr %10, align 8, !tbaa !13
  %295 = load i64, ptr %5, align 8, !tbaa !13
  %296 = sub nsw i64 %295, 1
  %297 = icmp sle i64 %294, %296
  br i1 %297, label %298, label %326

298:                                              ; preds = %293
  %299 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %300 = load ptr, ptr %299, align 8, !tbaa !20
  %301 = load i64, ptr %10, align 8, !tbaa !13
  %302 = getelementptr inbounds ptr, ptr %300, i64 %301
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  %304 = getelementptr inbounds double, ptr %303, i64 0
  %305 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %306 = load ptr, ptr %305, align 8, !tbaa !20
  %307 = getelementptr inbounds double, ptr %306, i64 0
  %308 = load i64, ptr %5, align 8, !tbaa !13
  %309 = sub nsw i64 %308, 1
  %310 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %309)
  %311 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %304, i64 noundef 1, ptr noundef %307, i64 noundef 1, i64 noundef %310)
  store double %311, ptr %17, align 8, !tbaa !9
  %312 = load double, ptr %17, align 8, !tbaa !9
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !20
  %315 = load i64, ptr %10, align 8, !tbaa !13
  %316 = getelementptr inbounds double, ptr %314, i64 %315
  %317 = load double, ptr %316, align 8, !tbaa !9
  %318 = fsub double %312, %317
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %318, ptr noundef %319)
  %321 = load double, ptr %16, align 8, !tbaa !9
  %322 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %320, double noundef %321)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %322, ptr noundef @.str.8, i32 noundef 5721, ptr noundef @.str.134)
  br label %323

323:                                              ; preds = %298
  %324 = load i64, ptr %10, align 8, !tbaa !13
  %325 = add nsw i64 %324, 1
  store i64 %325, ptr %10, align 8, !tbaa !13
  br label %293, !llvm.loop !29

326:                                              ; preds = %293
  %327 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %328 = trunc i8 %327 to i1
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %14, i1 noundef zeroext %328, ptr noundef %6, ptr noundef %9, ptr noundef %329)
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 0
  %331 = load i64, ptr %330, align 8, !tbaa !26
  %332 = load i64, ptr %5, align 8, !tbaa !13
  %333 = icmp slt i64 %331, %332
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %333, ptr noundef @.str.8, i32 noundef 5724, ptr noundef @.str.135)
  %334 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %335 = trunc i8 %334 to i1
  br i1 %335, label %336, label %340

336:                                              ; preds = %326
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %337)
  %338 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %339 = trunc i8 %338 to i1
  store i1 %339, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %480

340:                                              ; preds = %326
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %341

341:                                              ; preds = %371, %340
  %342 = load i64, ptr %10, align 8, !tbaa !13
  %343 = load i64, ptr %5, align 8, !tbaa !13
  %344 = sub nsw i64 %343, 1
  %345 = icmp sle i64 %342, %344
  br i1 %345, label %346, label %374

346:                                              ; preds = %341
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %348 = load ptr, ptr %347, align 8, !tbaa !20
  %349 = load i64, ptr %10, align 8, !tbaa !13
  %350 = getelementptr inbounds ptr, ptr %348, i64 %349
  %351 = load ptr, ptr %350, align 8, !tbaa !5
  %352 = getelementptr inbounds double, ptr %351, i64 0
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !20
  %355 = getelementptr inbounds double, ptr %354, i64 0
  %356 = load i64, ptr %5, align 8, !tbaa !13
  %357 = sub nsw i64 %356, 1
  %358 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %357)
  %359 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %352, i64 noundef 1, ptr noundef %355, i64 noundef 1, i64 noundef %358)
  store double %359, ptr %17, align 8, !tbaa !9
  %360 = load double, ptr %17, align 8, !tbaa !9
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %362 = load ptr, ptr %361, align 8, !tbaa !20
  %363 = load i64, ptr %10, align 8, !tbaa !13
  %364 = getelementptr inbounds double, ptr %362, i64 %363
  %365 = load double, ptr %364, align 8, !tbaa !9
  %366 = fsub double %360, %365
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  %368 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %366, ptr noundef %367)
  %369 = load double, ptr %16, align 8, !tbaa !9
  %370 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %368, double noundef %369)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %370, ptr noundef @.str.8, i32 noundef 5733, ptr noundef @.str.136)
  br label %371

371:                                              ; preds = %346
  %372 = load i64, ptr %10, align 8, !tbaa !13
  %373 = add nsw i64 %372, 1
  store i64 %373, ptr %10, align 8, !tbaa !13
  br label %341, !llvm.loop !30

374:                                              ; preds = %341
  %375 = load i64, ptr %5, align 8, !tbaa !13
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %375, ptr noundef %376)
  %377 = load i64, ptr %5, align 8, !tbaa !13
  %378 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %377, ptr noundef %378)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %379

379:                                              ; preds = %401, %374
  %380 = load i64, ptr %11, align 8, !tbaa !13
  %381 = load i64, ptr %5, align 8, !tbaa !13
  %382 = sub nsw i64 %381, 1
  %383 = icmp sle i64 %380, %382
  br i1 %383, label %384, label %404

384:                                              ; preds = %379
  %385 = load ptr, ptr %3, align 8, !tbaa !5
  %386 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %21, ptr noundef %385)
  %387 = fsub double %386, 5.000000e-01
  %388 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %389 = load ptr, ptr %388, align 8, !tbaa !20
  %390 = load i64, ptr %11, align 8, !tbaa !13
  %391 = getelementptr inbounds double, ptr %389, i64 %390
  store double %387, ptr %391, align 8, !tbaa !9
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %393 = load ptr, ptr %392, align 8, !tbaa !20
  %394 = load i64, ptr %11, align 8, !tbaa !13
  %395 = getelementptr inbounds double, ptr %393, i64 %394
  %396 = load double, ptr %395, align 8, !tbaa !9
  %397 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %398 = load ptr, ptr %397, align 8, !tbaa !20
  %399 = load i64, ptr %11, align 8, !tbaa !13
  %400 = getelementptr inbounds double, ptr %398, i64 %399
  store double %396, ptr %400, align 8, !tbaa !9
  br label %401

401:                                              ; preds = %384
  %402 = load i64, ptr %11, align 8, !tbaa !13
  %403 = add nsw i64 %402, 1
  store i64 %403, ptr %11, align 8, !tbaa !13
  br label %379, !llvm.loop !31

404:                                              ; preds = %379
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %405

405:                                              ; preds = %442, %404
  %406 = load i64, ptr %10, align 8, !tbaa !13
  %407 = load i64, ptr %5, align 8, !tbaa !13
  %408 = sub nsw i64 %407, 1
  %409 = icmp sle i64 %406, %408
  br i1 %409, label %410, label %445

410:                                              ; preds = %405
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %411

411:                                              ; preds = %438, %410
  %412 = load i64, ptr %11, align 8, !tbaa !13
  %413 = load i64, ptr %5, align 8, !tbaa !13
  %414 = sub nsw i64 %413, 1
  %415 = icmp sle i64 %412, %414
  br i1 %415, label %416, label %441

416:                                              ; preds = %411
  %417 = load double, ptr %19, align 8, !tbaa !9
  %418 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !20
  %420 = load i64, ptr %10, align 8, !tbaa !13
  %421 = getelementptr inbounds double, ptr %419, i64 %420
  %422 = load double, ptr %421, align 8, !tbaa !9
  %423 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %424 = load ptr, ptr %423, align 8, !tbaa !20
  %425 = load i64, ptr %10, align 8, !tbaa !13
  %426 = getelementptr inbounds ptr, ptr %424, i64 %425
  %427 = load ptr, ptr %426, align 8, !tbaa !5
  %428 = load i64, ptr %11, align 8, !tbaa !13
  %429 = getelementptr inbounds double, ptr %427, i64 %428
  %430 = load double, ptr %429, align 8, !tbaa !9
  %431 = fmul double %422, %430
  %432 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %433 = load ptr, ptr %432, align 8, !tbaa !20
  %434 = load i64, ptr %11, align 8, !tbaa !13
  %435 = getelementptr inbounds double, ptr %433, i64 %434
  %436 = load double, ptr %435, align 8, !tbaa !9
  %437 = call double @llvm.fmuladd.f64(double %431, double %436, double %417)
  store double %437, ptr %19, align 8, !tbaa !9
  br label %438

438:                                              ; preds = %416
  %439 = load i64, ptr %11, align 8, !tbaa !13
  %440 = add nsw i64 %439, 1
  store i64 %440, ptr %11, align 8, !tbaa !13
  br label %411, !llvm.loop !32

441:                                              ; preds = %411
  br label %442

442:                                              ; preds = %441
  %443 = load i64, ptr %10, align 8, !tbaa !13
  %444 = add nsw i64 %443, 1
  store i64 %444, ptr %10, align 8, !tbaa !13
  br label %405, !llvm.loop !33

445:                                              ; preds = %405
  %446 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %447 = trunc i8 %446 to i1
  %448 = load ptr, ptr %3, align 8, !tbaa !5
  %449 = call noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %13, i1 noundef zeroext %447, ptr noundef %6, ptr noundef %448)
  store double %449, ptr %18, align 8, !tbaa !9
  %450 = load double, ptr %18, align 8, !tbaa !9
  %451 = load double, ptr %19, align 8, !tbaa !9
  %452 = fsub double %450, %451
  %453 = load ptr, ptr %3, align 8, !tbaa !5
  %454 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %452, ptr noundef %453)
  %455 = load double, ptr %16, align 8, !tbaa !9
  %456 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %454, double noundef %455)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %456, ptr noundef @.str.8, i32 noundef 5755, ptr noundef @.str.137)
  %457 = load i8, ptr %22, align 1, !tbaa !11, !range !15, !noundef !16
  %458 = trunc i8 %457 to i1
  %459 = load ptr, ptr %3, align 8, !tbaa !5
  %460 = call noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %14, i1 noundef zeroext %458, ptr noundef %6, ptr noundef %459)
  store double %460, ptr %18, align 8, !tbaa !9
  %461 = load double, ptr %18, align 8, !tbaa !9
  %462 = load double, ptr %19, align 8, !tbaa !9
  %463 = fsub double %461, %462
  %464 = load ptr, ptr %3, align 8, !tbaa !5
  %465 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %463, ptr noundef %464)
  %466 = load double, ptr %16, align 8, !tbaa !9
  %467 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %465, double noundef %466)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %24, i1 noundef zeroext %467, ptr noundef @.str.8, i32 noundef 5757, ptr noundef @.str.138)
  br label %62, !llvm.loop !34

468:                                              ; preds = %62
  br label %469

469:                                              ; preds = %468
  %470 = load i64, ptr %23, align 8, !tbaa !13
  %471 = add nsw i64 %470, 1
  store i64 %471, ptr %23, align 8, !tbaa !13
  br label %42, !llvm.loop !35

472:                                              ; preds = %42
  br label %473

473:                                              ; preds = %472
  %474 = load i64, ptr %5, align 8, !tbaa !13
  %475 = add nsw i64 %474, 1
  store i64 %475, ptr %5, align 8, !tbaa !13
  br label %38, !llvm.loop !36

476:                                              ; preds = %38
  %477 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %477)
  %478 = load i8, ptr %24, align 1, !tbaa !11, !range !15, !noundef !16
  %479 = trunc i8 %478 to i1
  store i1 %479, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %480

480:                                              ; preds = %476, %336, %288
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %481 = load i1, ptr %2, align 1
  ret i1 %481
}

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 noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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) #4

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

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

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

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

declare noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{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}


; 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.129 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.138 = 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 noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

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

.preheader212:                                    ; preds = %1, %227
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %227 ]
  %.0172228 = phi i64 [ 1, %1 ], [ %228, %227 ]
  %19 = add nsw i64 %.0172228, -1
  %xtraiter = and i64 %.0172228, 1
  %20 = icmp eq i64 %indvar, 0
  %unroll_iter = and i64 %.0172228, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter247 = and i64 %.0172228, 3
  %21 = icmp ult i64 %indvar, 3
  %unroll_iter251 = and i64 %.0172228, 9223372036854775804
  %lcmp.mod248.not = icmp eq i64 %xtraiter247, 0
  br label %22

22:                                               ; preds = %.preheader212, %._crit_edge
  %.0227 = phi i64 [ -1, %.preheader212 ], [ %226, %._crit_edge ]
  %23 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  %24 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %23, double noundef 5.000000e-01)
  %25 = icmp sgt i64 %.0227, -1
  %narrow = and i1 %25, %24
  %26 = icmp eq i64 %.0227, 1
  %narrow183 = or i1 %26, %narrow
  call void @_ZL28testsparseunit_initgeneratorllllP15sparsegeneratorPN11alglib_impl8ae_stateE(i64 noundef %.0172228, i64 noundef %.0172228, i64 noundef 0, i64 noundef %.0227, ptr noundef nonnull %11, ptr noundef %0)
  %27 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef %0)
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %28 = icmp eq i64 %.0227, -1
  br label %29

29:                                               ; preds = %.lr.ph, %216
  call void @_ZN11alglib_impl16sparsecopytohashEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %0)
  br label %.preheader207

.preheader207:                                    ; preds = %29, %37
  %.0175214 = phi i64 [ 0, %29 ], [ %38, %37 ]
  br label %30

30:                                               ; preds = %.preheader207, %35
  %.0173213 = phi i64 [ 0, %.preheader207 ], [ %36, %35 ]
  %31 = icmp uge i64 %.0173213, %.0175214
  %32 = icmp ule i64 %.0173213, %.0175214
  %or.cond203 = select i1 %narrow183, i1 %31, i1 %32
  br i1 %or.cond203, label %35, label %33

33:                                               ; preds = %30
  %34 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0175214, i64 noundef %.0173213, double noundef %34, ptr noundef %0)
  br label %35

35:                                               ; preds = %30, %33
  %36 = add nuw nsw i64 %.0173213, 1
  %exitcond.not = icmp eq i64 %36, %.0172228
  br i1 %exitcond.not, label %37, label %30, !llvm.loop !9

37:                                               ; preds = %35
  %38 = add nuw nsw i64 %.0175214, 1
  %exitcond229.not = icmp eq i64 %38, %.0172228
  br i1 %exitcond229.not, label %39, label %.preheader207, !llvm.loop !11

39:                                               ; preds = %37
  %40 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  %41 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %40, double noundef 5.000000e-01)
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  br label %.preheader206.preheader

43:                                               ; preds = %39
  call void @_ZN11alglib_impl15sparsecopytosksEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %0)
  call void @_ZN11alglib_impl18sparseconverttosksEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  br label %.preheader206.preheader

.preheader206.preheader:                          ; preds = %43, %42
  br label %.preheader206

.preheader206:                                    ; preds = %.preheader206.preheader, %74
  %.1176216 = phi i64 [ %75, %74 ], [ 0, %.preheader206.preheader ]
  br label %44

44:                                               ; preds = %.preheader206, %71
  %.1174215 = phi i64 [ 0, %.preheader206 ], [ %73, %71 ]
  %45 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.1176216, i64 noundef %.1174215, ptr noundef %0)
  %46 = load ptr, ptr %14, align 8, !tbaa !12
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.1176216
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds double, ptr %48, i64 %.1174215
  %50 = load double, ptr %49, align 8, !tbaa !15
  %51 = fsub double %45, %50
  %52 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %51, ptr noundef %0)
  %53 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %52, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %53, ptr noundef nonnull @.str.8, i32 noundef 5679, ptr noundef nonnull @.str.129)
  %54 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1176216, i64 noundef %.1174215, ptr noundef %0)
  %55 = load ptr, ptr %14, align 8, !tbaa !12
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.1176216
  %57 = load ptr, ptr %56, align 8, !tbaa !13
  %58 = getelementptr inbounds double, ptr %57, i64 %.1174215
  %59 = load double, ptr %58, align 8, !tbaa !15
  %60 = fsub double %54, %59
  %61 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %60, ptr noundef %0)
  %62 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %61, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %62, ptr noundef nonnull @.str.8, i32 noundef 5680, ptr noundef nonnull @.str.130)
  %63 = icmp ult i64 %.1174215, %.1176216
  %or.cond = and i1 %26, %63
  br i1 %or.cond, label %.thread, label %66

.thread:                                          ; preds = %44
  %64 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1176216, i64 noundef %.1174215, ptr noundef %0)
  %65 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %64, double noundef 0.000000e+00)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %65, ptr noundef nonnull @.str.8, i32 noundef 5681, ptr noundef nonnull @.str.131)
  br label %71

66:                                               ; preds = %44
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext false, ptr noundef nonnull @.str.8, i32 noundef 5681, ptr noundef nonnull @.str.131)
  %67 = icmp ugt i64 %.1174215, %.1176216
  %or.cond3 = and i1 %28, %67
  br i1 %or.cond3, label %68, label %71

68:                                               ; preds = %66
  %69 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.1176216, i64 noundef %.1174215, ptr noundef %0)
  %70 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %69, double noundef 0.000000e+00)
  br label %71

71:                                               ; preds = %.thread, %68, %66
  %72 = phi i1 [ false, %66 ], [ %70, %68 ], [ false, %.thread ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %72, ptr noundef nonnull @.str.8, i32 noundef 5682, ptr noundef nonnull @.str.132)
  %73 = add nuw nsw i64 %.1174215, 1
  %exitcond230.not = icmp eq i64 %73, %.0172228
  br i1 %exitcond230.not, label %74, label %44, !llvm.loop !17

74:                                               ; preds = %71
  %75 = add nuw nsw i64 %.1176216, 1
  %exitcond231.not = icmp eq i64 %75, %.0172228
  br i1 %exitcond231.not, label %.preheader205, label %.preheader206, !llvm.loop !18

.preheader205:                                    ; preds = %74, %.epilog-lcssa
  %.2177218 = phi i64 [ %113, %.epilog-lcssa ], [ 0, %74 ]
  br i1 %20, label %.unr-lcssa, label %.preheader205.new

.preheader205.new:                                ; preds = %.preheader205, %100
  %.2217 = phi i64 [ %101, %100 ], [ 0, %.preheader205 ]
  %niter = phi i64 [ %niter.next.1, %100 ], [ 0, %.preheader205 ]
  %76 = icmp uge i64 %.2217, %.2177218
  %77 = icmp ule i64 %.2217, %.2177218
  %or.cond204 = select i1 %narrow183, i1 %76, i1 %77
  br i1 %or.cond204, label %87, label %78

78:                                               ; preds = %.preheader205.new
  %79 = load ptr, ptr %14, align 8, !tbaa !12
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.2217
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds double, ptr %81, i64 %.2177218
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = getelementptr inbounds ptr, ptr %79, i64 %.2177218
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds double, ptr %85, i64 %.2217
  store double %83, ptr %86, align 8, !tbaa !15
  br label %87

87:                                               ; preds = %.preheader205.new, %78
  %88 = or disjoint i64 %.2217, 1
  %89 = icmp uge i64 %88, %.2177218
  %90 = icmp ult i64 %.2217, %.2177218
  %or.cond204.1 = select i1 %narrow183, i1 %89, i1 %90
  br i1 %or.cond204.1, label %100, label %91

91:                                               ; preds = %87
  %92 = load ptr, ptr %14, align 8, !tbaa !12
  %93 = getelementptr inbounds ptr, ptr %92, i64 %88
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = getelementptr inbounds double, ptr %94, i64 %.2177218
  %96 = load double, ptr %95, align 8, !tbaa !15
  %97 = getelementptr inbounds ptr, ptr %92, i64 %.2177218
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds double, ptr %98, i64 %88
  store double %96, ptr %99, align 8, !tbaa !15
  br label %100

100:                                              ; preds = %91, %87
  %101 = add nuw nsw i64 %.2217, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %.preheader205.new, !llvm.loop !19

.unr-lcssa:                                       ; preds = %100, %.preheader205
  %.2217.unr = phi i64 [ 0, %.preheader205 ], [ %101, %100 ]
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa
  %102 = icmp uge i64 %.2217.unr, %.2177218
  %103 = icmp ule i64 %.2217.unr, %.2177218
  %or.cond204.epil = select i1 %narrow183, i1 %102, i1 %103
  br i1 %or.cond204.epil, label %.epilog-lcssa, label %104

104:                                              ; preds = %.epil.preheader
  %105 = load ptr, ptr %14, align 8, !tbaa !12
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.2217.unr
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = getelementptr inbounds double, ptr %107, i64 %.2177218
  %109 = load double, ptr %108, align 8, !tbaa !15
  %110 = getelementptr inbounds ptr, ptr %105, i64 %.2177218
  %111 = load ptr, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds double, ptr %111, i64 %.2217.unr
  store double %109, ptr %112, align 8, !tbaa !15
  br label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.epil.preheader, %104, %.unr-lcssa
  %113 = add nuw nsw i64 %.2177218, 1
  %exitcond233.not = icmp eq i64 %113, %.0172228
  br i1 %exitcond233.not, label %114, label %.preheader205, !llvm.loop !20

114:                                              ; preds = %.epilog-lcssa
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0172228, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0172228, ptr noundef %0)
  br label %115

115:                                              ; preds = %114, %115
  %.3219 = phi i64 [ 0, %114 ], [ %125, %115 ]
  %116 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  %117 = fadd double %116, -5.000000e-01
  %118 = load ptr, ptr %15, align 8, !tbaa !12
  %119 = getelementptr inbounds double, ptr %118, i64 %.3219
  store double %117, ptr %119, align 8, !tbaa !15
  %120 = load ptr, ptr %15, align 8, !tbaa !12
  %121 = getelementptr inbounds double, ptr %120, i64 %.3219
  %122 = load double, ptr %121, align 8, !tbaa !15
  %123 = load ptr, ptr %16, align 8, !tbaa !12
  %124 = getelementptr inbounds double, ptr %123, i64 %.3219
  store double %122, ptr %124, align 8, !tbaa !15
  %125 = add nuw nsw i64 %.3219, 1
  %exitcond234.not = icmp eq i64 %125, %.0172228
  br i1 %exitcond234.not, label %126, label %115, !llvm.loop !21

126:                                              ; preds = %115
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext %narrow183, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef %0)
  %127 = load i64, ptr %5, align 8, !tbaa !22
  %128 = icmp slt i64 %127, %.0172228
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %128, ptr noundef nonnull @.str.8, i32 noundef 5712, ptr noundef nonnull @.str.133)
  %129 = load i8, ptr %13, align 1, !tbaa !5, !range !26, !noundef !27
  %130 = trunc nuw i8 %129 to i1
  br i1 %130, label %.loopexit, label %.preheader210

.preheader210:                                    ; preds = %126, %.preheader210
  %.3178220 = phi i64 [ %143, %.preheader210 ], [ 0, %126 ]
  %131 = load ptr, ptr %14, align 8, !tbaa !12
  %132 = getelementptr inbounds ptr, ptr %131, i64 %.3178220
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = load ptr, ptr %16, align 8, !tbaa !12
  %135 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %19)
  %136 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %133, i64 noundef 1, ptr noundef %134, i64 noundef 1, i64 noundef %135)
  %137 = load ptr, ptr %17, align 8, !tbaa !12
  %138 = getelementptr inbounds double, ptr %137, i64 %.3178220
  %139 = load double, ptr %138, align 8, !tbaa !15
  %140 = fsub double %136, %139
  %141 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %140, ptr noundef %0)
  %142 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %141, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %142, ptr noundef nonnull @.str.8, i32 noundef 5721, ptr noundef nonnull @.str.134)
  %143 = add nuw nsw i64 %.3178220, 1
  %exitcond235.not = icmp eq i64 %143, %.0172228
  br i1 %exitcond235.not, label %144, label %.preheader210, !llvm.loop !28

144:                                              ; preds = %.preheader210
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext %narrow183, ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef %0)
  %145 = load i64, ptr %6, align 8, !tbaa !22
  %146 = icmp slt i64 %145, %.0172228
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %146, ptr noundef nonnull @.str.8, i32 noundef 5724, ptr noundef nonnull @.str.135)
  %147 = load i8, ptr %13, align 1, !tbaa !5, !range !26, !noundef !27
  %148 = trunc nuw i8 %147 to i1
  br i1 %148, label %.loopexit, label %.preheader209

.preheader209:                                    ; preds = %144, %.preheader209
  %.4179221 = phi i64 [ %161, %.preheader209 ], [ 0, %144 ]
  %149 = load ptr, ptr %14, align 8, !tbaa !12
  %150 = getelementptr inbounds ptr, ptr %149, i64 %.4179221
  %151 = load ptr, ptr %150, align 8, !tbaa !13
  %152 = load ptr, ptr %16, align 8, !tbaa !12
  %153 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %19)
  %154 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %151, i64 noundef 1, ptr noundef %152, i64 noundef 1, i64 noundef %153)
  %155 = load ptr, ptr %18, align 8, !tbaa !12
  %156 = getelementptr inbounds double, ptr %155, i64 %.4179221
  %157 = load double, ptr %156, align 8, !tbaa !15
  %158 = fsub double %154, %157
  %159 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %158, ptr noundef %0)
  %160 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %159, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %160, ptr noundef nonnull @.str.8, i32 noundef 5733, ptr noundef nonnull @.str.136)
  %161 = add nuw nsw i64 %.4179221, 1
  %exitcond236.not = icmp eq i64 %161, %.0172228
  br i1 %exitcond236.not, label %162, label %.preheader209, !llvm.loop !29

162:                                              ; preds = %.preheader209
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0172228, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0172228, ptr noundef %0)
  br label %165

.preheader208:                                    ; preds = %165
  %163 = load ptr, ptr %16, align 8, !tbaa !12
  %164 = load ptr, ptr %14, align 8, !tbaa !12
  br label %.preheader

165:                                              ; preds = %162, %165
  %.4222 = phi i64 [ 0, %162 ], [ %175, %165 ]
  %166 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %12, ptr noundef %0)
  %167 = fadd double %166, -5.000000e-01
  %168 = load ptr, ptr %15, align 8, !tbaa !12
  %169 = getelementptr inbounds double, ptr %168, i64 %.4222
  store double %167, ptr %169, align 8, !tbaa !15
  %170 = load ptr, ptr %15, align 8, !tbaa !12
  %171 = getelementptr inbounds double, ptr %170, i64 %.4222
  %172 = load double, ptr %171, align 8, !tbaa !15
  %173 = load ptr, ptr %16, align 8, !tbaa !12
  %174 = getelementptr inbounds double, ptr %173, i64 %.4222
  store double %172, ptr %174, align 8, !tbaa !15
  %175 = add nuw nsw i64 %.4222, 1
  %exitcond237.not = icmp eq i64 %175, %.0172228
  br i1 %exitcond237.not, label %.preheader208, label %165, !llvm.loop !30

.preheader:                                       ; preds = %.preheader208, %.epilog-lcssa249
  %.0170226 = phi double [ 0.000000e+00, %.preheader208 ], [ %.lcssa, %.epilog-lcssa249 ]
  %.5180225 = phi i64 [ 0, %.preheader208 ], [ %215, %.epilog-lcssa249 ]
  %176 = getelementptr inbounds double, ptr %163, i64 %.5180225
  %177 = load double, ptr %176, align 8, !tbaa !15
  %178 = getelementptr inbounds ptr, ptr %164, i64 %.5180225
  %179 = load ptr, ptr %178, align 8, !tbaa !13
  br i1 %21, label %.unr-lcssa245, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %.1224 = phi double [ %206, %.preheader.new ], [ %.0170226, %.preheader ]
  %.5223 = phi i64 [ %207, %.preheader.new ], [ 0, %.preheader ]
  %niter252 = phi i64 [ %niter252.next.3, %.preheader.new ], [ 0, %.preheader ]
  %180 = getelementptr inbounds double, ptr %179, i64 %.5223
  %181 = load double, ptr %180, align 8, !tbaa !15
  %182 = fmul double %177, %181
  %183 = getelementptr inbounds double, ptr %163, i64 %.5223
  %184 = load double, ptr %183, align 8, !tbaa !15
  %185 = call double @llvm.fmuladd.f64(double %182, double %184, double %.1224)
  %186 = or disjoint i64 %.5223, 1
  %187 = getelementptr inbounds double, ptr %179, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !15
  %189 = fmul double %177, %188
  %190 = getelementptr inbounds double, ptr %163, i64 %186
  %191 = load double, ptr %190, align 8, !tbaa !15
  %192 = call double @llvm.fmuladd.f64(double %189, double %191, double %185)
  %193 = or disjoint i64 %.5223, 2
  %194 = getelementptr inbounds double, ptr %179, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !15
  %196 = fmul double %177, %195
  %197 = getelementptr inbounds double, ptr %163, i64 %193
  %198 = load double, ptr %197, align 8, !tbaa !15
  %199 = call double @llvm.fmuladd.f64(double %196, double %198, double %192)
  %200 = or disjoint i64 %.5223, 3
  %201 = getelementptr inbounds double, ptr %179, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !15
  %203 = fmul double %177, %202
  %204 = getelementptr inbounds double, ptr %163, i64 %200
  %205 = load double, ptr %204, align 8, !tbaa !15
  %206 = call double @llvm.fmuladd.f64(double %203, double %205, double %199)
  %207 = add nuw nsw i64 %.5223, 4
  %niter252.next.3 = add i64 %niter252, 4
  %niter252.ncmp.3 = icmp eq i64 %niter252.next.3, %unroll_iter251
  br i1 %niter252.ncmp.3, label %.unr-lcssa245, label %.preheader.new, !llvm.loop !31

.unr-lcssa245:                                    ; preds = %.preheader.new, %.preheader
  %.lcssa.ph = phi double [ poison, %.preheader ], [ %206, %.preheader.new ]
  %.1224.unr = phi double [ %.0170226, %.preheader ], [ %206, %.preheader.new ]
  %.5223.unr = phi i64 [ 0, %.preheader ], [ %207, %.preheader.new ]
  br i1 %lcmp.mod248.not, label %.epilog-lcssa249, label %.epil.preheader246

.epil.preheader246:                               ; preds = %.unr-lcssa245, %.epil.preheader246
  %.1224.epil = phi double [ %213, %.epil.preheader246 ], [ %.1224.unr, %.unr-lcssa245 ]
  %.5223.epil = phi i64 [ %214, %.epil.preheader246 ], [ %.5223.unr, %.unr-lcssa245 ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader246 ], [ 0, %.unr-lcssa245 ]
  %208 = getelementptr inbounds double, ptr %179, i64 %.5223.epil
  %209 = load double, ptr %208, align 8, !tbaa !15
  %210 = fmul double %177, %209
  %211 = getelementptr inbounds double, ptr %163, i64 %.5223.epil
  %212 = load double, ptr %211, align 8, !tbaa !15
  %213 = call double @llvm.fmuladd.f64(double %210, double %212, double %.1224.epil)
  %214 = add nuw nsw i64 %.5223.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter247
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa249, label %.epil.preheader246, !llvm.loop !32

.epilog-lcssa249:                                 ; preds = %.epil.preheader246, %.unr-lcssa245
  %.lcssa = phi double [ %.lcssa.ph, %.unr-lcssa245 ], [ %213, %.epil.preheader246 ]
  %215 = add nuw nsw i64 %.5180225, 1
  %exitcond239.not = icmp eq i64 %215, %.0172228
  br i1 %exitcond239.not, label %216, label %.preheader, !llvm.loop !34

216:                                              ; preds = %.epilog-lcssa249
  %217 = call noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %8, i1 noundef zeroext %narrow183, ptr noundef nonnull %3, ptr noundef %0)
  %218 = fsub double %217, %.lcssa
  %219 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %218, ptr noundef %0)
  %220 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %219, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %220, ptr noundef nonnull @.str.8, i32 noundef 5755, ptr noundef nonnull @.str.137)
  %221 = call noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, i1 noundef zeroext %narrow183, ptr noundef nonnull %3, ptr noundef %0)
  %222 = fsub double %221, %.lcssa
  %223 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %222, ptr noundef %0)
  %224 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %223, double noundef 0x3D95FD7FE1796496)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %13, i1 noundef zeroext %224, ptr noundef nonnull @.str.8, i32 noundef 5757, ptr noundef nonnull @.str.138)
  %225 = call noundef zeroext i1 @_ZL27testsparseunit_generatenextP15sparsegeneratorPN11alglib_impl9ae_matrixEPNS1_12sparsematrixEPNS1_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef %0)
  br i1 %225, label %29, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %216, %22
  %226 = add nsw i64 %.0227, 1
  %exitcond240.not = icmp eq i64 %226, 2
  br i1 %exitcond240.not, label %227, label %22, !llvm.loop !36

227:                                              ; preds = %._crit_edge
  %228 = add nuw nsw i64 %.0172228, 1
  %exitcond241.not = icmp eq i64 %228, 21
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond241.not, label %.loopexit, label %.preheader212, !llvm.loop !37

.loopexit:                                        ; preds = %227, %144, %126
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %.0171.in = load i8, ptr %13, align 1, !tbaa !5, !range !26, !noundef !27
  %.0171 = trunc nuw i8 %.0171.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %.0171
}

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 noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 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 #4

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

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

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

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

declare noundef double @_ZN11alglib_impl10sparsevsmvEPNS_12sparsematrixEbPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTSN11alglib_impl9ae_vectorE", !24, i64 0, !24, i64 8, !6, i64 16, !25, i64 24, !7, i64 56}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10}
!36 = distinct !{!36, !10}
!37 = distinct !{!37, !10}


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