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

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

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.301 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.302 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.303 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.312 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.313 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

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

declare 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_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testsvdbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", 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 i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i8, align 1
  %25 = zext i1 %0 to i8
  store i8 %25, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 80, 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 1, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %26, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 80, i1 false)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  store i64 0, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  store i8 1, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !5
  store i64 30, ptr %9, align 8, !tbaa !11
  store double 2.500000e-13, ptr %20, align 8, !tbaa !13
  %28 = load i64, ptr %9, align 8, !tbaa !11
  %29 = sub nsw i64 %28, 1
  %30 = add nsw i64 %29, 1
  %31 = load i64, ptr %9, align 8, !tbaa !11
  %32 = sub nsw i64 %31, 1
  %33 = add nsw i64 %32, 1
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %30, i64 noundef %33, ptr noundef %34)
  store i64 1, ptr %12, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %298, %2
  %36 = load i64, ptr %12, align 8, !tbaa !11
  %37 = icmp sle i64 %36, 1
  br i1 %37, label %38, label %301

38:                                               ; preds = %35
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %39

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

44:                                               ; preds = %39
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %45

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

50:                                               ; preds = %45
  %51 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %52 = load ptr, ptr %51, align 8, !tbaa !15
  %53 = load i64, ptr %10, align 8, !tbaa !11
  %54 = getelementptr inbounds ptr, ptr %52, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = load i64, ptr %11, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  store double 0.000000e+00, ptr %57, align 8, !tbaa !13
  br label %58

58:                                               ; preds = %50
  %59 = load i64, ptr %11, align 8, !tbaa !11
  %60 = add nsw i64 %59, 1
  store i64 %60, ptr %11, align 8, !tbaa !11
  br label %45, !llvm.loop !16

61:                                               ; preds = %45
  br label %62

62:                                               ; preds = %61
  %63 = load i64, ptr %10, align 8, !tbaa !11
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %10, align 8, !tbaa !11
  br label %39, !llvm.loop !18

65:                                               ; preds = %39
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %87, %65
  %67 = load i64, ptr %10, align 8, !tbaa !11
  %68 = load i64, ptr %9, align 8, !tbaa !11
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %68, ptr noundef %69)
  %71 = icmp sle i64 %67, %70
  br i1 %71, label %72, label %90

72:                                               ; preds = %66
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %73

73:                                               ; preds = %83, %72
  %74 = load i64, ptr %11, align 8, !tbaa !11
  %75 = load i64, ptr %9, align 8, !tbaa !11
  %76 = load ptr, ptr %4, align 8, !tbaa !9
  %77 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %75, ptr noundef %76)
  %78 = icmp sle i64 %74, %77
  br i1 %78, label %79, label %86

79:                                               ; preds = %73
  %80 = load i64, ptr %10, align 8, !tbaa !11
  %81 = load i64, ptr %11, align 8, !tbaa !11
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %80, i64 noundef %81, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %82)
  br label %83

83:                                               ; preds = %79
  %84 = load i64, ptr %11, align 8, !tbaa !11
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %11, align 8, !tbaa !11
  br label %73, !llvm.loop !19

86:                                               ; preds = %73
  br label %87

87:                                               ; preds = %86
  %88 = load i64, ptr %10, align 8, !tbaa !11
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %10, align 8, !tbaa !11
  br label %66, !llvm.loop !20

90:                                               ; preds = %66
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %91

91:                                               ; preds = %119, %90
  %92 = load i64, ptr %10, align 8, !tbaa !11
  %93 = load i64, ptr %9, align 8, !tbaa !11
  %94 = sub nsw i64 %93, 1
  %95 = icmp sle i64 %92, %94
  br i1 %95, label %96, label %122

96:                                               ; preds = %91
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %97

97:                                               ; preds = %115, %96
  %98 = load i64, ptr %11, align 8, !tbaa !11
  %99 = load i64, ptr %9, align 8, !tbaa !11
  %100 = load ptr, ptr %4, align 8, !tbaa !9
  %101 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %99, ptr noundef %100)
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %98, %102
  br i1 %103, label %104, label %118

104:                                              ; preds = %97
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  %106 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %105)
  %107 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double -1.000000e+00)
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %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 !9
  %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 !13
  br label %115

115:                                              ; preds = %104
  %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 %97, !llvm.loop !21

118:                                              ; preds = %97
  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 %91, !llvm.loop !22

122:                                              ; preds = %91
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %142, %122
  %124 = load i64, ptr %10, align 8, !tbaa !11
  %125 = load i64, ptr %9, align 8, !tbaa !11
  %126 = icmp sle i64 %124, %125
  br i1 %126, label %127, label %145

127:                                              ; preds = %123
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %138, %127
  %129 = load i64, ptr %11, align 8, !tbaa !11
  %130 = load i64, ptr %9, align 8, !tbaa !11
  %131 = load ptr, ptr %4, align 8, !tbaa !9
  %132 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %130, ptr noundef %131)
  %133 = icmp sle i64 %129, %132
  br i1 %133, label %134, label %141

134:                                              ; preds = %128
  %135 = load i64, ptr %10, align 8, !tbaa !11
  %136 = load i64, ptr %11, align 8, !tbaa !11
  %137 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %135, i64 noundef %136, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %137)
  br label %138

138:                                              ; preds = %134
  %139 = load i64, ptr %11, align 8, !tbaa !11
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %11, align 8, !tbaa !11
  br label %128, !llvm.loop !23

141:                                              ; preds = %128
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %10, align 8, !tbaa !11
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %10, align 8, !tbaa !11
  br label %123, !llvm.loop !24

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

146:                                              ; preds = %174, %145
  %147 = load i64, ptr %10, align 8, !tbaa !11
  %148 = load i64, ptr %9, align 8, !tbaa !11
  %149 = load ptr, ptr %4, align 8, !tbaa !9
  %150 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %148, ptr noundef %149)
  %151 = sub nsw i64 %150, 1
  %152 = icmp sle i64 %147, %151
  br i1 %152, label %153, label %177

