; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z9testsblasbPN11alglib_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 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = 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.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [24 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 void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testsblasbPN11alglib_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 %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i8, align 1
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, 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 80, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 1, 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)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, 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)
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 3, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 3, ptr noundef %33, i1 noundef zeroext true)
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  store i8 0, ptr %19, align 1, !tbaa !5
  store i64 10, ptr %14, align 8, !tbaa !13
  store double 5.000000e-13, ptr %21, align 8, !tbaa !11
  store i64 2, ptr %13, align 8, !tbaa !13
  br label %34

34:                                               ; preds = %379, %2
  %35 = load i64, ptr %13, align 8, !tbaa !13
  %36 = load i64, ptr %14, align 8, !tbaa !13
  %37 = icmp sle i64 %35, %36
  br i1 %37, label %38, label %382

38:                                               ; preds = %34
  %39 = load i64, ptr %13, align 8, !tbaa !13
  %40 = add nsw i64 %39, 1
  %41 = load i64, ptr %13, align 8, !tbaa !13
  %42 = add nsw i64 %41, 1
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %6, i64 noundef %40, i64 noundef %42, ptr noundef %43)
  %44 = load i64, ptr %13, align 8, !tbaa !13
  %45 = add nsw i64 %44, 1
  %46 = load i64, ptr %13, align 8, !tbaa !13
  %47 = add nsw i64 %46, 1
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %45, i64 noundef %47, ptr noundef %48)
  %49 = load i64, ptr %13, align 8, !tbaa !13
  %50 = add nsw i64 %49, 1
  %51 = load i64, ptr %13, align 8, !tbaa !13
  %52 = add nsw i64 %51, 1
  %53 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %50, i64 noundef %52, ptr noundef %53)
  %54 = load i64, ptr %13, align 8, !tbaa !13
  %55 = add nsw i64 %54, 1
  %56 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %55, ptr noundef %56)
  %57 = load i64, ptr %13, align 8, !tbaa !13
  %58 = add nsw i64 %57, 1
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %58, ptr noundef %59)
  %60 = load i64, ptr %13, align 8, !tbaa !13
  %61 = add nsw i64 %60, 1
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, i64 noundef %61, ptr noundef %62)
  %63 = load i64, ptr %13, align 8, !tbaa !13
  %64 = add nsw i64 %63, 1
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %64, ptr noundef %65)
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %66

66:                                               ; preds = %117, %38
  %67 = load i64, ptr %15, align 8, !tbaa !13
  %68 = load i64, ptr %13, align 8, !tbaa !13
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %120

70:                                               ; preds = %66
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %71)
  %73 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %72, double -1.000000e+00)
  %74 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = load i64, ptr %15, align 8, !tbaa !13
  %77 = getelementptr inbounds ptr, ptr %75, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = load i64, ptr %15, align 8, !tbaa !13
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  store double %73, ptr %80, align 8, !tbaa !11
  %81 = load i64, ptr %15, align 8, !tbaa !13
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %16, align 8, !tbaa !13
  br label %83

83:                                               ; preds = %113, %70
  %84 = load i64, ptr %16, align 8, !tbaa !13
  %85 = load i64, ptr %13, align 8, !tbaa !13
  %86 = icmp sle i64 %84, %85
  br i1 %86, label %87, label %116

87:                                               ; preds = %83
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %88)
  %90 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %89, double -1.000000e+00)
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i64, ptr %15, align 8, !tbaa !13
  %94 = getelementptr inbounds ptr, ptr %92, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = load i64, ptr %16, align 8, !tbaa !13
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  store double %90, ptr %97, align 8, !tbaa !11
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = load i64, ptr %15, align 8, !tbaa !13
  %101 = getelementptr inbounds ptr, ptr %99, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = load i64, ptr %16, align 8, !tbaa !13
  %104 = getelementptr inbounds double, ptr %102, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = load i64, ptr %16, align 8, !tbaa !13
  %109 = getelementptr inbounds ptr, ptr %107, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = load i64, ptr %15, align 8, !tbaa !13
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store double %105, ptr %112, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %87
  %114 = load i64, ptr %16, align 8, !tbaa !13
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %16, align 8, !tbaa !13
  br label %83, !llvm.loop !16

116:                                              ; preds = %83
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %15, align 8, !tbaa !13
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %15, align 8, !tbaa !13
  br label %66, !llvm.loop !18

120:                                              ; preds = %66
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %121

121:                                              ; preds = %142, %120
  %122 = load i64, ptr %15, align 8, !tbaa !13
  %123 = load i64, ptr %13, align 8, !tbaa !13
  %124 = icmp sle i64 %122, %123
  br i1 %124, label %125, label %145

125:                                              ; preds = %121
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %126

126:                                              ; preds = %138, %125
  %127 = load i64, ptr %16, align 8, !tbaa !13
  %128 = load i64, ptr %13, align 8, !tbaa !13
  %129 = icmp sle i64 %127, %128
  br i1 %129, label %130, label %141

130:                                              ; preds = %126
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load i64, ptr %15, align 8, !tbaa !13
  %134 = getelementptr inbounds ptr, ptr %132, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = load i64, ptr %16, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  store double 0.000000e+00, ptr %137, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %130
  %139 = load i64, ptr %16, align 8, !tbaa !13
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %16, align 8, !tbaa !13
  br label %126, !llvm.loop !19

141:                                              ; preds = %126
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %15, align 8, !tbaa !13
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %15, align 8, !tbaa !13
  br label %121, !llvm.loop !20

145:                                              ; preds = %121
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %146

146:                                              ; preds = %176, %145
  %147 = load i64, ptr %15, align 8, !tbaa !13
  %148 = load i64, ptr %13, align 8, !tbaa !13
  %149 = icmp sle i64 %147, %148
  br i1 %149, label %150, label %179

150:                                              ; preds = %146
  %151 = load i64, ptr %15, align 8, !tbaa !13
  store i64 %151, ptr %16, align 8, !tbaa !13
  br label %152

