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

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

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

; 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 noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z19linearfunctionstestPN11alglib_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 %"struct.alglib_impl::sparsematrix", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca double, 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 368, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 %5, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, 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 %16, 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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, 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 %18, 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 %19, 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 %20, 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 %21, 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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  store double 5.000000e-13, ptr %23, align 8, !tbaa !9
  store i64 10, ptr %6, align 8, !tbaa !11
  store i64 10, ptr %7, align 8, !tbaa !11
  store double -1.000000e+01, ptr %12, align 8, !tbaa !9
  store double 1.000000e+01, ptr %13, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %37

37:                                               ; preds = %429, %1
  %38 = load i64, ptr %8, align 8, !tbaa !11
  %39 = load i64, ptr %7, align 8, !tbaa !11
  %40 = sub nsw i64 %39, 1
  %41 = icmp sle i64 %38, %40
  br i1 %41, label %42, label %432

42:                                               ; preds = %37
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %43

43:                                               ; preds = %425, %42
  %44 = load i64, ptr %9, align 8, !tbaa !11
  %45 = load i64, ptr %6, align 8, !tbaa !11
  %46 = sub nsw i64 %45, 1
  %47 = icmp sle i64 %44, %46
  br i1 %47, label %48, label %428

48:                                               ; preds = %43
  %49 = load i64, ptr %8, align 8, !tbaa !11
  %50 = load i64, ptr %9, align 8, !tbaa !11
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %49, i64 noundef %50, i64 noundef -1, i64 noundef -1, i64 noundef -1, i64 noundef -1, ptr noundef %14, ptr noundef %5, ptr noundef %51)
  %52 = load i64, ptr %8, align 8, !tbaa !11
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %52, ptr noundef %53)
  %54 = load i64, ptr %9, align 8, !tbaa !11
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %18, i64 noundef %54, ptr noundef %55)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %66, %48
  %57 = load i64, ptr %10, align 8, !tbaa !11
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = sub nsw i64 %58, 1
  %60 = icmp sle i64 %57, %59
  br i1 %60, label %61, label %69

61:                                               ; preds = %56
  %62 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = load i64, ptr %10, align 8, !tbaa !11
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %61
  %67 = load i64, ptr %10, align 8, !tbaa !11
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr %10, align 8, !tbaa !11
  br label %56, !llvm.loop !14

69:                                               ; preds = %56
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %70

70:                                               ; preds = %80, %69
  %71 = load i64, ptr %10, align 8, !tbaa !11
  %72 = load i64, ptr %9, align 8, !tbaa !11
  %73 = sub nsw i64 %72, 1
  %74 = icmp sle i64 %71, %73
  br i1 %74, label %75, label %83

75:                                               ; preds = %70
  %76 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = load i64, ptr %10, align 8, !tbaa !11
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  store double 0.000000e+00, ptr %79, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %75
  %81 = load i64, ptr %10, align 8, !tbaa !11
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %10, align 8, !tbaa !11
  br label %70, !llvm.loop !16

83:                                               ; preds = %70
  %84 = load i64, ptr %9, align 8, !tbaa !11
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %84, ptr noundef %85)
  %86 = load i64, ptr %8, align 8, !tbaa !11
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %86, ptr noundef %87)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %88

88:                                               ; preds = %105, %83
  %89 = load i64, ptr %10, align 8, !tbaa !11
  %90 = load i64, ptr %9, align 8, !tbaa !11
  %91 = sub nsw i64 %90, 1
  %92 = icmp sle i64 %89, %91
  br i1 %92, label %93, label %108

93:                                               ; preds = %88
  %94 = load double, ptr %13, align 8, !tbaa !9
  %95 = load double, ptr %12, align 8, !tbaa !9
  %96 = fsub double %94, %95
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %97)
  %99 = load double, ptr %12, align 8, !tbaa !9
  %100 = call double @llvm.fmuladd.f64(double %96, double %98, double %99)
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !13
  %103 = load i64, ptr %10, align 8, !tbaa !11
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  store double %100, ptr %104, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %93
  %106 = load i64, ptr %10, align 8, !tbaa !11
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %10, align 8, !tbaa !11
  br label %88, !llvm.loop !17

108:                                              ; preds = %88
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %109

109:                                              ; preds = %126, %108
  %110 = load i64, ptr %10, align 8, !tbaa !11
  %111 = load i64, ptr %8, align 8, !tbaa !11
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %129