153:                                              ; preds = %146
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %154

154:                                              ; preds = %170, %153
  %155 = load i64, ptr %11, align 8, !tbaa !11
  %156 = load i64, ptr %9, align 8, !tbaa !11
  %157 = sub nsw i64 %156, 1
  %158 = icmp sle i64 %155, %157
  br i1 %158, label %159, label %173

159:                                              ; preds = %154
  %160 = load ptr, ptr %4, align 8, !tbaa !9
  %161 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %160)
  %162 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %161, double -1.000000e+00)
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = load i64, ptr %10, align 8, !tbaa !11
  %166 = getelementptr inbounds ptr, ptr %164, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = load i64, ptr %11, align 8, !tbaa !11
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  store double %162, ptr %169, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %159
  %171 = load i64, ptr %11, align 8, !tbaa !11
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %11, align 8, !tbaa !11
  br label %154, !llvm.loop !25

173:                                              ; preds = %154
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %10, align 8, !tbaa !11
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %10, align 8, !tbaa !11
  br label %146, !llvm.loop !26

177:                                              ; preds = %146
  store i64 1, ptr %10, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %197, %177
  %179 = load i64, ptr %10, align 8, !tbaa !11
  %180 = load i64, ptr %9, align 8, !tbaa !11
  %181 = load ptr, ptr %4, align 8, !tbaa !9
  %182 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef %180, ptr noundef %181)
  %183 = icmp sle i64 %179, %182
  br i1 %183, label %184, label %200

184:                                              ; preds = %178
  store i64 1, ptr %11, align 8, !tbaa !11
  br label %185

185:                                              ; preds = %193, %184
  %186 = load i64, ptr %11, align 8, !tbaa !11
  %187 = load i64, ptr %9, align 8, !tbaa !11
  %188 = icmp sle i64 %186, %187
  br i1 %188, label %189, label %196

189:                                              ; preds = %185
  %190 = load i64, ptr %10, align 8, !tbaa !11
  %191 = load i64, ptr %11, align 8, !tbaa !11
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %190, i64 noundef %191, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %192)
  br label %193

193:                                              ; preds = %189
  %194 = load i64, ptr %11, align 8, !tbaa !11
  %195 = add nsw i64 %194, 1
  store i64 %195, ptr %11, align 8, !tbaa !11
  br label %185, !llvm.loop !27

196:                                              ; preds = %185
  br label %197

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

200:                                              ; preds = %178
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %201

201:                                              ; preds = %252, %200
  %202 = load i64, ptr %7, align 8, !tbaa !11
  %203 = load i64, ptr %9, align 8, !tbaa !11
  %204 = load ptr, ptr %4, align 8, !tbaa !9
  %205 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef %203, ptr noundef %204)
  %206 = icmp sle i64 %202, %205
  br i1 %206, label %207, label %255

207:                                              ; preds = %201
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %208

208:                                              ; preds = %248, %207
  %209 = load i64, ptr %8, align 8, !tbaa !11
  %210 = load i64, ptr %9, align 8, !tbaa !11
  %211 = load ptr, ptr %4, align 8, !tbaa !9
  %212 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef %210, ptr noundef %211)
  %213 = icmp sle i64 %209, %212
  br i1 %213, label %214, label %251

214:                                              ; preds = %208
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %241, %214
  %216 = load i64, ptr %10, align 8, !tbaa !11
  %217 = load i64, ptr %7, align 8, !tbaa !11
  %218 = sub nsw i64 %217, 1
  %219 = icmp sle i64 %216, %218
  br i1 %219, label %220, label %244

220:                                              ; preds = %215
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %221

221:                                              ; preds = %237, %220
  %222 = load i64, ptr %11, align 8, !tbaa !11
  %223 = load i64, ptr %8, align 8, !tbaa !11
  %224 = sub nsw i64 %223, 1
  %225 = icmp sle i64 %222, %224
  br i1 %225, label %226, label %240

226:                                              ; preds = %221
  %227 = load ptr, ptr %4, align 8, !tbaa !9
  %228 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %227)
  %229 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %228, double -1.000000e+00)
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %231 = load ptr, ptr %230, align 8, !tbaa !15
  %232 = load i64, ptr %10, align 8, !tbaa !11
  %233 = getelementptr inbounds ptr, ptr %231, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !9
  %235 = load i64, ptr %11, align 8, !tbaa !11
  %236 = getelementptr inbounds double, ptr %234, i64 %235
  store double %229, ptr %236, align 8, !tbaa !13
  br label %237

237:                                              ; preds = %226
  %238 = load i64, ptr %11, align 8, !tbaa !11
  %239 = add nsw i64 %238, 1
  store i64 %239, ptr %11, align 8, !tbaa !11
  br label %221, !llvm.loop !29

240:                                              ; preds = %221
  br label %241

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

244:                                              ; preds = %215
  %245 = load i64, ptr %7, align 8, !tbaa !11
  %246 = load i64, ptr %8, align 8, !tbaa !11
  %247 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %245, i64 noundef %246, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %247)
  br label %248

248:                                              ; preds = %244
  %249 = load i64, ptr %8, align 8, !tbaa !11
  %250 = add nsw i64 %249, 1
  store i64 %250, ptr %8, align 8, !tbaa !11
  br label %208, !llvm.loop !31

251:                                              ; preds = %208
  br label %252

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

255:                                              ; preds = %201
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %256

256:                                              ; preds = %294, %255
  %257 = load i64, ptr %7, align 8, !tbaa !11
  %258 = icmp sle i64 %257, 10
  br i1 %258, label %259, label %297

259:                                              ; preds = %256
  store i64 1, ptr %8, align 8, !tbaa !11
  br label %260

260:                                              ; preds = %290, %259
  %261 = load i64, ptr %8, align 8, !tbaa !11
  %262 = icmp sle i64 %261, 10
  br i1 %262, label %263, label %293