152:                                              ; preds = %172, %150
  %153 = load i64, ptr %16, align 8, !tbaa !13
  %154 = load i64, ptr %13, align 8, !tbaa !13
  %155 = icmp sle i64 %153, %154
  br i1 %155, label %156, label %175

156:                                              ; preds = %152
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !15
  %159 = load i64, ptr %15, align 8, !tbaa !13
  %160 = getelementptr inbounds ptr, ptr %158, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = load i64, ptr %16, align 8, !tbaa !13
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %7, i32 0, i32 6
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = load i64, ptr %15, align 8, !tbaa !13
  %168 = getelementptr inbounds ptr, ptr %166, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !9
  %170 = load i64, ptr %16, align 8, !tbaa !13
  %171 = getelementptr inbounds double, ptr %169, i64 %170
  store double %164, ptr %171, align 8, !tbaa !11
  br label %172

172:                                              ; preds = %156
  %173 = load i64, ptr %16, align 8, !tbaa !13
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %16, align 8, !tbaa !13
  br label %152, !llvm.loop !21

175:                                              ; preds = %152
  br label %176

176:                                              ; preds = %175
  %177 = load i64, ptr %15, align 8, !tbaa !13
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %15, align 8, !tbaa !13
  br label %146, !llvm.loop !22

179:                                              ; preds = %146
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %180

180:                                              ; preds = %201, %179
  %181 = load i64, ptr %15, align 8, !tbaa !13
  %182 = load i64, ptr %13, align 8, !tbaa !13
  %183 = icmp sle i64 %181, %182
  br i1 %183, label %184, label %204

184:                                              ; preds = %180
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %185

185:                                              ; preds = %197, %184
  %186 = load i64, ptr %16, align 8, !tbaa !13
  %187 = load i64, ptr %13, align 8, !tbaa !13
  %188 = icmp sle i64 %186, %187
  br i1 %188, label %189, label %200

189:                                              ; preds = %185
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  %192 = load i64, ptr %15, align 8, !tbaa !13
  %193 = getelementptr inbounds ptr, ptr %191, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = load i64, ptr %16, align 8, !tbaa !13
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store double 0.000000e+00, ptr %196, align 8, !tbaa !11
  br label %197

197:                                              ; preds = %189
  %198 = load i64, ptr %16, align 8, !tbaa !13
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %16, align 8, !tbaa !13
  br label %185, !llvm.loop !23

200:                                              ; preds = %185
  br label %201

201:                                              ; preds = %200
  %202 = load i64, ptr %15, align 8, !tbaa !13
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %15, align 8, !tbaa !13
  br label %180, !llvm.loop !24

204:                                              ; preds = %180
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %205

205:                                              ; preds = %234, %204
  %206 = load i64, ptr %15, align 8, !tbaa !13
  %207 = load i64, ptr %13, align 8, !tbaa !13
  %208 = icmp sle i64 %206, %207
  br i1 %208, label %209, label %237

209:                                              ; preds = %205
  store i64 1, ptr %16, align 8, !tbaa !13
  br label %210

210:                                              ; preds = %230, %209
  %211 = load i64, ptr %16, align 8, !tbaa !13
  %212 = load i64, ptr %15, align 8, !tbaa !13
  %213 = icmp sle i64 %211, %212
  br i1 %213, label %214, label %233

214:                                              ; preds = %210
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %216 = load ptr, ptr %215, align 8, !tbaa !15
  %217 = load i64, ptr %15, align 8, !tbaa !13
  %218 = getelementptr inbounds ptr, ptr %216, i64 %217
  %219 = load ptr, ptr %218, align 8, !tbaa !9
  %220 = load i64, ptr %16, align 8, !tbaa !13
  %221 = getelementptr inbounds double, ptr %219, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %8, i32 0, i32 6
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = load i64, ptr %15, align 8, !tbaa !13
  %226 = getelementptr inbounds ptr, ptr %224, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !9
  %228 = load i64, ptr %16, align 8, !tbaa !13
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double %222, ptr %229, align 8, !tbaa !11
  br label %230

230:                                              ; preds = %214
  %231 = load i64, ptr %16, align 8, !tbaa !13
  %232 = add nsw i64 %231, 1
  store i64 %232, ptr %16, align 8, !tbaa !13
  br label %210, !llvm.loop !25

233:                                              ; preds = %210
  br label %234

234:                                              ; preds = %233
  %235 = load i64, ptr %15, align 8, !tbaa !13
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %15, align 8, !tbaa !13
  br label %205, !llvm.loop !26

237:                                              ; preds = %205
  store i64 1, ptr %17, align 8, !tbaa !13
  br label %238

238:                                              ; preds = %375, %237
  %239 = load i64, ptr %17, align 8, !tbaa !13
  %240 = load i64, ptr %13, align 8, !tbaa !13
  %241 = icmp sle i64 %239, %240
  br i1 %241, label %242, label %378

242:                                              ; preds = %238
  %243 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %243, ptr %18, align 8, !tbaa !13
  br label %244

244:                                              ; preds = %371, %242
  %245 = load i64, ptr %18, align 8, !tbaa !13
  %246 = load i64, ptr %13, align 8, !tbaa !13
  %247 = icmp sle i64 %245, %246
  br i1 %247, label %248, label %374

248:                                              ; preds = %244
  store i64 1, ptr %15, align 8, !tbaa !13
  br label %249

249:                                              ; preds = %264, %248
  %250 = load i64, ptr %15, align 8, !tbaa !13
  %251 = load i64, ptr %18, align 8, !tbaa !13
  %252 = load i64, ptr %17, align 8, !tbaa !13
  %253 = sub nsw i64 %251, %252
  %254 = add nsw i64 %253, 1
  %255 = icmp sle i64 %250, %254
  br i1 %255, label %256, label %267