114:                                              ; preds = %109
  %115 = load double, ptr %13, align 8, !tbaa !9
  %116 = load double, ptr %12, align 8, !tbaa !9
  %117 = fsub double %115, %116
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %118)
  %120 = load double, ptr %12, align 8, !tbaa !9
  %121 = call double @llvm.fmuladd.f64(double %117, double %119, double %120)
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !13
  %124 = load i64, ptr %10, align 8, !tbaa !11
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store double %121, ptr %125, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %114
  %127 = load i64, ptr %10, align 8, !tbaa !11
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %10, align 8, !tbaa !11
  br label %109, !llvm.loop !18

129:                                              ; preds = %109
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = load i64, ptr %9, align 8, !tbaa !11
  %132 = icmp ne i64 %130, %131
  br i1 %132, label %133, label %262

133:                                              ; preds = %129
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %134

134:                                              ; preds = %196, %133
  %135 = load i64, ptr %10, align 8, !tbaa !11
  %136 = load i64, ptr %8, align 8, !tbaa !11
  %137 = sub nsw i64 %136, 1
  %138 = icmp sle i64 %135, %137
  br i1 %138, label %139, label %199

139:                                              ; preds = %134
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %192, %139
  %141 = load i64, ptr %11, align 8, !tbaa !11
  %142 = load i64, ptr %9, align 8, !tbaa !11
  %143 = sub nsw i64 %142, 1
  %144 = icmp sle i64 %141, %143
  br i1 %144, label %145, label %195

145:                                              ; preds = %140
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !13
  %148 = load i64, ptr %10, align 8, !tbaa !11
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = load i64, ptr %10, align 8, !tbaa !11
  %154 = getelementptr inbounds ptr, ptr %152, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  %156 = load i64, ptr %11, align 8, !tbaa !11
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !13
  %161 = load i64, ptr %11, align 8, !tbaa !11
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = call double @llvm.fmuladd.f64(double %158, double %163, double %150)
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !13
  %167 = load i64, ptr %10, align 8, !tbaa !11
  %168 = getelementptr inbounds double, ptr %166, i64 %167
  store double %164, ptr %168, align 8, !tbaa !9
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !13
  %171 = load i64, ptr %11, align 8, !tbaa !11
  %172 = getelementptr inbounds double, ptr %170, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  %176 = load i64, ptr %10, align 8, !tbaa !11
  %177 = getelementptr inbounds ptr, ptr %175, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load i64, ptr %11, align 8, !tbaa !11
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !9
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !13
  %184 = load i64, ptr %10, align 8, !tbaa !11
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = call double @llvm.fmuladd.f64(double %181, double %186, double %173)
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !13
  %190 = load i64, ptr %11, align 8, !tbaa !11
  %191 = getelementptr inbounds double, ptr %189, i64 %190
  store double %187, ptr %191, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %145
  %193 = load i64, ptr %11, align 8, !tbaa !11
  %194 = add nsw i64 %193, 1
  store i64 %194, ptr %11, align 8, !tbaa !11
  br label %140, !llvm.loop !19

195:                                              ; preds = %140
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %10, align 8, !tbaa !11
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %10, align 8, !tbaa !11
  br label %134, !llvm.loop !20

199:                                              ; preds = %134
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %15, ptr noundef %19, ptr noundef %200)
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %16, ptr noundef %20, ptr noundef %201)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %228, %199
  %203 = load i64, ptr %10, align 8, !tbaa !11
  %204 = load i64, ptr %8, align 8, !tbaa !11
  %205 = sub nsw i64 %204, 1
  %206 = icmp sle i64 %203, %205
  br i1 %206, label %207, label %231

207:                                              ; preds = %202
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !13
  %210 = load i64, ptr %10, align 8, !tbaa !11
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !9
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !13
  %215 = load i64, ptr %10, align 8, !tbaa !11
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  %217 = load double, ptr %216, align 8, !tbaa !9
  %218 = fsub double %212, %217
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %218, ptr noundef %219)
  %221 = load double, ptr %23, align 8, !tbaa !9
  %222 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %220, double noundef %221)
  br i1 %222, label %223, label %227

223:                                              ; preds = %207
  store i8 1, ptr %24, align 1, !tbaa !21
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %224)
  %225 = load i8, ptr %24, align 1, !tbaa !21, !range !23, !noundef !24
  %226 = trunc i8 %225 to i1
  store i1 %226, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %436

227:                                              ; preds = %207
  br label %228

228:                                              ; preds = %227
  %229 = load i64, ptr %10, align 8, !tbaa !11
  %230 = add nsw i64 %229, 1
  store i64 %230, ptr %10, align 8, !tbaa !11
  br label %202, !llvm.loop !25

