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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::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

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

31:                                               ; preds = %278, %1
  %32 = load i64, ptr %7, align 8, !tbaa !11
  %33 = load i64, ptr %6, align 8, !tbaa !11
  %34 = sub nsw i64 %33, 1
  %35 = icmp sle i64 %32, %34
  br i1 %35, label %36, label %281

36:                                               ; preds = %31
  %37 = load i64, ptr %7, align 8, !tbaa !11
  %38 = load i64, ptr %7, align 8, !tbaa !11
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %37, i64 noundef %38, i64 noundef -1, i64 noundef -1, i64 noundef -1, i64 noundef -1, ptr noundef %12, ptr noundef %5, ptr noundef %39)
  %40 = load i64, ptr %7, align 8, !tbaa !11
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %40, ptr noundef %41)
  %42 = load i64, ptr %7, align 8, !tbaa !11
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %42, ptr noundef %43)
  %44 = load i64, ptr %7, align 8, !tbaa !11
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %44, ptr noundef %45)
  %46 = load i64, ptr %7, align 8, !tbaa !11
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %46, ptr noundef %47)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %84, %36
  %49 = load i64, ptr %8, align 8, !tbaa !11
  %50 = load i64, ptr %7, align 8, !tbaa !11
  %51 = sub nsw i64 %50, 1
  %52 = icmp sle i64 %49, %51
  br i1 %52, label %53, label %87

53:                                               ; preds = %48
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load i64, ptr %8, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  store double 0.000000e+00, ptr %57, align 8, !tbaa !9
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load i64, ptr %8, align 8, !tbaa !11
  %61 = getelementptr inbounds double, ptr %59, i64 %60
  store double 0.000000e+00, ptr %61, align 8, !tbaa !9
  %62 = load double, ptr %11, align 8, !tbaa !9
  %63 = load double, ptr %10, align 8, !tbaa !9
  %64 = fsub double %62, %63
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %65)
  %67 = load double, ptr %10, align 8, !tbaa !9
  %68 = call double @llvm.fmuladd.f64(double %64, double %66, double %67)
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !13
  %71 = load i64, ptr %8, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  store double %68, ptr %72, align 8, !tbaa !9
  %73 = load double, ptr %11, align 8, !tbaa !9
  %74 = load double, ptr %10, align 8, !tbaa !9
  %75 = fsub double %73, %74
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %76)
  %78 = load double, ptr %10, align 8, !tbaa !9
  %79 = call double @llvm.fmuladd.f64(double %75, double %77, double %78)
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load i64, ptr %8, align 8, !tbaa !11
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double %79, ptr %83, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %53
  %85 = load i64, ptr %8, align 8, !tbaa !11
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %8, align 8, !tbaa !11
  br label %48, !llvm.loop !14

87:                                               ; preds = %48
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %88

88:                                               ; preds = %156, %87
  %89 = load i64, ptr %8, align 8, !tbaa !11
  %90 = load i64, ptr %7, align 8, !tbaa !11
  %91 = sub nsw i64 %90, 1
  %92 = icmp sle i64 %89, %91
  br i1 %92, label %93, label %159

93:                                               ; preds = %88
  %94 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %94, ptr %9, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %152, %93
  %96 = load i64, ptr %9, align 8, !tbaa !11
  %97 = load i64, ptr %7, align 8, !tbaa !11
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %155

100:                                              ; preds = %95
  %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 %8, align 8, !tbaa !11
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = load i64, ptr %8, align 8, !tbaa !11
  %109 = getelementptr inbounds ptr, ptr %107, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load i64, ptr %9, align 8, !tbaa !11
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !13
  %116 = load i64, ptr %9, align 8, !tbaa !11
  %117 = getelementptr inbounds double, ptr %115, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !9
  %119 = call double @llvm.fmuladd.f64(double %113, double %118, double %105)
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !13
  %122 = load i64, ptr %8, align 8, !tbaa !11
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  store double %119, ptr %123, align 8, !tbaa !9
  %124 = load i64, ptr %8, align 8, !tbaa !11
  %125 = load i64, ptr %9, align 8, !tbaa !11
  %126 = icmp ne i64 %124, %125
  br i1 %126, label %127, label %151

127:                                              ; preds = %100
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = load i64, ptr %9, align 8, !tbaa !11
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !13
  %135 = load i64, ptr %8, align 8, !tbaa !11
  %136 = getelementptr inbounds ptr, ptr %134, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i64, ptr %9, align 8, !tbaa !11
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !13
  %143 = load i64, ptr %8, align 8, !tbaa !11
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = call double @llvm.fmuladd.f64(double %140, double %145, double %132)
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = load i64, ptr %9, align 8, !tbaa !11
  %150 = getelementptr inbounds double, ptr %148, i64 %149
  store double %146, ptr %150, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %127, %100
  br label %152