263:                                              ; preds = %260
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %264

264:                                              ; preds = %286, %263
  %265 = load i64, ptr %13, align 8, !tbaa !11
  %266 = icmp sle i64 %265, 2
  br i1 %266, label %267, label %289

267:                                              ; preds = %264
  %268 = load i64, ptr %7, align 8, !tbaa !11
  %269 = load i64, ptr %8, align 8, !tbaa !11
  %270 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %6, i64 noundef %268, i64 noundef %269, double noundef 8.000000e-01, ptr noundef %270)
  %271 = load i64, ptr %7, align 8, !tbaa !11
  %272 = load i64, ptr %8, align 8, !tbaa !11
  %273 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %271, i64 noundef %272, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %273)
  %274 = load i64, ptr %7, align 8, !tbaa !11
  %275 = load i64, ptr %8, align 8, !tbaa !11
  %276 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %6, i64 noundef %274, i64 noundef %275, double noundef 9.000000e-01, ptr noundef %276)
  %277 = load i64, ptr %7, align 8, !tbaa !11
  %278 = load i64, ptr %8, align 8, !tbaa !11
  %279 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %277, i64 noundef %278, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %279)
  %280 = load i64, ptr %7, align 8, !tbaa !11
  %281 = load i64, ptr %8, align 8, !tbaa !11
  %282 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef %6, i64 noundef %280, i64 noundef %281, double noundef 0x3FEE666666666666, ptr noundef %282)
  %283 = load i64, ptr %7, align 8, !tbaa !11
  %284 = load i64, ptr %8, align 8, !tbaa !11
  %285 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef %6, i64 noundef %283, i64 noundef %284, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %15, ptr noundef %16, ptr noundef %22, ptr noundef %23, ptr noundef %285)
  br label %286

286:                                              ; preds = %267
  %287 = load i64, ptr %13, align 8, !tbaa !11
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %13, align 8, !tbaa !11
  br label %264, !llvm.loop !33

289:                                              ; preds = %264
  br label %290

290:                                              ; preds = %289
  %291 = load i64, ptr %8, align 8, !tbaa !11
  %292 = add nsw i64 %291, 1
  store i64 %292, ptr %8, align 8, !tbaa !11
  br label %260, !llvm.loop !34

293:                                              ; preds = %260
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %7, align 8, !tbaa !11
  %296 = add nsw i64 %295, 1
  store i64 %296, ptr %7, align 8, !tbaa !11
  br label %256, !llvm.loop !35

297:                                              ; preds = %256
  br label %298

298:                                              ; preds = %297
  %299 = load i64, ptr %12, align 8, !tbaa !11
  %300 = add nsw i64 %299, 1
  store i64 %300, ptr %12, align 8, !tbaa !11
  br label %35, !llvm.loop !36

301:                                              ; preds = %35
  %302 = load i64, ptr %22, align 8, !tbaa !11
  %303 = sitofp i64 %302 to double
  %304 = load i64, ptr %23, align 8, !tbaa !11
  %305 = load i64, ptr %22, align 8, !tbaa !11
  %306 = add nsw i64 %304, %305
  %307 = sitofp i64 %306 to double
  %308 = fdiv double %303, %307
  store double %308, ptr %21, align 8, !tbaa !13
  %309 = load i8, ptr %16, align 1, !tbaa !5, !range !37, !noundef !38
  %310 = trunc i8 %309 to i1
  br i1 %310, label %327, label %311

311:                                              ; preds = %301
  %312 = load double, ptr %17, align 8, !tbaa !13
  %313 = load double, ptr %20, align 8, !tbaa !13
  %314 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %312, double noundef %313)
  br i1 %314, label %327, label %315

315:                                              ; preds = %311
  %316 = load double, ptr %18, align 8, !tbaa !13
  %317 = load double, ptr %20, align 8, !tbaa !13
  %318 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %316, double noundef %317)
  br i1 %318, label %327, label %319

319:                                              ; preds = %315
  %320 = load double, ptr %19, align 8, !tbaa !13
  %321 = load double, ptr %20, align 8, !tbaa !13
  %322 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %320, double noundef %321)
  br i1 %322, label %327, label %323

323:                                              ; preds = %319
  %324 = load i8, ptr %15, align 1, !tbaa !5, !range !37, !noundef !38
  %325 = trunc i8 %324 to i1
  %326 = xor i1 %325, true
  br label %327

327:                                              ; preds = %323, %319, %315, %311, %301
  %328 = phi i1 [ true, %319 ], [ true, %315 ], [ true, %311 ], [ true, %301 ], [ %326, %323 ]
  %329 = zext i1 %328 to i8
  store i8 %329, ptr %14, align 1, !tbaa !5
  %330 = load i8, ptr %3, align 1, !tbaa !5, !range !37, !noundef !38
  %331 = trunc i8 %330 to i1
  br i1 %331, label %368, label %332

332:                                              ; preds = %327
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.312)
  %334 = load double, ptr %17, align 8, !tbaa !13
  %335 = call i32 (ptr, ...) @printf(ptr noundef @.str.297, double noundef %334)
  %336 = load double, ptr %18, align 8, !tbaa !13
  %337 = call i32 (ptr, ...) @printf(ptr noundef @.str.298, double noundef %336)
  %338 = load double, ptr %19, align 8, !tbaa !13
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.313, double noundef %338)
  %340 = call i32 (ptr, ...) @printf(ptr noundef @.str.299)
  %341 = load i8, ptr %15, align 1, !tbaa !5, !range !37, !noundef !38
  %342 = trunc i8 %341 to i1
  br i1 %342, label %343, label %345

343:                                              ; preds = %332
  %344 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %347

345:                                              ; preds = %332
  %346 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %347

347:                                              ; preds = %345, %343
  %348 = call i32 (ptr, ...) @printf(ptr noundef @.str.300)
  %349 = load i8, ptr %16, align 1, !tbaa !5, !range !37, !noundef !38
  %350 = trunc i8 %349 to i1
  br i1 %350, label %353, label %351