231:                                              ; preds = %202
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %232

232:                                              ; preds = %258, %231
  %233 = load i64, ptr %10, align 8, !tbaa !11
  %234 = load i64, ptr %9, align 8, !tbaa !11
  %235 = sub nsw i64 %234, 1
  %236 = icmp sle i64 %233, %235
  br i1 %236, label %237, label %261

237:                                              ; preds = %232
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  %240 = load i64, ptr %10, align 8, !tbaa !11
  %241 = getelementptr inbounds double, ptr %239, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !9
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !13
  %245 = load i64, ptr %10, align 8, !tbaa !11
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !9
  %248 = fsub double %242, %247
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %248, ptr noundef %249)
  %251 = load double, ptr %23, align 8, !tbaa !9
  %252 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %250, double noundef %251)
  br i1 %252, label %253, label %257

253:                                              ; preds = %237
  store i8 1, ptr %24, align 1, !tbaa !21
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %254)
  %255 = load i8, ptr %24, align 1, !tbaa !21, !range !23, !noundef !24
  %256 = trunc i8 %255 to i1
  store i1 %256, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %436

257:                                              ; preds = %237
  br label %258

258:                                              ; preds = %257
  %259 = load i64, ptr %10, align 8, !tbaa !11
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %10, align 8, !tbaa !11
  br label %232, !llvm.loop !26

261:                                              ; preds = %232
  br label %424

262:                                              ; preds = %129
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %263

263:                                              ; preds = %325, %262
  %264 = load i64, ptr %10, align 8, !tbaa !11
  %265 = load i64, ptr %8, align 8, !tbaa !11
  %266 = sub nsw i64 %265, 1
  %267 = icmp sle i64 %264, %266
  br i1 %267, label %268, label %328

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

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

274:                                              ; preds = %269
  %275 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !13
  %277 = load i64, ptr %10, align 8, !tbaa !11
  %278 = getelementptr inbounds double, ptr %276, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !9
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %281 = load ptr, ptr %280, align 8, !tbaa !13
  %282 = load i64, ptr %10, align 8, !tbaa !11
  %283 = getelementptr inbounds ptr, ptr %281, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = load i64, ptr %11, align 8, !tbaa !11
  %286 = getelementptr inbounds double, ptr %284, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !9
  %288 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %289 = load ptr, ptr %288, align 8, !tbaa !13
  %290 = load i64, ptr %11, align 8, !tbaa !11
  %291 = getelementptr inbounds double, ptr %289, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !9
  %293 = call double @llvm.fmuladd.f64(double %287, double %292, double %279)
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !13
  %296 = load i64, ptr %10, align 8, !tbaa !11
  %297 = getelementptr inbounds double, ptr %295, i64 %296
  store double %293, ptr %297, align 8, !tbaa !9
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !13
  %300 = load i64, ptr %11, align 8, !tbaa !11
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !9
  %303 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !13
  %305 = load i64, ptr %10, align 8, !tbaa !11
  %306 = getelementptr inbounds ptr, ptr %304, i64 %305
  %307 = load ptr, ptr %306, align 8, !tbaa !5
  %308 = load i64, ptr %11, align 8, !tbaa !11
  %309 = getelementptr inbounds double, ptr %307, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !9
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !13
  %313 = load i64, ptr %10, align 8, !tbaa !11
  %314 = getelementptr inbounds double, ptr %312, i64 %313
  %315 = load double, ptr %314, align 8, !tbaa !9
  %316 = call double @llvm.fmuladd.f64(double %310, double %315, double %302)
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !13
  %319 = load i64, ptr %11, align 8, !tbaa !11
  %320 = getelementptr inbounds double, ptr %318, i64 %319
  store double %316, ptr %320, align 8, !tbaa !9
  br label %321

321:                                              ; preds = %274
  %322 = load i64, ptr %11, align 8, !tbaa !11
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %11, align 8, !tbaa !11
  br label %269, !llvm.loop !27

324:                                              ; preds = %269
  br label %325

325:                                              ; preds = %324
  %326 = load i64, ptr %10, align 8, !tbaa !11
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %10, align 8, !tbaa !11
  br label %263, !llvm.loop !28

328:                                              ; preds = %263
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %15, ptr noundef %19, ptr noundef %329)
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %15, ptr noundef %20, ptr noundef %330)
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsemv2EPNS_12sparsematrixEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef %5, ptr noundef %15, ptr noundef %21, ptr noundef %22, ptr noundef %331)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %332

