; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z14testtrlinsolvebPN11alglib_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.256 = external hidden unnamed_addr constant [28 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 noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z14testtrlinsolvebPN11alglib_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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", 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 i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i8, align 1
  %28 = zext i1 %0 to i8
  store i8 %28, 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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 80, 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 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %29, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 80, 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)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, 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 i8 0, ptr %21, align 1, !tbaa !5
  store i64 15, ptr %6, align 8, !tbaa !11
  store i64 15, ptr %7, align 8, !tbaa !11
  store double 5.000000e-13, ptr %8, align 8, !tbaa !13
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %527, %2
  %35 = load i64, ptr %13, align 8, !tbaa !11
  %36 = load i64, ptr %6, align 8, !tbaa !11
  %37 = icmp sle i64 %35, %36
  br i1 %37, label %38, label %530

38:                                               ; preds = %34
  %39 = load i64, ptr %13, align 8, !tbaa !11
  %40 = sub nsw i64 %39, 1
  %41 = add nsw i64 %40, 1
  %42 = load i64, ptr %13, align 8, !tbaa !11
  %43 = sub nsw i64 %42, 1
  %44 = add nsw i64 %43, 1
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %41, i64 noundef %44, ptr noundef %45)
  %46 = load i64, ptr %13, align 8, !tbaa !11
  %47 = sub nsw i64 %46, 1
  %48 = add nsw i64 %47, 1
  %49 = load i64, ptr %13, align 8, !tbaa !11
  %50 = sub nsw i64 %49, 1
  %51 = add nsw i64 %50, 1
  %52 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %10, i64 noundef %48, i64 noundef %51, ptr noundef %52)
  %53 = load i64, ptr %13, align 8, !tbaa !11
  %54 = sub nsw i64 %53, 1
  %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 %11, i64 noundef %55, ptr noundef %56)
  %57 = load i64, ptr %13, align 8, !tbaa !11
  %58 = sub nsw i64 %57, 1
  %59 = add nsw i64 %58, 1
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %59, ptr noundef %60)
  store i64 1, ptr %14, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %523, %38
  %62 = load i64, ptr %14, align 8, !tbaa !11
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = icmp sle i64 %62, %63
  br i1 %64, label %65, label %526

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

66:                                               ; preds = %519, %65
  %67 = load i64, ptr %17, align 8, !tbaa !11
  %68 = icmp sle i64 %67, 1
  br i1 %68, label %69, label %522

69:                                               ; preds = %66
  store i64 0, ptr %18, align 8, !tbaa !11
  br label %70

70:                                               ; preds = %515, %69
  %71 = load i64, ptr %18, align 8, !tbaa !11
  %72 = icmp sle i64 %71, 1
  br i1 %72, label %73, label %518

73:                                               ; preds = %70
  store i64 0, ptr %19, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %511, %73
  %75 = load i64, ptr %19, align 8, !tbaa !11
  %76 = icmp sle i64 %75, 1
  br i1 %76, label %77, label %514

77:                                               ; preds = %74
  store i64 0, ptr %20, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %507, %77
  %79 = load i64, ptr %20, align 8, !tbaa !11
  %80 = icmp sle i64 %79, 2
  br i1 %80, label %81, label %510

81:                                               ; preds = %78
  %82 = load i64, ptr %17, align 8, !tbaa !11
  %83 = icmp eq i64 %82, 0
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %22, align 1, !tbaa !5
  %85 = load i64, ptr %18, align 8, !tbaa !11
  %86 = icmp eq i64 %85, 0
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %24, align 1, !tbaa !5
  %88 = load i64, ptr %19, align 8, !tbaa !11
  %89 = icmp eq i64 %88, 0
  %90 = zext i1 %89 to i8
  store i8 %90, ptr %23, align 1, !tbaa !5
  %91 = load i64, ptr %20, align 8, !tbaa !11
  %92 = icmp eq i64 %91, 2
  br i1 %92, label %93, label %97

93:                                               ; preds = %81
  %94 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %97

96:                                               ; preds = %93
  br label %507

97:                                               ; preds = %93, %81
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %128, %97
  %99 = load i64, ptr %15, align 8, !tbaa !11
  %100 = load i64, ptr %13, align 8, !tbaa !11
  %101 = sub nsw i64 %100, 1
  %102 = icmp sle i64 %99, %101
  br i1 %102, label %103, label %131

103:                                              ; preds = %98
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %104

104:                                              ; preds = %124, %103
  %105 = load i64, ptr %16, align 8, !tbaa !11
  %106 = load i64, ptr %13, align 8, !tbaa !11
  %107 = sub nsw i64 %106, 1
  %108 = icmp sle i64 %105, %107
  br i1 %108, label %109, label %127

109:                                              ; preds = %104
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  %112 = load i64, ptr %15, align 8, !tbaa !11
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = load i64, ptr %16, align 8, !tbaa !11
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double 0.000000e+00, ptr %116, align 8, !tbaa !13
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !17
  %119 = load i64, ptr %15, align 8, !tbaa !11
  %120 = getelementptr inbounds ptr, ptr %118, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = load i64, ptr %16, align 8, !tbaa !11
  %123 = getelementptr inbounds double, ptr %121, i64 %122
  store double 0.000000e+00, ptr %123, align 8, !tbaa !13
  br label %124

124:                                              ; preds = %109
  %125 = load i64, ptr %16, align 8, !tbaa !11
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %16, align 8, !tbaa !11
  br label %104, !llvm.loop !18

127:                                              ; preds = %104
  br label %128

128:                                              ; preds = %127
  %129 = load i64, ptr %15, align 8, !tbaa !11
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %15, align 8, !tbaa !11
  br label %98, !llvm.loop !20

131:                                              ; preds = %98
  %132 = load i8, ptr %22, align 1, !tbaa !5, !range !15, !noundef !16
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %213

134:                                              ; preds = %131
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %135

135:                                              ; preds = %209, %134
  %136 = load i64, ptr %15, align 8, !tbaa !11
  %137 = load i64, ptr %13, align 8, !tbaa !11
  %138 = sub nsw i64 %137, 1
  %139 = icmp sle i64 %136, %138
  br i1 %139, label %140, label %212

140:                                              ; preds = %135
  %141 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %141, ptr %16, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %174, %140
  %143 = load i64, ptr %16, align 8, !tbaa !11
  %144 = load i64, ptr %13, align 8, !tbaa !11
  %145 = sub nsw i64 %144, 1
  %146 = icmp sle i64 %143, %145
  br i1 %146, label %147, label %177

