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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z19basicfuncrandomtestPN11alglib_impl8ae_stateE(ptr noundef %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca %"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 %"struct.alglib_impl::ae_matrix", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %17, 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)
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %5, ptr noundef %18, i1 noundef zeroext true)
  %19 = 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 %19, i1 noundef zeroext true)
  store i64 20, ptr %6, align 8, !tbaa !9
  store i64 20, ptr %7, align 8, !tbaa !9
  store i64 10, ptr %13, align 8, !tbaa !9
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %264, %1
  %21 = load i64, ptr %8, align 8, !tbaa !9
  %22 = load i64, ptr %7, align 8, !tbaa !9
  %23 = sub nsw i64 %22, 1
  %24 = icmp sle i64 %21, %23
  br i1 %24, label %25, label %267

25:                                               ; preds = %20
  store i64 1, ptr %9, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %260, %25
  %27 = load i64, ptr %9, align 8, !tbaa !9
  %28 = load i64, ptr %6, align 8, !tbaa !9
  %29 = sub nsw i64 %28, 1
  %30 = icmp sle i64 %27, %29
  br i1 %30, label %31, label %263

31:                                               ; preds = %26
  %32 = load i64, ptr %8, align 8, !tbaa !9
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %32, i64 noundef %33, i64 noundef 0, ptr noundef %5, ptr noundef %34)
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = load i64, ptr %9, align 8, !tbaa !9
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %35, i64 noundef %36, ptr noundef %37)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %111, %31
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = sub nsw i64 %40, 1
  %42 = icmp sle i64 %39, %41
  br i1 %42, label %43, label %114

43:                                               ; preds = %38
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %44

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

49:                                               ; preds = %44
  %50 = load i64, ptr %13, align 8, !tbaa !9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %50, ptr noundef %51)
  %53 = mul nsw i64 2, %52
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = sub nsw i64 %53, %54
  store i64 %55, ptr %14, align 8, !tbaa !9
  %56 = load i64, ptr %14, align 8, !tbaa !9
  %57 = sitofp i64 %56 to double
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = load i64, ptr %10, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %59, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load i64, ptr %11, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %62, i64 %63
  store double %57, ptr %64, align 8, !tbaa !12
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %65)
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %79

68:                                               ; preds = %49
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = load i64, ptr %11, align 8, !tbaa !9
  %71 = load i64, ptr %14, align 8, !tbaa !9
  %72 = sitofp i64 %71 to double
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %69, i64 noundef %70, double noundef %72, ptr noundef %73)
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = load i64, ptr %11, align 8, !tbaa !9
  %76 = load i64, ptr %14, align 8, !tbaa !9
  %77 = sitofp i64 %76 to double
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %74, i64 noundef %75, double noundef %77, ptr noundef %78)
  br label %88

79:                                               ; preds = %49
  %80 = load i64, ptr %10, align 8, !tbaa !9
  %81 = load i64, ptr %11, align 8, !tbaa !9
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = sitofp i64 %82 to double
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %80, i64 noundef %81, double noundef %83, ptr noundef %84)
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = load i64, ptr %11, align 8, !tbaa !9
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %85, i64 noundef %86, double noundef 0.000000e+00, ptr noundef %87)
  br label %88

88:                                               ; preds = %79, %68
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i64, ptr %11, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = load i64, ptr %11, align 8, !tbaa !9
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %97, i64 noundef %98, ptr noundef %99)
  %101 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %96, double noundef %100)
  br i1 %101, label %102, label %106

102:                                              ; preds = %88
  store i8 1, ptr %15, align 1, !tbaa !14
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %103)
  %104 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %105 = trunc i8 %104 to i1
  store i1 %105, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %271

106:                                              ; preds = %88
  br label %107

107:                                              ; preds = %106
  %108 = load i64, ptr %11, align 8, !tbaa !9
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %11, align 8, !tbaa !9
  br label %44, !llvm.loop !18

110:                                              ; preds = %44
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %10, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %10, align 8, !tbaa !9
  br label %38, !llvm.loop !20