332:                                              ; preds = %374, %328
  %333 = load i64, ptr %10, align 8, !tbaa !11
  %334 = load i64, ptr %8, align 8, !tbaa !11
  %335 = sub nsw i64 %334, 1
  %336 = icmp sle i64 %333, %335
  br i1 %336, label %337, label %377

337:                                              ; preds = %332
  %338 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %339 = load ptr, ptr %338, align 8, !tbaa !13
  %340 = load i64, ptr %10, align 8, !tbaa !11
  %341 = getelementptr inbounds double, ptr %339, i64 %340
  %342 = load double, ptr %341, align 8, !tbaa !9
  %343 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !13
  %345 = load i64, ptr %10, align 8, !tbaa !11
  %346 = getelementptr inbounds double, ptr %344, i64 %345
  %347 = load double, ptr %346, align 8, !tbaa !9
  %348 = fsub double %342, %347
  %349 = load ptr, ptr %3, align 8, !tbaa !5
  %350 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %348, ptr noundef %349)
  %351 = load double, ptr %23, align 8, !tbaa !9
  %352 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %350, double noundef %351)
  br i1 %352, label %369, label %353

353:                                              ; preds = %337
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !13
  %356 = load i64, ptr %10, align 8, !tbaa !11
  %357 = getelementptr inbounds double, ptr %355, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !9
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !13
  %361 = load i64, ptr %10, align 8, !tbaa !11
  %362 = getelementptr inbounds double, ptr %360, i64 %361
  %363 = load double, ptr %362, align 8, !tbaa !9
  %364 = fsub double %358, %363
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  %366 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %364, ptr noundef %365)
  %367 = load double, ptr %23, align 8, !tbaa !9
  %368 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %366, double noundef %367)
  br i1 %368, label %369, label %373

369:                                              ; preds = %353, %337
  store i8 1, ptr %24, align 1, !tbaa !21
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %370)
  %371 = load i8, ptr %24, align 1, !tbaa !21, !range !23, !noundef !24
  %372 = trunc i8 %371 to i1
  store i1 %372, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %436

373:                                              ; preds = %353
  br label %374

374:                                              ; preds = %373
  %375 = load i64, ptr %10, align 8, !tbaa !11
  %376 = add nsw i64 %375, 1
  store i64 %376, ptr %10, align 8, !tbaa !11
  br label %332, !llvm.loop !29

377:                                              ; preds = %332
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %378

378:                                              ; preds = %420, %377
  %379 = load i64, ptr %10, align 8, !tbaa !11
  %380 = load i64, ptr %8, align 8, !tbaa !11
  %381 = sub nsw i64 %380, 1
  %382 = icmp sle i64 %379, %381
  br i1 %382, label %383, label %423

383:                                              ; preds = %378
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !13
  %386 = load i64, ptr %10, align 8, !tbaa !11
  %387 = getelementptr inbounds double, ptr %385, i64 %386
  %388 = load double, ptr %387, align 8, !tbaa !9
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %390 = load ptr, ptr %389, align 8, !tbaa !13
  %391 = load i64, ptr %10, align 8, !tbaa !11
  %392 = getelementptr inbounds double, ptr %390, i64 %391
  %393 = load double, ptr %392, align 8, !tbaa !9
  %394 = fsub double %388, %393
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  %396 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %394, ptr noundef %395)
  %397 = load double, ptr %23, align 8, !tbaa !9
  %398 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %396, double noundef %397)
  br i1 %398, label %415, label %399

399:                                              ; preds = %383
  %400 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %401 = load ptr, ptr %400, align 8, !tbaa !13
  %402 = load i64, ptr %10, align 8, !tbaa !11
  %403 = getelementptr inbounds double, ptr %401, i64 %402
  %404 = load double, ptr %403, align 8, !tbaa !9
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %406 = load ptr, ptr %405, align 8, !tbaa !13
  %407 = load i64, ptr %10, align 8, !tbaa !11
  %408 = getelementptr inbounds double, ptr %406, i64 %407
  %409 = load double, ptr %408, align 8, !tbaa !9
  %410 = fsub double %404, %409
  %411 = load ptr, ptr %3, align 8, !tbaa !5
  %412 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %410, ptr noundef %411)
  %413 = load double, ptr %23, align 8, !tbaa !9
  %414 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %412, double noundef %413)
  br i1 %414, label %415, label %419