147:                                              ; preds = %142
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  %149 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %148)
  %150 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %149, double -1.000000e+00)
  %151 = fmul double 9.000000e-01, %150
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %153 = load ptr, ptr %152, align 8, !tbaa !17
  %154 = load i64, ptr %15, align 8, !tbaa !11
  %155 = getelementptr inbounds ptr, ptr %153, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = load i64, ptr %16, align 8, !tbaa !11
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  store double %151, ptr %158, align 8, !tbaa !13
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %160 = load ptr, ptr %159, align 8, !tbaa !17
  %161 = load i64, ptr %15, align 8, !tbaa !11
  %162 = getelementptr inbounds ptr, ptr %160, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = load i64, ptr %16, align 8, !tbaa !11
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !13
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !17
  %169 = load i64, ptr %15, align 8, !tbaa !11
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  %172 = load i64, ptr %16, align 8, !tbaa !11
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store double %166, ptr %173, align 8, !tbaa !13
  br label %174

174:                                              ; preds = %147
  %175 = load i64, ptr %16, align 8, !tbaa !11
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %16, align 8, !tbaa !11
  br label %142, !llvm.loop !21

177:                                              ; preds = %142
  %178 = load ptr, ptr %4, align 8, !tbaa !9
  %179 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %178)
  %180 = mul nsw i64 2, %179
  %181 = sub nsw i64 %180, 1
  %182 = sitofp i64 %181 to double
  %183 = load ptr, ptr %4, align 8, !tbaa !9
  %184 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %183)
  %185 = fadd double 8.000000e-01, %184
  %186 = fmul double %182, %185
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %188 = load ptr, ptr %187, align 8, !tbaa !17
  %189 = load i64, ptr %15, align 8, !tbaa !11
  %190 = getelementptr inbounds ptr, ptr %188, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = load i64, ptr %15, align 8, !tbaa !11
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  store double %186, ptr %193, align 8, !tbaa !13
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %195 = load ptr, ptr %194, align 8, !tbaa !17
  %196 = load i64, ptr %15, align 8, !tbaa !11
  %197 = getelementptr inbounds ptr, ptr %195, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  %199 = load i64, ptr %15, align 8, !tbaa !11
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !13
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %203 = load ptr, ptr %202, align 8, !tbaa !17
  %204 = load i64, ptr %15, align 8, !tbaa !11
  %205 = getelementptr inbounds ptr, ptr %203, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !9
  %207 = load i64, ptr %15, align 8, !tbaa !11
  %208 = getelementptr inbounds double, ptr %206, i64 %207
  store double %201, ptr %208, align 8, !tbaa !13
  br label %209

209:                                              ; preds = %177
  %210 = load i64, ptr %15, align 8, !tbaa !11
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %15, align 8, !tbaa !11
  br label %135, !llvm.loop !22

212:                                              ; preds = %135
  br label %290

213:                                              ; preds = %131
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %286, %213
  %215 = load i64, ptr %15, align 8, !tbaa !11
  %216 = load i64, ptr %13, align 8, !tbaa !11
  %217 = sub nsw i64 %216, 1
  %218 = icmp sle i64 %215, %217
  br i1 %218, label %219, label %289

219:                                              ; preds = %214
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %220

220:                                              ; preds = %251, %219
  %221 = load i64, ptr %16, align 8, !tbaa !11
  %222 = load i64, ptr %15, align 8, !tbaa !11
  %223 = icmp sle i64 %221, %222
  br i1 %223, label %224, label %254

224:                                              ; preds = %220
  %225 = load ptr, ptr %4, align 8, !tbaa !9
  %226 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %225)
  %227 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %226, double -1.000000e+00)
  %228 = fmul double 9.000000e-01, %227
  %229 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %230 = load ptr, ptr %229, align 8, !tbaa !17
  %231 = load i64, ptr %15, align 8, !tbaa !11
  %232 = getelementptr inbounds ptr, ptr %230, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = load i64, ptr %16, align 8, !tbaa !11
  %235 = getelementptr inbounds double, ptr %233, i64 %234
  store double %228, ptr %235, align 8, !tbaa !13
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %237 = load ptr, ptr %236, align 8, !tbaa !17
  %238 = load i64, ptr %15, align 8, !tbaa !11
  %239 = getelementptr inbounds ptr, ptr %237, i64 %238
  %240 = load ptr, ptr %239, align 8, !tbaa !9
  %241 = load i64, ptr %16, align 8, !tbaa !11
  %242 = getelementptr inbounds double, ptr %240, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !13
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !17
  %246 = load i64, ptr %15, align 8, !tbaa !11
  %247 = getelementptr inbounds ptr, ptr %245, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !9
  %249 = load i64, ptr %16, align 8, !tbaa !11
  %250 = getelementptr inbounds double, ptr %248, i64 %249
  store double %243, ptr %250, align 8, !tbaa !13
  br label %251

251:                                              ; preds = %224
  %252 = load i64, ptr %16, align 8, !tbaa !11
  %253 = add nsw i64 %252, 1
  store i64 %253, ptr %16, align 8, !tbaa !11
  br label %220, !llvm.loop !23

254:                                              ; preds = %220
  %255 = load ptr, ptr %4, align 8, !tbaa !9
  %256 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %255)
  %257 = mul nsw i64 2, %256
  %258 = sub nsw i64 %257, 1
  %259 = sitofp i64 %258 to double
  %260 = load ptr, ptr %4, align 8, !tbaa !9
  %261 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %260)
  %262 = fadd double 8.000000e-01, %261
  %263 = fmul double %259, %262
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = load i64, ptr %15, align 8, !tbaa !11
  %267 = getelementptr inbounds ptr, ptr %265, i64 %266
  %268 = load ptr, ptr %267, align 8, !tbaa !9
  %269 = load i64, ptr %15, align 8, !tbaa !11
  %270 = getelementptr inbounds double, ptr %268, i64 %269
  store double %263, ptr %270, align 8, !tbaa !13
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %272 = load ptr, ptr %271, align 8, !tbaa !17
  %273 = load i64, ptr %15, align 8, !tbaa !11
  %274 = getelementptr inbounds ptr, ptr %272, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !9
  %276 = load i64, ptr %15, align 8, !tbaa !11
  %277 = getelementptr inbounds double, ptr %275, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !13
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %280 = load ptr, ptr %279, align 8, !tbaa !17
  %281 = load i64, ptr %15, align 8, !tbaa !11
  %282 = getelementptr inbounds ptr, ptr %280, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !9
  %284 = load i64, ptr %15, align 8, !tbaa !11
  %285 = getelementptr inbounds double, ptr %283, i64 %284
  store double %278, ptr %285, align 8, !tbaa !13
  br label %286