256:                                              ; preds = %249
  %257 = load ptr, ptr %4, align 8, !tbaa !9
  %258 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %257)
  %259 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %258, double -1.000000e+00)
  %260 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !15
  %262 = load i64, ptr %15, align 8, !tbaa !13
  %263 = getelementptr inbounds double, ptr %261, i64 %262
  store double %259, ptr %263, align 8, !tbaa !11
  br label %264

264:                                              ; preds = %256
  %265 = load i64, ptr %15, align 8, !tbaa !13
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %15, align 8, !tbaa !13
  br label %249, !llvm.loop !27

267:                                              ; preds = %249
  %268 = load ptr, ptr %4, align 8, !tbaa !9
  %269 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %268)
  %270 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %269, double -1.000000e+00)
  store double %270, ptr %22, align 8, !tbaa !11
  %271 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %271, ptr %15, align 8, !tbaa !13
  br label %272

272:                                              ; preds = %301, %267
  %273 = load i64, ptr %15, align 8, !tbaa !13
  %274 = load i64, ptr %18, align 8, !tbaa !13
  %275 = icmp sle i64 %273, %274
  br i1 %275, label %276, label %304

276:                                              ; preds = %272
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %6, i32 0, i32 6
  %278 = load ptr, ptr %277, align 8, !tbaa !15
  %279 = load i64, ptr %15, align 8, !tbaa !13
  %280 = getelementptr inbounds ptr, ptr %278, i64 %279
  %281 = load ptr, ptr %280, align 8, !tbaa !9
  %282 = load i64, ptr %17, align 8, !tbaa !13
  %283 = getelementptr inbounds double, ptr %281, i64 %282
  %284 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %285 = load ptr, ptr %284, align 8, !tbaa !15
  %286 = getelementptr inbounds double, ptr %285, i64 1
  %287 = load i64, ptr %17, align 8, !tbaa !13
  %288 = load i64, ptr %18, align 8, !tbaa !13
  %289 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %287, i64 noundef %288)
  %290 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %283, i64 noundef 1, ptr noundef %286, i64 noundef 1, i64 noundef %289)
  store double %290, ptr %23, align 8, !tbaa !11
  %291 = load double, ptr %22, align 8, !tbaa !11
  %292 = load double, ptr %23, align 8, !tbaa !11
  %293 = fmul double %291, %292
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !15
  %296 = load i64, ptr %15, align 8, !tbaa !13
  %297 = load i64, ptr %17, align 8, !tbaa !13
  %298 = sub nsw i64 %296, %297
  %299 = add nsw i64 %298, 1
  %300 = getelementptr inbounds double, ptr %295, i64 %299
  store double %293, ptr %300, align 8, !tbaa !11
  br label %301

301:                                              ; preds = %276
  %302 = load i64, ptr %15, align 8, !tbaa !13
  %303 = add nsw i64 %302, 1
  store i64 %303, ptr %15, align 8, !tbaa !13
  br label %272, !llvm.loop !28

304:                                              ; preds = %272
  %305 = load i64, ptr %17, align 8, !tbaa !13
  %306 = load i64, ptr %18, align 8, !tbaa !13
  %307 = load double, ptr %22, align 8, !tbaa !11
  %308 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %7, i1 noundef zeroext true, i64 noundef %305, i64 noundef %306, ptr noundef %9, double noundef %307, ptr noundef %11, ptr noundef %308)
  %309 = load i64, ptr %17, align 8, !tbaa !13
  %310 = load i64, ptr %18, align 8, !tbaa !13
  %311 = load double, ptr %22, align 8, !tbaa !11
  %312 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef %8, i1 noundef zeroext false, i64 noundef %309, i64 noundef %310, ptr noundef %9, double noundef %311, ptr noundef %12, ptr noundef %312)
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !15
  %315 = getelementptr inbounds double, ptr %314, i64 1
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %317 = load ptr, ptr %316, align 8, !tbaa !15
  %318 = getelementptr inbounds double, ptr %317, i64 1
  %319 = load i64, ptr %18, align 8, !tbaa !13
  %320 = load i64, ptr %17, align 8, !tbaa !13
  %321 = sub nsw i64 %319, %320
  %322 = add nsw i64 %321, 1
  %323 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %322)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %315, i64 noundef 1, ptr noundef %318, i64 noundef 1, i64 noundef %323)
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %325 = load ptr, ptr %324, align 8, !tbaa !15
  %326 = getelementptr inbounds double, ptr %325, i64 1
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !15
  %329 = getelementptr inbounds double, ptr %328, i64 1
  %330 = load i64, ptr %18, align 8, !tbaa !13
  %331 = load i64, ptr %17, align 8, !tbaa !13
  %332 = sub nsw i64 %330, %331
  %333 = add nsw i64 %332, 1
  %334 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %333)
  %335 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %326, i64 noundef 1, ptr noundef %329, i64 noundef 1, i64 noundef %334)
  store double %335, ptr %23, align 8, !tbaa !11
  %336 = load double, ptr %20, align 8, !tbaa !11
  %337 = load double, ptr %23, align 8, !tbaa !11
  %338 = load ptr, ptr %4, align 8, !tbaa !9
  %339 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %337, ptr noundef %338)
  %340 = load ptr, ptr %4, align 8, !tbaa !9
  %341 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %336, double noundef %339, ptr noundef %340)
  store double %341, ptr %20, align 8, !tbaa !11
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !15
  %344 = getelementptr inbounds double, ptr %343, i64 1
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !15
  %347 = getelementptr inbounds double, ptr %346, i64 1
  %348 = load i64, ptr %18, align 8, !tbaa !13
  %349 = load i64, ptr %17, align 8, !tbaa !13
  %350 = sub nsw i64 %348, %349
  %351 = add nsw i64 %350, 1
  %352 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %351)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %344, i64 noundef 1, ptr noundef %347, i64 noundef 1, i64 noundef %352)
  %353 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !15
  %355 = getelementptr inbounds double, ptr %354, i64 1
  %356 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %357 = load ptr, ptr %356, align 8, !tbaa !15
  %358 = getelementptr inbounds double, ptr %357, i64 1
  %359 = load i64, ptr %18, align 8, !tbaa !13
  %360 = load i64, ptr %17, align 8, !tbaa !13
  %361 = sub nsw i64 %359, %360
  %362 = add nsw i64 %361, 1
  %363 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %362)
  %364 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %355, i64 noundef 1, ptr noundef %358, i64 noundef 1, i64 noundef %363)
  store double %364, ptr %23, align 8, !tbaa !11
  %365 = load double, ptr %20, align 8, !tbaa !11
  %366 = load double, ptr %23, align 8, !tbaa !11
  %367 = load ptr, ptr %4, align 8, !tbaa !9
  %368 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %366, ptr noundef %367)
  %369 = load ptr, ptr %4, align 8, !tbaa !9
  %370 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %365, double noundef %368, ptr noundef %369)
  store double %370, ptr %20, align 8, !tbaa !11
  br label %371

