; 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_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

declare 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 @_Z22linearfunctionssmmtestPN11alglib_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 i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca double, align 8
  %23 = alloca i8, align 1
  %24 = 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 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, 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 %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %16, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %18, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  store double 5.000000e-13, ptr %22, align 8, !tbaa !9
  store i64 32, ptr %6, align 8, !tbaa !11
  store i64 32, ptr %7, align 8, !tbaa !11
  store double -1.000000e+01, ptr %13, align 8, !tbaa !9
  store double 1.000000e+01, ptr %14, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %397, %1
  %35 = load i64, ptr %8, align 8, !tbaa !11
  %36 = load i64, ptr %6, align 8, !tbaa !11
  %37 = sub nsw i64 %36, 1
  %38 = icmp sle i64 %35, %37
  br i1 %38, label %39, label %400

39:                                               ; preds = %34
  store i64 1, ptr %9, align 8, !tbaa !11
  br label %40

40:                                               ; preds = %393, %39
  %41 = load i64, ptr %9, align 8, !tbaa !11
  %42 = load i64, ptr %7, align 8, !tbaa !11
  %43 = sub nsw i64 %42, 1
  %44 = icmp sle i64 %41, %43
  br i1 %44, label %45, label %396

45:                                               ; preds = %40
  %46 = load i64, ptr %8, align 8, !tbaa !11
  %47 = load i64, ptr %8, align 8, !tbaa !11
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %46, i64 noundef %47, i64 noundef -1, i64 noundef -1, i64 noundef -1, i64 noundef -1, ptr noundef %15, ptr noundef %5, ptr noundef %48)
  %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 @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %49, i64 noundef %50, ptr noundef %51)
  %52 = load i64, ptr %8, align 8, !tbaa !11
  %53 = load i64, ptr %9, align 8, !tbaa !11
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %19, i64 noundef %52, i64 noundef %53, ptr noundef %54)
  %55 = load i64, ptr %8, align 8, !tbaa !11
  %56 = load i64, ptr %9, align 8, !tbaa !11
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %16, i64 noundef %55, i64 noundef %56, ptr noundef %57)
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = load i64, ptr %9, align 8, !tbaa !11
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %58, i64 noundef %59, ptr noundef %60)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %119, %45
  %62 = load i64, ptr %10, align 8, !tbaa !11
  %63 = load i64, ptr %8, align 8, !tbaa !11
  %64 = sub nsw i64 %63, 1
  %65 = icmp sle i64 %62, %64
  br i1 %65, label %66, label %122

66:                                               ; preds = %61
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %115, %66
  %68 = load i64, ptr %11, align 8, !tbaa !11
  %69 = load i64, ptr %9, align 8, !tbaa !11
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %118

72:                                               ; preds = %67
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i64, ptr %10, align 8, !tbaa !11
  %76 = getelementptr inbounds ptr, ptr %74, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i64, ptr %11, align 8, !tbaa !11
  %79 = getelementptr inbounds double, ptr %77, i64 %78
  store double 0.000000e+00, ptr %79, align 8, !tbaa !9
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load i64, ptr %10, align 8, !tbaa !11
  %83 = getelementptr inbounds ptr, ptr %81, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i64, ptr %11, align 8, !tbaa !11
  %86 = getelementptr inbounds double, ptr %84, i64 %85
  store double 0.000000e+00, ptr %86, align 8, !tbaa !9
  %87 = load double, ptr %14, align 8, !tbaa !9
  %88 = load double, ptr %13, align 8, !tbaa !9
  %89 = fsub double %87, %88
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %90)
  %92 = load double, ptr %13, align 8, !tbaa !9
  %93 = call double @llvm.fmuladd.f64(double %89, double %91, double %92)
  %94 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = load i64, ptr %10, align 8, !tbaa !11
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %11, align 8, !tbaa !11
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  store double %93, ptr %100, align 8, !tbaa !9
  %101 = load double, ptr %14, align 8, !tbaa !9
  %102 = load double, ptr %13, align 8, !tbaa !9
  %103 = fsub double %101, %102
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %104)
  %106 = load double, ptr %13, align 8, !tbaa !9
  %107 = call double @llvm.fmuladd.f64(double %103, double %105, double %106)
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = load i64, ptr %10, align 8, !tbaa !11
  %111 = getelementptr inbounds ptr, ptr %109, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %11, align 8, !tbaa !11
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  store double %107, ptr %114, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %72
  %116 = load i64, ptr %11, align 8, !tbaa !11
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %11, align 8, !tbaa !11
  br label %67, !llvm.loop !14