114:                                              ; preds = %38
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %148, %114
  %116 = load i64, ptr %10, align 8, !tbaa !9
  %117 = load i64, ptr %8, align 8, !tbaa !9
  %118 = sub nsw i64 %117, 1
  %119 = icmp sle i64 %116, %118
  br i1 %119, label %120, label %151

120:                                              ; preds = %115
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %144, %120
  %122 = load i64, ptr %11, align 8, !tbaa !9
  %123 = load i64, ptr %9, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 1
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %147

126:                                              ; preds = %121
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %127)
  %129 = icmp eq i64 %128, 0
  br i1 %129, label %130, label %134

130:                                              ; preds = %126
  %131 = load i64, ptr %10, align 8, !tbaa !9
  %132 = load i64, ptr %11, align 8, !tbaa !9
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %131, i64 noundef %132, double noundef 0.000000e+00, ptr noundef %133)
  br label %143

134:                                              ; preds = %126
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = load i64, ptr %11, align 8, !tbaa !9
  %137 = load i64, ptr %10, align 8, !tbaa !9
  %138 = load i64, ptr %11, align 8, !tbaa !9
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %137, i64 noundef %138, ptr noundef %139)
  %141 = fmul double -1.000000e+00, %140
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %135, i64 noundef %136, double noundef %141, ptr noundef %142)
  br label %143

143:                                              ; preds = %134, %130
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %11, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %11, align 8, !tbaa !9
  br label %121, !llvm.loop !21

147:                                              ; preds = %121
  br label %148

148:                                              ; preds = %147
  %149 = load i64, ptr %10, align 8, !tbaa !9
  %150 = add nsw i64 %149, 1
  store i64 %150, ptr %10, align 8, !tbaa !9
  br label %115, !llvm.loop !22

151:                                              ; preds = %115
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %217, %151
  %153 = load i64, ptr %10, align 8, !tbaa !9
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = sub nsw i64 %154, 1
  %156 = icmp sle i64 %153, %155
  br i1 %156, label %157, label %220

157:                                              ; preds = %152
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %158

158:                                              ; preds = %213, %157
  %159 = load i64, ptr %11, align 8, !tbaa !9
  %160 = load i64, ptr %9, align 8, !tbaa !9
  %161 = sub nsw i64 %160, 1
  %162 = icmp sle i64 %159, %161
  br i1 %162, label %163, label %216

163:                                              ; preds = %158
  %164 = load i64, ptr %13, align 8, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %164, ptr noundef %165)
  %167 = mul nsw i64 2, %166
  %168 = load i64, ptr %13, align 8, !tbaa !9
  %169 = sub nsw i64 %167, %168
  store i64 %169, ptr %14, align 8, !tbaa !9
  %170 = load i64, ptr %14, align 8, !tbaa !9
  %171 = sitofp i64 %170 to double
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %173 = load ptr, ptr %172, align 8, !tbaa !11
  %174 = load i64, ptr %10, align 8, !tbaa !9
  %175 = getelementptr inbounds ptr, ptr %173, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = load i64, ptr %11, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %176, i64 %177
  store double %171, ptr %178, align 8, !tbaa !12
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %179)
  %181 = icmp eq i64 %180, 0
  br i1 %181, label %182, label %188

182:                                              ; preds = %163
  %183 = load i64, ptr %10, align 8, !tbaa !9
  %184 = load i64, ptr %11, align 8, !tbaa !9
  %185 = load i64, ptr %14, align 8, !tbaa !9
  %186 = sitofp i64 %185 to double
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %183, i64 noundef %184, double noundef %186, ptr noundef %187)
  br label %194

188:                                              ; preds = %163
  %189 = load i64, ptr %10, align 8, !tbaa !9
  %190 = load i64, ptr %11, align 8, !tbaa !9
  %191 = load i64, ptr %14, align 8, !tbaa !9
  %192 = sitofp i64 %191 to double
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %5, i64 noundef %189, i64 noundef %190, double noundef %192, ptr noundef %193)
  br label %194