351:                                              ; preds = %347
  %352 = call i32 (ptr, ...) @printf(ptr noundef @.str.301)
  br label %357

353:                                              ; preds = %347
  %354 = call i32 (ptr, ...) @printf(ptr noundef @.str.302)
  %355 = load double, ptr %21, align 8, !tbaa !13
  %356 = call i32 (ptr, ...) @printf(ptr noundef @.str.303, double noundef %355)
  br label %357

357:                                              ; preds = %353, %351
  %358 = load double, ptr %20, align 8, !tbaa !13
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.196, double noundef %358)
  %360 = load i8, ptr %14, align 1, !tbaa !5, !range !37, !noundef !38
  %361 = trunc i8 %360 to i1
  br i1 %361, label %362, label %364

362:                                              ; preds = %357
  %363 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %366

364:                                              ; preds = %357
  %365 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %366

366:                                              ; preds = %364, %362
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %368

368:                                              ; preds = %366, %327
  %369 = load i8, ptr %14, align 1, !tbaa !5, !range !37, !noundef !38
  %370 = trunc i8 %369 to i1
  %371 = xor i1 %370, true
  %372 = zext i1 %371 to i8
  store i8 %372, ptr %24, align 1, !tbaa !5
  %373 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %373)
  %374 = load i8, ptr %24, align 1, !tbaa !5, !range !37, !noundef !38
  %375 = trunc i8 %374 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, 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 80, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %375
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !17}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = !{i8 0, i8 2}
!38 = !{}


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

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.301 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.302 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.303 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.312 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.313 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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) #4

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

declare noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testsvdbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
.critedge:
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %3, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %3, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  store i64 0, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  store i8 1, ptr %4, align 1, !tbaa !11
  store i8 0, ptr %5, align 1, !tbaa !11
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 30, i64 noundef 30, ptr noundef %1)
  %11 = getelementptr inbounds i8, ptr %3, i64 72
  %.pre = load ptr, ptr %11, align 8, !tbaa !13
  br label %.preheader157

.preheader157:                                    ; preds = %.critedge, %.preheader157
  %12 = phi ptr [ %.pre, %.critedge ], [ %51, %.preheader157 ]
  %.0121159 = phi i64 [ 0, %.critedge ], [ %55, %.preheader157 ]
  %13 = getelementptr inbounds ptr, ptr %12, i64 %.0121159
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %11, align 8, !tbaa !13
  %16 = getelementptr inbounds ptr, ptr %15, i64 %.0121159
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  store double 0.000000e+00, ptr %18, align 8, !tbaa !9
  %19 = load ptr, ptr %11, align 8, !tbaa !13
  %20 = getelementptr inbounds ptr, ptr %19, i64 %.0121159
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store double 0.000000e+00, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %11, align 8, !tbaa !13
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.0121159
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %11, align 8, !tbaa !13
  %28 = getelementptr inbounds ptr, ptr %27, i64 %.0121159
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  store double 0.000000e+00, ptr %30, align 8, !tbaa !9
  %31 = load ptr, ptr %11, align 8, !tbaa !13
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0121159
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  store double 0.000000e+00, ptr %34, align 8, !tbaa !9
  %35 = load ptr, ptr %11, align 8, !tbaa !13
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.0121159
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %37, i64 48
  store double 0.000000e+00, ptr %38, align 8, !tbaa !9
  %39 = load ptr, ptr %11, align 8, !tbaa !13
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.0121159
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds i8, ptr %41, i64 56
  store double 0.000000e+00, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %11, align 8, !tbaa !13
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.0121159
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %45, i64 64
  store double 0.000000e+00, ptr %46, align 8, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !13
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.0121159
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds i8, ptr %49, i64 72
  store double 0.000000e+00, ptr %50, align 8, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !13
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.0121159
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %53, i64 80
  %55 = add nuw nsw i64 %.0121159, 1
  %exitcond.not = icmp eq i64 %55, 30
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(160) %54, i8 0, i64 160, i1 false)
  br i1 %exitcond.not, label %.preheader156, label %.preheader157, !llvm.loop !16

.preheader156:                                    ; preds = %.preheader157
  %56 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not162 = icmp slt i64 %56, 1
  br i1 %.not162, label %.preheader153.preheader, label %.preheader155

.preheader155:                                    ; preds = %.preheader156, %._crit_edge
  %.1122163 = phi i64 [ %60, %._crit_edge ], [ 1, %.preheader156 ]
  %57 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not140160 = icmp slt i64 %57, 1
  br i1 %.not140160, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader155, %.lr.ph
  %.1126161 = phi i64 [ %58, %.lr.ph ], [ 1, %.preheader155 ]
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1122163, i64 noundef %.1126161, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %58 = add nuw nsw i64 %.1126161, 1
  %59 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not140.not = icmp slt i64 %.1126161, %59
  br i1 %.not140.not, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %.preheader155
  %60 = add nuw nsw i64 %.1122163, 1
  %61 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not.not = icmp slt i64 %.1122163, %61
  br i1 %.not.not, label %.preheader155, label %.preheader153.preheader, !llvm.loop !19

.preheader153.preheader:                          ; preds = %._crit_edge, %.preheader156
  br label %.preheader153

.preheader153:                                    ; preds = %.preheader153.preheader, %._crit_edge167
  %.2168 = phi i64 [ %71, %._crit_edge167 ], [ 0, %.preheader153.preheader ]
  %62 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not139.not164 = icmp sgt i64 %62, 0
  br i1 %.not139.not164, label %.lr.ph166, label %._crit_edge167