286:                                              ; preds = %254
  %287 = load i64, ptr %15, align 8, !tbaa !11
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %15, align 8, !tbaa !11
  br label %214, !llvm.loop !24

289:                                              ; preds = %214
  br label %290

290:                                              ; preds = %289, %212
  %291 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %292 = trunc i8 %291 to i1
  br i1 %292, label %293, label %318

293:                                              ; preds = %290
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %294

294:                                              ; preds = %314, %293
  %295 = load i64, ptr %15, align 8, !tbaa !11
  %296 = load i64, ptr %13, align 8, !tbaa !11
  %297 = sub nsw i64 %296, 1
  %298 = icmp sle i64 %295, %297
  br i1 %298, label %299, label %317

299:                                              ; preds = %294
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %301 = load ptr, ptr %300, align 8, !tbaa !17
  %302 = load i64, ptr %15, align 8, !tbaa !11
  %303 = getelementptr inbounds ptr, ptr %301, i64 %302
  %304 = load ptr, ptr %303, align 8, !tbaa !9
  %305 = load i64, ptr %15, align 8, !tbaa !11
  %306 = getelementptr inbounds double, ptr %304, i64 %305
  store double 1.000000e+00, ptr %306, align 8, !tbaa !13
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %10, i32 0, i32 6
  %308 = load ptr, ptr %307, align 8, !tbaa !17
  %309 = load i64, ptr %15, align 8, !tbaa !11
  %310 = getelementptr inbounds ptr, ptr %308, i64 %309
  %311 = load ptr, ptr %310, align 8, !tbaa !9
  %312 = load i64, ptr %15, align 8, !tbaa !11
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  store double 0.000000e+00, ptr %313, align 8, !tbaa !13
  br label %314

314:                                              ; preds = %299
  %315 = load i64, ptr %15, align 8, !tbaa !11
  %316 = add nsw i64 %315, 1
  store i64 %316, ptr %15, align 8, !tbaa !11
  br label %294, !llvm.loop !25

317:                                              ; preds = %294
  br label %318

318:                                              ; preds = %317, %290
  %319 = load i8, ptr %23, align 1, !tbaa !5, !range !15, !noundef !16
  %320 = trunc i8 %319 to i1
  br i1 %320, label %321, label %415

321:                                              ; preds = %318
  %322 = load i8, ptr %22, align 1, !tbaa !5, !range !15, !noundef !16
  %323 = trunc i8 %322 to i1
  br i1 %323, label %324, label %369

324:                                              ; preds = %321
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %325

325:                                              ; preds = %365, %324
  %326 = load i64, ptr %15, align 8, !tbaa !11
  %327 = load i64, ptr %13, align 8, !tbaa !11
  %328 = sub nsw i64 %327, 1
  %329 = icmp sle i64 %326, %328
  br i1 %329, label %330, label %368

330:                                              ; preds = %325
  %331 = load i64, ptr %15, align 8, !tbaa !11
  %332 = add nsw i64 %331, 1
  store i64 %332, ptr %16, align 8, !tbaa !11
  br label %333

333:                                              ; preds = %361, %330
  %334 = load i64, ptr %16, align 8, !tbaa !11
  %335 = load i64, ptr %13, align 8, !tbaa !11
  %336 = sub nsw i64 %335, 1
  %337 = icmp sle i64 %334, %336
  br i1 %337, label %338, label %364

338:                                              ; preds = %333
  %339 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %340 = load ptr, ptr %339, align 8, !tbaa !17
  %341 = load i64, ptr %15, align 8, !tbaa !11
  %342 = getelementptr inbounds ptr, ptr %340, i64 %341
  %343 = load ptr, ptr %342, align 8, !tbaa !9
  %344 = load i64, ptr %16, align 8, !tbaa !11
  %345 = getelementptr inbounds double, ptr %343, i64 %344
  %346 = load double, ptr %345, align 8, !tbaa !13
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %348 = load ptr, ptr %347, align 8, !tbaa !17
  %349 = load i64, ptr %16, align 8, !tbaa !11
  %350 = getelementptr inbounds ptr, ptr %348, i64 %349
  %351 = load ptr, ptr %350, align 8, !tbaa !9
  %352 = load i64, ptr %15, align 8, !tbaa !11
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  store double %346, ptr %353, align 8, !tbaa !13
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %355 = load ptr, ptr %354, align 8, !tbaa !17
  %356 = load i64, ptr %15, align 8, !tbaa !11
  %357 = getelementptr inbounds ptr, ptr %355, i64 %356
  %358 = load ptr, ptr %357, align 8, !tbaa !9
  %359 = load i64, ptr %16, align 8, !tbaa !11
  %360 = getelementptr inbounds double, ptr %358, i64 %359
  store double 0.000000e+00, ptr %360, align 8, !tbaa !13
  br label %361

361:                                              ; preds = %338
  %362 = load i64, ptr %16, align 8, !tbaa !11
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %16, align 8, !tbaa !11
  br label %333, !llvm.loop !26

364:                                              ; preds = %333
  br label %365

365:                                              ; preds = %364
  %366 = load i64, ptr %15, align 8, !tbaa !11
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %15, align 8, !tbaa !11
  br label %325, !llvm.loop !27

368:                                              ; preds = %325
  br label %414

369:                                              ; preds = %321
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %370

370:                                              ; preds = %410, %369
  %371 = load i64, ptr %15, align 8, !tbaa !11
  %372 = load i64, ptr %13, align 8, !tbaa !11
  %373 = sub nsw i64 %372, 1
  %374 = icmp sle i64 %371, %373
  br i1 %374, label %375, label %413

375:                                              ; preds = %370
  %376 = load i64, ptr %15, align 8, !tbaa !11
  %377 = add nsw i64 %376, 1
  store i64 %377, ptr %16, align 8, !tbaa !11
  br label %378

378:                                              ; preds = %406, %375
  %379 = load i64, ptr %16, align 8, !tbaa !11
  %380 = load i64, ptr %13, align 8, !tbaa !11
  %381 = sub nsw i64 %380, 1
  %382 = icmp sle i64 %379, %381
  br i1 %382, label %383, label %409