415:                                              ; preds = %399, %383
  store i8 1, ptr %24, align 1, !tbaa !21
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %416)
  %417 = load i8, ptr %24, align 1, !tbaa !21, !range !23, !noundef !24
  %418 = trunc i8 %417 to i1
  store i1 %418, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %436

419:                                              ; preds = %399
  br label %420

420:                                              ; preds = %419
  %421 = load i64, ptr %10, align 8, !tbaa !11
  %422 = add nsw i64 %421, 1
  store i64 %422, ptr %10, align 8, !tbaa !11
  br label %378, !llvm.loop !30

423:                                              ; preds = %378
  br label %424

424:                                              ; preds = %423, %261
  br label %425

425:                                              ; preds = %424
  %426 = load i64, ptr %9, align 8, !tbaa !11
  %427 = add nsw i64 %426, 1
  store i64 %427, ptr %9, align 8, !tbaa !11
  br label %43, !llvm.loop !31

428:                                              ; preds = %43
  br label %429

429:                                              ; preds = %428
  %430 = load i64, ptr %8, align 8, !tbaa !11
  %431 = add nsw i64 %430, 1
  store i64 %431, ptr %8, align 8, !tbaa !11
  br label %37, !llvm.loop !32

432:                                              ; preds = %37
  store i8 0, ptr %24, align 1, !tbaa !21
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %433)
  %434 = load i8, ptr %24, align 1, !tbaa !21, !range !23, !noundef !24
  %435 = trunc i8 %434 to i1
  store i1 %435, ptr %2, align 1
  store i32 1, ptr %25, align 4
  br label %436

436:                                              ; preds = %432, %415, %369, %253, %223
  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 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  %437 = load i1, ptr %2, align 1
  ret i1 %437
}

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

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

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

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

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

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 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; 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 noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) 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 noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double 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

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

.preheader163:                                    ; preds = %1, %193
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %193 ]
  %22 = phi i1 [ true, %1 ], [ %195, %193 ]
  %.0137181 = phi i64 [ 1, %1 ], [ %194, %193 ]
  %xtraiter = and i64 %.0137181, 3
  %23 = icmp ult i64 %indvar, 3
  %unroll_iter = and i64 %.0137181, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %24

24:                                               ; preds = %.preheader163, %.loopexit
  %indvar228 = phi i64 [ 0, %.preheader163 ], [ %indvar.next229, %.loopexit ]
  %.0138180 = phi i64 [ 1, %.preheader163 ], [ %192, %.loopexit ]
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0137181, i64 noundef %.0138180, i64 noundef -1, i64 noundef -1, i64 noundef -1, i64 noundef -1, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0137181, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0138180, ptr noundef %0)
  br i1 %23, label %.preheader162.preheader.unr-lcssa, label %.new

.new:                                             ; preds = %24, %.new
  %.0140168 = phi i64 [ %36, %.new ], [ 0, %24 ]
  %niter = phi i64 [ %niter.next.3, %.new ], [ 0, %24 ]
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds double, ptr %25, i64 %.0140168
  store double 0.000000e+00, ptr %26, align 8, !tbaa !8
  %27 = or disjoint i64 %.0140168, 1
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %27
  store double 0.000000e+00, ptr %29, align 8, !tbaa !8
  %30 = or disjoint i64 %.0140168, 2
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %31, i64 %30
  store double 0.000000e+00, ptr %32, align 8, !tbaa !8
  %33 = or disjoint i64 %.0140168, 3
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 %33
  store double 0.000000e+00, ptr %35, align 8, !tbaa !8
  %36 = add nuw nsw i64 %.0140168, 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 %.preheader162.preheader.unr-lcssa, label %.new, !llvm.loop !10

.preheader162.preheader.unr-lcssa:                ; preds = %.new, %24
  %.0140168.unr = phi i64 [ 0, %24 ], [ %36, %.new ]
  br i1 %lcmp.mod.not, label %.preheader162.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader162.preheader.unr-lcssa, %.epil.preheader
  %.0140168.epil = phi i64 [ %39, %.epil.preheader ], [ %.0140168.unr, %.preheader162.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader162.preheader.unr-lcssa ]
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 %.0140168.epil
  store double 0.000000e+00, ptr %38, align 8, !tbaa !8
  %39 = add nuw nsw i64 %.0140168.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 %.preheader162.preheader, label %.epil.preheader, !llvm.loop !12

.preheader162.preheader:                          ; preds = %.epil.preheader, %.preheader162.preheader.unr-lcssa
  %xtraiter230 = and i64 %.0138180, 3
  %40 = icmp ult i64 %indvar228, 3
  br i1 %40, label %.unr-lcssa, label %.preheader162.preheader.new