.lr.ph166:                                        ; preds = %.preheader153, %.lr.ph166
  %.2127165 = phi i64 [ %69, %.lr.ph166 ], [ 0, %.preheader153 ]
  %63 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %64 = call double @llvm.fmuladd.f64(double %63, double 2.000000e+00, double -1.000000e+00)
  %65 = load ptr, ptr %11, align 8, !tbaa !13
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.2168
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds double, ptr %67, i64 %.2127165
  store double %64, ptr %68, align 8, !tbaa !9
  %69 = add nuw nsw i64 %.2127165, 1
  %70 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not139.not = icmp slt i64 %69, %70
  br i1 %.not139.not, label %.lr.ph166, label %._crit_edge167, !llvm.loop !20

._crit_edge167:                                   ; preds = %.lr.ph166, %.preheader153
  %71 = add nuw nsw i64 %.2168, 1
  %exitcond190.not = icmp eq i64 %71, 30
  br i1 %exitcond190.not, label %.preheader151, label %.preheader153, !llvm.loop !21

.preheader151:                                    ; preds = %._crit_edge167, %._crit_edge172
  %.3173 = phi i64 [ %76, %._crit_edge172 ], [ 1, %._crit_edge167 ]
  %72 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not138169 = icmp slt i64 %72, 1
  br i1 %.not138169, label %._crit_edge172, label %.lr.ph171

.preheader150:                                    ; preds = %._crit_edge172
  %73 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not132.not175 = icmp sgt i64 %73, 0
  br i1 %.not132.not175, label %.preheader149, label %.preheader148

.lr.ph171:                                        ; preds = %.preheader151, %.lr.ph171
  %.3128170 = phi i64 [ %74, %.lr.ph171 ], [ 1, %.preheader151 ]
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.3173, i64 noundef %.3128170, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %74 = add nuw nsw i64 %.3128170, 1
  %75 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not138.not = icmp slt i64 %.3128170, %75
  br i1 %.not138.not, label %.lr.ph171, label %._crit_edge172, !llvm.loop !22

._crit_edge172:                                   ; preds = %.lr.ph171, %.preheader151
  %76 = add nuw nsw i64 %.3173, 1
  %exitcond191.not = icmp eq i64 %76, 31
  br i1 %exitcond191.not, label %.preheader150, label %.preheader151, !llvm.loop !23