118:                                              ; preds = %67
  br label %119

119:                                              ; preds = %118
  %120 = load i64, ptr %10, align 8, !tbaa !11
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %10, align 8, !tbaa !11
  br label %61, !llvm.loop !16

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

123:                                              ; preds = %219, %122
  %124 = load i64, ptr %12, align 8, !tbaa !11
  %125 = load i64, ptr %9, align 8, !tbaa !11
  %126 = sub nsw i64 %125, 1
  %127 = icmp sle i64 %124, %126
  br i1 %127, label %128, label %222

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

129:                                              ; preds = %215, %128
  %130 = load i64, ptr %10, align 8, !tbaa !11
  %131 = load i64, ptr %8, align 8, !tbaa !11
  %132 = sub nsw i64 %131, 1
  %133 = icmp sle i64 %130, %132
  br i1 %133, label %134, label %218

134:                                              ; preds = %129
  %135 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %135, ptr %11, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %211, %134
  %137 = load i64, ptr %11, align 8, !tbaa !11
  %138 = load i64, ptr %8, align 8, !tbaa !11
  %139 = sub nsw i64 %138, 1
  %140 = icmp sle i64 %137, %139
  br i1 %140, label %141, label %214

141:                                              ; preds = %136
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = load i64, ptr %10, align 8, !tbaa !11
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %12, align 8, !tbaa !11
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !13
  %152 = load i64, ptr %10, align 8, !tbaa !11
  %153 = getelementptr inbounds ptr, ptr %151, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load i64, ptr %11, align 8, !tbaa !11
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = load i64, ptr %11, align 8, !tbaa !11
  %161 = getelementptr inbounds ptr, ptr %159, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i64, ptr %12, align 8, !tbaa !11
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = call double @llvm.fmuladd.f64(double %157, double %165, double %149)
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = load i64, ptr %10, align 8, !tbaa !11
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i64, ptr %12, align 8, !tbaa !11
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store double %166, ptr %173, align 8, !tbaa !9
  %174 = load i64, ptr %10, align 8, !tbaa !11
  %175 = load i64, ptr %11, align 8, !tbaa !11
  %176 = icmp ne i64 %174, %175
  br i1 %176, label %177, label %210

177:                                              ; preds = %141
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %179 = load ptr, ptr %178, align 8, !tbaa !13
  %180 = load i64, ptr %11, align 8, !tbaa !11
  %181 = getelementptr inbounds ptr, ptr %179, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load i64, ptr %12, align 8, !tbaa !11
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !9
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %187 = load ptr, ptr %186, align 8, !tbaa !13
  %188 = load i64, ptr %10, align 8, !tbaa !11
  %189 = getelementptr inbounds ptr, ptr %187, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = load i64, ptr %11, align 8, !tbaa !11
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %16, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !13
  %196 = load i64, ptr %10, align 8, !tbaa !11
  %197 = getelementptr inbounds ptr, ptr %195, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = load i64, ptr %12, align 8, !tbaa !11
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !9
  %202 = call double @llvm.fmuladd.f64(double %193, double %201, double %185)
  %203 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = load i64, ptr %11, 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 %12, align 8, !tbaa !11
  %209 = getelementptr inbounds double, ptr %207, i64 %208
  store double %202, ptr %209, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %177, %141
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %11, align 8, !tbaa !11
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %11, align 8, !tbaa !11
  br label %136, !llvm.loop !17

214:                                              ; preds = %136
  br label %215