371:                                              ; preds = %304
  %372 = load i64, ptr %18, align 8, !tbaa !13
  %373 = add nsw i64 %372, 1
  store i64 %373, ptr %18, align 8, !tbaa !13
  br label %244, !llvm.loop !29

374:                                              ; preds = %244
  br label %375

375:                                              ; preds = %374
  %376 = load i64, ptr %17, align 8, !tbaa !13
  %377 = add nsw i64 %376, 1
  store i64 %377, ptr %17, align 8, !tbaa !13
  br label %238, !llvm.loop !30

378:                                              ; preds = %238
  br label %379

379:                                              ; preds = %378
  %380 = load i64, ptr %13, align 8, !tbaa !13
  %381 = add nsw i64 %380, 1
  store i64 %381, ptr %13, align 8, !tbaa !13
  br label %34, !llvm.loop !31

382:                                              ; preds = %34
  %383 = load double, ptr %20, align 8, !tbaa !11
  %384 = load double, ptr %21, align 8, !tbaa !11
  %385 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %383, double noundef %384)
  %386 = zext i1 %385 to i8
  store i8 %386, ptr %19, align 1, !tbaa !5
  %387 = load i8, ptr %3, align 1, !tbaa !5, !range !32, !noundef !33
  %388 = trunc i8 %387 to i1
  br i1 %388, label %403, label %389

389:                                              ; preds = %382
  %390 = call i32 (ptr, ...) @printf(ptr noundef @.str.274)
  %391 = load double, ptr %20, align 8, !tbaa !11
  %392 = call i32 (ptr, ...) @printf(ptr noundef @.str.273, double noundef %391)
  %393 = load double, ptr %21, align 8, !tbaa !11
  %394 = call i32 (ptr, ...) @printf(ptr noundef @.str.196, double noundef %393)
  %395 = load i8, ptr %19, align 1, !tbaa !5, !range !32, !noundef !33
  %396 = trunc i8 %395 to i1
  br i1 %396, label %397, label %399

397:                                              ; preds = %389
  %398 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %401

399:                                              ; preds = %389
  %400 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %401

401:                                              ; preds = %399, %397
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %403

403:                                              ; preds = %401, %382
  %404 = load i8, ptr %19, align 1, !tbaa !5, !range !32, !noundef !33
  %405 = trunc i8 %404 to i1
  %406 = xor i1 %405, true
  %407 = zext i1 %406 to i8
  store i8 %407, ptr %24, align 1, !tbaa !5
  %408 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %408)
  %409 = load i8, ptr %24, align 1, !tbaa !5, !range !32, !noundef !33
  %410 = trunc i8 %409 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 1, 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 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 80, 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 %410
}

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr 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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !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 = !{i8 0, i8 2}
!33 = !{}


; 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 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = 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.196 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [24 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

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

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

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #1

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testsblasbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %5 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %11 = getelementptr inbounds i8, ptr %4, i64 72
  %12 = getelementptr inbounds i8, ptr %5, i64 72
  %13 = getelementptr inbounds i8, ptr %6, i64 72
  %14 = getelementptr inbounds i8, ptr %7, i64 56
  %15 = getelementptr inbounds i8, ptr %8, i64 56
  %16 = getelementptr inbounds i8, ptr %9, i64 56
  %17 = getelementptr inbounds i8, ptr %10, i64 56
  br label %18

.loopexit171:                                     ; preds = %216
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %exitcond221.not = icmp eq i64 %indvars.iv.next210, 13
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond221.not, label %218, label %18, !llvm.loop !5

18:                                               ; preds = %2, %.loopexit171
  %indvar = phi i64 [ 0, %2 ], [ %indvar.next, %.loopexit171 ]
  %indvars.iv209 = phi i64 [ 4, %2 ], [ %indvars.iv.next210, %.loopexit171 ]
  %indvars.iv = phi i64 [ 3, %2 ], [ %indvars.iv.next, %.loopexit171 ]
  %.0200 = phi i64 [ 2, %2 ], [ %21, %.loopexit171 ]
  %.0146199 = phi double [ 0.000000e+00, %2 ], [ %214, %.loopexit171 ]
  %19 = add i64 %indvar, 1
  %20 = add i64 %indvar, 1
  %21 = add nuw nsw i64 %.0200, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %21, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %21, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %21, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %21, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %21, ptr noundef %1)
  br label %23

.loopexit:                                        ; preds = %.lr.ph, %23
  %exitcond.not = icmp eq i64 %30, %indvars.iv
  br i1 %exitcond.not, label %.preheader169.preheader, label %23, !llvm.loop !7

.preheader169.preheader:                          ; preds = %.loopexit
  %xtraiter = and i64 %.0200, 3
  %22 = icmp ult i64 %20, 3
  %unroll_iter = and i64 %.0200, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader169