.preheader162.preheader.new:                      ; preds = %.preheader162.preheader
  %unroll_iter233 = and i64 %.0138180, 9223372036854775804
  br label %.preheader162

.preheader162:                                    ; preds = %.preheader162, %.preheader162.preheader.new
  %.1141169 = phi i64 [ 0, %.preheader162.preheader.new ], [ %52, %.preheader162 ]
  %niter234 = phi i64 [ 0, %.preheader162.preheader.new ], [ %niter234.next.3, %.preheader162 ]
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 %.1141169
  store double 0.000000e+00, ptr %42, align 8, !tbaa !8
  %43 = or disjoint i64 %.1141169, 1
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 %43
  store double 0.000000e+00, ptr %45, align 8, !tbaa !8
  %46 = or disjoint i64 %.1141169, 2
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 %46
  store double 0.000000e+00, ptr %48, align 8, !tbaa !8
  %49 = or disjoint i64 %.1141169, 3
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 %49
  store double 0.000000e+00, ptr %51, align 8, !tbaa !8
  %52 = add nuw nsw i64 %.1141169, 4
  %niter234.next.3 = add i64 %niter234, 4
  %niter234.ncmp.3 = icmp eq i64 %niter234.next.3, %unroll_iter233
  br i1 %niter234.ncmp.3, label %.unr-lcssa, label %.preheader162, !llvm.loop !14

.unr-lcssa:                                       ; preds = %.preheader162, %.preheader162.preheader
  %.1141169.unr = phi i64 [ 0, %.preheader162.preheader ], [ %52, %.preheader162 ]
  %lcmp.mod232.not = icmp eq i64 %xtraiter230, 0
  br i1 %lcmp.mod232.not, label %.epilog-lcssa, label %.preheader162.epil

.preheader162.epil:                               ; preds = %.unr-lcssa, %.preheader162.epil
  %.1141169.epil = phi i64 [ %55, %.preheader162.epil ], [ %.1141169.unr, %.unr-lcssa ]
  %epil.iter231 = phi i64 [ %epil.iter231.next, %.preheader162.epil ], [ 0, %.unr-lcssa ]
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 %.1141169.epil
  store double 0.000000e+00, ptr %54, align 8, !tbaa !8
  %55 = add nuw nsw i64 %.1141169.epil, 1
  %epil.iter231.next = add i64 %epil.iter231, 1
  %epil.iter231.cmp.not = icmp eq i64 %epil.iter231.next, %xtraiter230
  br i1 %epil.iter231.cmp.not, label %.epilog-lcssa, label %.preheader162.epil, !llvm.loop !15

.epilog-lcssa:                                    ; preds = %.preheader162.epil, %.unr-lcssa
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0138180, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0137181, ptr noundef %0)
  br label %56

56:                                               ; preds = %.epilog-lcssa, %56
  %.2170 = phi i64 [ 0, %.epilog-lcssa ], [ %61, %56 ]
  %57 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %58 = call double @llvm.fmuladd.f64(double %57, double 2.000000e+01, double -1.000000e+01)
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %.2170
  store double %58, ptr %60, align 8, !tbaa !8
  %61 = add nuw nsw i64 %.2170, 1
  %exitcond189.not = icmp eq i64 %61, %.0138180
  br i1 %exitcond189.not, label %.preheader161, label %56, !llvm.loop !16

.preheader161:                                    ; preds = %56, %.preheader161
  %.3171 = phi i64 [ %66, %.preheader161 ], [ 0, %56 ]
  %62 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %63 = call double @llvm.fmuladd.f64(double %62, double 2.000000e+01, double -1.000000e+01)
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 %.3171
  store double %63, ptr %65, align 8, !tbaa !8
  %66 = add nuw nsw i64 %.3171, 1
  %exitcond190.not = icmp eq i64 %66, %.0137181
  br i1 %exitcond190.not, label %67, label %.preheader161, !llvm.loop !17

67:                                               ; preds = %.preheader161
  %.not = icmp eq i64 %.0137181, %.0138180
  br i1 %.not, label %.preheader, label %.preheader155

.preheader155:                                    ; preds = %67, %94
  %.4173 = phi i64 [ %95, %94 ], [ 0, %67 ]
  br label %68