215:                                              ; preds = %214
  %216 = load i64, ptr %10, align 8, !tbaa !11
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %10, align 8, !tbaa !11
  br label %129, !llvm.loop !18

218:                                              ; preds = %129
  br label %219

219:                                              ; preds = %218
  %220 = load i64, ptr %12, align 8, !tbaa !11
  %221 = add nsw i64 %220, 1
  store i64 %221, ptr %12, align 8, !tbaa !11
  br label %123, !llvm.loop !19

222:                                              ; preds = %123
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %223

223:                                              ; preds = %317, %222
  %224 = load i64, ptr %12, align 8, !tbaa !11
  %225 = load i64, ptr %9, align 8, !tbaa !11
  %226 = sub nsw i64 %225, 1
  %227 = icmp sle i64 %224, %226
  br i1 %227, label %228, label %320

228:                                              ; preds = %223
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %229

229:                                              ; preds = %313, %228
  %230 = load i64, ptr %10, align 8, !tbaa !11
  %231 = load i64, ptr %8, align 8, !tbaa !11
  %232 = sub nsw i64 %231, 1
  %233 = icmp sle i64 %230, %232
  br i1 %233, label %234, label %316

234:                                              ; preds = %229
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %235

235:                                              ; preds = %309, %234
  %236 = load i64, ptr %11, align 8, !tbaa !11
  %237 = load i64, ptr %10, align 8, !tbaa !11
  %238 = icmp sle i64 %236, %237
  br i1 %238, label %239, label %312

239:                                              ; preds = %235
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %241 = load ptr, ptr %240, align 8, !tbaa !13
  %242 = load i64, ptr %10, align 8, !tbaa !11
  %243 = getelementptr inbounds ptr, ptr %241, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = load i64, ptr %12, align 8, !tbaa !11
  %246 = getelementptr inbounds double, ptr %244, i64 %245
  %247 = load double, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %249 = load ptr, ptr %248, align 8, !tbaa !13
  %250 = load i64, ptr %10, align 8, !tbaa !11
  %251 = getelementptr inbounds ptr, ptr %249, i64 %250
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  %253 = load i64, ptr %11, align 8, !tbaa !11
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !9
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %257 = load ptr, ptr %256, align 8, !tbaa !13
  %258 = load i64, ptr %11, align 8, !tbaa !11
  %259 = getelementptr inbounds ptr, ptr %257, i64 %258
  %260 = load ptr, ptr %259, align 8, !tbaa !5
  %261 = load i64, ptr %12, align 8, !tbaa !11
  %262 = getelementptr inbounds double, ptr %260, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  %264 = call double @llvm.fmuladd.f64(double %255, double %263, double %247)
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %266 = load ptr, ptr %265, align 8, !tbaa !13
  %267 = load i64, ptr %10, align 8, !tbaa !11
  %268 = getelementptr inbounds ptr, ptr %266, i64 %267
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = load i64, ptr %12, align 8, !tbaa !11
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  store double %264, ptr %271, align 8, !tbaa !9
  %272 = load i64, ptr %10, align 8, !tbaa !11
  %273 = load i64, ptr %11, align 8, !tbaa !11
  %274 = icmp ne i64 %272, %273
  br i1 %274, label %275, label %308

275:                                              ; preds = %239
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %277 = load ptr, ptr %276, align 8, !tbaa !13
  %278 = load i64, ptr %11, align 8, !tbaa !11
  %279 = getelementptr inbounds ptr, ptr %277, i64 %278
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = load i64, ptr %12, align 8, !tbaa !11
  %282 = getelementptr inbounds double, ptr %280, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !9
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !13
  %286 = load i64, ptr %10, align 8, !tbaa !11
  %287 = getelementptr inbounds ptr, ptr %285, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = load i64, ptr %11, align 8, !tbaa !11
  %290 = getelementptr inbounds double, ptr %288, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !9
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %293 = load ptr, ptr %292, align 8, !tbaa !13
  %294 = load i64, ptr %10, align 8, !tbaa !11
  %295 = getelementptr inbounds ptr, ptr %293, i64 %294
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = load i64, ptr %12, align 8, !tbaa !11
  %298 = getelementptr inbounds double, ptr %296, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !9
  %300 = call double @llvm.fmuladd.f64(double %291, double %299, double %283)
  %301 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %302 = load ptr, ptr %301, align 8, !tbaa !13
  %303 = load i64, ptr %11, align 8, !tbaa !11
  %304 = getelementptr inbounds ptr, ptr %302, i64 %303
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = load i64, ptr %12, align 8, !tbaa !11
  %307 = getelementptr inbounds double, ptr %305, i64 %306
  store double %300, ptr %307, align 8, !tbaa !9
  br label %308