23:                                               ; preds = %18, %.loopexit
  %.0140178 = phi i64 [ 1, %18 ], [ %30, %.loopexit ]
  %24 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %25 = call double @llvm.fmuladd.f64(double %24, double 2.000000e+00, double -1.000000e+00)
  %26 = load ptr, ptr %11, align 8, !tbaa !8
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.0140178
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds double, ptr %28, i64 %.0140178
  store double %25, ptr %29, align 8, !tbaa !13
  %30 = add nuw nsw i64 %.0140178, 1
  %.not164176.not = icmp ult i64 %.0140178, %.0200
  br i1 %.not164176.not, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %23, %.lr.ph
  %.0141177 = phi i64 [ %45, %.lr.ph ], [ %30, %23 ]
  %31 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %32 = call double @llvm.fmuladd.f64(double %31, double 2.000000e+00, double -1.000000e+00)
  %33 = load ptr, ptr %11, align 8, !tbaa !8
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0140178
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds double, ptr %35, i64 %.0141177
  store double %32, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %11, align 8, !tbaa !8
  %38 = getelementptr inbounds ptr, ptr %37, i64 %.0140178
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds double, ptr %39, i64 %.0141177
  %41 = load double, ptr %40, align 8, !tbaa !13
  %42 = getelementptr inbounds ptr, ptr %37, i64 %.0141177
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds double, ptr %43, i64 %.0140178
  store double %41, ptr %44, align 8, !tbaa !13
  %45 = add nuw nsw i64 %.0141177, 1
  %.not164.not = icmp ult i64 %.0141177, %.0200
  br i1 %.not164.not, label %.lr.ph, label %.loopexit, !llvm.loop !15

.preheader169:                                    ; preds = %.preheader169.preheader, %.epilog-lcssa
  %.1180 = phi i64 [ %71, %.epilog-lcssa ], [ 1, %.preheader169.preheader ]
  br i1 %22, label %.unr-lcssa, label %.preheader169.new

.preheader169.new:                                ; preds = %.preheader169, %.preheader169.new
  %.1142179 = phi i64 [ %65, %.preheader169.new ], [ 1, %.preheader169 ]
  %niter = phi i64 [ %niter.next.3, %.preheader169.new ], [ 0, %.preheader169 ]
  %46 = load ptr, ptr %12, align 8, !tbaa !8
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.1180
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds double, ptr %48, i64 %.1142179
  store double 0.000000e+00, ptr %49, align 8, !tbaa !13
  %50 = load ptr, ptr %12, align 8, !tbaa !8
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.1180
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds double, ptr %52, i64 %.1142179
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store double 0.000000e+00, ptr %54, align 8, !tbaa !13
  %55 = load ptr, ptr %12, align 8, !tbaa !8
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.1180
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds double, ptr %57, i64 %.1142179
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  store double 0.000000e+00, ptr %59, align 8, !tbaa !13
  %60 = load ptr, ptr %12, align 8, !tbaa !8
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.1180
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds double, ptr %62, i64 %.1142179
  %64 = getelementptr inbounds i8, ptr %63, i64 24
  store double 0.000000e+00, ptr %64, align 8, !tbaa !13
  %65 = add nuw nsw i64 %.1142179, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %.preheader169.new, !llvm.loop !16