383:                                              ; preds = %378
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %385 = load ptr, ptr %384, align 8, !tbaa !17
  %386 = load i64, ptr %16, align 8, !tbaa !11
  %387 = getelementptr inbounds ptr, ptr %385, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !9
  %389 = load i64, ptr %15, align 8, !tbaa !11
  %390 = getelementptr inbounds double, ptr %388, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !13
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %393 = load ptr, ptr %392, align 8, !tbaa !17
  %394 = load i64, ptr %15, align 8, !tbaa !11
  %395 = getelementptr inbounds ptr, ptr %393, i64 %394
  %396 = load ptr, ptr %395, align 8, !tbaa !9
  %397 = load i64, ptr %16, align 8, !tbaa !11
  %398 = getelementptr inbounds double, ptr %396, i64 %397
  store double %391, ptr %398, align 8, !tbaa !13
  %399 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %400 = load ptr, ptr %399, align 8, !tbaa !17
  %401 = load i64, ptr %16, align 8, !tbaa !11
  %402 = getelementptr inbounds ptr, ptr %400, i64 %401
  %403 = load ptr, ptr %402, align 8, !tbaa !9
  %404 = load i64, ptr %15, align 8, !tbaa !11
  %405 = getelementptr inbounds double, ptr %403, i64 %404
  store double 0.000000e+00, ptr %405, align 8, !tbaa !13
  br label %406

406:                                              ; preds = %383
  %407 = load i64, ptr %16, align 8, !tbaa !11
  %408 = add nsw i64 %407, 1
  store i64 %408, ptr %16, align 8, !tbaa !11
  br label %378, !llvm.loop !28

409:                                              ; preds = %378
  br label %410

410:                                              ; preds = %409
  %411 = load i64, ptr %15, align 8, !tbaa !11
  %412 = add nsw i64 %411, 1
  store i64 %412, ptr %15, align 8, !tbaa !11
  br label %370, !llvm.loop !29

413:                                              ; preds = %370
  br label %414

414:                                              ; preds = %413, %368
  br label %415

415:                                              ; preds = %414, %318
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %416

416:                                              ; preds = %429, %415
  %417 = load i64, ptr %15, align 8, !tbaa !11
  %418 = load i64, ptr %13, align 8, !tbaa !11
  %419 = sub nsw i64 %418, 1
  %420 = icmp sle i64 %417, %419
  br i1 %420, label %421, label %432

421:                                              ; preds = %416
  %422 = load ptr, ptr %4, align 8, !tbaa !9
  %423 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %422)
  %424 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %423, double -1.000000e+00)
  %425 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %426 = load ptr, ptr %425, align 8, !tbaa !17
  %427 = load i64, ptr %15, align 8, !tbaa !11
  %428 = getelementptr inbounds double, ptr %426, i64 %427
  store double %424, ptr %428, align 8, !tbaa !13
  br label %429

429:                                              ; preds = %421
  %430 = load i64, ptr %15, align 8, !tbaa !11
  %431 = add nsw i64 %430, 1
  store i64 %431, ptr %15, align 8, !tbaa !11
  br label %416, !llvm.loop !30

432:                                              ; preds = %416
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %433

433:                                              ; preds = %457, %432
  %434 = load i64, ptr %15, align 8, !tbaa !11
  %435 = load i64, ptr %13, align 8, !tbaa !11
  %436 = sub nsw i64 %435, 1
  %437 = icmp sle i64 %434, %436
  br i1 %437, label %438, label %460

438:                                              ; preds = %433
  %439 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %9, i32 0, i32 6
  %440 = load ptr, ptr %439, align 8, !tbaa !17
  %441 = load i64, ptr %15, align 8, !tbaa !11
  %442 = getelementptr inbounds ptr, ptr %440, i64 %441
  %443 = load ptr, ptr %442, align 8, !tbaa !9
  %444 = getelementptr inbounds double, ptr %443, i64 0
  %445 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !17
  %447 = getelementptr inbounds double, ptr %446, i64 0
  %448 = load i64, ptr %13, align 8, !tbaa !11
  %449 = sub nsw i64 %448, 1
  %450 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %449)
  %451 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %444, i64 noundef 1, ptr noundef %447, i64 noundef 1, i64 noundef %450)
  store double %451, ptr %25, align 8, !tbaa !13
  %452 = load double, ptr %25, align 8, !tbaa !13
  %453 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %454 = load ptr, ptr %453, align 8, !tbaa !17
  %455 = load i64, ptr %15, align 8, !tbaa !11
  %456 = getelementptr inbounds double, ptr %454, i64 %455
  store double %452, ptr %456, align 8, !tbaa !13
  br label %457

457:                                              ; preds = %438
  %458 = load i64, ptr %15, align 8, !tbaa !11
  %459 = add nsw i64 %458, 1
  store i64 %459, ptr %15, align 8, !tbaa !11
  br label %433, !llvm.loop !31

460:                                              ; preds = %433
  %461 = load i64, ptr %13, align 8, !tbaa !11
  %462 = load i8, ptr %22, align 1, !tbaa !5, !range !15, !noundef !16
  %463 = trunc i8 %462 to i1
  %464 = load i8, ptr %23, align 1, !tbaa !5, !range !15, !noundef !16
  %465 = trunc i8 %464 to i1
  %466 = load i8, ptr %24, align 1, !tbaa !5, !range !15, !noundef !16
  %467 = trunc i8 %466 to i1
  %468 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18rmatrixtrsafesolveEPNS_9ae_matrixElPNS_9ae_vectorEPdbbbPNS_8ae_stateE(ptr noundef %10, i64 noundef %461, ptr noundef %12, ptr noundef %26, i1 noundef zeroext %463, i1 noundef zeroext %465, i1 noundef zeroext %467, ptr noundef %468)
  %469 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %470 = load ptr, ptr %469, align 8, !tbaa !17
  %471 = getelementptr inbounds double, ptr %470, i64 0
  %472 = load i64, ptr %13, align 8, !tbaa !11
  %473 = sub nsw i64 %472, 1
  %474 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %473)
  %475 = load double, ptr %26, align 8, !tbaa !13
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %471, i64 noundef 1, i64 noundef %474, double noundef %475)
  %476 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %477 = load ptr, ptr %476, align 8, !tbaa !17
  %478 = getelementptr inbounds double, ptr %477, i64 0
  %479 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %480 = load ptr, ptr %479, align 8, !tbaa !17
  %481 = getelementptr inbounds double, ptr %480, i64 0
  %482 = load i64, ptr %13, align 8, !tbaa !11
  %483 = sub nsw i64 %482, 1
  %484 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %483)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %478, i64 noundef 1, ptr noundef %481, i64 noundef 1, i64 noundef %484)
  %485 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %486 = load ptr, ptr %485, align 8, !tbaa !17
  %487 = getelementptr inbounds double, ptr %486, i64 0
  %488 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %489 = load ptr, ptr %488, align 8, !tbaa !17
  %490 = getelementptr inbounds double, ptr %489, i64 0
  %491 = load i64, ptr %13, align 8, !tbaa !11
  %492 = sub nsw i64 %491, 1
  %493 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %492)
  %494 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %487, i64 noundef 1, ptr noundef %490, i64 noundef 1, i64 noundef %493)
  store double %494, ptr %25, align 8, !tbaa !13
  %495 = load double, ptr %25, align 8, !tbaa !13
  %496 = load ptr, ptr %4, align 8, !tbaa !9
  %497 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %495, ptr noundef %496)
  store double %497, ptr %25, align 8, !tbaa !13
  %498 = load i8, ptr %21, align 1, !tbaa !5, !range !15, !noundef !16
  %499 = trunc i8 %498 to i1
  br i1 %499, label %504, label %500