194:                                              ; preds = %188, %182
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %196 = load ptr, ptr %195, align 8, !tbaa !11
  %197 = load i64, ptr %10, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %196, i64 %197
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = load i64, ptr %11, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !12
  %203 = load i64, ptr %10, align 8, !tbaa !9
  %204 = load i64, ptr %11, align 8, !tbaa !9
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %203, i64 noundef %204, ptr noundef %205)
  %207 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %202, double noundef %206)
  br i1 %207, label %208, label %212

208:                                              ; preds = %194
  store i8 1, ptr %15, align 1, !tbaa !14
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %209)
  %210 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %211 = trunc i8 %210 to i1
  store i1 %211, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %271

212:                                              ; preds = %194
  br label %213

213:                                              ; preds = %212
  %214 = load i64, ptr %11, align 8, !tbaa !9
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %11, align 8, !tbaa !9
  br label %158, !llvm.loop !23

216:                                              ; preds = %158
  br label %217

217:                                              ; preds = %216
  %218 = load i64, ptr %10, align 8, !tbaa !9
  %219 = add nsw i64 %218, 1
  store i64 %219, ptr %10, align 8, !tbaa !9
  br label %152, !llvm.loop !24

220:                                              ; preds = %152
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %5, ptr noundef %221)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %256, %220
  %223 = load i64, ptr %10, align 8, !tbaa !9
  %224 = load i64, ptr %8, align 8, !tbaa !9
  %225 = sub nsw i64 %224, 1
  %226 = icmp sle i64 %223, %225
  br i1 %226, label %227, label %259

227:                                              ; preds = %222
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %252, %227
  %229 = load i64, ptr %11, align 8, !tbaa !9
  %230 = load i64, ptr %9, align 8, !tbaa !9
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %229, %231
  br i1 %232, label %233, label %255

233:                                              ; preds = %228
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %12, i32 0, i32 6
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = load i64, ptr %10, align 8, !tbaa !9
  %237 = getelementptr inbounds ptr, ptr %235, i64 %236
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = load i64, ptr %11, align 8, !tbaa !9
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !12
  %242 = load i64, ptr %10, align 8, !tbaa !9
  %243 = load i64, ptr %11, align 8, !tbaa !9
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  %245 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %242, i64 noundef %243, ptr noundef %244)
  %246 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %241, double noundef %245)
  br i1 %246, label %247, label %251

247:                                              ; preds = %233
  store i8 1, ptr %15, align 1, !tbaa !14
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %248)
  %249 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %250 = trunc i8 %249 to i1
  store i1 %250, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %271

251:                                              ; preds = %233
  br label %252

252:                                              ; preds = %251
  %253 = load i64, ptr %11, align 8, !tbaa !9
  %254 = add nsw i64 %253, 1
  store i64 %254, ptr %11, align 8, !tbaa !9
  br label %228, !llvm.loop !25

255:                                              ; preds = %228
  br label %256

256:                                              ; preds = %255
  %257 = load i64, ptr %10, align 8, !tbaa !9
  %258 = add nsw i64 %257, 1
  store i64 %258, ptr %10, align 8, !tbaa !9
  br label %222, !llvm.loop !26

259:                                              ; preds = %222
  br label %260

260:                                              ; preds = %259
  %261 = load i64, ptr %9, align 8, !tbaa !9
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %9, align 8, !tbaa !9
  br label %26, !llvm.loop !27

263:                                              ; preds = %26
  br label %264

264:                                              ; preds = %263
  %265 = load i64, ptr %8, align 8, !tbaa !9
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %8, align 8, !tbaa !9
  br label %20, !llvm.loop !28

267:                                              ; preds = %20
  store i8 0, ptr %15, align 1, !tbaa !14
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %268)
  %269 = load i8, ptr %15, align 1, !tbaa !14, !range !16, !noundef !17
  %270 = trunc i8 %269 to i1
  store i1 %270, ptr %2, align 1
  store i32 1, ptr %16, align 4
  br label %271

271:                                              ; preds = %267, %247, %208, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  %272 = load i1, ptr %2, align 1
  ret i1 %272
}

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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


; 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z19basicfuncrandomtestPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #3 {
  %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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(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 @_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)
  %5 = getelementptr inbounds i8, ptr %4, i64 72
  br label %.preheader130