68:                                               ; preds = %.preheader155, %68
  %.0139172 = phi i64 [ 0, %.preheader155 ], [ %93, %68 ]
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.4173
  %71 = load double, ptr %70, align 8, !tbaa !8
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.4173
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = getelementptr inbounds double, ptr %74, i64 %.0139172
  %76 = load double, ptr %75, align 8, !tbaa !8
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i64 %.0139172
  %79 = load double, ptr %78, align 8, !tbaa !8
  %80 = call double @llvm.fmuladd.f64(double %76, double %79, double %71)
  store double %80, ptr %70, align 8, !tbaa !8
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 %.0139172
  %83 = load double, ptr %82, align 8, !tbaa !8
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.4173
  %86 = load ptr, ptr %85, align 8, !tbaa !18
  %87 = getelementptr inbounds double, ptr %86, i64 %.0139172
  %88 = load double, ptr %87, align 8, !tbaa !8
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds double, ptr %89, i64 %.4173
  %91 = load double, ptr %90, align 8, !tbaa !8
  %92 = call double @llvm.fmuladd.f64(double %88, double %91, double %83)
  store double %92, ptr %82, align 8, !tbaa !8
  %93 = add nuw nsw i64 %.0139172, 1
  %exitcond191.not = icmp eq i64 %93, %.0138180
  br i1 %exitcond191.not, label %94, label %68, !llvm.loop !20

94:                                               ; preds = %68
  %95 = add nuw nsw i64 %.4173, 1
  %exitcond192.not = icmp eq i64 %95, %.0137181
  br i1 %exitcond192.not, label %96, label %.preheader155, !llvm.loop !21

96:                                               ; preds = %94
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %0)
  br label %99

97:                                               ; preds = %99
  %98 = add nuw nsw i64 %.5174, 1
  %exitcond193.not = icmp eq i64 %98, %.0137181
  br i1 %exitcond193.not, label %.preheader158, label %99, !llvm.loop !22

99:                                               ; preds = %96, %97
  %.5174 = phi i64 [ 0, %96 ], [ %98, %97 ]
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = getelementptr inbounds double, ptr %100, i64 %.5174
  %102 = load double, ptr %101, align 8, !tbaa !8
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds double, ptr %103, i64 %.5174
  %105 = load double, ptr %104, align 8, !tbaa !8
  %106 = fsub double %102, %105
  %107 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %106, ptr noundef %0)
  %108 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %107, double noundef 5.000000e-13)
  br i1 %108, label %.loopexit207, label %97

109:                                              ; preds = %.preheader158
  %110 = add nuw nsw i64 %.6175, 1
  %exitcond194.not = icmp eq i64 %110, %.0138180
  br i1 %exitcond194.not, label %.loopexit, label %.preheader158, !llvm.loop !23

.preheader158:                                    ; preds = %97, %109
  %.6175 = phi i64 [ %110, %109 ], [ 0, %97 ]
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.6175
  %113 = load double, ptr %112, align 8, !tbaa !8
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds double, ptr %114, i64 %.6175
  %116 = load double, ptr %115, align 8, !tbaa !8
  %117 = fsub double %113, %116
  %118 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %117, ptr noundef %0)
  %119 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %118, double noundef 5.000000e-13)
  br i1 %119, label %.loopexit207, label %109

.preheader:                                       ; preds = %67, %146
  %.7177 = phi i64 [ %147, %146 ], [ 0, %67 ]
  br label %120

120:                                              ; preds = %.preheader, %120
  %.1176 = phi i64 [ 0, %.preheader ], [ %145, %120 ]
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 %.7177
  %123 = load double, ptr %122, align 8, !tbaa !8
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = getelementptr inbounds ptr, ptr %124, i64 %.7177
  %126 = load ptr, ptr %125, align 8, !tbaa !18
  %127 = getelementptr inbounds double, ptr %126, i64 %.1176
  %128 = load double, ptr %127, align 8, !tbaa !8
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds double, ptr %129, i64 %.1176
  %131 = load double, ptr %130, align 8, !tbaa !8
  %132 = call double @llvm.fmuladd.f64(double %128, double %131, double %123)
  store double %132, ptr %122, align 8, !tbaa !8
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 %.1176
  %135 = load double, ptr %134, align 8, !tbaa !8
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = getelementptr inbounds ptr, ptr %136, i64 %.7177
  %138 = load ptr, ptr %137, align 8, !tbaa !18
  %139 = getelementptr inbounds double, ptr %138, i64 %.1176
  %140 = load double, ptr %139, align 8, !tbaa !8
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = getelementptr inbounds double, ptr %141, i64 %.7177
  %143 = load double, ptr %142, align 8, !tbaa !8
  %144 = call double @llvm.fmuladd.f64(double %140, double %143, double %135)
  store double %144, ptr %134, align 8, !tbaa !8
  %145 = add nuw nsw i64 %.1176, 1
  %exitcond195.not = icmp eq i64 %145, %.0137181
  br i1 %exitcond195.not, label %146, label %120, !llvm.loop !24