500:                                              ; preds = %460
  %501 = load double, ptr %25, align 8, !tbaa !13
  %502 = load double, ptr %8, align 8, !tbaa !13
  %503 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %501, double noundef %502)
  br label %504

504:                                              ; preds = %500, %460
  %505 = phi i1 [ true, %460 ], [ %503, %500 ]
  %506 = zext i1 %505 to i8
  store i8 %506, ptr %21, align 1, !tbaa !5
  br label %507

507:                                              ; preds = %504, %96
  %508 = load i64, ptr %20, align 8, !tbaa !11
  %509 = add nsw i64 %508, 1
  store i64 %509, ptr %20, align 8, !tbaa !11
  br label %78, !llvm.loop !32

510:                                              ; preds = %78
  br label %511

511:                                              ; preds = %510
  %512 = load i64, ptr %19, align 8, !tbaa !11
  %513 = add nsw i64 %512, 1
  store i64 %513, ptr %19, align 8, !tbaa !11
  br label %74, !llvm.loop !33

514:                                              ; preds = %74
  br label %515

515:                                              ; preds = %514
  %516 = load i64, ptr %18, align 8, !tbaa !11
  %517 = add nsw i64 %516, 1
  store i64 %517, ptr %18, align 8, !tbaa !11
  br label %70, !llvm.loop !34

518:                                              ; preds = %70
  br label %519

519:                                              ; preds = %518
  %520 = load i64, ptr %17, align 8, !tbaa !11
  %521 = add nsw i64 %520, 1
  store i64 %521, ptr %17, align 8, !tbaa !11
  br label %66, !llvm.loop !35

522:                                              ; preds = %66
  br label %523

523:                                              ; preds = %522
  %524 = load i64, ptr %14, align 8, !tbaa !11
  %525 = add nsw i64 %524, 1
  store i64 %525, ptr %14, align 8, !tbaa !11
  br label %61, !llvm.loop !36

526:                                              ; preds = %61
  br label %527

527:                                              ; preds = %526
  %528 = load i64, ptr %13, align 8, !tbaa !11
  %529 = add nsw i64 %528, 1
  store i64 %529, ptr %13, align 8, !tbaa !11
  br label %34, !llvm.loop !37

530:                                              ; preds = %34
  %531 = load i8, ptr %3, align 1, !tbaa !5, !range !15, !noundef !16
  %532 = trunc i8 %531 to i1
  br i1 %532, label %543, label %533

533:                                              ; preds = %530
  %534 = call i32 (ptr, ...) @printf(ptr noundef @.str.256)
  %535 = load i8, ptr %21, align 1, !tbaa !5, !range !15, !noundef !16
  %536 = trunc i8 %535 to i1
  br i1 %536, label %537, label %539

537:                                              ; preds = %533
  %538 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %541

539:                                              ; preds = %533
  %540 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %541

541:                                              ; preds = %539, %537
  %542 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %543

543:                                              ; preds = %541, %530
  %544 = load i8, ptr %21, align 1, !tbaa !5, !range !15, !noundef !16
  %545 = trunc i8 %544 to i1
  %546 = xor i1 %545, true
  %547 = zext i1 %546 to i8
  store i8 %547, ptr %27, align 1, !tbaa !5
  %548 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %548)
  %549 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %550 = trunc i8 %549 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, 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 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 80, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %550
}

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