.preheader149:                                    ; preds = %.preheader150, %.preheader149
  %.4176 = phi i64 [ %256, %.preheader149 ], [ 0, %.preheader150 ]
  %77 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %78 = call double @llvm.fmuladd.f64(double %77, double 2.000000e+00, double -1.000000e+00)
  %79 = load ptr, ptr %11, align 8, !tbaa !13
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.4176
  %81 = load ptr, ptr %80, align 8, !tbaa !14
  store double %78, ptr %81, align 8, !tbaa !9
  %82 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %83 = call double @llvm.fmuladd.f64(double %82, double 2.000000e+00, double -1.000000e+00)
  %84 = load ptr, ptr %11, align 8, !tbaa !13
  %85 = getelementptr inbounds ptr, ptr %84, i64 %.4176
  %86 = load ptr, ptr %85, align 8, !tbaa !14
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  store double %83, ptr %87, align 8, !tbaa !9
  %88 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %89 = call double @llvm.fmuladd.f64(double %88, double 2.000000e+00, double -1.000000e+00)
  %90 = load ptr, ptr %11, align 8, !tbaa !13
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.4176
  %92 = load ptr, ptr %91, align 8, !tbaa !14
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  store double %89, ptr %93, align 8, !tbaa !9
  %94 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %95 = call double @llvm.fmuladd.f64(double %94, double 2.000000e+00, double -1.000000e+00)
  %96 = load ptr, ptr %11, align 8, !tbaa !13
  %97 = getelementptr inbounds ptr, ptr %96, i64 %.4176
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = getelementptr inbounds i8, ptr %98, i64 24
  store double %95, ptr %99, align 8, !tbaa !9
  %100 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %101 = call double @llvm.fmuladd.f64(double %100, double 2.000000e+00, double -1.000000e+00)
  %102 = load ptr, ptr %11, align 8, !tbaa !13
  %103 = getelementptr inbounds ptr, ptr %102, i64 %.4176
  %104 = load ptr, ptr %103, align 8, !tbaa !14
  %105 = getelementptr inbounds i8, ptr %104, i64 32
  store double %101, ptr %105, align 8, !tbaa !9
  %106 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %107 = call double @llvm.fmuladd.f64(double %106, double 2.000000e+00, double -1.000000e+00)
  %108 = load ptr, ptr %11, align 8, !tbaa !13
  %109 = getelementptr inbounds ptr, ptr %108, i64 %.4176
  %110 = load ptr, ptr %109, align 8, !tbaa !14
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  store double %107, ptr %111, align 8, !tbaa !9
  %112 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %113 = call double @llvm.fmuladd.f64(double %112, double 2.000000e+00, double -1.000000e+00)
  %114 = load ptr, ptr %11, align 8, !tbaa !13
  %115 = getelementptr inbounds ptr, ptr %114, i64 %.4176
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds i8, ptr %116, i64 48
  store double %113, ptr %117, align 8, !tbaa !9
  %118 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %119 = call double @llvm.fmuladd.f64(double %118, double 2.000000e+00, double -1.000000e+00)
  %120 = load ptr, ptr %11, align 8, !tbaa !13
  %121 = getelementptr inbounds ptr, ptr %120, i64 %.4176
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = getelementptr inbounds i8, ptr %122, i64 56
  store double %119, ptr %123, align 8, !tbaa !9
  %124 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %125 = call double @llvm.fmuladd.f64(double %124, double 2.000000e+00, double -1.000000e+00)
  %126 = load ptr, ptr %11, align 8, !tbaa !13
  %127 = getelementptr inbounds ptr, ptr %126, i64 %.4176
  %128 = load ptr, ptr %127, align 8, !tbaa !14
  %129 = getelementptr inbounds i8, ptr %128, i64 64
  store double %125, ptr %129, align 8, !tbaa !9
  %130 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %131 = call double @llvm.fmuladd.f64(double %130, double 2.000000e+00, double -1.000000e+00)
  %132 = load ptr, ptr %11, align 8, !tbaa !13
  %133 = getelementptr inbounds ptr, ptr %132, i64 %.4176
  %134 = load ptr, ptr %133, align 8, !tbaa !14
  %135 = getelementptr inbounds i8, ptr %134, i64 72
  store double %131, ptr %135, align 8, !tbaa !9
  %136 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %137 = call double @llvm.fmuladd.f64(double %136, double 2.000000e+00, double -1.000000e+00)
  %138 = load ptr, ptr %11, align 8, !tbaa !13
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.4176
  %140 = load ptr, ptr %139, align 8, !tbaa !14
  %141 = getelementptr inbounds i8, ptr %140, i64 80
  store double %137, ptr %141, align 8, !tbaa !9
  %142 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %143 = call double @llvm.fmuladd.f64(double %142, double 2.000000e+00, double -1.000000e+00)
  %144 = load ptr, ptr %11, align 8, !tbaa !13
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.4176
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = getelementptr inbounds i8, ptr %146, i64 88
  store double %143, ptr %147, align 8, !tbaa !9
  %148 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %149 = call double @llvm.fmuladd.f64(double %148, double 2.000000e+00, double -1.000000e+00)
  %150 = load ptr, ptr %11, align 8, !tbaa !13
  %151 = getelementptr inbounds ptr, ptr %150, i64 %.4176
  %152 = load ptr, ptr %151, align 8, !tbaa !14
  %153 = getelementptr inbounds i8, ptr %152, i64 96
  store double %149, ptr %153, align 8, !tbaa !9
  %154 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %155 = call double @llvm.fmuladd.f64(double %154, double 2.000000e+00, double -1.000000e+00)
  %156 = load ptr, ptr %11, align 8, !tbaa !13
  %157 = getelementptr inbounds ptr, ptr %156, i64 %.4176
  %158 = load ptr, ptr %157, align 8, !tbaa !14
  %159 = getelementptr inbounds i8, ptr %158, i64 104
  store double %155, ptr %159, align 8, !tbaa !9
  %160 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %161 = call double @llvm.fmuladd.f64(double %160, double 2.000000e+00, double -1.000000e+00)
  %162 = load ptr, ptr %11, align 8, !tbaa !13
  %163 = getelementptr inbounds ptr, ptr %162, i64 %.4176
  %164 = load ptr, ptr %163, align 8, !tbaa !14
  %165 = getelementptr inbounds i8, ptr %164, i64 112
  store double %161, ptr %165, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %167 = call double @llvm.fmuladd.f64(double %166, double 2.000000e+00, double -1.000000e+00)
  %168 = load ptr, ptr %11, align 8, !tbaa !13
  %169 = getelementptr inbounds ptr, ptr %168, i64 %.4176
  %170 = load ptr, ptr %169, align 8, !tbaa !14
  %171 = getelementptr inbounds i8, ptr %170, i64 120
  store double %167, ptr %171, align 8, !tbaa !9
  %172 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %173 = call double @llvm.fmuladd.f64(double %172, double 2.000000e+00, double -1.000000e+00)
  %174 = load ptr, ptr %11, align 8, !tbaa !13
  %175 = getelementptr inbounds ptr, ptr %174, i64 %.4176
  %176 = load ptr, ptr %175, align 8, !tbaa !14
  %177 = getelementptr inbounds i8, ptr %176, i64 128
  store double %173, ptr %177, align 8, !tbaa !9
  %178 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %179 = call double @llvm.fmuladd.f64(double %178, double 2.000000e+00, double -1.000000e+00)
  %180 = load ptr, ptr %11, align 8, !tbaa !13
  %181 = getelementptr inbounds ptr, ptr %180, i64 %.4176
  %182 = load ptr, ptr %181, align 8, !tbaa !14
  %183 = getelementptr inbounds i8, ptr %182, i64 136
  store double %179, ptr %183, align 8, !tbaa !9
  %184 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %185 = call double @llvm.fmuladd.f64(double %184, double 2.000000e+00, double -1.000000e+00)
  %186 = load ptr, ptr %11, align 8, !tbaa !13
  %187 = getelementptr inbounds ptr, ptr %186, i64 %.4176
  %188 = load ptr, ptr %187, align 8, !tbaa !14
  %189 = getelementptr inbounds i8, ptr %188, i64 144
  store double %185, ptr %189, align 8, !tbaa !9
  %190 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %191 = call double @llvm.fmuladd.f64(double %190, double 2.000000e+00, double -1.000000e+00)
  %192 = load ptr, ptr %11, align 8, !tbaa !13
  %193 = getelementptr inbounds ptr, ptr %192, i64 %.4176
  %194 = load ptr, ptr %193, align 8, !tbaa !14
  %195 = getelementptr inbounds i8, ptr %194, i64 152
  store double %191, ptr %195, align 8, !tbaa !9
  %196 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %197 = call double @llvm.fmuladd.f64(double %196, double 2.000000e+00, double -1.000000e+00)
  %198 = load ptr, ptr %11, align 8, !tbaa !13
  %199 = getelementptr inbounds ptr, ptr %198, i64 %.4176
  %200 = load ptr, ptr %199, align 8, !tbaa !14
  %201 = getelementptr inbounds i8, ptr %200, i64 160
  store double %197, ptr %201, align 8, !tbaa !9
  %202 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %203 = call double @llvm.fmuladd.f64(double %202, double 2.000000e+00, double -1.000000e+00)
  %204 = load ptr, ptr %11, align 8, !tbaa !13
  %205 = getelementptr inbounds ptr, ptr %204, i64 %.4176
  %206 = load ptr, ptr %205, align 8, !tbaa !14
  %207 = getelementptr inbounds i8, ptr %206, i64 168
  store double %203, ptr %207, align 8, !tbaa !9
  %208 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %209 = call double @llvm.fmuladd.f64(double %208, double 2.000000e+00, double -1.000000e+00)
  %210 = load ptr, ptr %11, align 8, !tbaa !13
  %211 = getelementptr inbounds ptr, ptr %210, i64 %.4176
  %212 = load ptr, ptr %211, align 8, !tbaa !14
  %213 = getelementptr inbounds i8, ptr %212, i64 176
  store double %209, ptr %213, align 8, !tbaa !9
  %214 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %215 = call double @llvm.fmuladd.f64(double %214, double 2.000000e+00, double -1.000000e+00)
  %216 = load ptr, ptr %11, align 8, !tbaa !13
  %217 = getelementptr inbounds ptr, ptr %216, i64 %.4176
  %218 = load ptr, ptr %217, align 8, !tbaa !14
  %219 = getelementptr inbounds i8, ptr %218, i64 184
  store double %215, ptr %219, align 8, !tbaa !9
  %220 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %221 = call double @llvm.fmuladd.f64(double %220, double 2.000000e+00, double -1.000000e+00)
  %222 = load ptr, ptr %11, align 8, !tbaa !13
  %223 = getelementptr inbounds ptr, ptr %222, i64 %.4176
  %224 = load ptr, ptr %223, align 8, !tbaa !14
  %225 = getelementptr inbounds i8, ptr %224, i64 192
  store double %221, ptr %225, align 8, !tbaa !9
  %226 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %227 = call double @llvm.fmuladd.f64(double %226, double 2.000000e+00, double -1.000000e+00)
  %228 = load ptr, ptr %11, align 8, !tbaa !13
  %229 = getelementptr inbounds ptr, ptr %228, i64 %.4176
  %230 = load ptr, ptr %229, align 8, !tbaa !14
  %231 = getelementptr inbounds i8, ptr %230, i64 200
  store double %227, ptr %231, align 8, !tbaa !9
  %232 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %233 = call double @llvm.fmuladd.f64(double %232, double 2.000000e+00, double -1.000000e+00)
  %234 = load ptr, ptr %11, align 8, !tbaa !13
  %235 = getelementptr inbounds ptr, ptr %234, i64 %.4176
  %236 = load ptr, ptr %235, align 8, !tbaa !14
  %237 = getelementptr inbounds i8, ptr %236, i64 208
  store double %233, ptr %237, align 8, !tbaa !9
  %238 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %239 = call double @llvm.fmuladd.f64(double %238, double 2.000000e+00, double -1.000000e+00)
  %240 = load ptr, ptr %11, align 8, !tbaa !13
  %241 = getelementptr inbounds ptr, ptr %240, i64 %.4176
  %242 = load ptr, ptr %241, align 8, !tbaa !14
  %243 = getelementptr inbounds i8, ptr %242, i64 216
  store double %239, ptr %243, align 8, !tbaa !9
  %244 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %245 = call double @llvm.fmuladd.f64(double %244, double 2.000000e+00, double -1.000000e+00)
  %246 = load ptr, ptr %11, align 8, !tbaa !13
  %247 = getelementptr inbounds ptr, ptr %246, i64 %.4176
  %248 = load ptr, ptr %247, align 8, !tbaa !14
  %249 = getelementptr inbounds i8, ptr %248, i64 224
  store double %245, ptr %249, align 8, !tbaa !9
  %250 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %251 = call double @llvm.fmuladd.f64(double %250, double 2.000000e+00, double -1.000000e+00)
  %252 = load ptr, ptr %11, align 8, !tbaa !13
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.4176
  %254 = load ptr, ptr %253, align 8, !tbaa !14
  %255 = getelementptr inbounds i8, ptr %254, i64 232
  store double %251, ptr %255, align 8, !tbaa !9
  %256 = add nuw nsw i64 %.4176, 1
  %257 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not132.not = icmp slt i64 %256, %257
  br i1 %.not132.not, label %.preheader149, label %.preheader148, !llvm.loop !24