.unr-lcssa:                                       ; preds = %.preheader169.new, %.preheader169
  %.1142179.unr = phi i64 [ 1, %.preheader169 ], [ %65, %.preheader169.new ]
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %.1142179.epil = phi i64 [ %70, %.epil.preheader ], [ %.1142179.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %66 = load ptr, ptr %12, align 8, !tbaa !8
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.1180
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds double, ptr %68, i64 %.1142179.epil
  store double 0.000000e+00, ptr %69, align 8, !tbaa !13
  %70 = add nuw nsw i64 %.1142179.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.epil.preheader, !llvm.loop !17

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %71 = add nuw nsw i64 %.1180, 1
  %exitcond202.not = icmp eq i64 %71, %indvars.iv
  br i1 %exitcond202.not, label %.preheader168.preheader, label %.preheader169, !llvm.loop !19

.preheader168.preheader:                          ; preds = %.epilog-lcssa
  %xtraiter222 = and i64 %.0200, 1
  %72 = icmp eq i64 %indvar, -1
  br i1 %72, label %.preheader167.preheader.unr-lcssa, label %.preheader168.preheader.new

.preheader168.preheader.new:                      ; preds = %.preheader168.preheader
  %unroll_iter225 = and i64 %.0200, 9223372036854775806
  br label %.preheader168

.preheader168:                                    ; preds = %96, %.preheader168.preheader.new
  %.2182 = phi i64 [ 1, %.preheader168.preheader.new ], [ %97, %96 ]
  %niter226 = phi i64 [ 0, %.preheader168.preheader.new ], [ %niter226.next.1, %96 ]
  br label %73

73:                                               ; preds = %.preheader168, %73
  %.2143181 = phi i64 [ %.2182, %.preheader168 ], [ %83, %73 ]
  %74 = load ptr, ptr %11, align 8, !tbaa !8
  %75 = getelementptr inbounds ptr, ptr %74, i64 %.2182
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds double, ptr %76, i64 %.2143181
  %78 = load double, ptr %77, align 8, !tbaa !13
  %79 = load ptr, ptr %12, align 8, !tbaa !8
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.2182
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds double, ptr %81, i64 %.2143181
  store double %78, ptr %82, align 8, !tbaa !13
  %83 = add nuw nsw i64 %.2143181, 1
  %.not162.not = icmp ult i64 %.2143181, %.0200
  br i1 %.not162.not, label %73, label %.preheader168.1, !llvm.loop !20

.preheader168.1:                                  ; preds = %73
  %84 = add nuw nsw i64 %.2182, 1
  br label %85

85:                                               ; preds = %85, %.preheader168.1
  %.2143181.1 = phi i64 [ %84, %.preheader168.1 ], [ %95, %85 ]
  %86 = load ptr, ptr %11, align 8, !tbaa !8
  %87 = getelementptr inbounds ptr, ptr %86, i64 %84
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds double, ptr %88, i64 %.2143181.1
  %90 = load double, ptr %89, align 8, !tbaa !13
  %91 = load ptr, ptr %12, align 8, !tbaa !8
  %92 = getelementptr inbounds ptr, ptr %91, i64 %84
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %93, i64 %.2143181.1
  store double %90, ptr %94, align 8, !tbaa !13
  %95 = add nuw nsw i64 %.2143181.1, 1
  %.not162.not.1 = icmp ult i64 %.2143181.1, %.0200
  br i1 %.not162.not.1, label %85, label %96, !llvm.loop !20

96:                                               ; preds = %85
  %97 = add nuw nsw i64 %.2182, 2
  %niter226.next.1 = add i64 %niter226, 2
  %niter226.ncmp.1 = icmp eq i64 %niter226.next.1, %unroll_iter225
  br i1 %niter226.ncmp.1, label %.preheader167.preheader.unr-lcssa, label %.preheader168, !llvm.loop !21

.preheader167.preheader.unr-lcssa:                ; preds = %96, %.preheader168.preheader
  %.2182.unr = phi i64 [ 1, %.preheader168.preheader ], [ %97, %96 ]
  %lcmp.mod224.not = icmp eq i64 %xtraiter222, 0
  br i1 %lcmp.mod224.not, label %.preheader167.preheader, label %.preheader168.epil

.preheader168.epil:                               ; preds = %.preheader167.preheader.unr-lcssa, %.preheader168.epil
  %.2143181.epil = phi i64 [ %107, %.preheader168.epil ], [ %.2182.unr, %.preheader167.preheader.unr-lcssa ]
  %98 = load ptr, ptr %11, align 8, !tbaa !8
  %99 = getelementptr inbounds ptr, ptr %98, i64 %.2182.unr
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = getelementptr inbounds double, ptr %100, i64 %.2143181.epil
  %102 = load double, ptr %101, align 8, !tbaa !13
  %103 = load ptr, ptr %12, align 8, !tbaa !8
  %104 = getelementptr inbounds ptr, ptr %103, i64 %.2182.unr
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  %106 = getelementptr inbounds double, ptr %105, i64 %.2143181.epil
  store double %102, ptr %106, align 8, !tbaa !13
  %107 = add nuw nsw i64 %.2143181.epil, 1
  %.not162.not.epil = icmp ult i64 %.2143181.epil, %.0200
  br i1 %.not162.not.epil, label %.preheader168.epil, label %.preheader167.preheader, !llvm.loop !20

.preheader167.preheader:                          ; preds = %.preheader168.epil, %.preheader167.preheader.unr-lcssa
  %xtraiter229 = and i64 %.0200, 3
  %108 = icmp ult i64 %19, 3
  %unroll_iter233 = and i64 %.0200, 9223372036854775804
  %lcmp.mod231.not = icmp eq i64 %xtraiter229, 0
  br label %.preheader167

.preheader167:                                    ; preds = %.preheader167.preheader, %.epilog-lcssa232
  %.3184 = phi i64 [ %134, %.epilog-lcssa232 ], [ 1, %.preheader167.preheader ]
  br i1 %108, label %.unr-lcssa227, label %.preheader167.new

.preheader167.new:                                ; preds = %.preheader167, %.preheader167.new
  %.3144183 = phi i64 [ %128, %.preheader167.new ], [ 1, %.preheader167 ]
  %niter234 = phi i64 [ %niter234.next.3, %.preheader167.new ], [ 0, %.preheader167 ]
  %109 = load ptr, ptr %13, align 8, !tbaa !8
  %110 = getelementptr inbounds ptr, ptr %109, i64 %.3184
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = getelementptr inbounds double, ptr %111, i64 %.3144183
  store double 0.000000e+00, ptr %112, align 8, !tbaa !13
  %113 = load ptr, ptr %13, align 8, !tbaa !8
  %114 = getelementptr inbounds ptr, ptr %113, i64 %.3184
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds double, ptr %115, i64 %.3144183
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  store double 0.000000e+00, ptr %117, align 8, !tbaa !13
  %118 = load ptr, ptr %13, align 8, !tbaa !8
  %119 = getelementptr inbounds ptr, ptr %118, i64 %.3184
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds double, ptr %120, i64 %.3144183
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  store double 0.000000e+00, ptr %122, align 8, !tbaa !13
  %123 = load ptr, ptr %13, align 8, !tbaa !8
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.3184
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds double, ptr %125, i64 %.3144183
  %127 = getelementptr inbounds i8, ptr %126, i64 24
  store double 0.000000e+00, ptr %127, align 8, !tbaa !13
  %128 = add nuw nsw i64 %.3144183, 4
  %niter234.next.3 = add i64 %niter234, 4
  %niter234.ncmp.3 = icmp eq i64 %niter234.next.3, %unroll_iter233
  br i1 %niter234.ncmp.3, label %.unr-lcssa227, label %.preheader167.new, !llvm.loop !22

.unr-lcssa227:                                    ; preds = %.preheader167.new, %.preheader167
  %.3144183.unr = phi i64 [ 1, %.preheader167 ], [ %128, %.preheader167.new ]
  br i1 %lcmp.mod231.not, label %.epilog-lcssa232, label %.epil.preheader228

.epil.preheader228:                               ; preds = %.unr-lcssa227, %.epil.preheader228
  %.3144183.epil = phi i64 [ %133, %.epil.preheader228 ], [ %.3144183.unr, %.unr-lcssa227 ]
  %epil.iter230 = phi i64 [ %epil.iter230.next, %.epil.preheader228 ], [ 0, %.unr-lcssa227 ]
  %129 = load ptr, ptr %13, align 8, !tbaa !8
  %130 = getelementptr inbounds ptr, ptr %129, i64 %.3184
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds double, ptr %131, i64 %.3144183.epil
  store double 0.000000e+00, ptr %132, align 8, !tbaa !13
  %133 = add nuw nsw i64 %.3144183.epil, 1
  %epil.iter230.next = add i64 %epil.iter230, 1
  %epil.iter230.cmp.not = icmp eq i64 %epil.iter230.next, %xtraiter229
  br i1 %epil.iter230.cmp.not, label %.epilog-lcssa232, label %.epil.preheader228, !llvm.loop !23

.epilog-lcssa232:                                 ; preds = %.epil.preheader228, %.unr-lcssa227
  %134 = add nuw nsw i64 %.3184, 1
  %exitcond205.not = icmp eq i64 %134, %indvars.iv
  br i1 %exitcond205.not, label %.preheader166, label %.preheader167, !llvm.loop !24

.preheader166:                                    ; preds = %.epilog-lcssa232, %168
  %indvar237 = phi i64 [ %indvar.next238, %168 ], [ 0, %.epilog-lcssa232 ]
  %indvars.iv206 = phi i64 [ %indvars.iv.next207, %168 ], [ 2, %.epilog-lcssa232 ]
  %.4186 = phi i64 [ %169, %168 ], [ 1, %.epilog-lcssa232 ]
  %135 = icmp eq i64 %indvar237, 0
  br i1 %135, label %.unr-lcssa235, label %.preheader166.new

.preheader166.new:                                ; preds = %.preheader166
  %136 = add i64 %indvar237, 1
  %unroll_iter243 = and i64 %136, -2
  br label %137

137:                                              ; preds = %137, %.preheader166.new
  %.4145185 = phi i64 [ 1, %.preheader166.new ], [ %157, %137 ]
  %niter244 = phi i64 [ 0, %.preheader166.new ], [ %niter244.next.1, %137 ]
  %138 = load ptr, ptr %11, align 8, !tbaa !8
  %139 = getelementptr inbounds ptr, ptr %138, i64 %.4186
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = getelementptr inbounds double, ptr %140, i64 %.4145185
  %142 = load double, ptr %141, align 8, !tbaa !13
  %143 = load ptr, ptr %13, align 8, !tbaa !8
  %144 = getelementptr inbounds ptr, ptr %143, i64 %.4186
  %145 = load ptr, ptr %144, align 8, !tbaa !11
  %146 = getelementptr inbounds double, ptr %145, i64 %.4145185
  store double %142, ptr %146, align 8, !tbaa !13
  %147 = add nuw nsw i64 %.4145185, 1
  %148 = load ptr, ptr %11, align 8, !tbaa !8
  %149 = getelementptr inbounds ptr, ptr %148, i64 %.4186
  %150 = load ptr, ptr %149, align 8, !tbaa !11
  %151 = getelementptr inbounds double, ptr %150, i64 %147
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = load ptr, ptr %13, align 8, !tbaa !8
  %154 = getelementptr inbounds ptr, ptr %153, i64 %.4186
  %155 = load ptr, ptr %154, align 8, !tbaa !11
  %156 = getelementptr inbounds double, ptr %155, i64 %147
  store double %152, ptr %156, align 8, !tbaa !13
  %157 = add nuw nsw i64 %.4145185, 2
  %niter244.next.1 = add i64 %niter244, 2
  %niter244.ncmp.1 = icmp eq i64 %niter244.next.1, %unroll_iter243
  br i1 %niter244.ncmp.1, label %.unr-lcssa235, label %137, !llvm.loop !25

.unr-lcssa235:                                    ; preds = %137, %.preheader166
  %.4145185.unr = phi i64 [ 1, %.preheader166 ], [ %157, %137 ]
  %158 = and i64 %indvar237, 1
  %lcmp.mod241.not.not = icmp eq i64 %158, 0
  br i1 %lcmp.mod241.not.not, label %.epilog-lcssa242, label %168

.epilog-lcssa242:                                 ; preds = %.unr-lcssa235
  %159 = load ptr, ptr %11, align 8, !tbaa !8
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.4186
  %161 = load ptr, ptr %160, align 8, !tbaa !11
  %162 = getelementptr inbounds double, ptr %161, i64 %.4145185.unr
  %163 = load double, ptr %162, align 8, !tbaa !13
  %164 = load ptr, ptr %13, align 8, !tbaa !8
  %165 = getelementptr inbounds ptr, ptr %164, i64 %.4186
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  %167 = getelementptr inbounds double, ptr %166, i64 %.4145185.unr
  store double %163, ptr %167, align 8, !tbaa !13
  br label %168

168:                                              ; preds = %.unr-lcssa235, %.epilog-lcssa242
  %169 = add nuw nsw i64 %.4186, 1
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond211.not = icmp eq i64 %indvars.iv.next207, %indvars.iv209
  %indvar.next238 = add i64 %indvar237, 1
  br i1 %exitcond211.not, label %.preheader165, label %.preheader166, !llvm.loop !26

.preheader165:                                    ; preds = %168, %216
  %indvars.iv215 = phi i64 [ %indvars.iv.next216, %216 ], [ 2, %168 ]
  %.1147198 = phi double [ %214, %216 ], [ %.0146199, %168 ]
  %.0150197 = phi i64 [ %217, %216 ], [ 1, %168 ]
  br label %.lr.ph189.preheader

.lr.ph189.preheader:                              ; preds = %._crit_edge194, %.preheader165
  %indvars.iv217 = phi i64 [ %indvars.iv215, %.preheader165 ], [ %indvars.iv.next218, %._crit_edge194 ]
  %indvars.iv212 = phi i64 [ 2, %.preheader165 ], [ %indvars.iv.next213, %._crit_edge194 ]
  %.2148196 = phi double [ %.1147198, %.preheader165 ], [ %214, %._crit_edge194 ]
  %.0149195 = phi i64 [ %.0150197, %.preheader165 ], [ %215, %._crit_edge194 ]
  %170 = sub nuw nsw i64 %.0149195, %.0150197
  %171 = add nuw nsw i64 %170, 1
  br label %.lr.ph189

.lr.ph189:                                        ; preds = %.lr.ph189.preheader, %.lr.ph189
  %.5188 = phi i64 [ %176, %.lr.ph189 ], [ 1, %.lr.ph189.preheader ]
  %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 %14, align 8, !tbaa !8
  %175 = getelementptr inbounds double, ptr %174, i64 %.5188
  store double %173, ptr %175, align 8, !tbaa !13
  %176 = add nuw nsw i64 %.5188, 1
  %exitcond214 = icmp eq i64 %176, %indvars.iv212
  br i1 %exitcond214, label %._crit_edge, label %.lr.ph189, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph189
  %177 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %178 = call double @llvm.fmuladd.f64(double %177, double 2.000000e+00, double -1.000000e+00)
  %.not159190 = icmp ugt i64 %.0150197, %.0149195
  br i1 %.not159190, label %._crit_edge194, label %.lr.ph193

.lr.ph193:                                        ; preds = %._crit_edge, %.lr.ph193
  %.6191 = phi i64 [ %192, %.lr.ph193 ], [ %.0150197, %._crit_edge ]
  %179 = load ptr, ptr %11, align 8, !tbaa !8
  %180 = getelementptr inbounds ptr, ptr %179, i64 %.6191
  %181 = load ptr, ptr %180, align 8, !tbaa !11
  %182 = getelementptr inbounds double, ptr %181, i64 %.0150197
  %183 = load ptr, ptr %14, align 8, !tbaa !8
  %184 = getelementptr inbounds i8, ptr %183, i64 8
  %185 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef %.0150197, i64 noundef %.0149195)
  %186 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef nonnull %182, i64 noundef 1, ptr noundef nonnull %184, i64 noundef 1, i64 noundef %185)
  %187 = fmul double %178, %186
  %188 = load ptr, ptr %15, align 8, !tbaa !8
  %189 = sub nuw nsw i64 %.6191, %.0150197
  %190 = getelementptr double, ptr %188, i64 %189
  %191 = getelementptr i8, ptr %190, i64 8
  store double %187, ptr %191, align 8, !tbaa !13
  %192 = add nuw nsw i64 %.6191, 1
  %exitcond219.not = icmp eq i64 %192, %indvars.iv217
  br i1 %exitcond219.not, label %._crit_edge194, label %.lr.ph193, !llvm.loop !28