declare void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}
!35 = distinct !{!35, !19}
!36 = distinct !{!36, !19}
!37 = distinct !{!37, !19}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::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.256 = external hidden unnamed_addr constant [28 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

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(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_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 void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef, i64 noundef, i64 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z14testtrlinsolvebPN11alglib_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_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca double, 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 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #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(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @_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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, 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)
  %9 = getelementptr inbounds i8, ptr %4, i64 72
  %10 = getelementptr inbounds i8, ptr %5, i64 72
  %11 = getelementptr inbounds i8, ptr %6, i64 56
  %12 = getelementptr inbounds i8, ptr %7, i64 56
  br label %13

13:                                               ; preds = %2, %222
  %indvar = phi i64 [ 0, %2 ], [ %indvar.next, %222 ]
  %.0233 = phi i64 [ 1, %2 ], [ %223, %222 ]
  %.0160232 = phi i8 [ 0, %2 ], [ %.6166251, %222 ]
  %14 = add nsw i64 %.0233, -1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0233, i64 noundef %.0233, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0233, i64 noundef %.0233, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0233, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0233, ptr noundef %1)
  %xtraiter = and i64 %.0233, 1
  %15 = icmp eq i64 %indvar, 0
  %unroll_iter = and i64 %.0233, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter258 = and i64 %.0233, 1
  %16 = icmp eq i64 %indvar, 0
  %unroll_iter260 = and i64 %.0233, 9223372036854775806
  %lcmp.mod259.not = icmp eq i64 %xtraiter258, 0
  br label %.preheader205

.preheader205:                                    ; preds = %13, %220
  %.0153231 = phi i64 [ 1, %13 ], [ %221, %220 ]
  %.1161230 = phi i8 [ %.0160232, %13 ], [ %.6166251, %220 ]
  br label %.preheader204

.preheader204:                                    ; preds = %.preheader205, %219
  %.2162229 = phi i8 [ %.1161230, %.preheader205 ], [ %.6166251, %219 ]
  %17 = phi i1 [ true, %.preheader205 ], [ false, %219 ]
  br label %.preheader203

.preheader203:                                    ; preds = %.preheader204, %218
  %.3163227 = phi i8 [ %.2162229, %.preheader204 ], [ %.6166251, %218 ]
  %18 = phi i1 [ true, %.preheader204 ], [ false, %218 ]
  br label %.preheader202

.preheader202:                                    ; preds = %.preheader203, %.thread
  %.4164225 = phi i8 [ %.3163227, %.preheader203 ], [ %.6166251, %.thread ]
  %19 = phi i1 [ true, %.preheader203 ], [ false, %.thread ]
  br label %20

20:                                               ; preds = %.preheader202, %214
  %.5165223 = phi i8 [ %.4164225, %.preheader202 ], [ %216, %214 ]
  %.0167222 = phi i64 [ 0, %.preheader202 ], [ %217, %214 ]
  %21 = icmp eq i64 %.0167222, 2
  %brmerge.not = and i1 %18, %21
  br i1 %brmerge.not, label %.thread, label %.preheader189

.preheader189:                                    ; preds = %20, %48
  %.0154207 = phi i64 [ %49, %48 ], [ 0, %20 ]
  br i1 %15, label %.unr-lcssa, label %.preheader189.new

.preheader189.new:                                ; preds = %.preheader189, %.preheader189.new
  %.0155206 = phi i64 [ %39, %.preheader189.new ], [ 0, %.preheader189 ]
  %niter = phi i64 [ %niter.next.1, %.preheader189.new ], [ 0, %.preheader189 ]
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %22, i64 %.0154207
  %24 = load ptr, ptr %23, align 8, !tbaa !8
  %25 = getelementptr inbounds double, ptr %24, i64 %.0155206
  store double 0.000000e+00, ptr %25, align 8, !tbaa !10
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds ptr, ptr %26, i64 %.0154207
  %28 = load ptr, ptr %27, align 8, !tbaa !8
  %29 = getelementptr inbounds double, ptr %28, i64 %.0155206
  store double 0.000000e+00, ptr %29, align 8, !tbaa !10
  %30 = or disjoint i64 %.0155206, 1
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0154207
  %33 = load ptr, ptr %32, align 8, !tbaa !8
  %34 = getelementptr inbounds double, ptr %33, i64 %30
  store double 0.000000e+00, ptr %34, align 8, !tbaa !10
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.0154207
  %37 = load ptr, ptr %36, align 8, !tbaa !8
  %38 = getelementptr inbounds double, ptr %37, i64 %30
  store double 0.000000e+00, ptr %38, align 8, !tbaa !10
  %39 = add nuw nsw i64 %.0155206, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %.preheader189.new, !llvm.loop !12

.unr-lcssa:                                       ; preds = %.preheader189.new, %.preheader189
  %.0155206.unr = phi i64 [ 0, %.preheader189 ], [ %39, %.preheader189.new ]
  br i1 %lcmp.mod.not, label %48, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0154207
  %42 = load ptr, ptr %41, align 8, !tbaa !8
  %43 = getelementptr inbounds double, ptr %42, i64 %.0155206.unr
  store double 0.000000e+00, ptr %43, align 8, !tbaa !10
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0154207
  %46 = load ptr, ptr %45, align 8, !tbaa !8
  %47 = getelementptr inbounds double, ptr %46, i64 %.0155206.unr
  store double 0.000000e+00, ptr %47, align 8, !tbaa !10
  br label %48

48:                                               ; preds = %.unr-lcssa, %.epilog-lcssa
  %49 = add nuw nsw i64 %.0154207, 1
  %exitcond237.not = icmp eq i64 %49, %.0233
  br i1 %exitcond237.not, label %50, label %.preheader189, !llvm.loop !14

50:                                               ; preds = %48
  br i1 %17, label %.preheader, label %.preheader188

.preheader:                                       ; preds = %50, %69
  %.1211 = phi i64 [ %90, %69 ], [ 0, %50 ]
  br label %51

51:                                               ; preds = %.preheader, %51
  %.1156210 = phi i64 [ %.1211, %.preheader ], [ %68, %51 ]
  %52 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %53 = call double @llvm.fmuladd.f64(double %52, double 2.000000e+00, double -1.000000e+00)
  %54 = fmul double %53, 9.000000e-01
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.1211
  %57 = load ptr, ptr %56, align 8, !tbaa !8
  %58 = getelementptr inbounds double, ptr %57, i64 %.1156210
  store double %54, ptr %58, align 8, !tbaa !10
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.1211
  %61 = load ptr, ptr %60, align 8, !tbaa !8
  %62 = getelementptr inbounds double, ptr %61, i64 %.1156210
  %63 = load double, ptr %62, align 8, !tbaa !10
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.1211
  %66 = load ptr, ptr %65, align 8, !tbaa !8
  %67 = getelementptr inbounds double, ptr %66, i64 %.1156210
  store double %63, ptr %67, align 8, !tbaa !10
  %68 = add nuw nsw i64 %.1156210, 1
  %.not182.not = icmp ult i64 %68, %.0233
  br i1 %.not182.not, label %51, label %69, !llvm.loop !15

69:                                               ; preds = %51
  %70 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %71 = shl nsw i64 %70, 1
  %72 = add nsw i64 %71, -1
  %73 = sitofp i64 %72 to double
  %74 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %75 = fadd double %74, 8.000000e-01
  %76 = fmul double %75, %73
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds ptr, ptr %77, i64 %.1211
  %79 = load ptr, ptr %78, align 8, !tbaa !8
  %80 = getelementptr inbounds double, ptr %79, i64 %.1211
  store double %76, ptr %80, align 8, !tbaa !10
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds ptr, ptr %81, i64 %.1211
  %83 = load ptr, ptr %82, align 8, !tbaa !8
  %84 = getelementptr inbounds double, ptr %83, i64 %.1211
  %85 = load double, ptr %84, align 8, !tbaa !10
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.1211
  %88 = load ptr, ptr %87, align 8, !tbaa !8
  %89 = getelementptr inbounds double, ptr %88, i64 %.1211
  store double %85, ptr %89, align 8, !tbaa !10
  %90 = add nuw nsw i64 %.1211, 1
  %exitcond240.not = icmp eq i64 %90, %.0233
  br i1 %exitcond240.not, label %.loopexit198, label %.preheader, !llvm.loop !16

.preheader188:                                    ; preds = %50, %109
  %indvars.iv = phi i64 [ %indvars.iv.next, %109 ], [ 1, %50 ]
  %.2209 = phi i64 [ %130, %109 ], [ 0, %50 ]
  br label %91

91:                                               ; preds = %.preheader188, %91
  %.2157208 = phi i64 [ 0, %.preheader188 ], [ %108, %91 ]
  %92 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %93 = call double @llvm.fmuladd.f64(double %92, double 2.000000e+00, double -1.000000e+00)
  %94 = fmul double %93, 9.000000e-01
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i64 %.2209
  %97 = load ptr, ptr %96, align 8, !tbaa !8
  %98 = getelementptr inbounds double, ptr %97, i64 %.2157208
  store double %94, ptr %98, align 8, !tbaa !10
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds ptr, ptr %99, i64 %.2209
  %101 = load ptr, ptr %100, align 8, !tbaa !8
  %102 = getelementptr inbounds double, ptr %101, i64 %.2157208
  %103 = load double, ptr %102, align 8, !tbaa !10
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds ptr, ptr %104, i64 %.2209
  %106 = load ptr, ptr %105, align 8, !tbaa !8
  %107 = getelementptr inbounds double, ptr %106, i64 %.2157208
  store double %103, ptr %107, align 8, !tbaa !10
  %108 = add nuw nsw i64 %.2157208, 1
  %exitcond238.not = icmp eq i64 %108, %indvars.iv
  br i1 %exitcond238.not, label %109, label %91, !llvm.loop !17

109:                                              ; preds = %91
  %110 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %111 = shl nsw i64 %110, 1
  %112 = add nsw i64 %111, -1
  %113 = sitofp i64 %112 to double
  %114 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %115 = fadd double %114, 8.000000e-01
  %116 = fmul double %115, %113
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds ptr, ptr %117, i64 %.2209
  %119 = load ptr, ptr %118, align 8, !tbaa !8
  %120 = getelementptr inbounds double, ptr %119, i64 %.2209
  store double %116, ptr %120, align 8, !tbaa !10
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i64 %.2209
  %123 = load ptr, ptr %122, align 8, !tbaa !8
  %124 = getelementptr inbounds double, ptr %123, i64 %.2209
  %125 = load double, ptr %124, align 8, !tbaa !10
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds ptr, ptr %126, i64 %.2209
  %128 = load ptr, ptr %127, align 8, !tbaa !8
  %129 = getelementptr inbounds double, ptr %128, i64 %.2209
  store double %125, ptr %129, align 8, !tbaa !10
  %130 = add nuw nsw i64 %.2209, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond239.not = icmp eq i64 %130, %.0233
  br i1 %exitcond239.not, label %.loopexit198, label %.preheader188, !llvm.loop !18

.loopexit198:                                     ; preds = %109, %69
  br i1 %18, label %.preheader195.preheader, label %.loopexit196

.preheader195.preheader:                          ; preds = %.loopexit198
  br i1 %16, label %.loopexit196.loopexit.unr-lcssa, label %.preheader195

.preheader195:                                    ; preds = %.preheader195.preheader, %.preheader195
  %.3212 = phi i64 [ %148, %.preheader195 ], [ 0, %.preheader195.preheader ]
  %niter261 = phi i64 [ %niter261.next.1, %.preheader195 ], [ 0, %.preheader195.preheader ]
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds ptr, ptr %131, i64 %.3212
  %133 = load ptr, ptr %132, align 8, !tbaa !8
  %134 = getelementptr inbounds double, ptr %133, i64 %.3212
  store double 1.000000e+00, ptr %134, align 8, !tbaa !10
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = getelementptr inbounds ptr, ptr %135, i64 %.3212
  %137 = load ptr, ptr %136, align 8, !tbaa !8
  %138 = getelementptr inbounds double, ptr %137, i64 %.3212
  store double 0.000000e+00, ptr %138, align 8, !tbaa !10
  %139 = or disjoint i64 %.3212, 1
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i64 %139
  %142 = load ptr, ptr %141, align 8, !tbaa !8
  %143 = getelementptr inbounds double, ptr %142, i64 %139
  store double 1.000000e+00, ptr %143, align 8, !tbaa !10
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds ptr, ptr %144, i64 %139
  %146 = load ptr, ptr %145, align 8, !tbaa !8
  %147 = getelementptr inbounds double, ptr %146, i64 %139
  store double 0.000000e+00, ptr %147, align 8, !tbaa !10
  %148 = add nuw nsw i64 %.3212, 2
  %niter261.next.1 = add i64 %niter261, 2
  %niter261.ncmp.1 = icmp eq i64 %niter261.next.1, %unroll_iter260
  br i1 %niter261.ncmp.1, label %.loopexit196.loopexit.unr-lcssa, label %.preheader195, !llvm.loop !19

.loopexit196.loopexit.unr-lcssa:                  ; preds = %.preheader195, %.preheader195.preheader
  %.3212.unr = phi i64 [ 0, %.preheader195.preheader ], [ %148, %.preheader195 ]
  br i1 %lcmp.mod259.not, label %.loopexit196, label %.preheader195.epil

.preheader195.epil:                               ; preds = %.loopexit196.loopexit.unr-lcssa
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds ptr, ptr %149, i64 %.3212.unr
  %151 = load ptr, ptr %150, align 8, !tbaa !8
  %152 = getelementptr inbounds double, ptr %151, i64 %.3212.unr
  store double 1.000000e+00, ptr %152, align 8, !tbaa !10
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = getelementptr inbounds ptr, ptr %153, i64 %.3212.unr
  %155 = load ptr, ptr %154, align 8, !tbaa !8
  %156 = getelementptr inbounds double, ptr %155, i64 %.3212.unr
  store double 0.000000e+00, ptr %156, align 8, !tbaa !10
  br label %.loopexit196

.loopexit196:                                     ; preds = %.preheader195.epil, %.loopexit196.loopexit.unr-lcssa, %.loopexit198
  br i1 %19, label %157, label %.loopexit192.preheader

.loopexit192.preheader:                           ; preds = %.loopexit187, %.loopexit, %.loopexit196
  br label %.loopexit192

157:                                              ; preds = %.loopexit196
  br i1 %17, label %.preheader191, label %.preheader193

.loopexit:                                        ; preds = %.lr.ph218, %.preheader191
  %exitcond243.not = icmp eq i64 %158, %.0233
  br i1 %exitcond243.not, label %.loopexit192.preheader, label %.preheader191, !llvm.loop !20

.preheader191:                                    ; preds = %157, %.loopexit
  %.4219 = phi i64 [ %158, %.loopexit ], [ 0, %157 ]
  %158 = add nuw nsw i64 %.4219, 1
  %.not181.not216 = icmp ult i64 %158, %.0233
  br i1 %.not181.not216, label %.lr.ph218, label %.loopexit

.lr.ph218:                                        ; preds = %.preheader191, %.lr.ph218
  %.3158217 = phi i64 [ %171, %.lr.ph218 ], [ %158, %.preheader191 ]
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.4219
  %161 = load ptr, ptr %160, align 8, !tbaa !8
  %162 = getelementptr inbounds double, ptr %161, i64 %.3158217
  %163 = load double, ptr %162, align 8, !tbaa !10
  %164 = getelementptr inbounds ptr, ptr %159, i64 %.3158217
  %165 = load ptr, ptr %164, align 8, !tbaa !8
  %166 = getelementptr inbounds double, ptr %165, i64 %.4219
  store double %163, ptr %166, align 8, !tbaa !10
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = getelementptr inbounds ptr, ptr %167, i64 %.4219
  %169 = load ptr, ptr %168, align 8, !tbaa !8
  %170 = getelementptr inbounds double, ptr %169, i64 %.3158217
  store double 0.000000e+00, ptr %170, align 8, !tbaa !10
  %171 = add nuw nsw i64 %.3158217, 1
  %.not181.not = icmp ult i64 %171, %.0233
  br i1 %.not181.not, label %.lr.ph218, label %.loopexit, !llvm.loop !21

.loopexit187:                                     ; preds = %.lr.ph, %.preheader193
  %exitcond242.not = icmp eq i64 %172, %.0233
  br i1 %exitcond242.not, label %.loopexit192.preheader, label %.preheader193, !llvm.loop !22

.preheader193:                                    ; preds = %157, %.loopexit187
  %.5215 = phi i64 [ %172, %.loopexit187 ], [ 0, %157 ]
  %172 = add nuw nsw i64 %.5215, 1
  %.not177.not213 = icmp ult i64 %172, %.0233
  br i1 %.not177.not213, label %.lr.ph, label %.loopexit187

.lr.ph:                                           ; preds = %.preheader193, %.lr.ph
  %.4159214 = phi i64 [ %185, %.lr.ph ], [ %172, %.preheader193 ]
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds ptr, ptr %173, i64 %.4159214
  %175 = load ptr, ptr %174, align 8, !tbaa !8
  %176 = getelementptr inbounds double, ptr %175, i64 %.5215
  %177 = load double, ptr %176, align 8, !tbaa !10
  %178 = getelementptr inbounds ptr, ptr %173, i64 %.5215
  %179 = load ptr, ptr %178, align 8, !tbaa !8
  %180 = getelementptr inbounds double, ptr %179, i64 %.4159214
  store double %177, ptr %180, align 8, !tbaa !10
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds ptr, ptr %181, i64 %.4159214
  %183 = load ptr, ptr %182, align 8, !tbaa !8
  %184 = getelementptr inbounds double, ptr %183, i64 %.5215
  store double 0.000000e+00, ptr %184, align 8, !tbaa !10
  %185 = add nuw nsw i64 %.4159214, 1
  %.not177.not = icmp ult i64 %185, %.0233
  br i1 %.not177.not, label %.lr.ph, label %.loopexit187, !llvm.loop !23

.loopexit192:                                     ; preds = %.loopexit192.preheader, %.loopexit192
  %.6220 = phi i64 [ %190, %.loopexit192 ], [ 0, %.loopexit192.preheader ]
  %186 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %187 = call double @llvm.fmuladd.f64(double %186, double 2.000000e+00, double -1.000000e+00)
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds double, ptr %188, i64 %.6220
  store double %187, ptr %189, align 8, !tbaa !10
  %190 = add nuw nsw i64 %.6220, 1
  %exitcond244.not = icmp eq i64 %190, %.0233
  br i1 %exitcond244.not, label %.preheader190, label %.loopexit192, !llvm.loop !24

.preheader190:                                    ; preds = %.loopexit192, %.preheader190
  %.7221 = phi i64 [ %199, %.preheader190 ], [ 0, %.loopexit192 ]
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds ptr, ptr %191, i64 %.7221
  %193 = load ptr, ptr %192, align 8, !tbaa !8
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %196 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %193, i64 noundef 1, ptr noundef %194, i64 noundef 1, i64 noundef %195)
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = getelementptr inbounds double, ptr %197, i64 %.7221
  store double %196, ptr %198, align 8, !tbaa !10
  %199 = add nuw nsw i64 %.7221, 1
  %exitcond245.not = icmp eq i64 %199, %.0233
  br i1 %exitcond245.not, label %200, label %.preheader190, !llvm.loop !25