.preheader148:                                    ; preds = %.preheader149, %.preheader150
  %258 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not133178 = icmp slt i64 %258, 1
  br i1 %.not133178, label %.preheader146, label %.preheader147

.preheader147:                                    ; preds = %.preheader148, %262
  %.5179 = phi i64 [ %263, %262 ], [ 1, %.preheader148 ]
  br label %260

.preheader146:                                    ; preds = %262, %.preheader148
  %259 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef 30, ptr noundef %1)
  %.not134185 = icmp slt i64 %259, 1
  br i1 %.not134185, label %.preheader141.preheader, label %.preheader145

260:                                              ; preds = %.preheader147, %260
  %.5130177 = phi i64 [ 1, %.preheader147 ], [ %261, %260 ]
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.5179, i64 noundef %.5130177, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %261 = add nuw nsw i64 %.5130177, 1
  %exitcond193.not = icmp eq i64 %261, 31
  br i1 %exitcond193.not, label %262, label %260, !llvm.loop !25

262:                                              ; preds = %260
  %263 = add nuw nsw i64 %.5179, 1
  %264 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 5, i64 noundef 30, ptr noundef %1)
  %.not133.not = icmp slt i64 %.5179, %264
  br i1 %.not133.not, label %.preheader147, label %.preheader146, !llvm.loop !26

.preheader145:                                    ; preds = %.preheader146, %._crit_edge184
  %.0186 = phi i64 [ %279, %._crit_edge184 ], [ 1, %.preheader146 ]
  %265 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef 30, ptr noundef %1)
  %.not135182 = icmp slt i64 %265, 1
  br i1 %.not135182, label %._crit_edge184, label %.preheader144

.preheader144:                                    ; preds = %.preheader145, %276
  %.0119183 = phi i64 [ %277, %276 ], [ 1, %.preheader145 ]
  br label %.preheader143

.preheader143:                                    ; preds = %.preheader144, %274
  %.6181 = phi i64 [ 0, %.preheader144 ], [ %275, %274 ]
  br label %266