308:                                              ; preds = %275, %239
  br label %309

309:                                              ; preds = %308
  %310 = load i64, ptr %11, align 8, !tbaa !11
  %311 = add nsw i64 %310, 1
  store i64 %311, ptr %11, align 8, !tbaa !11
  br label %235, !llvm.loop !20

312:                                              ; preds = %235
  br label %313

313:                                              ; preds = %312
  %314 = load i64, ptr %10, align 8, !tbaa !11
  %315 = add nsw i64 %314, 1
  store i64 %315, ptr %10, align 8, !tbaa !11
  br label %229, !llvm.loop !21

316:                                              ; preds = %229
  br label %317

317:                                              ; preds = %316
  %318 = load i64, ptr %12, align 8, !tbaa !11
  %319 = add nsw i64 %318, 1
  store i64 %319, ptr %12, align 8, !tbaa !11
  br label %223, !llvm.loop !22

320:                                              ; preds = %223
  %321 = load i64, ptr %9, align 8, !tbaa !11
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %5, i1 noundef zeroext true, ptr noundef %16, i64 noundef %321, ptr noundef %20, ptr noundef %322)
  %323 = load i64, ptr %9, align 8, !tbaa !11
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef %5, i1 noundef zeroext false, ptr noundef %17, i64 noundef %323, ptr noundef %21, ptr noundef %324)
  store i64 0, ptr %12, align 8, !tbaa !11
  br label %325

325:                                              ; preds = %389, %320
  %326 = load i64, ptr %12, align 8, !tbaa !11
  %327 = load i64, ptr %9, align 8, !tbaa !11
  %328 = sub nsw i64 %327, 1
  %329 = icmp sle i64 %326, %328
  br i1 %329, label %330, label %392

330:                                              ; preds = %325
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %331

331:                                              ; preds = %385, %330
  %332 = load i64, ptr %10, align 8, !tbaa !11
  %333 = load i64, ptr %8, align 8, !tbaa !11
  %334 = sub nsw i64 %333, 1
  %335 = icmp sle i64 %332, %334
  br i1 %335, label %336, label %388

336:                                              ; preds = %331
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %20, i32 0, i32 6
  %338 = load ptr, ptr %337, align 8, !tbaa !13
  %339 = load i64, ptr %10, align 8, !tbaa !11
  %340 = getelementptr inbounds ptr, ptr %338, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load i64, ptr %12, align 8, !tbaa !11
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !9
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %18, i32 0, i32 6
  %346 = load ptr, ptr %345, align 8, !tbaa !13
  %347 = load i64, ptr %10, align 8, !tbaa !11
  %348 = getelementptr inbounds ptr, ptr %346, i64 %347
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = load i64, ptr %12, align 8, !tbaa !11
  %351 = getelementptr inbounds double, ptr %349, i64 %350
  %352 = load double, ptr %351, align 8, !tbaa !9
  %353 = fsub double %344, %352
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %353, ptr noundef %354)
  %356 = load double, ptr %22, align 8, !tbaa !9
  %357 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %355, double noundef %356)
  br i1 %357, label %380, label %358