200:                                              ; preds = %.preheader190
  call void @_ZN11alglib_impl18rmatrixtrsafesolveEPNS_9ae_matrixElPNS_9ae_vectorEPdbbbPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0233, ptr noundef nonnull %7, ptr noundef nonnull %8, i1 noundef zeroext %17, i1 noundef zeroext %19, i1 noundef zeroext %18, ptr noundef %1)
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %203 = load double, ptr %8, align 8, !tbaa !10
  call void @_ZN11alglib_impl9ae_v_muldEPdlld(ptr noundef %201, i64 noundef 1, i64 noundef %202, double noundef %203)
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  call void @_ZN11alglib_impl8ae_v_subEPdlPKdll(ptr noundef %204, i64 noundef 1, ptr noundef %205, i64 noundef 1, i64 noundef %206)
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %14)
  %209 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %207, i64 noundef 1, ptr noundef %207, i64 noundef 1, i64 noundef %208)
  %210 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %209, ptr noundef %1)
  %211 = trunc nuw i8 %.5165223 to i1
  br i1 %211, label %214, label %212

212:                                              ; preds = %200
  %213 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %210, double noundef 5.000000e-13)
  br label %214

214:                                              ; preds = %200, %212
  %215 = phi i1 [ true, %200 ], [ %213, %212 ]
  %216 = zext i1 %215 to i8
  %217 = add nuw nsw i64 %.0167222, 1
  %exitcond246.not = icmp eq i64 %217, 3
  br i1 %exitcond246.not, label %.thread, label %20, !llvm.loop !26