.preheader130:                                    ; preds = %1, %84
  %6 = phi i1 [ true, %1 ], [ %86, %84 ]
  %.0116143 = phi i64 [ 1, %1 ], [ %85, %84 ]
  br label %7

7:                                                ; preds = %.preheader130, %82
  %.0115142 = phi i64 [ 1, %.preheader130 ], [ %83, %82 ]
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0116143, i64 noundef %.0115142, i64 noundef 0, ptr noundef nonnull %3, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0116143, i64 noundef %.0115142, ptr noundef %0)
  br label %.preheader127

.preheader127:                                    ; preds = %7, %31
  %.0111135 = phi i64 [ 0, %7 ], [ %32, %31 ]
  br label %10

8:                                                ; preds = %23
  %9 = add nuw nsw i64 %.0110134, 1
  %exitcond.not = icmp eq i64 %9, %.0115142
  br i1 %exitcond.not, label %31, label %10, !llvm.loop !5

10:                                               ; preds = %.preheader127, %8
  %.0110134 = phi i64 [ 0, %.preheader127 ], [ %9, %8 ]
  %11 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %0)
  %12 = shl nsw i64 %11, 1
  %13 = add nsw i64 %12, -10
  %14 = sitofp i64 %13 to double
  %15 = load ptr, ptr %5, align 8, !tbaa !7
  %16 = getelementptr inbounds ptr, ptr %15, i64 %.0111135
  %17 = load ptr, ptr %16, align 8, !tbaa !10
  %18 = getelementptr inbounds double, ptr %17, i64 %.0110134
  store double %14, ptr %18, align 8, !tbaa !12
  %19 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %0)
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %10
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0111135, i64 noundef %.0110134, double noundef %14, ptr noundef %0)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0111135, i64 noundef %.0110134, double noundef %14, ptr noundef %0)
  br label %23

22:                                               ; preds = %10
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0111135, i64 noundef %.0110134, double noundef %14, ptr noundef %0)
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0111135, i64 noundef %.0110134, double noundef 0.000000e+00, ptr noundef %0)
  br label %23

23:                                               ; preds = %22, %21
  %24 = load ptr, ptr %5, align 8, !tbaa !7
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.0111135
  %26 = load ptr, ptr %25, align 8, !tbaa !10
  %27 = getelementptr inbounds double, ptr %26, i64 %.0110134
  %28 = load double, ptr %27, align 8, !tbaa !12
  %29 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0111135, i64 noundef %.0110134, ptr noundef %0)
  %30 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %28, double noundef %29)
  br i1 %30, label %.loopexit, label %8

31:                                               ; preds = %8
  %32 = add nuw nsw i64 %.0111135, 1
  %exitcond148.not = icmp eq i64 %32, %.0116143
  br i1 %exitcond148.not, label %.preheader126, label %.preheader127, !llvm.loop !14

.preheader126:                                    ; preds = %31, %42
  %.1112137 = phi i64 [ %43, %42 ], [ 0, %31 ]
  br label %33

33:                                               ; preds = %.preheader126, %40
  %.1136 = phi i64 [ 0, %.preheader126 ], [ %41, %40 ]
  %34 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %0)
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1112137, i64 noundef %.1136, double noundef 0.000000e+00, ptr noundef %0)
  br label %40

37:                                               ; preds = %33
  %38 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1112137, i64 noundef %.1136, ptr noundef %0)
  %39 = fneg double %38
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1112137, i64 noundef %.1136, double noundef %39, ptr noundef %0)
  br label %40

40:                                               ; preds = %36, %37
  %41 = add nuw nsw i64 %.1136, 1
  %exitcond149.not = icmp eq i64 %41, %.0115142
  br i1 %exitcond149.not, label %42, label %33, !llvm.loop !15

42:                                               ; preds = %40
  %43 = add nuw nsw i64 %.1112137, 1
  %exitcond150.not = icmp eq i64 %43, %.0116143
  br i1 %exitcond150.not, label %.preheader125, label %.preheader126, !llvm.loop !16