358:                                              ; preds = %336
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %360 = load ptr, ptr %359, align 8, !tbaa !13
  %361 = load i64, ptr %10, align 8, !tbaa !11
  %362 = getelementptr inbounds ptr, ptr %360, i64 %361
  %363 = load ptr, ptr %362, align 8, !tbaa !5
  %364 = load i64, ptr %12, align 8, !tbaa !11
  %365 = getelementptr inbounds double, ptr %363, i64 %364
  %366 = load double, ptr %365, align 8, !tbaa !9
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %19, i32 0, i32 6
  %368 = load ptr, ptr %367, align 8, !tbaa !13
  %369 = load i64, ptr %10, align 8, !tbaa !11
  %370 = getelementptr inbounds ptr, ptr %368, i64 %369
  %371 = load ptr, ptr %370, align 8, !tbaa !5
  %372 = load i64, ptr %12, align 8, !tbaa !11
  %373 = getelementptr inbounds double, ptr %371, i64 %372
  %374 = load double, ptr %373, align 8, !tbaa !9
  %375 = fsub double %366, %374
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %375, ptr noundef %376)
  %378 = load double, ptr %22, align 8, !tbaa !9
  %379 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %377, double noundef %378)
  br i1 %379, label %380, label %384

380:                                              ; preds = %358, %336
  store i8 1, ptr %23, align 1, !tbaa !23
  %381 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %381)
  %382 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %383 = trunc i8 %382 to i1
  store i1 %383, ptr %2, align 1
  store i32 1, ptr %24, align 4
  br label %404

384:                                              ; preds = %358
  br label %385

385:                                              ; preds = %384
  %386 = load i64, ptr %10, align 8, !tbaa !11
  %387 = add nsw i64 %386, 1
  store i64 %387, ptr %10, align 8, !tbaa !11
  br label %331, !llvm.loop !27

388:                                              ; preds = %331
  br label %389

389:                                              ; preds = %388
  %390 = load i64, ptr %12, align 8, !tbaa !11
  %391 = add nsw i64 %390, 1
  store i64 %391, ptr %12, align 8, !tbaa !11
  br label %325, !llvm.loop !28

392:                                              ; preds = %325
  br label %393

393:                                              ; preds = %392
  %394 = load i64, ptr %9, align 8, !tbaa !11
  %395 = add nsw i64 %394, 1
  store i64 %395, ptr %9, align 8, !tbaa !11
  br label %40, !llvm.loop !29

396:                                              ; preds = %40
  br label %397

397:                                              ; preds = %396
  %398 = load i64, ptr %8, align 8, !tbaa !11
  %399 = add nsw i64 %398, 1
  store i64 %399, ptr %8, align 8, !tbaa !11
  br label %34, !llvm.loop !30

400:                                              ; preds = %34
  store i8 0, ptr %23, align 1, !tbaa !23
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %401)
  %402 = load i8, ptr %23, align 1, !tbaa !23, !range !25, !noundef !26
  %403 = trunc i8 %402 to i1
  store i1 %403, ptr %2, align 1
  store i32 1, ptr %24, align 4
  br label %404

404:                                              ; preds = %400, %380
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %405 = load i1, ptr %2, align 1
  ret i1 %405
}

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

declare void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef, i64 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 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !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_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

declare 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 @_Z22linearfunctionssmmtestPN11alglib_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_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", 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 80, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 80, 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(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %0, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %7, i64 72
  %12 = getelementptr inbounds i8, ptr %8, i64 72
  %13 = getelementptr inbounds i8, ptr %5, i64 72
  %14 = getelementptr inbounds i8, ptr %6, i64 72
  %15 = getelementptr inbounds i8, ptr %4, i64 72
  %16 = getelementptr inbounds i8, ptr %9, i64 72
  %17 = getelementptr inbounds i8, ptr %10, i64 72
  br label %.preheader161

.preheader161:                                    ; preds = %1, %159
  %18 = phi i1 [ true, %1 ], [ %161, %159 ]
  %.0133174 = phi i64 [ 1, %1 ], [ %160, %159 ]
  br label %19

19:                                               ; preds = %.preheader161, %157
  %.0134173 = phi i64 [ 1, %.preheader161 ], [ %158, %157 ]
  call void @_ZL27testsparseunit_createrandomllllllPN11alglib_impl9ae_matrixEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0133174, i64 noundef %.0133174, 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_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0133174, i64 noundef %.0134173, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0133174, i64 noundef %.0134173, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0133174, i64 noundef %.0134173, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0133174, i64 noundef %.0134173, ptr noundef %0)
  br label %.preheader158