._crit_edge194:                                   ; preds = %.lr.ph193, %._crit_edge
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef nonnull %5, i1 noundef zeroext true, i64 noundef %.0150197, i64 noundef %.0149195, ptr noundef nonnull %7, double noundef %178, ptr noundef nonnull %9, ptr noundef %1)
  call void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef nonnull %6, i1 noundef zeroext false, i64 noundef %.0150197, i64 noundef %.0149195, ptr noundef nonnull %7, double noundef %178, ptr noundef nonnull %10, ptr noundef %1)
  %193 = load ptr, ptr %16, align 8, !tbaa !8
  %194 = getelementptr inbounds i8, ptr %193, i64 8
  %195 = load ptr, ptr %15, align 8, !tbaa !8
  %196 = getelementptr inbounds i8, ptr %195, i64 8
  %197 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %171)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef nonnull %194, i64 noundef 1, ptr noundef nonnull %196, i64 noundef 1, i64 noundef %197)
  %198 = load ptr, ptr %16, align 8, !tbaa !8
  %199 = getelementptr inbounds i8, ptr %198, i64 8
  %200 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %171)
  %201 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef nonnull %199, i64 noundef 1, ptr noundef nonnull %199, i64 noundef 1, i64 noundef %200)
  %202 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %201, ptr noundef %1)
  %203 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2148196, double noundef %202, ptr noundef %1)
  %204 = load ptr, ptr %17, align 8, !tbaa !8
  %205 = getelementptr inbounds i8, ptr %204, i64 8
  %206 = load ptr, ptr %15, align 8, !tbaa !8
  %207 = getelementptr inbounds i8, ptr %206, i64 8
  %208 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %171)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef nonnull %205, i64 noundef 1, ptr noundef nonnull %207, i64 noundef 1, i64 noundef %208)
  %209 = load ptr, ptr %17, align 8, !tbaa !8
  %210 = getelementptr inbounds i8, ptr %209, i64 8
  %211 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 1, i64 noundef %171)
  %212 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef nonnull %210, i64 noundef 1, ptr noundef nonnull %210, i64 noundef 1, i64 noundef %211)
  %213 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %212, ptr noundef %1)
  %214 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %203, double noundef %213, ptr noundef %1)
  %215 = add nuw nsw i64 %.0149195, 1
  %.not157.not = icmp ult i64 %.0149195, %.0200
  %indvars.iv.next213 = add nuw nsw i64 %indvars.iv212, 1
  %indvars.iv.next218 = add nuw nsw i64 %indvars.iv217, 1
  br i1 %.not157.not, label %.lr.ph189.preheader, label %216, !llvm.loop !29