152:                                              ; preds = %151
  %153 = load i64, ptr %9, align 8, !tbaa !11
  %154 = add nsw i64 %153, 1
  store i64 %154, ptr %9, align 8, !tbaa !11
  br label %95, !llvm.loop !16

155:                                              ; preds = %95
  br label %156

156:                                              ; preds = %155
  %157 = load i64, ptr %8, align 8, !tbaa !11
  %158 = add nsw i64 %157, 1
  store i64 %158, ptr %8, align 8, !tbaa !11
  br label %88, !llvm.loop !17

159:                                              ; preds = %88
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %160

160:                                              ; preds = %226, %159
  %161 = load i64, ptr %8, align 8, !tbaa !11
  %162 = load i64, ptr %7, align 8, !tbaa !11
  %163 = sub nsw i64 %162, 1
  %164 = icmp sle i64 %161, %163
  br i1 %164, label %165, label %229

165:                                              ; preds = %160
  store i64 0, ptr %9, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %222, %165
  %167 = load i64, ptr %9, align 8, !tbaa !11
  %168 = load i64, ptr %8, align 8, !tbaa !11
  %169 = icmp sle i64 %167, %168
  br i1 %169, label %170, label %225

170:                                              ; preds = %166
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !13
  %173 = load i64, ptr %8, align 8, !tbaa !11
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %177 = load ptr, ptr %176, align 8, !tbaa !13
  %178 = load i64, ptr %8, align 8, !tbaa !11
  %179 = getelementptr inbounds ptr, ptr %177, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = load i64, ptr %9, align 8, !tbaa !11
  %182 = getelementptr inbounds double, ptr %180, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !9
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = load i64, ptr %9, align 8, !tbaa !11
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = call double @llvm.fmuladd.f64(double %183, double %188, double %175)
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !13
  %192 = load i64, ptr %8, align 8, !tbaa !11
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  store double %189, ptr %193, align 8, !tbaa !9
  %194 = load i64, ptr %8, align 8, !tbaa !11
  %195 = load i64, ptr %9, align 8, !tbaa !11
  %196 = icmp ne i64 %194, %195
  br i1 %196, label %197, label %221

197:                                              ; preds = %170
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = load i64, ptr %9, align 8, !tbaa !11
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = load i64, ptr %8, align 8, !tbaa !11
  %206 = getelementptr inbounds ptr, ptr %204, i64 %205
  %207 = load ptr, ptr %206, align 8, !tbaa !5
  %208 = load i64, ptr %9, align 8, !tbaa !11
  %209 = getelementptr inbounds double, ptr %207, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !9
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = load i64, ptr %8, align 8, !tbaa !11
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !9
  %216 = call double @llvm.fmuladd.f64(double %210, double %215, double %202)
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !13
  %219 = load i64, ptr %9, align 8, !tbaa !11
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  store double %216, ptr %220, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %197, %170
  br label %222

222:                                              ; preds = %221
  %223 = load i64, ptr %9, align 8, !tbaa !11
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %9, align 8, !tbaa !11
  br label %166, !llvm.loop !18

225:                                              ; preds = %166
  br label %226

226:                                              ; preds = %225
  %227 = load i64, ptr %8, align 8, !tbaa !11
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %8, align 8, !tbaa !11
  br label %160, !llvm.loop !19

229:                                              ; preds = %160
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, i1 noundef zeroext true, ptr noundef %13, ptr noundef %17, ptr noundef %230)
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %5, i1 noundef zeroext false, ptr noundef %14, ptr noundef %18, ptr noundef %231)
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %232

232:                                              ; preds = %274, %229
  %233 = load i64, ptr %8, align 8, !tbaa !11
  %234 = load i64, ptr %7, align 8, !tbaa !11
  %235 = sub nsw i64 %234, 1
  %236 = icmp sle i64 %233, %235
  br i1 %236, label %237, label %277

237:                                              ; preds = %232
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  %240 = load i64, ptr %8, 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 %15, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !13
  %245 = load i64, ptr %8, 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 %19, align 8, !tbaa !9
  %252 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %250, double noundef %251)
  br i1 %252, label %269, label %253