.preheader158:                                    ; preds = %19, %42
  %.0139164 = phi i64 [ 0, %19 ], [ %43, %42 ]
  br label %20

20:                                               ; preds = %.preheader158, %20
  %.0136163 = phi i64 [ 0, %.preheader158 ], [ %41, %20 ]
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  %22 = getelementptr inbounds ptr, ptr %21, i64 %.0139164
  %23 = load ptr, ptr %22, align 8, !tbaa !8
  %24 = getelementptr inbounds double, ptr %23, i64 %.0136163
  store double 0.000000e+00, ptr %24, align 8, !tbaa !10
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.0139164
  %27 = load ptr, ptr %26, align 8, !tbaa !8
  %28 = getelementptr inbounds double, ptr %27, i64 %.0136163
  store double 0.000000e+00, ptr %28, align 8, !tbaa !10
  %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 %13, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0139164
  %33 = load ptr, ptr %32, align 8, !tbaa !8
  %34 = getelementptr inbounds double, ptr %33, i64 %.0136163
  store double %30, ptr %34, align 8, !tbaa !10
  %35 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %0)
  %36 = call double @llvm.fmuladd.f64(double %35, double 2.000000e+01, double -1.000000e+01)
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.0139164
  %39 = load ptr, ptr %38, align 8, !tbaa !8
  %40 = getelementptr inbounds double, ptr %39, i64 %.0136163
  store double %36, ptr %40, align 8, !tbaa !10
  %41 = add nuw nsw i64 %.0136163, 1
  %exitcond.not = icmp eq i64 %41, %.0134173
  br i1 %exitcond.not, label %42, label %20, !llvm.loop !12

42:                                               ; preds = %20
  %43 = add nuw nsw i64 %.0139164, 1
  %exitcond178.not = icmp eq i64 %43, %.0133174
  br i1 %exitcond178.not, label %.preheader157, label %.preheader158, !llvm.loop !14

.preheader157:                                    ; preds = %42, %82
  %.0135167 = phi i64 [ %83, %82 ], [ 0, %42 ]
  br label %.preheader154

.preheader154:                                    ; preds = %.preheader157, %80
  %.1140166 = phi i64 [ 0, %.preheader157 ], [ %81, %80 ]
  br label %44

44:                                               ; preds = %.preheader154, %78
  %.1137165 = phi i64 [ %.1140166, %.preheader154 ], [ %79, %78 ]
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.1140166
  %47 = load ptr, ptr %46, align 8, !tbaa !8
  %48 = getelementptr inbounds double, ptr %47, i64 %.0135167
  %49 = load double, ptr %48, align 8, !tbaa !10
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.1140166
  %52 = load ptr, ptr %51, align 8, !tbaa !8
  %53 = getelementptr inbounds double, ptr %52, i64 %.1137165
  %54 = load double, ptr %53, align 8, !tbaa !10
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.1137165
  %57 = load ptr, ptr %56, align 8, !tbaa !8
  %58 = getelementptr inbounds double, ptr %57, i64 %.0135167
  %59 = load double, ptr %58, align 8, !tbaa !10
  %60 = call double @llvm.fmuladd.f64(double %54, double %59, double %49)
  store double %60, ptr %48, align 8, !tbaa !10
  %.not152 = icmp eq i64 %.1140166, %.1137165
  br i1 %.not152, label %78, label %61