.thread:                                          ; preds = %20, %214
  %.6166251 = phi i8 [ %216, %214 ], [ %.5165223, %20 ]
  br i1 %19, label %.preheader202, label %218, !llvm.loop !27

218:                                              ; preds = %.thread
  br i1 %18, label %.preheader203, label %219, !llvm.loop !28

219:                                              ; preds = %218
  br i1 %17, label %.preheader204, label %220, !llvm.loop !29

220:                                              ; preds = %219
  %221 = add nuw nsw i64 %.0153231, 1
  %exitcond247.not = icmp eq i64 %221, 16
  br i1 %exitcond247.not, label %222, label %.preheader205, !llvm.loop !30

222:                                              ; preds = %220
  %223 = add nuw nsw i64 %.0233, 1
  %exitcond248.not = icmp eq i64 %223, 16
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond248.not, label %224, label %13, !llvm.loop !31

224:                                              ; preds = %222
  br i1 %0, label %._crit_edge, label %225

._crit_edge:                                      ; preds = %224
  %.pre = trunc nuw i8 %.6166251 to i1
  br label %230

225:                                              ; preds = %224
  %226 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.256)
  %227 = trunc nuw i8 %.6166251 to i1
  %.str.1..str.2 = select i1 %227, ptr @.str.1, ptr @.str.2
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %230

230:                                              ; preds = %._crit_edge, %225
  %.pre-phi = phi i1 [ %.pre, %._crit_edge ], [ %227, %225 ]
  %231 = xor i1 %.pre-phi, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, 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 %231
}

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

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


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