.preheader125:                                    ; preds = %42, %67
  %.2113139 = phi i64 [ %68, %67 ], [ 0, %42 ]
  br label %46

44:                                               ; preds = %59
  %45 = add nuw nsw i64 %.2138, 1
  %exitcond151.not = icmp eq i64 %45, %.0115142
  br i1 %exitcond151.not, label %67, label %46, !llvm.loop !17

46:                                               ; preds = %.preheader125, %44
  %.2138 = phi i64 [ 0, %.preheader125 ], [ %45, %44 ]
  %47 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 10, ptr noundef %0)
  %48 = shl nsw i64 %47, 1
  %49 = add nsw i64 %48, -10
  %50 = sitofp i64 %49 to double
  %51 = load ptr, ptr %5, align 8, !tbaa !7
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.2113139
  %53 = load ptr, ptr %52, align 8, !tbaa !10
  %54 = getelementptr inbounds double, ptr %53, i64 %.2138
  store double %50, ptr %54, align 8, !tbaa !12
  %55 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %0)
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.2113139, i64 noundef %.2138, double noundef %50, ptr noundef %0)
  br label %59

58:                                               ; preds = %46
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.2113139, i64 noundef %.2138, double noundef %50, ptr noundef %0)
  br label %59

59:                                               ; preds = %58, %57
  %60 = load ptr, ptr %5, align 8, !tbaa !7
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.2113139
  %62 = load ptr, ptr %61, align 8, !tbaa !10
  %63 = getelementptr inbounds double, ptr %62, i64 %.2138
  %64 = load double, ptr %63, align 8, !tbaa !12
  %65 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.2113139, i64 noundef %.2138, ptr noundef %0)
  %66 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %64, double noundef %65)
  br i1 %66, label %.loopexit, label %44

67:                                               ; preds = %44
  %68 = add nuw nsw i64 %.2113139, 1
  %exitcond152.not = icmp eq i64 %68, %.0116143
  br i1 %exitcond152.not, label %69, label %.preheader125, !llvm.loop !18

69:                                               ; preds = %67
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  br label %.preheader

.preheader:                                       ; preds = %69, %80
  %.3114141 = phi i64 [ 0, %69 ], [ %81, %80 ]
  br label %72

70:                                               ; preds = %72
  %71 = add nuw nsw i64 %.3140, 1
  %exitcond153.not = icmp eq i64 %71, %.0115142
  br i1 %exitcond153.not, label %80, label %72, !llvm.loop !19

72:                                               ; preds = %.preheader, %70
  %.3140 = phi i64 [ 0, %.preheader ], [ %71, %70 ]
  %73 = load ptr, ptr %5, align 8, !tbaa !7
  %74 = getelementptr inbounds ptr, ptr %73, i64 %.3114141
  %75 = load ptr, ptr %74, align 8, !tbaa !10
  %76 = getelementptr inbounds double, ptr %75, i64 %.3140
  %77 = load double, ptr %76, align 8, !tbaa !12
  %78 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.3114141, i64 noundef %.3140, ptr noundef %0)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %77, double noundef %78)
  br i1 %79, label %.loopexit, label %70

80:                                               ; preds = %70
  %81 = add nuw nsw i64 %.3114141, 1
  %exitcond154.not = icmp eq i64 %81, %.0116143
  br i1 %exitcond154.not, label %82, label %.preheader, !llvm.loop !20

82:                                               ; preds = %80
  %83 = add nuw nsw i64 %.0115142, 1
  %exitcond155.not = icmp eq i64 %83, 20
  br i1 %exitcond155.not, label %84, label %7, !llvm.loop !21

84:                                               ; preds = %82
  %85 = add nuw nsw i64 %.0116143, 1
  %86 = icmp ult i64 %.0116143, 19
  %exitcond156.not = icmp eq i64 %85, 20
  br i1 %exitcond156.not, label %.loopexit, label %.preheader130, !llvm.loop !22

.loopexit:                                        ; preds = %84, %23, %59, %72
  %87 = phi i1 [ %6, %72 ], [ %6, %59 ], [ %6, %23 ], [ %86, %84 ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret i1 %87
}

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}


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