61:                                               ; preds = %44
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.1137165
  %64 = load ptr, ptr %63, align 8, !tbaa !8
  %65 = getelementptr inbounds double, ptr %64, i64 %.0135167
  %66 = load double, ptr %65, align 8, !tbaa !10
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = getelementptr inbounds ptr, ptr %67, i64 %.1140166
  %69 = load ptr, ptr %68, align 8, !tbaa !8
  %70 = getelementptr inbounds double, ptr %69, i64 %.1137165
  %71 = load double, ptr %70, align 8, !tbaa !10
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i64 %.1140166
  %74 = load ptr, ptr %73, align 8, !tbaa !8
  %75 = getelementptr inbounds double, ptr %74, i64 %.0135167
  %76 = load double, ptr %75, align 8, !tbaa !10
  %77 = call double @llvm.fmuladd.f64(double %71, double %76, double %66)
  store double %77, ptr %65, align 8, !tbaa !10
  br label %78

78:                                               ; preds = %44, %61
  %79 = add nuw nsw i64 %.1137165, 1
  %.not151.not = icmp ult i64 %79, %.0133174
  br i1 %.not151.not, label %44, label %80, !llvm.loop !15

80:                                               ; preds = %78
  %81 = add nuw nsw i64 %.1140166, 1
  %exitcond179.not = icmp eq i64 %81, %.0133174
  br i1 %exitcond179.not, label %82, label %.preheader154, !llvm.loop !16

82:                                               ; preds = %80
  %83 = add nuw nsw i64 %.0135167, 1
  %exitcond180.not = icmp eq i64 %83, %.0134173
  br i1 %exitcond180.not, label %.preheader156, label %.preheader157, !llvm.loop !17

.preheader156:                                    ; preds = %82, %122
  %.1170 = phi i64 [ %123, %122 ], [ 0, %82 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader156, %120
  %indvars.iv = phi i64 [ 1, %.preheader156 ], [ %indvars.iv.next, %120 ]
  %.2141169 = phi i64 [ 0, %.preheader156 ], [ %121, %120 ]
  br label %84

84:                                               ; preds = %.preheader, %118
  %.2138168 = phi i64 [ 0, %.preheader ], [ %119, %118 ]
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.2141169
  %87 = load ptr, ptr %86, align 8, !tbaa !8
  %88 = getelementptr inbounds double, ptr %87, i64 %.1170
  %89 = load double, ptr %88, align 8, !tbaa !10
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.2141169
  %92 = load ptr, ptr %91, align 8, !tbaa !8
  %93 = getelementptr inbounds double, ptr %92, i64 %.2138168
  %94 = load double, ptr %93, align 8, !tbaa !10
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i64 %.2138168
  %97 = load ptr, ptr %96, align 8, !tbaa !8
  %98 = getelementptr inbounds double, ptr %97, i64 %.1170
  %99 = load double, ptr %98, align 8, !tbaa !10
  %100 = call double @llvm.fmuladd.f64(double %94, double %99, double %89)
  store double %100, ptr %88, align 8, !tbaa !10
  %.not149 = icmp eq i64 %.2141169, %.2138168
  br i1 %.not149, label %118, label %101

101:                                              ; preds = %84
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds ptr, ptr %102, i64 %.2138168
  %104 = load ptr, ptr %103, align 8, !tbaa !8
  %105 = getelementptr inbounds double, ptr %104, i64 %.1170
  %106 = load double, ptr %105, align 8, !tbaa !10
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds ptr, ptr %107, i64 %.2141169
  %109 = load ptr, ptr %108, align 8, !tbaa !8
  %110 = getelementptr inbounds double, ptr %109, i64 %.2138168
  %111 = load double, ptr %110, align 8, !tbaa !10
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %112, i64 %.2141169
  %114 = load ptr, ptr %113, align 8, !tbaa !8
  %115 = getelementptr inbounds double, ptr %114, i64 %.1170
  %116 = load double, ptr %115, align 8, !tbaa !10
  %117 = call double @llvm.fmuladd.f64(double %111, double %116, double %106)
  store double %117, ptr %105, align 8, !tbaa !10
  br label %118

118:                                              ; preds = %84, %101
  %119 = add nuw nsw i64 %.2138168, 1
  %exitcond181.not = icmp eq i64 %119, %indvars.iv
  br i1 %exitcond181.not, label %120, label %84, !llvm.loop !18

120:                                              ; preds = %118
  %121 = add nuw nsw i64 %.2141169, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond182.not = icmp eq i64 %121, %.0133174
  br i1 %exitcond182.not, label %122, label %.preheader, !llvm.loop !19

122:                                              ; preds = %120
  %123 = add nuw nsw i64 %.1170, 1
  %exitcond183.not = icmp eq i64 %123, %.0134173
  br i1 %exitcond183.not, label %124, label %.preheader156, !llvm.loop !20

124:                                              ; preds = %122
  call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef nonnull %3, i1 noundef zeroext true, ptr noundef nonnull %5, i64 noundef %.0134173, ptr noundef nonnull %9, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef nonnull %3, i1 noundef zeroext false, ptr noundef nonnull %6, i64 noundef %.0134173, ptr noundef nonnull %10, ptr noundef %0)
  br label %.preheader155