146:                                              ; preds = %120
  %147 = add nuw nsw i64 %.7177, 1
  %exitcond196.not = icmp eq i64 %147, %.0137181
  br i1 %exitcond196.not, label %148, label %.preheader, !llvm.loop !25

148:                                              ; preds = %146
  call void @_ZN11alglib_impl8sparsemvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsemtvEPNS_12sparsematrixEPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %10, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsemv2EPNS_12sparsematrixEPNS_9ae_vectorES3_S3_PNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %0)
  br label %151

149:                                              ; preds = %161
  %150 = add nuw nsw i64 %.8178, 1
  %exitcond197.not = icmp eq i64 %150, %.0137181
  br i1 %exitcond197.not, label %.preheader156, label %151, !llvm.loop !26

151:                                              ; preds = %148, %149
  %.8178 = phi i64 [ 0, %148 ], [ %150, %149 ]
  %152 = load ptr, ptr %20, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 %.8178
  %154 = load double, ptr %153, align 8, !tbaa !8
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %155, i64 %.8178
  %157 = load double, ptr %156, align 8, !tbaa !8
  %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_impl16ae_fp_greater_eqEdd(double noundef %159, double noundef 5.000000e-13)
  br i1 %160, label %.loopexit207, label %161

161:                                              ; preds = %151
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 %.8178
  %164 = load double, ptr %163, align 8, !tbaa !8
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 %.8178
  %167 = load double, ptr %166, align 8, !tbaa !8
  %168 = fsub double %164, %167
  %169 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %168, ptr noundef %0)
  %170 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %169, double noundef 5.000000e-13)
  br i1 %170, label %.loopexit207, label %149

171:                                              ; preds = %182
  %172 = add nuw nsw i64 %.9179, 1
  %exitcond198.not = icmp eq i64 %172, %.0137181
  br i1 %exitcond198.not, label %.loopexit, label %.preheader156, !llvm.loop !27

.preheader156:                                    ; preds = %149, %171
  %.9179 = phi i64 [ %172, %171 ], [ 0, %149 ]
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %173, i64 %.9179
  %175 = load double, ptr %174, align 8, !tbaa !8
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = getelementptr inbounds double, ptr %176, i64 %.9179
  %178 = load double, ptr %177, align 8, !tbaa !8
  %179 = fsub double %175, %178
  %180 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %179, ptr noundef %0)
  %181 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %180, double noundef 5.000000e-13)
  br i1 %181, label %.loopexit207, label %182

182:                                              ; preds = %.preheader156
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = getelementptr inbounds double, ptr %183, i64 %.9179
  %185 = load double, ptr %184, align 8, !tbaa !8
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = getelementptr inbounds double, ptr %186, i64 %.9179
  %188 = load double, ptr %187, align 8, !tbaa !8
  %189 = fsub double %185, %188
  %190 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %189, ptr noundef %0)
  %191 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %190, double noundef 5.000000e-13)
  br i1 %191, label %.loopexit207, label %171

.loopexit:                                        ; preds = %109, %171
  %192 = add nuw nsw i64 %.0138180, 1
  %exitcond199.not = icmp eq i64 %192, 10
  %indvar.next229 = add i64 %indvar228, 1
  br i1 %exitcond199.not, label %193, label %24, !llvm.loop !28

193:                                              ; preds = %.loopexit
  %194 = add nuw nsw i64 %.0137181, 1
  %195 = icmp ult i64 %.0137181, 9
  %exitcond200.not = icmp eq i64 %194, 10
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond200.not, label %.loopexit207, label %.preheader163, !llvm.loop !29

.loopexit207:                                     ; preds = %193, %99, %.preheader158, %151, %161, %.preheader156, %182
  %196 = phi i1 [ %22, %182 ], [ %22, %.preheader156 ], [ %22, %161 ], [ %22, %151 ], [ %22, %.preheader158 ], [ %22, %99 ], [ %195, %193 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 80, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  ret i1 %196
}

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !6, i64 0}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}
!25 = distinct !{!25, !11}
!26 = distinct !{!26, !11}
!27 = distinct !{!27, !11}
!28 = distinct !{!28, !11}
!29 = distinct !{!29, !11}


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