266:                                              ; preds = %.preheader143, %266
  %.6131180 = phi i64 [ 0, %.preheader143 ], [ %273, %266 ]
  %267 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %268 = call double @llvm.fmuladd.f64(double %267, double 2.000000e+00, double -1.000000e+00)
  %269 = load ptr, ptr %11, align 8, !tbaa !13
  %270 = getelementptr inbounds ptr, ptr %269, i64 %.6181
  %271 = load ptr, ptr %270, align 8, !tbaa !14
  %272 = getelementptr inbounds double, ptr %271, i64 %.6131180
  store double %268, ptr %272, align 8, !tbaa !9
  %273 = add nuw nsw i64 %.6131180, 1
  %exitcond194.not = icmp eq i64 %273, %.0119183
  br i1 %exitcond194.not, label %274, label %266, !llvm.loop !27

274:                                              ; preds = %266
  %275 = add nuw nsw i64 %.6181, 1
  %exitcond195.not = icmp eq i64 %275, %.0186
  br i1 %exitcond195.not, label %276, label %.preheader143, !llvm.loop !28

276:                                              ; preds = %274
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.0186, i64 noundef %.0119183, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %277 = add nuw nsw i64 %.0119183, 1
  %278 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef 30, ptr noundef %1)
  %.not135.not = icmp slt i64 %.0119183, %278
  br i1 %.not135.not, label %.preheader144, label %._crit_edge184, !llvm.loop !29

._crit_edge184:                                   ; preds = %276, %.preheader145
  %279 = add nuw nsw i64 %.0186, 1
  %280 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef 10, i64 noundef 30, ptr noundef %1)
  %.not134.not = icmp slt i64 %.0186, %280
  br i1 %.not134.not, label %.preheader145, label %.preheader141.preheader, !llvm.loop !30

.preheader141.preheader:                          ; preds = %._crit_edge184, %.preheader146
  br label %.preheader141

.preheader141:                                    ; preds = %.preheader141.preheader, %282
  %.1189 = phi i64 [ %283, %282 ], [ 1, %.preheader141.preheader ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader141, %.preheader
  %.1120188 = phi i64 [ 1, %.preheader141 ], [ %281, %.preheader ]
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 8.000000e-01, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 9.000000e-01, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 8.000000e-01, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 9.000000e-01, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  call void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, double noundef 0x3FEE666666666666, ptr noundef %1)
  call void @_ZL26testsvdunit_testsvdproblemPN11alglib_impl9ae_matrixEllPdS2_S2_PbS3_PlS4_PNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %.1189, i64 noundef %.1120188, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %281 = add nuw nsw i64 %.1120188, 1
  %exitcond197.not = icmp eq i64 %281, 11
  br i1 %exitcond197.not, label %282, label %.preheader, !llvm.loop !31

282:                                              ; preds = %.preheader
  %283 = add nuw nsw i64 %.1189, 1
  %exitcond198.not = icmp eq i64 %283, 11
  br i1 %exitcond198.not, label %284, label %.preheader141, !llvm.loop !32

284:                                              ; preds = %282
  %285 = load i64, ptr %9, align 8, !tbaa !5
  %286 = sitofp i64 %285 to double
  %287 = load i64, ptr %10, align 8, !tbaa !5
  %288 = add nsw i64 %287, %285
  %289 = sitofp i64 %288 to double
  %290 = fdiv double %286, %289
  %291 = load i8, ptr %5, align 1, !tbaa !11, !range !33, !noundef !34
  %292 = trunc nuw i8 %291 to i1
  br i1 %292, label %306, label %293

293:                                              ; preds = %284
  %294 = load double, ptr %6, align 8, !tbaa !9
  %295 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %294, double noundef 2.500000e-13)
  br i1 %295, label %306, label %296

296:                                              ; preds = %293
  %297 = load double, ptr %7, align 8, !tbaa !9
  %298 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %297, double noundef 2.500000e-13)
  br i1 %298, label %306, label %299

299:                                              ; preds = %296
  %300 = load double, ptr %8, align 8, !tbaa !9
  %301 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %300, double noundef 2.500000e-13)
  br i1 %301, label %306, label %302

302:                                              ; preds = %299
  %303 = load i8, ptr %4, align 1, !tbaa !11, !range !33, !noundef !34
  %304 = trunc nuw i8 %303 to i1
  %305 = xor i1 %304, true
  br label %306

306:                                              ; preds = %302, %299, %296, %293, %284
  %307 = phi i1 [ true, %299 ], [ true, %296 ], [ true, %293 ], [ true, %284 ], [ %305, %302 ]
  br i1 %0, label %332, label %308

308:                                              ; preds = %306
  %309 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.312)
  %310 = load double, ptr %6, align 8, !tbaa !9
  %311 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.297, double noundef %310)
  %312 = load double, ptr %7, align 8, !tbaa !9
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.298, double noundef %312)
  %314 = load double, ptr %8, align 8, !tbaa !9
  %315 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.313, double noundef %314)
  %316 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.299)
  %317 = load i8, ptr %4, align 1, !tbaa !11, !range !33, !noundef !34
  %318 = trunc nuw i8 %317 to i1
  %.str.6..str.7 = select i1 %318, ptr @.str.6, ptr @.str.7
  %319 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6..str.7)
  %320 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.300)
  %321 = load i8, ptr %5, align 1, !tbaa !11, !range !33, !noundef !34
  %322 = trunc nuw i8 %321 to i1
  br i1 %322, label %325, label %323

323:                                              ; preds = %308
  %324 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.301)
  br label %328

325:                                              ; preds = %308
  %326 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.302)
  %327 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.303, double noundef %290)
  br label %328

328:                                              ; preds = %325, %323
  %329 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.196, double noundef 2.500000e-13)
  %.str.1..str.2 = select i1 %307, ptr @.str.1, ptr @.str.2
  %330 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %331 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %332

332:                                              ; preds = %328, %306
  %333 = xor i1 %307, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  ret i1 %333
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23testsvdunit_fillsparseaPN11alglib_impl9ae_matrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #5

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 = { nofree nounwind "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = !{i8 0, i8 2}
!34 = !{}


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