216:                                              ; preds = %._crit_edge194
  %217 = add nuw nsw i64 %.0150197, 1
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215, 1
  %exitcond220.not = icmp eq i64 %indvars.iv.next216, %indvars.iv209
  br i1 %exitcond220.not, label %.loopexit171, label %.preheader165, !llvm.loop !30

218:                                              ; preds = %.loopexit171
  %219 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %214, double noundef 5.000000e-13)
  br i1 %0, label %226, label %220

220:                                              ; preds = %218
  %221 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.274)
  %222 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.273, double noundef %214)
  %223 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.196, double noundef 5.000000e-13)
  %.str.1..str.2 = select i1 %219, ptr @.str.1, ptr @.str.2
  %224 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %225 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %226

226:                                              ; preds = %220, %218
  %227 = xor i1 %219, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %227
}

declare void @_ZN11alglib_impl29symmetricmatrixvectormultiplyEPNS_9ae_matrixEbllPNS_9ae_vectorEdS3_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, i64 noundef, i64 noundef, ptr noundef, double noundef, ptr 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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !9, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6}
!26 = distinct !{!26, !6}
!27 = distinct !{!27, !6}
!28 = distinct !{!28, !6}
!29 = distinct !{!29, !6}
!30 = distinct !{!30, !6}


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