253:                                              ; preds = %237
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !13
  %256 = load i64, ptr %8, align 8, !tbaa !11
  %257 = getelementptr inbounds double, ptr %255, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !9
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !13
  %261 = load i64, ptr %8, align 8, !tbaa !11
  %262 = getelementptr inbounds double, ptr %260, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  %264 = fsub double %258, %263
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %264, ptr noundef %265)
  %267 = load double, ptr %19, align 8, !tbaa !9
  %268 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %266, double noundef %267)
  br i1 %268, label %269, label %273

269:                                              ; preds = %253, %237
  store i8 1, ptr %20, align 1, !tbaa !20
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %270)
  %271 = load i8, ptr %20, align 1, !tbaa !20, !range !22, !noundef !23
  %272 = trunc i8 %271 to i1
  store i1 %272, ptr %2, align 1
  store i32 1, ptr %21, align 4
  br label %285

273:                                              ; preds = %253
  br label %274

274:                                              ; preds = %273
  %275 = load i64, ptr %8, align 8, !tbaa !11
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %8, align 8, !tbaa !11
  br label %232, !llvm.loop !24

277:                                              ; preds = %232
  br label %278

278:                                              ; preds = %277
  %279 = load i64, ptr %7, align 8, !tbaa !11
  %280 = add nsw i64 %279, 1
  store i64 %280, ptr %7, align 8, !tbaa !11
  br label %31, !llvm.loop !25

281:                                              ; preds = %31
  store i8 0, ptr %20, align 1, !tbaa !20
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %282)
  %283 = load i8, ptr %20, align 1, !tbaa !20, !range !22, !noundef !23
  %284 = trunc i8 %283 to i1
  store i1 %284, ptr %2, align 1
  store i32 1, ptr %21, align 4
  br label %285

285:                                              ; preds = %281, %269
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 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
  %286 = load i1, ptr %2, align 1
  ret i1 %286
}

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

declare void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z20linearfunctionsstestPN11alglib_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
  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 @_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 @_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)
  %11 = getelementptr inbounds i8, ptr %7, i64 56
  %12 = getelementptr inbounds i8, ptr %8, i64 56
  %13 = getelementptr inbounds i8, ptr %5, i64 56
  %14 = getelementptr inbounds i8, ptr %6, i64 56
  %15 = getelementptr inbounds i8, ptr %4, i64 72
  %16 = getelementptr inbounds i8, ptr %9, i64 56
  %17 = getelementptr inbounds i8, ptr %10, i64 56
  br label %18

18:                                               ; preds = %1, %117
  %19 = phi i1 [ true, %1 ], [ %119, %117 ]
  %.092113 = phi i64 [ 1, %1 ], [ %118, %117 ]
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.092113, i64 noundef %.092113, 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 %.092113, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.092113, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.092113, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.092113, ptr noundef %0)
  br label %20

20:                                               ; preds = %18, %20
  %.093107 = phi i64 [ 0, %18 ], [ %33, %20 ]
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 %.093107
  store double 0.000000e+00, ptr %22, align 8, !tbaa !8
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 %.093107
  store double 0.000000e+00, ptr %24, align 8, !tbaa !8
  %25 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %26 = call double @llvm.fmuladd.f64(double %25, double 2.000000e+01, double -1.000000e+01)
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %.093107
  store double %26, ptr %28, align 8, !tbaa !8
  %29 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %30 = call double @llvm.fmuladd.f64(double %29, double 2.000000e+01, double -1.000000e+01)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %31, i64 %.093107
  store double %30, ptr %32, align 8, !tbaa !8
  %33 = add nuw nsw i64 %.093107, 1
  %exitcond.not = icmp eq i64 %33, %.092113
  br i1 %exitcond.not, label %.preheader103, label %20, !llvm.loop !10

.preheader103:                                    ; preds = %20, %62
  %.1109 = phi i64 [ %63, %62 ], [ 0, %20 ]
  br label %34

34:                                               ; preds = %.preheader103, %60
  %.094108 = phi i64 [ %.1109, %.preheader103 ], [ %61, %60 ]
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 %.1109
  %37 = load double, ptr %36, align 8, !tbaa !8
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.1109
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = getelementptr inbounds double, ptr %40, i64 %.094108
  %42 = load double, ptr %41, align 8, !tbaa !8
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %.094108
  %45 = load double, ptr %44, align 8, !tbaa !8
  %46 = call double @llvm.fmuladd.f64(double %42, double %45, double %37)
  store double %46, ptr %36, align 8, !tbaa !8
  %.not102 = icmp eq i64 %.1109, %.094108
  br i1 %.not102, label %60, label %47