.preheader155:                                    ; preds = %124, %155
  %.2172 = phi i64 [ 0, %124 ], [ %156, %155 ]
  br label %127

125:                                              ; preds = %141
  %126 = add nuw nsw i64 %.3171, 1
  %exitcond184.not = icmp eq i64 %126, %.0133174
  br i1 %exitcond184.not, label %155, label %127, !llvm.loop !21

127:                                              ; preds = %.preheader155, %125
  %.3171 = phi i64 [ 0, %.preheader155 ], [ %126, %125 ]
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = getelementptr inbounds ptr, ptr %128, i64 %.3171
  %130 = load ptr, ptr %129, align 8, !tbaa !8
  %131 = getelementptr inbounds double, ptr %130, i64 %.2172
  %132 = load double, ptr %131, align 8, !tbaa !10
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds ptr, ptr %133, i64 %.3171
  %135 = load ptr, ptr %134, align 8, !tbaa !8
  %136 = getelementptr inbounds double, ptr %135, i64 %.2172
  %137 = load double, ptr %136, align 8, !tbaa !10
  %138 = fsub double %132, %137
  %139 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %138, ptr noundef %0)
  %140 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %139, double noundef 5.000000e-13)
  br i1 %140, label %.loopexit, label %141

141:                                              ; preds = %127
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = getelementptr inbounds ptr, ptr %142, i64 %.3171
  %144 = load ptr, ptr %143, align 8, !tbaa !8
  %145 = getelementptr inbounds double, ptr %144, i64 %.2172
  %146 = load double, ptr %145, align 8, !tbaa !10
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds ptr, ptr %147, i64 %.3171
  %149 = load ptr, ptr %148, align 8, !tbaa !8
  %150 = getelementptr inbounds double, ptr %149, i64 %.2172
  %151 = load double, ptr %150, align 8, !tbaa !10
  %152 = fsub double %146, %151
  %153 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %152, ptr noundef %0)
  %154 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %153, double noundef 5.000000e-13)
  br i1 %154, label %.loopexit, label %125

155:                                              ; preds = %125
  %156 = add nuw nsw i64 %.2172, 1
  %exitcond185.not = icmp eq i64 %156, %.0134173
  br i1 %exitcond185.not, label %157, label %.preheader155, !llvm.loop !22

157:                                              ; preds = %155
  %158 = add nuw nsw i64 %.0134173, 1
  %exitcond186.not = icmp eq i64 %158, 32
  br i1 %exitcond186.not, label %159, label %19, !llvm.loop !23

159:                                              ; preds = %157
  %160 = add nuw nsw i64 %.0133174, 1
  %161 = icmp ult i64 %.0133174, 31
  %exitcond187.not = icmp eq i64 %160, 32
  br i1 %exitcond187.not, label %.loopexit, label %.preheader161, !llvm.loop !24

.loopexit:                                        ; preds = %159, %127, %141
  %162 = phi i1 [ %18, %141 ], [ %18, %127 ], [ %161, %159 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 80, 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 %162
}

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

declare void @_ZN11alglib_impl9sparsesmmEPNS_12sparsematrixEbPNS_9ae_matrixElS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, ptr noundef, i64 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 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !13}
!24 = distinct !{!24, !13}


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