47:                                               ; preds = %34
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %.094108
  %50 = load double, ptr %49, align 8, !tbaa !8
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.1109
  %53 = load ptr, ptr %52, align 8, !tbaa !12
  %54 = getelementptr inbounds double, ptr %53, i64 %.094108
  %55 = load double, ptr %54, align 8, !tbaa !8
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 %.1109
  %58 = load double, ptr %57, align 8, !tbaa !8
  %59 = call double @llvm.fmuladd.f64(double %55, double %58, double %50)
  store double %59, ptr %49, align 8, !tbaa !8
  br label %60

60:                                               ; preds = %34, %47
  %61 = add nuw nsw i64 %.094108, 1
  %.not101.not = icmp ult i64 %61, %.092113
  br i1 %.not101.not, label %34, label %62, !llvm.loop !14

62:                                               ; preds = %60
  %63 = add nuw nsw i64 %.1109, 1
  %exitcond117.not = icmp eq i64 %63, %.092113
  br i1 %exitcond117.not, label %.preheader, label %.preheader103, !llvm.loop !15

.preheader:                                       ; preds = %62, %92
  %indvars.iv = phi i64 [ %indvars.iv.next, %92 ], [ 1, %62 ]
  %.2111 = phi i64 [ %93, %92 ], [ 0, %62 ]
  br label %64

64:                                               ; preds = %.preheader, %90
  %.195110 = phi i64 [ 0, %.preheader ], [ %91, %90 ]
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i64 %.2111
  %67 = load double, ptr %66, align 8, !tbaa !8
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = getelementptr inbounds ptr, ptr %68, i64 %.2111
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  %71 = getelementptr inbounds double, ptr %70, i64 %.195110
  %72 = load double, ptr %71, align 8, !tbaa !8
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 %.195110
  %75 = load double, ptr %74, align 8, !tbaa !8
  %76 = call double @llvm.fmuladd.f64(double %72, double %75, double %67)
  store double %76, ptr %66, align 8, !tbaa !8
  %.not100 = icmp eq i64 %.2111, %.195110
  br i1 %.not100, label %90, label %77

77:                                               ; preds = %64
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 %.195110
  %80 = load double, ptr %79, align 8, !tbaa !8
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.2111
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  %84 = getelementptr inbounds double, ptr %83, i64 %.195110
  %85 = load double, ptr %84, align 8, !tbaa !8
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 %.2111
  %88 = load double, ptr %87, align 8, !tbaa !8
  %89 = call double @llvm.fmuladd.f64(double %85, double %88, double %80)
  store double %89, ptr %79, align 8, !tbaa !8
  br label %90

90:                                               ; preds = %64, %77
  %91 = add nuw nsw i64 %.195110, 1
  %exitcond118.not = icmp eq i64 %91, %indvars.iv
  br i1 %exitcond118.not, label %92, label %64, !llvm.loop !16

92:                                               ; preds = %90
  %93 = add nuw nsw i64 %.2111, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond119.not = icmp eq i64 %93, %.092113
  br i1 %exitcond119.not, label %94, label %.preheader, !llvm.loop !17

94:                                               ; preds = %92
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, i1 noundef zeroext true, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesmvEPNS_12sparsematrixEbPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %3, i1 noundef zeroext false, ptr noundef nonnull %6, ptr noundef nonnull %10, ptr noundef %0)
  br label %97

95:                                               ; preds = %107
  %96 = add nuw nsw i64 %.3112, 1
  %exitcond120.not = icmp eq i64 %96, %.092113
  br i1 %exitcond120.not, label %117, label %97, !llvm.loop !18

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

107:                                              ; preds = %97
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 %.3112
  %110 = load double, ptr %109, align 8, !tbaa !8
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 %.3112
  %113 = load double, ptr %112, align 8, !tbaa !8
  %114 = fsub double %110, %113
  %115 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %114, ptr noundef %0)
  %116 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %115, double noundef 5.000000e-13)
  br i1 %116, label %.loopexit, label %95

117:                                              ; preds = %95
  %118 = add nuw nsw i64 %.092113, 1
  %119 = icmp ult i64 %.092113, 9
  %exitcond121.not = icmp eq i64 %118, 10
  br i1 %exitcond121.not, label %.loopexit, label %18, !llvm.loop !19

.loopexit:                                        ; preds = %117, %97, %107
  %120 = phi i1 [ %19, %107 ], [ %19, %97 ], [ %119, %117 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  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 %120
}

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) 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

; 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 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}


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