; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z13testsafesolvebPN11alglib_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_complex" = type { double, double }
%"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.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [42 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_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) #1

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1

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

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13testsafesolvebPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #5 {
  %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 double, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca double, align 8
  %15 = alloca double, 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 %"struct.alglib_impl::ae_complex", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %24 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca double, align 8
  %28 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %29 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %30 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca i8, align 1
  %34 = alloca %"struct.alglib_impl::ae_complex", align 8
  %35 = alloca %"struct.alglib_impl::ae_complex", align 8
  %36 = alloca %"struct.alglib_impl::ae_complex", align 8
  %37 = alloca %"struct.alglib_impl::ae_complex", align 8
  %38 = alloca %"struct.alglib_impl::ae_complex", align 8
  %39 = alloca %"struct.alglib_impl::ae_complex", align 8
  %40 = alloca %"struct.alglib_impl::ae_complex", align 8
  %41 = alloca %"struct.alglib_impl::ae_complex", align 8
  %42 = alloca %"struct.alglib_impl::ae_complex", align 8
  %43 = alloca %"struct.alglib_impl::ae_complex", align 8
  %44 = alloca %"struct.alglib_impl::ae_complex", align 8
  %45 = alloca %"struct.alglib_impl::ae_complex", align 8
  %46 = alloca %"struct.alglib_impl::ae_complex", align 8
  %47 = alloca %"struct.alglib_impl::ae_complex", align 8
  %48 = alloca %"struct.alglib_impl::ae_complex", align 8
  %49 = alloca %"struct.alglib_impl::ae_complex", align 8
  %50 = alloca %"struct.alglib_impl::ae_complex", align 8
  %51 = alloca %"struct.alglib_impl::ae_complex", align 8
  %52 = alloca %"struct.alglib_impl::ae_complex", align 8
  %53 = alloca %"struct.alglib_impl::ae_complex", align 8
  %54 = zext i1 %0 to i8
  store i8 %54, 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) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %55, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  %56 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 0, i64 noundef 4, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 4, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 4, ptr noundef %60, i1 noundef zeroext true)
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %28, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %61, i1 noundef zeroext true)
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %65, i1 noundef zeroext true)
  store i64 30, ptr %6, align 8, !tbaa !11
  store double 5.000000e-11, ptr %7, align 8, !tbaa !13
  store i8 0, ptr %8, align 1, !tbaa !5
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i64 1, ptr %18, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %697, %2
  %67 = load i64, ptr %18, align 8, !tbaa !11
  %68 = load i64, ptr %6, align 8, !tbaa !11
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %700

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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %72, double noundef 5.000000e-01)
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %11, align 1, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !9
  %76 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %75)
  store i64 %76, ptr %12, align 8, !tbaa !11
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  %78 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %77)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %78, double noundef 5.000000e-01)
  %80 = zext i1 %79 to i8
  store i8 %80, ptr %13, align 1, !tbaa !5
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  %82 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %81)
  %83 = fadd double %82, 5.000000e-01
  store double %83, ptr %14, align 8, !tbaa !13
  %84 = load i64, ptr %18, align 8, !tbaa !11
  %85 = load i64, ptr %18, align 8, !tbaa !11
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %84, i64 noundef %85, ptr noundef %86)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %87

87:                                               ; preds = %165, %70
  %88 = load i64, ptr %16, align 8, !tbaa !11
  %89 = load i64, ptr %18, align 8, !tbaa !11
  %90 = sub nsw i64 %89, 1
  %91 = icmp sle i64 %88, %90
  br i1 %91, label %92, label %168

92:                                               ; preds = %87
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %161, %92
  %94 = load i64, ptr %17, align 8, !tbaa !11
  %95 = load i64, ptr %18, align 8, !tbaa !11
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %164

98:                                               ; preds = %93
  %99 = load i64, ptr %16, align 8, !tbaa !11
  %100 = load i64, ptr %17, align 8, !tbaa !11
  %101 = icmp eq i64 %99, %100
  br i1 %101, label %102, label %137

102:                                              ; preds = %98
  %103 = load ptr, ptr %4, align 8, !tbaa !9
  %104 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %103)
  %105 = mul nsw i64 2, %104
  %106 = sub nsw i64 %105, 1
  %107 = sitofp i64 %106 to double
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  %109 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %108)
  %110 = fadd double 5.000000e+00, %109
  %111 = fmul double %107, %110
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %16, align 8, !tbaa !11
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = load i64, ptr %17, align 8, !tbaa !11
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %116, i64 %117
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %118, i32 0, i32 0
  store double %111, ptr %119, align 8, !tbaa !16
  %120 = load ptr, ptr %4, align 8, !tbaa !9
  %121 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %120)
  %122 = mul nsw i64 2, %121
  %123 = sub nsw i64 %122, 1
  %124 = sitofp i64 %123 to double
  %125 = load ptr, ptr %4, align 8, !tbaa !9
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %125)
  %127 = fadd double 5.000000e+00, %126
  %128 = fmul double %124, %127
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i64, ptr %16, align 8, !tbaa !11
  %132 = getelementptr inbounds ptr, ptr %130, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = load i64, ptr %17, align 8, !tbaa !11
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 %134
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %135, i32 0, i32 1
  store double %128, ptr %136, align 8, !tbaa !18
  br label %160

137:                                              ; preds = %98
  %138 = load ptr, ptr %4, align 8, !tbaa !9
  %139 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %138)
  %140 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %139, double -1.000000e-01)
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load i64, ptr %16, align 8, !tbaa !11
  %144 = getelementptr inbounds ptr, ptr %142, i64 %143
  %145 = load ptr, ptr %144, align 8, !tbaa !9
  %146 = load i64, ptr %17, align 8, !tbaa !11
  %147 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %145, i64 %146
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %147, i32 0, i32 0
  store double %140, ptr %148, align 8, !tbaa !16
  %149 = load ptr, ptr %4, align 8, !tbaa !9
  %150 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %149)
  %151 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %150, double -1.000000e-01)
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %153 = load ptr, ptr %152, align 8, !tbaa !15
  %154 = load i64, ptr %16, 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 %17, align 8, !tbaa !11
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %156, i64 %157
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %158, i32 0, i32 1
  store double %151, ptr %159, align 8, !tbaa !18
  br label %160

160:                                              ; preds = %137, %102
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %17, align 8, !tbaa !11
  %163 = add nsw i64 %162, 1
  store i64 %163, ptr %17, align 8, !tbaa !11
  br label %93, !llvm.loop !19

164:                                              ; preds = %93
  br label %165

165:                                              ; preds = %164
  %166 = load i64, ptr %16, align 8, !tbaa !11
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %16, align 8, !tbaa !11
  br label %87, !llvm.loop !21

168:                                              ; preds = %87
  %169 = load i64, ptr %18, align 8, !tbaa !11
  %170 = load i64, ptr %18, align 8, !tbaa !11
  %171 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL34testsafesolveunit_cmatrixmakeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %22, i64 noundef %169, i64 noundef %170, ptr noundef %24, ptr noundef %171)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %172

172:                                              ; preds = %227, %168
  %173 = load i64, ptr %16, align 8, !tbaa !11
  %174 = load i64, ptr %18, align 8, !tbaa !11
  %175 = sub nsw i64 %174, 1
  %176 = icmp sle i64 %173, %175
  br i1 %176, label %177, label %230

177:                                              ; preds = %172
  %178 = load i8, ptr %11, align 1, !tbaa !5, !range !22, !noundef !23
  %179 = trunc i8 %178 to i1
  br i1 %179, label %180, label %183

180:                                              ; preds = %177
  store i64 0, ptr %19, align 8, !tbaa !11
  %181 = load i64, ptr %16, align 8, !tbaa !11
  %182 = sub nsw i64 %181, 1
  store i64 %182, ptr %20, align 8, !tbaa !11
  br label %188

183:                                              ; preds = %177
  %184 = load i64, ptr %16, align 8, !tbaa !11
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %19, align 8, !tbaa !11
  %186 = load i64, ptr %18, align 8, !tbaa !11
  %187 = sub nsw i64 %186, 1
  store i64 %187, ptr %20, align 8, !tbaa !11
  br label %188

188:                                              ; preds = %183, %180
  %189 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %189, ptr %17, align 8, !tbaa !11
  br label %190

190:                                              ; preds = %207, %188
  %191 = load i64, ptr %17, align 8, !tbaa !11
  %192 = load i64, ptr %20, align 8, !tbaa !11
  %193 = icmp sle i64 %191, %192
  br i1 %193, label %194, label %210

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %195 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %196 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %197 = extractvalue { double, double } %195, 0
  store double %197, ptr %196, align 8
  %198 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %199 = extractvalue { double, double } %195, 1
  store double %199, ptr %198, align 8
  %200 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %201 = load ptr, ptr %200, align 8, !tbaa !15
  %202 = load i64, ptr %16, align 8, !tbaa !11
  %203 = getelementptr inbounds ptr, ptr %201, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !9
  %205 = load i64, ptr %17, align 8, !tbaa !11
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %204, i64 %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %206, ptr align 8 %34, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %207

207:                                              ; preds = %194
  %208 = load i64, ptr %17, align 8, !tbaa !11
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %17, align 8, !tbaa !11
  br label %190, !llvm.loop !25

210:                                              ; preds = %190
  %211 = load i8, ptr %13, align 1, !tbaa !5, !range !22, !noundef !23
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %226

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  %214 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %215 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %216 = extractvalue { double, double } %214, 0
  store double %216, ptr %215, align 8
  %217 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %218 = extractvalue { double, double } %214, 1
  store double %218, ptr %217, align 8
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %221 = load i64, ptr %16, align 8, !tbaa !11
  %222 = getelementptr inbounds ptr, ptr %220, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = load i64, ptr %16, align 8, !tbaa !11
  %225 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %223, i64 %224
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %225, ptr align 8 %35, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %226

226:                                              ; preds = %213, %210
  br label %227

227:                                              ; preds = %226
  %228 = load i64, ptr %16, align 8, !tbaa !11
  %229 = add nsw i64 %228, 1
  store i64 %229, ptr %16, align 8, !tbaa !11
  br label %172, !llvm.loop !26

230:                                              ; preds = %172
  %231 = load i64, ptr %18, align 8, !tbaa !11
  %232 = load i64, ptr %18, align 8, !tbaa !11
  %233 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %23, i64 noundef %231, i64 noundef %232, ptr noundef %233)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %234

234:                                              ; preds = %304, %230
  %235 = load i64, ptr %16, align 8, !tbaa !11
  %236 = load i64, ptr %18, align 8, !tbaa !11
  %237 = sub nsw i64 %236, 1
  %238 = icmp sle i64 %235, %237
  br i1 %238, label %239, label %307

239:                                              ; preds = %234
  %240 = load i64, ptr %12, align 8, !tbaa !11
  %241 = icmp eq i64 %240, 0
  br i1 %241, label %242, label %259

242:                                              ; preds = %239
  %243 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %244 = load ptr, ptr %243, align 8, !tbaa !15
  %245 = load i64, ptr %16, align 8, !tbaa !11
  %246 = getelementptr inbounds ptr, ptr %244, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %247, i64 0
  %249 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %250 = load ptr, ptr %249, align 8, !tbaa !15
  %251 = load i64, ptr %16, align 8, !tbaa !11
  %252 = getelementptr inbounds ptr, ptr %250, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %253, i64 0
  %255 = load i64, ptr %18, align 8, !tbaa !11
  %256 = sub nsw i64 %255, 1
  %257 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %256)
  %258 = load double, ptr %14, align 8, !tbaa !13
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %248, i64 noundef 1, ptr noundef %254, i64 noundef 1, ptr noundef @.str.191, i64 noundef %257, double noundef %258)
  br label %259

259:                                              ; preds = %242, %239
  %260 = load i64, ptr %12, align 8, !tbaa !11
  %261 = icmp eq i64 %260, 1
  br i1 %261, label %262, label %281

262:                                              ; preds = %259
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %264 = load ptr, ptr %263, align 8, !tbaa !15
  %265 = getelementptr inbounds ptr, ptr %264, i64 0
  %266 = load ptr, ptr %265, align 8, !tbaa !9
  %267 = load i64, ptr %16, align 8, !tbaa !11
  %268 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %266, i64 %267
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 2
  %270 = load i64, ptr %269, align 8, !tbaa !27
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %272 = load ptr, ptr %271, align 8, !tbaa !15
  %273 = load i64, ptr %16, align 8, !tbaa !11
  %274 = getelementptr inbounds ptr, ptr %272, i64 %273
  %275 = load ptr, ptr %274, align 8, !tbaa !9
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %275, i64 0
  %277 = load i64, ptr %18, align 8, !tbaa !11
  %278 = sub nsw i64 %277, 1
  %279 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %278)
  %280 = load double, ptr %14, align 8, !tbaa !13
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %268, i64 noundef %270, ptr noundef %276, i64 noundef 1, ptr noundef @.str.191, i64 noundef %279, double noundef %280)
  br label %281

281:                                              ; preds = %262, %259
  %282 = load i64, ptr %12, align 8, !tbaa !11
  %283 = icmp eq i64 %282, 2
  br i1 %283, label %284, label %303

284:                                              ; preds = %281
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %286 = load ptr, ptr %285, align 8, !tbaa !15
  %287 = getelementptr inbounds ptr, ptr %286, i64 0
  %288 = load ptr, ptr %287, align 8, !tbaa !9
  %289 = load i64, ptr %16, align 8, !tbaa !11
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %288, i64 %289
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 2
  %292 = load i64, ptr %291, align 8, !tbaa !27
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %24, i32 0, i32 6
  %294 = load ptr, ptr %293, align 8, !tbaa !15
  %295 = load i64, ptr %16, align 8, !tbaa !11
  %296 = getelementptr inbounds ptr, ptr %294, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !9
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %297, i64 0
  %299 = load i64, ptr %18, align 8, !tbaa !11
  %300 = sub nsw i64 %299, 1
  %301 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %300)
  %302 = load double, ptr %14, align 8, !tbaa !13
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %290, i64 noundef %292, ptr noundef %298, i64 noundef 1, ptr noundef @.str.190, i64 noundef %301, double noundef %302)
  br label %303

303:                                              ; preds = %284, %281
  br label %304

304:                                              ; preds = %303
  %305 = load i64, ptr %16, align 8, !tbaa !11
  %306 = add nsw i64 %305, 1
  store i64 %306, ptr %16, align 8, !tbaa !11
  br label %234, !llvm.loop !30

307:                                              ; preds = %234
  %308 = load i64, ptr %18, align 8, !tbaa !11
  %309 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %308, ptr noundef %309)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %310

310:                                              ; preds = %332, %307
  %311 = load i64, ptr %16, align 8, !tbaa !11
  %312 = load i64, ptr %18, align 8, !tbaa !11
  %313 = sub nsw i64 %312, 1
  %314 = icmp sle i64 %311, %313
  br i1 %314, label %315, label %335

315:                                              ; preds = %310
  %316 = load ptr, ptr %4, align 8, !tbaa !9
  %317 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %316)
  %318 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %317, double -1.000000e+00)
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !15
  %321 = load i64, ptr %16, align 8, !tbaa !11
  %322 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %320, i64 %321
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %322, i32 0, i32 0
  store double %318, ptr %323, align 8, !tbaa !16
  %324 = load ptr, ptr %4, align 8, !tbaa !9
  %325 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %324)
  %326 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %325, double -1.000000e+00)
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !15
  %329 = load i64, ptr %16, align 8, !tbaa !11
  %330 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %328, i64 %329
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %330, i32 0, i32 1
  store double %326, ptr %331, align 8, !tbaa !18
  br label %332

332:                                              ; preds = %315
  %333 = load i64, ptr %16, align 8, !tbaa !11
  %334 = add nsw i64 %333, 1
  store i64 %334, ptr %16, align 8, !tbaa !11
  br label %310, !llvm.loop !31

335:                                              ; preds = %310
  %336 = load i64, ptr %18, align 8, !tbaa !11
  %337 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %336, ptr noundef %337)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %338

338:                                              ; preds = %365, %335
  %339 = load i64, ptr %16, align 8, !tbaa !11
  %340 = load i64, ptr %18, align 8, !tbaa !11
  %341 = sub nsw i64 %340, 1
  %342 = icmp sle i64 %339, %341
  br i1 %342, label %343, label %368

343:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %344 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %23, i32 0, i32 6
  %345 = load ptr, ptr %344, align 8, !tbaa !15
  %346 = load i64, ptr %16, align 8, !tbaa !11
  %347 = getelementptr inbounds ptr, ptr %345, i64 %346
  %348 = load ptr, ptr %347, align 8, !tbaa !9
  %349 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %348, i64 0
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !15
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %351, i64 0
  %353 = load i64, ptr %18, align 8, !tbaa !11
  %354 = sub nsw i64 %353, 1
  %355 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %354)
  %356 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %349, i64 noundef 1, ptr noundef @.str.191, ptr noundef %352, i64 noundef 1, ptr noundef @.str.191, i64 noundef %355)
  %357 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %358 = extractvalue { double, double } %356, 0
  store double %358, ptr %357, align 8
  %359 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %360 = extractvalue { double, double } %356, 1
  store double %360, ptr %359, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  %361 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %362 = load ptr, ptr %361, align 8, !tbaa !15
  %363 = load i64, ptr %16, align 8, !tbaa !11
  %364 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %362, i64 %363
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %364, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !24
  br label %365

365:                                              ; preds = %343
  %366 = load i64, ptr %16, align 8, !tbaa !11
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %16, align 8, !tbaa !11
  br label %338, !llvm.loop !32

368:                                              ; preds = %338
  %369 = load double, ptr %14, align 8, !tbaa !13
  %370 = load i64, ptr %18, align 8, !tbaa !11
  %371 = load i8, ptr %11, align 1, !tbaa !5, !range !22, !noundef !23
  %372 = trunc i8 %371 to i1
  %373 = load i64, ptr %12, align 8, !tbaa !11
  %374 = load i8, ptr %13, align 1, !tbaa !5, !range !22, !noundef !23
  %375 = trunc i8 %374 to i1
  %376 = load ptr, ptr %4, align 8, !tbaa !9
  %377 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %376)
  %378 = load ptr, ptr %4, align 8, !tbaa !9
  %379 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %22, double noundef %369, i64 noundef %370, ptr noundef %25, i1 noundef zeroext %372, i64 noundef %373, i1 noundef zeroext %375, double noundef %377, ptr noundef %378)
  br i1 %379, label %380, label %426

380:                                              ; preds = %368
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %381

381:                                              ; preds = %422, %380
  %382 = load i64, ptr %16, align 8, !tbaa !11
  %383 = load i64, ptr %18, align 8, !tbaa !11
  %384 = sub nsw i64 %383, 1
  %385 = icmp sle i64 %382, %384
  br i1 %385, label %386, label %425

386:                                              ; preds = %381
  %387 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %388 = trunc i8 %387 to i1
  br i1 %388, label %419, label %389

389:                                              ; preds = %386
  %390 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %391 = load ptr, ptr %390, align 8, !tbaa !15
  %392 = load i64, ptr %16, align 8, !tbaa !11
  %393 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %391, i64 %392
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %393, i64 16, i1 false), !tbaa.struct !24
  %394 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %395 = load ptr, ptr %394, align 8, !tbaa !15
  %396 = load i64, ptr %16, align 8, !tbaa !11
  %397 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %395, i64 %396
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %397, i64 16, i1 false), !tbaa.struct !24
  %398 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %399 = load double, ptr %398, align 8
  %400 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %401 = load double, ptr %400, align 8
  %402 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %403 = load double, ptr %402, align 8
  %404 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %405 = load double, ptr %404, align 8
  %406 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %399, double %401, double %403, double %405)
  %407 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %408 = extractvalue { double, double } %406, 0
  store double %408, ptr %407, align 8
  %409 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %410 = extractvalue { double, double } %406, 1
  store double %410, ptr %409, align 8
  %411 = load ptr, ptr %4, align 8, !tbaa !9
  %412 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %413 = load double, ptr %412, align 8
  %414 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %415 = load double, ptr %414, align 8
  %416 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %413, double %415, ptr noundef %411)
  %417 = load double, ptr %7, align 8, !tbaa !13
  %418 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %416, double noundef %417)
  br label %419

419:                                              ; preds = %389, %386
  %420 = phi i1 [ true, %386 ], [ %418, %389 ]
  %421 = zext i1 %420 to i8
  store i8 %421, ptr %9, align 1, !tbaa !5
  br label %422

422:                                              ; preds = %419
  %423 = load i64, ptr %16, align 8, !tbaa !11
  %424 = add nsw i64 %423, 1
  store i64 %424, ptr %16, align 8, !tbaa !11
  br label %381, !llvm.loop !33

425:                                              ; preds = %381
  br label %427

426:                                              ; preds = %368
  store i8 1, ptr %9, align 1, !tbaa !5
  br label %427

427:                                              ; preds = %426, %425
  %428 = load ptr, ptr %4, align 8, !tbaa !9
  %429 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %428)
  %430 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %429, double noundef 5.000000e-01)
  %431 = zext i1 %430 to i8
  store i8 %431, ptr %11, align 1, !tbaa !5
  %432 = load ptr, ptr %4, align 8, !tbaa !9
  %433 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %432)
  store i64 %433, ptr %12, align 8, !tbaa !11
  %434 = load ptr, ptr %4, align 8, !tbaa !9
  %435 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %434)
  %436 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %435, double noundef 5.000000e-01)
  %437 = zext i1 %436 to i8
  store i8 %437, ptr %13, align 1, !tbaa !5
  %438 = load ptr, ptr %4, align 8, !tbaa !9
  %439 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %438)
  %440 = fadd double %439, 5.000000e-01
  store double %440, ptr %14, align 8, !tbaa !13
  %441 = load i64, ptr %18, align 8, !tbaa !11
  %442 = load i64, ptr %18, align 8, !tbaa !11
  %443 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %441, i64 noundef %442, ptr noundef %443)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %444

444:                                              ; preds = %492, %427
  %445 = load i64, ptr %16, align 8, !tbaa !11
  %446 = load i64, ptr %18, align 8, !tbaa !11
  %447 = sub nsw i64 %446, 1
  %448 = icmp sle i64 %445, %447
  br i1 %448, label %449, label %495

449:                                              ; preds = %444
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %450

450:                                              ; preds = %488, %449
  %451 = load i64, ptr %17, align 8, !tbaa !11
  %452 = load i64, ptr %18, align 8, !tbaa !11
  %453 = sub nsw i64 %452, 1
  %454 = icmp sle i64 %451, %453
  br i1 %454, label %455, label %491

455:                                              ; preds = %450
  %456 = load i64, ptr %16, align 8, !tbaa !11
  %457 = load i64, ptr %17, align 8, !tbaa !11
  %458 = icmp eq i64 %456, %457
  br i1 %458, label %459, label %476

459:                                              ; preds = %455
  %460 = load ptr, ptr %4, align 8, !tbaa !9
  %461 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %460)
  %462 = mul nsw i64 2, %461
  %463 = sub nsw i64 %462, 1
  %464 = sitofp i64 %463 to double
  %465 = load ptr, ptr %4, align 8, !tbaa !9
  %466 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %465)
  %467 = fadd double 5.000000e+00, %466
  %468 = fmul double %464, %467
  %469 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %470 = load ptr, ptr %469, align 8, !tbaa !15
  %471 = load i64, ptr %16, align 8, !tbaa !11
  %472 = getelementptr inbounds ptr, ptr %470, i64 %471
  %473 = load ptr, ptr %472, align 8, !tbaa !9
  %474 = load i64, ptr %17, align 8, !tbaa !11
  %475 = getelementptr inbounds double, ptr %473, i64 %474
  store double %468, ptr %475, align 8, !tbaa !13
  br label %487

476:                                              ; preds = %455
  %477 = load ptr, ptr %4, align 8, !tbaa !9
  %478 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %477)
  %479 = call double @llvm.fmuladd.f64(double 2.000000e-01, double %478, double -1.000000e-01)
  %480 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %481 = load ptr, ptr %480, align 8, !tbaa !15
  %482 = load i64, ptr %16, align 8, !tbaa !11
  %483 = getelementptr inbounds ptr, ptr %481, i64 %482
  %484 = load ptr, ptr %483, align 8, !tbaa !9
  %485 = load i64, ptr %17, align 8, !tbaa !11
  %486 = getelementptr inbounds double, ptr %484, i64 %485
  store double %479, ptr %486, align 8, !tbaa !13
  br label %487

487:                                              ; preds = %476, %459
  br label %488

488:                                              ; preds = %487
  %489 = load i64, ptr %17, align 8, !tbaa !11
  %490 = add nsw i64 %489, 1
  store i64 %490, ptr %17, align 8, !tbaa !11
  br label %450, !llvm.loop !34

491:                                              ; preds = %450
  br label %492

492:                                              ; preds = %491
  %493 = load i64, ptr %16, align 8, !tbaa !11
  %494 = add nsw i64 %493, 1
  store i64 %494, ptr %16, align 8, !tbaa !11
  br label %444, !llvm.loop !35

495:                                              ; preds = %444
  %496 = load i64, ptr %18, align 8, !tbaa !11
  %497 = load i64, ptr %18, align 8, !tbaa !11
  %498 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL34testsafesolveunit_rmatrixmakeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %28, i64 noundef %496, i64 noundef %497, ptr noundef %30, ptr noundef %498)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %499

499:                                              ; preds = %544, %495
  %500 = load i64, ptr %16, align 8, !tbaa !11
  %501 = load i64, ptr %18, align 8, !tbaa !11
  %502 = sub nsw i64 %501, 1
  %503 = icmp sle i64 %500, %502
  br i1 %503, label %504, label %547

504:                                              ; preds = %499
  %505 = load i8, ptr %11, align 1, !tbaa !5, !range !22, !noundef !23
  %506 = trunc i8 %505 to i1
  br i1 %506, label %507, label %510

507:                                              ; preds = %504
  store i64 0, ptr %19, align 8, !tbaa !11
  %508 = load i64, ptr %16, align 8, !tbaa !11
  %509 = sub nsw i64 %508, 1
  store i64 %509, ptr %20, align 8, !tbaa !11
  br label %515

510:                                              ; preds = %504
  %511 = load i64, ptr %16, align 8, !tbaa !11
  %512 = add nsw i64 %511, 1
  store i64 %512, ptr %19, align 8, !tbaa !11
  %513 = load i64, ptr %18, align 8, !tbaa !11
  %514 = sub nsw i64 %513, 1
  store i64 %514, ptr %20, align 8, !tbaa !11
  br label %515

515:                                              ; preds = %510, %507
  %516 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %516, ptr %17, align 8, !tbaa !11
  br label %517

517:                                              ; preds = %529, %515
  %518 = load i64, ptr %17, align 8, !tbaa !11
  %519 = load i64, ptr %20, align 8, !tbaa !11
  %520 = icmp sle i64 %518, %519
  br i1 %520, label %521, label %532

521:                                              ; preds = %517
  %522 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 6
  %523 = load ptr, ptr %522, align 8, !tbaa !15
  %524 = load i64, ptr %16, align 8, !tbaa !11
  %525 = getelementptr inbounds ptr, ptr %523, i64 %524
  %526 = load ptr, ptr %525, align 8, !tbaa !9
  %527 = load i64, ptr %17, align 8, !tbaa !11
  %528 = getelementptr inbounds double, ptr %526, i64 %527
  store double 0.000000e+00, ptr %528, align 8, !tbaa !13
  br label %529

529:                                              ; preds = %521
  %530 = load i64, ptr %17, align 8, !tbaa !11
  %531 = add nsw i64 %530, 1
  store i64 %531, ptr %17, align 8, !tbaa !11
  br label %517, !llvm.loop !36

532:                                              ; preds = %517
  %533 = load i8, ptr %13, align 1, !tbaa !5, !range !22, !noundef !23
  %534 = trunc i8 %533 to i1
  br i1 %534, label %535, label %543

535:                                              ; preds = %532
  %536 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 6
  %537 = load ptr, ptr %536, align 8, !tbaa !15
  %538 = load i64, ptr %16, align 8, !tbaa !11
  %539 = getelementptr inbounds ptr, ptr %537, i64 %538
  %540 = load ptr, ptr %539, align 8, !tbaa !9
  %541 = load i64, ptr %16, align 8, !tbaa !11
  %542 = getelementptr inbounds double, ptr %540, i64 %541
  store double 1.000000e+00, ptr %542, align 8, !tbaa !13
  br label %543

543:                                              ; preds = %535, %532
  br label %544

544:                                              ; preds = %543
  %545 = load i64, ptr %16, align 8, !tbaa !11
  %546 = add nsw i64 %545, 1
  store i64 %546, ptr %16, align 8, !tbaa !11
  br label %499, !llvm.loop !37

547:                                              ; preds = %499
  %548 = load i64, ptr %18, align 8, !tbaa !11
  %549 = load i64, ptr %18, align 8, !tbaa !11
  %550 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %29, i64 noundef %548, i64 noundef %549, ptr noundef %550)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %551

551:                                              ; preds = %599, %547
  %552 = load i64, ptr %16, align 8, !tbaa !11
  %553 = load i64, ptr %18, align 8, !tbaa !11
  %554 = sub nsw i64 %553, 1
  %555 = icmp sle i64 %552, %554
  br i1 %555, label %556, label %602

556:                                              ; preds = %551
  %557 = load i64, ptr %12, align 8, !tbaa !11
  %558 = icmp eq i64 %557, 0
  br i1 %558, label %559, label %576

559:                                              ; preds = %556
  %560 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %561 = load ptr, ptr %560, align 8, !tbaa !15
  %562 = load i64, ptr %16, align 8, !tbaa !11
  %563 = getelementptr inbounds ptr, ptr %561, i64 %562
  %564 = load ptr, ptr %563, align 8, !tbaa !9
  %565 = getelementptr inbounds double, ptr %564, i64 0
  %566 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 6
  %567 = load ptr, ptr %566, align 8, !tbaa !15
  %568 = load i64, ptr %16, align 8, !tbaa !11
  %569 = getelementptr inbounds ptr, ptr %567, i64 %568
  %570 = load ptr, ptr %569, align 8, !tbaa !9
  %571 = getelementptr inbounds double, ptr %570, i64 0
  %572 = load i64, ptr %18, align 8, !tbaa !11
  %573 = sub nsw i64 %572, 1
  %574 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %573)
  %575 = load double, ptr %14, align 8, !tbaa !13
  call void @_ZN11alglib_impl10ae_v_movedEPdlPKdlld(ptr noundef %565, i64 noundef 1, ptr noundef %571, i64 noundef 1, i64 noundef %574, double noundef %575)
  br label %576

576:                                              ; preds = %559, %556
  %577 = load i64, ptr %12, align 8, !tbaa !11
  %578 = icmp eq i64 %577, 1
  br i1 %578, label %579, label %598

579:                                              ; preds = %576
  %580 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %581 = load ptr, ptr %580, align 8, !tbaa !15
  %582 = getelementptr inbounds ptr, ptr %581, i64 0
  %583 = load ptr, ptr %582, align 8, !tbaa !9
  %584 = load i64, ptr %16, align 8, !tbaa !11
  %585 = getelementptr inbounds double, ptr %583, i64 %584
  %586 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 2
  %587 = load i64, ptr %586, align 8, !tbaa !27
  %588 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %30, i32 0, i32 6
  %589 = load ptr, ptr %588, align 8, !tbaa !15
  %590 = load i64, ptr %16, align 8, !tbaa !11
  %591 = getelementptr inbounds ptr, ptr %589, i64 %590
  %592 = load ptr, ptr %591, align 8, !tbaa !9
  %593 = getelementptr inbounds double, ptr %592, i64 0
  %594 = load i64, ptr %18, align 8, !tbaa !11
  %595 = sub nsw i64 %594, 1
  %596 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %595)
  %597 = load double, ptr %14, align 8, !tbaa !13
  call void @_ZN11alglib_impl10ae_v_movedEPdlPKdlld(ptr noundef %585, i64 noundef %587, ptr noundef %593, i64 noundef 1, i64 noundef %596, double noundef %597)
  br label %598

598:                                              ; preds = %579, %576
  br label %599

599:                                              ; preds = %598
  %600 = load i64, ptr %16, align 8, !tbaa !11
  %601 = add nsw i64 %600, 1
  store i64 %601, ptr %16, align 8, !tbaa !11
  br label %551, !llvm.loop !38

602:                                              ; preds = %551
  %603 = load i64, ptr %18, align 8, !tbaa !11
  %604 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %32, i64 noundef %603, ptr noundef %604)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %605

605:                                              ; preds = %618, %602
  %606 = load i64, ptr %16, align 8, !tbaa !11
  %607 = load i64, ptr %18, align 8, !tbaa !11
  %608 = sub nsw i64 %607, 1
  %609 = icmp sle i64 %606, %608
  br i1 %609, label %610, label %621

610:                                              ; preds = %605
  %611 = load ptr, ptr %4, align 8, !tbaa !9
  %612 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %611)
  %613 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %612, double -1.000000e+00)
  %614 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %615 = load ptr, ptr %614, align 8, !tbaa !15
  %616 = load i64, ptr %16, align 8, !tbaa !11
  %617 = getelementptr inbounds double, ptr %615, i64 %616
  store double %613, ptr %617, align 8, !tbaa !13
  br label %618

618:                                              ; preds = %610
  %619 = load i64, ptr %16, align 8, !tbaa !11
  %620 = add nsw i64 %619, 1
  store i64 %620, ptr %16, align 8, !tbaa !11
  br label %605, !llvm.loop !39

621:                                              ; preds = %605
  %622 = load i64, ptr %18, align 8, !tbaa !11
  %623 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %622, ptr noundef %623)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %624

624:                                              ; preds = %648, %621
  %625 = load i64, ptr %16, align 8, !tbaa !11
  %626 = load i64, ptr %18, align 8, !tbaa !11
  %627 = sub nsw i64 %626, 1
  %628 = icmp sle i64 %625, %627
  br i1 %628, label %629, label %651

629:                                              ; preds = %624
  %630 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %29, i32 0, i32 6
  %631 = load ptr, ptr %630, align 8, !tbaa !15
  %632 = load i64, ptr %16, align 8, !tbaa !11
  %633 = getelementptr inbounds ptr, ptr %631, i64 %632
  %634 = load ptr, ptr %633, align 8, !tbaa !9
  %635 = getelementptr inbounds double, ptr %634, i64 0
  %636 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %637 = load ptr, ptr %636, align 8, !tbaa !15
  %638 = getelementptr inbounds double, ptr %637, i64 0
  %639 = load i64, ptr %18, align 8, !tbaa !11
  %640 = sub nsw i64 %639, 1
  %641 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %640)
  %642 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %635, i64 noundef 1, ptr noundef %638, i64 noundef 1, i64 noundef %641)
  store double %642, ptr %27, align 8, !tbaa !13
  %643 = load double, ptr %27, align 8, !tbaa !13
  %644 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %645 = load ptr, ptr %644, align 8, !tbaa !15
  %646 = load i64, ptr %16, align 8, !tbaa !11
  %647 = getelementptr inbounds double, ptr %645, i64 %646
  store double %643, ptr %647, align 8, !tbaa !13
  br label %648

648:                                              ; preds = %629
  %649 = load i64, ptr %16, align 8, !tbaa !11
  %650 = add nsw i64 %649, 1
  store i64 %650, ptr %16, align 8, !tbaa !11
  br label %624, !llvm.loop !40

651:                                              ; preds = %624
  %652 = load double, ptr %14, align 8, !tbaa !13
  %653 = load i64, ptr %18, align 8, !tbaa !11
  %654 = load i8, ptr %11, align 1, !tbaa !5, !range !22, !noundef !23
  %655 = trunc i8 %654 to i1
  %656 = load i64, ptr %12, align 8, !tbaa !11
  %657 = load i8, ptr %13, align 1, !tbaa !5, !range !22, !noundef !23
  %658 = trunc i8 %657 to i1
  %659 = load ptr, ptr %4, align 8, !tbaa !9
  %660 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %659)
  %661 = load ptr, ptr %4, align 8, !tbaa !9
  %662 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %28, double noundef %652, i64 noundef %653, ptr noundef %31, i1 noundef zeroext %655, i64 noundef %656, i1 noundef zeroext %658, double noundef %660, ptr noundef %661)
  br i1 %662, label %663, label %695

663:                                              ; preds = %651
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %664

664:                                              ; preds = %691, %663
  %665 = load i64, ptr %16, align 8, !tbaa !11
  %666 = load i64, ptr %18, align 8, !tbaa !11
  %667 = sub nsw i64 %666, 1
  %668 = icmp sle i64 %665, %667
  br i1 %668, label %669, label %694

669:                                              ; preds = %664
  %670 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %671 = trunc i8 %670 to i1
  br i1 %671, label %688, label %672

672:                                              ; preds = %669
  %673 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %674 = load ptr, ptr %673, align 8, !tbaa !15
  %675 = load i64, ptr %16, align 8, !tbaa !11
  %676 = getelementptr inbounds double, ptr %674, i64 %675
  %677 = load double, ptr %676, align 8, !tbaa !13
  %678 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 4
  %679 = load ptr, ptr %678, align 8, !tbaa !15
  %680 = load i64, ptr %16, align 8, !tbaa !11
  %681 = getelementptr inbounds double, ptr %679, i64 %680
  %682 = load double, ptr %681, align 8, !tbaa !13
  %683 = fsub double %677, %682
  %684 = load ptr, ptr %4, align 8, !tbaa !9
  %685 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %683, ptr noundef %684)
  %686 = load double, ptr %7, align 8, !tbaa !13
  %687 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %685, double noundef %686)
  br label %688

688:                                              ; preds = %672, %669
  %689 = phi i1 [ true, %669 ], [ %687, %672 ]
  %690 = zext i1 %689 to i8
  store i8 %690, ptr %8, align 1, !tbaa !5
  br label %691

691:                                              ; preds = %688
  %692 = load i64, ptr %16, align 8, !tbaa !11
  %693 = add nsw i64 %692, 1
  store i64 %693, ptr %16, align 8, !tbaa !11
  br label %664, !llvm.loop !41

694:                                              ; preds = %664
  br label %696

695:                                              ; preds = %651
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %696

696:                                              ; preds = %695, %694
  br label %697

697:                                              ; preds = %696
  %698 = load i64, ptr %18, align 8, !tbaa !11
  %699 = add nsw i64 %698, 1
  store i64 %699, ptr %18, align 8, !tbaa !11
  br label %66, !llvm.loop !42

700:                                              ; preds = %66
  store i64 2, ptr %18, align 8, !tbaa !11
  store double 1.000000e+01, ptr %15, align 8, !tbaa !13
  %701 = load i64, ptr %18, align 8, !tbaa !11
  %702 = load i64, ptr %18, align 8, !tbaa !11
  %703 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %701, i64 noundef %702, ptr noundef %703)
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %704 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %705 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %706 = extractvalue { double, double } %704, 0
  store double %706, ptr %705, align 8
  %707 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %708 = extractvalue { double, double } %704, 1
  store double %708, ptr %707, align 8
  %709 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %710 = load ptr, ptr %709, align 8, !tbaa !15
  %711 = getelementptr inbounds ptr, ptr %710, i64 0
  %712 = load ptr, ptr %711, align 8, !tbaa !9
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %712, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %713, ptr align 8 %40, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %714 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %715 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %716 = extractvalue { double, double } %714, 0
  store double %716, ptr %715, align 8
  %717 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %718 = extractvalue { double, double } %714, 1
  store double %718, ptr %717, align 8
  %719 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %720 = load ptr, ptr %719, align 8, !tbaa !15
  %721 = getelementptr inbounds ptr, ptr %720, i64 0
  %722 = load ptr, ptr %721, align 8, !tbaa !9
  %723 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %722, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %723, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  %724 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %725 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %726 = extractvalue { double, double } %724, 0
  store double %726, ptr %725, align 8
  %727 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %728 = extractvalue { double, double } %724, 1
  store double %728, ptr %727, align 8
  %729 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %730 = load ptr, ptr %729, align 8, !tbaa !15
  %731 = getelementptr inbounds ptr, ptr %730, i64 1
  %732 = load ptr, ptr %731, align 8, !tbaa !9
  %733 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %732, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %733, ptr align 8 %42, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  %734 = load double, ptr %15, align 8, !tbaa !13
  %735 = fdiv double 1.000000e+00, %734
  %736 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef %735)
  %737 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %738 = extractvalue { double, double } %736, 0
  store double %738, ptr %737, align 8
  %739 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %740 = extractvalue { double, double } %736, 1
  store double %740, ptr %739, align 8
  %741 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %742 = load ptr, ptr %741, align 8, !tbaa !15
  %743 = getelementptr inbounds ptr, ptr %742, i64 1
  %744 = load ptr, ptr %743, align 8, !tbaa !9
  %745 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %744, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %745, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  %746 = load i64, ptr %18, align 8, !tbaa !11
  %747 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %746, ptr noundef %747)
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  %748 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %749 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 0
  %750 = extractvalue { double, double } %748, 0
  store double %750, ptr %749, align 8
  %751 = getelementptr inbounds { double, double }, ptr %44, i32 0, i32 1
  %752 = extractvalue { double, double } %748, 1
  store double %752, ptr %751, align 8
  %753 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %754 = load ptr, ptr %753, align 8, !tbaa !15
  %755 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %754, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %755, ptr align 8 %44, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %45) #6
  %756 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 5.000000e-01)
  %757 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %758 = extractvalue { double, double } %756, 0
  store double %758, ptr %757, align 8
  %759 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %760 = extractvalue { double, double } %756, 1
  store double %760, ptr %759, align 8
  %761 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %762 = load ptr, ptr %761, align 8, !tbaa !15
  %763 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %762, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %763, ptr align 8 %45, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %45) #6
  %764 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %765 = trunc i8 %764 to i1
  br i1 %765, label %790, label %766

766:                                              ; preds = %700
  %767 = load i64, ptr %18, align 8, !tbaa !11
  %768 = load ptr, ptr %4, align 8, !tbaa !9
  %769 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %768)
  %770 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %769, double noundef 5.000000e-01)
  %771 = load ptr, ptr %4, align 8, !tbaa !9
  %772 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %771)
  %773 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %774 = load ptr, ptr %773, align 8, !tbaa !15
  %775 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %774, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %46, ptr align 8 %775, i64 16, i1 false), !tbaa.struct !24
  %776 = load ptr, ptr %4, align 8, !tbaa !9
  %777 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %778 = load double, ptr %777, align 8
  %779 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %780 = load double, ptr %779, align 8
  %781 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %778, double %780, ptr noundef %776)
  %782 = load double, ptr %15, align 8, !tbaa !13
  %783 = fmul double %781, %782
  %784 = load ptr, ptr %4, align 8, !tbaa !9
  %785 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %783, double noundef 1.000000e+00, ptr noundef %784)
  %786 = fmul double 1.050000e+00, %785
  %787 = load ptr, ptr %4, align 8, !tbaa !9
  %788 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %22, double noundef 1.000000e+00, i64 noundef %767, ptr noundef %25, i1 noundef zeroext %770, i64 noundef %772, i1 noundef zeroext false, double noundef %786, ptr noundef %787)
  %789 = xor i1 %788, true
  br label %790

790:                                              ; preds = %766, %700
  %791 = phi i1 [ true, %700 ], [ %789, %766 ]
  %792 = zext i1 %791 to i8
  store i8 %792, ptr %9, align 1, !tbaa !5
  %793 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %794 = trunc i8 %793 to i1
  br i1 %794, label %819, label %795

795:                                              ; preds = %790
  %796 = load i64, ptr %18, align 8, !tbaa !11
  %797 = load ptr, ptr %4, align 8, !tbaa !9
  %798 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %797)
  %799 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %798, double noundef 5.000000e-01)
  %800 = load ptr, ptr %4, align 8, !tbaa !9
  %801 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %800)
  %802 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %803 = load ptr, ptr %802, align 8, !tbaa !15
  %804 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %803, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 8 %804, i64 16, i1 false), !tbaa.struct !24
  %805 = load ptr, ptr %4, align 8, !tbaa !9
  %806 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 0
  %807 = load double, ptr %806, align 8
  %808 = getelementptr inbounds { double, double }, ptr %47, i32 0, i32 1
  %809 = load double, ptr %808, align 8
  %810 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %807, double %809, ptr noundef %805)
  %811 = load double, ptr %15, align 8, !tbaa !13
  %812 = fmul double %810, %811
  %813 = load ptr, ptr %4, align 8, !tbaa !9
  %814 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %812, double noundef 1.000000e+00, ptr noundef %813)
  %815 = fmul double 0x3FEE666666666666, %814
  %816 = load ptr, ptr %4, align 8, !tbaa !9
  %817 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %22, double noundef 1.000000e+00, i64 noundef %796, ptr noundef %25, i1 noundef zeroext %799, i64 noundef %801, i1 noundef zeroext false, double noundef %815, ptr noundef %816)
  %818 = xor i1 %817, true
  br label %819

819:                                              ; preds = %795, %790
  %820 = phi i1 [ true, %790 ], [ %818, %795 ]
  %821 = zext i1 %820 to i8
  store i8 %821, ptr %9, align 1, !tbaa !5
  %822 = load i64, ptr %18, align 8, !tbaa !11
  %823 = load i64, ptr %18, align 8, !tbaa !11
  %824 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %822, i64 noundef %823, ptr noundef %824)
  %825 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %826 = load ptr, ptr %825, align 8, !tbaa !15
  %827 = getelementptr inbounds ptr, ptr %826, i64 0
  %828 = load ptr, ptr %827, align 8, !tbaa !9
  %829 = getelementptr inbounds double, ptr %828, i64 0
  store double 1.000000e+00, ptr %829, align 8, !tbaa !13
  %830 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %831 = load ptr, ptr %830, align 8, !tbaa !15
  %832 = getelementptr inbounds ptr, ptr %831, i64 0
  %833 = load ptr, ptr %832, align 8, !tbaa !9
  %834 = getelementptr inbounds double, ptr %833, i64 1
  store double 0.000000e+00, ptr %834, align 8, !tbaa !13
  %835 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %836 = load ptr, ptr %835, align 8, !tbaa !15
  %837 = getelementptr inbounds ptr, ptr %836, i64 1
  %838 = load ptr, ptr %837, align 8, !tbaa !9
  %839 = getelementptr inbounds double, ptr %838, i64 0
  store double 0.000000e+00, ptr %839, align 8, !tbaa !13
  %840 = load double, ptr %15, align 8, !tbaa !13
  %841 = fdiv double 1.000000e+00, %840
  %842 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %843 = load ptr, ptr %842, align 8, !tbaa !15
  %844 = getelementptr inbounds ptr, ptr %843, i64 1
  %845 = load ptr, ptr %844, align 8, !tbaa !9
  %846 = getelementptr inbounds double, ptr %845, i64 1
  store double %841, ptr %846, align 8, !tbaa !13
  %847 = load i64, ptr %18, align 8, !tbaa !11
  %848 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %847, ptr noundef %848)
  %849 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %850 = load ptr, ptr %849, align 8, !tbaa !15
  %851 = getelementptr inbounds double, ptr %850, i64 0
  store double 1.000000e+00, ptr %851, align 8, !tbaa !13
  %852 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %853 = load ptr, ptr %852, align 8, !tbaa !15
  %854 = getelementptr inbounds double, ptr %853, i64 1
  store double 5.000000e-01, ptr %854, align 8, !tbaa !13
  %855 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %856 = trunc i8 %855 to i1
  br i1 %856, label %878, label %857

857:                                              ; preds = %819
  %858 = load i64, ptr %18, align 8, !tbaa !11
  %859 = load ptr, ptr %4, align 8, !tbaa !9
  %860 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %859)
  %861 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %860, double noundef 5.000000e-01)
  %862 = load ptr, ptr %4, align 8, !tbaa !9
  %863 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %862)
  %864 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %865 = load ptr, ptr %864, align 8, !tbaa !15
  %866 = getelementptr inbounds double, ptr %865, i64 1
  %867 = load double, ptr %866, align 8, !tbaa !13
  %868 = load ptr, ptr %4, align 8, !tbaa !9
  %869 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %867, ptr noundef %868)
  %870 = load double, ptr %15, align 8, !tbaa !13
  %871 = fmul double %869, %870
  %872 = load ptr, ptr %4, align 8, !tbaa !9
  %873 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %871, double noundef 1.000000e+00, ptr noundef %872)
  %874 = fmul double 1.050000e+00, %873
  %875 = load ptr, ptr %4, align 8, !tbaa !9
  %876 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %28, double noundef 1.000000e+00, i64 noundef %858, ptr noundef %31, i1 noundef zeroext %861, i64 noundef %863, i1 noundef zeroext false, double noundef %874, ptr noundef %875)
  %877 = xor i1 %876, true
  br label %878

878:                                              ; preds = %857, %819
  %879 = phi i1 [ true, %819 ], [ %877, %857 ]
  %880 = zext i1 %879 to i8
  store i8 %880, ptr %8, align 1, !tbaa !5
  %881 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %882 = trunc i8 %881 to i1
  br i1 %882, label %904, label %883

883:                                              ; preds = %878
  %884 = load i64, ptr %18, align 8, !tbaa !11
  %885 = load ptr, ptr %4, align 8, !tbaa !9
  %886 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %885)
  %887 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %886, double noundef 5.000000e-01)
  %888 = load ptr, ptr %4, align 8, !tbaa !9
  %889 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %888)
  %890 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %891 = load ptr, ptr %890, align 8, !tbaa !15
  %892 = getelementptr inbounds double, ptr %891, i64 1
  %893 = load double, ptr %892, align 8, !tbaa !13
  %894 = load ptr, ptr %4, align 8, !tbaa !9
  %895 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %893, ptr noundef %894)
  %896 = load double, ptr %15, align 8, !tbaa !13
  %897 = fmul double %895, %896
  %898 = load ptr, ptr %4, align 8, !tbaa !9
  %899 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %897, double noundef 1.000000e+00, ptr noundef %898)
  %900 = fmul double 0x3FEE666666666666, %899
  %901 = load ptr, ptr %4, align 8, !tbaa !9
  %902 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %28, double noundef 1.000000e+00, i64 noundef %884, ptr noundef %31, i1 noundef zeroext %887, i64 noundef %889, i1 noundef zeroext false, double noundef %900, ptr noundef %901)
  %903 = xor i1 %902, true
  br label %904

904:                                              ; preds = %883, %878
  %905 = phi i1 [ true, %878 ], [ %903, %883 ]
  %906 = zext i1 %905 to i8
  store i8 %906, ptr %8, align 1, !tbaa !5
  store i64 2, ptr %18, align 8, !tbaa !11
  %907 = load i64, ptr %18, align 8, !tbaa !11
  %908 = load i64, ptr %18, align 8, !tbaa !11
  %909 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %22, i64 noundef %907, i64 noundef %908, ptr noundef %909)
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #6
  %910 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %911 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %912 = extractvalue { double, double } %910, 0
  store double %912, ptr %911, align 8
  %913 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %914 = extractvalue { double, double } %910, 1
  store double %914, ptr %913, align 8
  %915 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %916 = load ptr, ptr %915, align 8, !tbaa !15
  %917 = getelementptr inbounds ptr, ptr %916, i64 0
  %918 = load ptr, ptr %917, align 8, !tbaa !9
  %919 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %918, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %919, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  %920 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %921 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %922 = extractvalue { double, double } %920, 0
  store double %922, ptr %921, align 8
  %923 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %924 = extractvalue { double, double } %920, 1
  store double %924, ptr %923, align 8
  %925 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %926 = load ptr, ptr %925, align 8, !tbaa !15
  %927 = getelementptr inbounds ptr, ptr %926, i64 0
  %928 = load ptr, ptr %927, align 8, !tbaa !9
  %929 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %928, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %929, ptr align 8 %49, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  %930 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %931 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %932 = extractvalue { double, double } %930, 0
  store double %932, ptr %931, align 8
  %933 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %934 = extractvalue { double, double } %930, 1
  store double %934, ptr %933, align 8
  %935 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %936 = load ptr, ptr %935, align 8, !tbaa !15
  %937 = getelementptr inbounds ptr, ptr %936, i64 1
  %938 = load ptr, ptr %937, align 8, !tbaa !9
  %939 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %938, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %939, ptr align 8 %50, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #6
  %940 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %941 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %942 = extractvalue { double, double } %940, 0
  store double %942, ptr %941, align 8
  %943 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %944 = extractvalue { double, double } %940, 1
  store double %944, ptr %943, align 8
  %945 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %22, i32 0, i32 6
  %946 = load ptr, ptr %945, align 8, !tbaa !15
  %947 = getelementptr inbounds ptr, ptr %946, i64 1
  %948 = load ptr, ptr %947, align 8, !tbaa !9
  %949 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %948, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %949, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #6
  %950 = load i64, ptr %18, align 8, !tbaa !11
  %951 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %950, ptr noundef %951)
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %952 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %953 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 0
  %954 = extractvalue { double, double } %952, 0
  store double %954, ptr %953, align 8
  %955 = getelementptr inbounds { double, double }, ptr %52, i32 0, i32 1
  %956 = extractvalue { double, double } %952, 1
  store double %956, ptr %955, align 8
  %957 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %958 = load ptr, ptr %957, align 8, !tbaa !15
  %959 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %958, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %959, ptr align 8 %52, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  %960 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 5.000000e-01)
  %961 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %962 = extractvalue { double, double } %960, 0
  store double %962, ptr %961, align 8
  %963 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %964 = extractvalue { double, double } %960, 1
  store double %964, ptr %963, align 8
  %965 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 4
  %966 = load ptr, ptr %965, align 8, !tbaa !15
  %967 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %966, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %967, ptr align 8 %53, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  %968 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %969 = trunc i8 %968 to i1
  br i1 %969, label %981, label %970

970:                                              ; preds = %904
  %971 = load i64, ptr %18, align 8, !tbaa !11
  %972 = load ptr, ptr %4, align 8, !tbaa !9
  %973 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %972)
  %974 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %973, double noundef 5.000000e-01)
  %975 = load ptr, ptr %4, align 8, !tbaa !9
  %976 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %975)
  %977 = load ptr, ptr %4, align 8, !tbaa !9
  %978 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %977)
  %979 = load ptr, ptr %4, align 8, !tbaa !9
  %980 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %22, double noundef 1.000000e+00, i64 noundef %971, ptr noundef %25, i1 noundef zeroext %974, i64 noundef %976, i1 noundef zeroext false, double noundef %978, ptr noundef %979)
  br label %981

981:                                              ; preds = %970, %904
  %982 = phi i1 [ true, %904 ], [ %980, %970 ]
  %983 = zext i1 %982 to i8
  store i8 %983, ptr %9, align 1, !tbaa !5
  %984 = load i64, ptr %18, align 8, !tbaa !11
  %985 = load i64, ptr %18, align 8, !tbaa !11
  %986 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %28, i64 noundef %984, i64 noundef %985, ptr noundef %986)
  %987 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %988 = load ptr, ptr %987, align 8, !tbaa !15
  %989 = getelementptr inbounds ptr, ptr %988, i64 0
  %990 = load ptr, ptr %989, align 8, !tbaa !9
  %991 = getelementptr inbounds double, ptr %990, i64 0
  store double 1.000000e+00, ptr %991, align 8, !tbaa !13
  %992 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %993 = load ptr, ptr %992, align 8, !tbaa !15
  %994 = getelementptr inbounds ptr, ptr %993, i64 0
  %995 = load ptr, ptr %994, align 8, !tbaa !9
  %996 = getelementptr inbounds double, ptr %995, i64 1
  store double 0.000000e+00, ptr %996, align 8, !tbaa !13
  %997 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %998 = load ptr, ptr %997, align 8, !tbaa !15
  %999 = getelementptr inbounds ptr, ptr %998, i64 1
  %1000 = load ptr, ptr %999, align 8, !tbaa !9
  %1001 = getelementptr inbounds double, ptr %1000, i64 0
  store double 0.000000e+00, ptr %1001, align 8, !tbaa !13
  %1002 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %28, i32 0, i32 6
  %1003 = load ptr, ptr %1002, align 8, !tbaa !15
  %1004 = getelementptr inbounds ptr, ptr %1003, i64 1
  %1005 = load ptr, ptr %1004, align 8, !tbaa !9
  %1006 = getelementptr inbounds double, ptr %1005, i64 1
  store double 0.000000e+00, ptr %1006, align 8, !tbaa !13
  %1007 = load i64, ptr %18, align 8, !tbaa !11
  %1008 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %31, i64 noundef %1007, ptr noundef %1008)
  %1009 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1010 = load ptr, ptr %1009, align 8, !tbaa !15
  %1011 = getelementptr inbounds double, ptr %1010, i64 0
  store double 1.000000e+00, ptr %1011, align 8, !tbaa !13
  %1012 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 4
  %1013 = load ptr, ptr %1012, align 8, !tbaa !15
  %1014 = getelementptr inbounds double, ptr %1013, i64 1
  store double 5.000000e-01, ptr %1014, align 8, !tbaa !13
  %1015 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %1016 = trunc i8 %1015 to i1
  br i1 %1016, label %1028, label %1017

1017:                                             ; preds = %981
  %1018 = load i64, ptr %18, align 8, !tbaa !11
  %1019 = load ptr, ptr %4, align 8, !tbaa !9
  %1020 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1019)
  %1021 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %1020, double noundef 5.000000e-01)
  %1022 = load ptr, ptr %4, align 8, !tbaa !9
  %1023 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1022)
  %1024 = load ptr, ptr %4, align 8, !tbaa !9
  %1025 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %1024)
  %1026 = load ptr, ptr %4, align 8, !tbaa !9
  %1027 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef %28, double noundef 1.000000e+00, i64 noundef %1018, ptr noundef %31, i1 noundef zeroext %1021, i64 noundef %1023, i1 noundef zeroext false, double noundef %1025, ptr noundef %1026)
  br label %1028

1028:                                             ; preds = %1017, %981
  %1029 = phi i1 [ true, %981 ], [ %1027, %1017 ]
  %1030 = zext i1 %1029 to i8
  store i8 %1030, ptr %8, align 1, !tbaa !5
  %1031 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %1032 = trunc i8 %1031 to i1
  br i1 %1032, label %1036, label %1033

1033:                                             ; preds = %1028
  %1034 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %1035 = trunc i8 %1034 to i1
  br label %1036

1036:                                             ; preds = %1033, %1028
  %1037 = phi i1 [ true, %1028 ], [ %1035, %1033 ]
  %1038 = zext i1 %1037 to i8
  store i8 %1038, ptr %10, align 1, !tbaa !5
  %1039 = load i8, ptr %3, align 1, !tbaa !5, !range !22, !noundef !23
  %1040 = trunc i8 %1039 to i1
  br i1 %1040, label %1067, label %1041

1041:                                             ; preds = %1036
  %1042 = call i32 (ptr, ...) @printf(ptr noundef @.str.257)
  %1043 = call i32 (ptr, ...) @printf(ptr noundef @.str.258)
  %1044 = load i8, ptr %8, align 1, !tbaa !5, !range !22, !noundef !23
  %1045 = trunc i8 %1044 to i1
  br i1 %1045, label %1048, label %1046

1046:                                             ; preds = %1041
  %1047 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1050

1048:                                             ; preds = %1041
  %1049 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1050

1050:                                             ; preds = %1048, %1046
  %1051 = call i32 (ptr, ...) @printf(ptr noundef @.str.259)
  %1052 = load i8, ptr %9, align 1, !tbaa !5, !range !22, !noundef !23
  %1053 = trunc i8 %1052 to i1
  br i1 %1053, label %1056, label %1054

1054:                                             ; preds = %1050
  %1055 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %1058

1056:                                             ; preds = %1050
  %1057 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %1058

1058:                                             ; preds = %1056, %1054
  %1059 = load i8, ptr %10, align 1, !tbaa !5, !range !22, !noundef !23
  %1060 = trunc i8 %1059 to i1
  br i1 %1060, label %1061, label %1063

1061:                                             ; preds = %1058
  %1062 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %1065

1063:                                             ; preds = %1058
  %1064 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %1065

1065:                                             ; preds = %1063, %1061
  %1066 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %1067

1067:                                             ; preds = %1065, %1036
  %1068 = load i8, ptr %10, align 1, !tbaa !5, !range !22, !noundef !23
  %1069 = trunc i8 %1068 to i1
  %1070 = xor i1 %1069, true
  %1071 = zext i1 %1070 to i8
  store i8 %1071, ptr %33, align 1, !tbaa !5
  %1072 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1072)
  %1073 = load i8, ptr %33, align 1, !tbaa !5, !range !22, !noundef !23
  %1074 = trunc i8 %1073 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %1074
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef) #1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN11alglib_impl10ae_complexE", !14, i64 0, !14, i64 8}
!18 = !{!17, !14, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{i64 0, i64 8, !13, i64 8, i64 8, !13}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!28, !12, i64 16}
!28 = !{!"_ZTSN11alglib_impl9ae_matrixE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !29, i64 40, !7, i64 72}
!29 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = distinct !{!38, !20}
!39 = distinct !{!39, !20}
!40 = distinct !{!40, !20}
!41 = distinct !{!41, !20}
!42 = distinct !{!42, !20}


; 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 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.190 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.191 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [42 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_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(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 { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double, double, double, double) local_unnamed_addr #1

declare { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z13testsafesolvebPN11alglib_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_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %11 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = 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 80, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #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(80) %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %10, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %11, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, 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 4, 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 4, 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 4, 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 4, 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 4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %11, 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 %12, 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 %13, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %14 = getelementptr inbounds i8, ptr %4, i64 72
  %15 = getelementptr inbounds i8, ptr %6, i64 72
  %16 = getelementptr inbounds i8, ptr %5, i64 72
  %17 = getelementptr inbounds i8, ptr %5, i64 16
  %18 = getelementptr inbounds i8, ptr %8, i64 56
  %19 = getelementptr inbounds i8, ptr %7, i64 56
  %20 = getelementptr inbounds i8, ptr %9, i64 72
  %21 = getelementptr inbounds i8, ptr %11, i64 72
  %22 = getelementptr inbounds i8, ptr %10, i64 72
  %23 = getelementptr inbounds i8, ptr %10, i64 16
  %24 = getelementptr inbounds i8, ptr %13, i64 56
  %25 = getelementptr inbounds i8, ptr %12, i64 56
  br label %26

26:                                               ; preds = %2, %.loopexit
  %.0378 = phi i8 [ 0, %2 ], [ %.2, %.loopexit ]
  %.0316377 = phi i8 [ 0, %2 ], [ %.2318, %.loopexit ]
  %.0326376 = phi i64 [ 1, %2 ], [ %290, %.loopexit ]
  %27 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %28 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %27, double noundef 5.000000e-01)
  %29 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %30 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %31 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %30, double noundef 5.000000e-01)
  %32 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef %1)
  br label %.preheader349

.preheader349:                                    ; preds = %26, %69
  %.0319354 = phi i64 [ 0, %26 ], [ %70, %69 ]
  br label %33

33:                                               ; preds = %.preheader349, %63
  %.0322353 = phi i64 [ 0, %.preheader349 ], [ %68, %63 ]
  %34 = icmp eq i64 %.0319354, %.0322353
  br i1 %34, label %35, label %54

35:                                               ; preds = %33
  %36 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %37 = shl nsw i64 %36, 1
  %38 = add nsw i64 %37, -1
  %39 = sitofp i64 %38 to double
  %40 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %41 = fadd double %40, 5.000000e+00
  %42 = fmul double %41, %39
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.0319354
  %45 = load ptr, ptr %44, align 8, !tbaa !8
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %45, i64 %.0319354
  store double %42, ptr %46, align 8, !tbaa !10
  %47 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %48 = shl nsw i64 %47, 1
  %49 = add nsw i64 %48, -1
  %50 = sitofp i64 %49 to double
  %51 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %52 = fadd double %51, 5.000000e+00
  %53 = fmul double %52, %50
  br label %63

54:                                               ; preds = %33
  %55 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %56 = call double @llvm.fmuladd.f64(double %55, double 2.000000e-01, double -1.000000e-01)
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i64 %.0319354
  %59 = load ptr, ptr %58, align 8, !tbaa !8
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %59, i64 %.0322353
  store double %56, ptr %60, align 8, !tbaa !10
  %61 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %62 = call double @llvm.fmuladd.f64(double %61, double 2.000000e-01, double -1.000000e-01)
  br label %63

63:                                               ; preds = %35, %54
  %.0319354.sink = phi i64 [ %.0319354, %35 ], [ %.0322353, %54 ]
  %.sink = phi double [ %53, %35 ], [ %62, %54 ]
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds ptr, ptr %64, i64 %.0319354
  %66 = load ptr, ptr %65, align 8, !tbaa !8
  %67 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %66, i64 %.0319354.sink, i32 1
  store double %.sink, ptr %67, align 8, !tbaa !13
  %68 = add nuw nsw i64 %.0322353, 1
  %exitcond.not = icmp eq i64 %68, %.0326376
  br i1 %exitcond.not, label %69, label %33, !llvm.loop !14

69:                                               ; preds = %63
  %70 = add nuw nsw i64 %.0319354, 1
  %exitcond381.not = icmp eq i64 %70, %.0326376
  br i1 %exitcond381.not, label %71, label %.preheader349, !llvm.loop !16

71:                                               ; preds = %69
  %72 = add nsw i64 %.0326376, -1
  call void @_ZL34testsafesolveunit_cmatrixmakeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef nonnull %6, ptr noundef %1)
  br label %73

73:                                               ; preds = %71, %92
  %.1320357 = phi i64 [ 0, %71 ], [ %75, %92 ]
  %74 = add nsw i64 %.1320357, -1
  %75 = add nuw nsw i64 %.1320357, 1
  %.0329 = select i1 %28, i64 %74, i64 %72
  %.0327 = select i1 %28, i64 0, i64 %75
  %.not345355 = icmp sgt i64 %.0327, %.0329
  br i1 %.not345355, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %73, %.lr.ph
  %.1323356 = phi i64 [ %83, %.lr.ph ], [ %.0327, %73 ]
  %76 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = getelementptr inbounds ptr, ptr %79, i64 %.1320357
  %81 = load ptr, ptr %80, align 8, !tbaa !8
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %81, i64 %.1323356
  store double %77, ptr %82, align 8, !tbaa !17
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %82, i64 8
  store double %78, ptr %.sroa.437.0..sroa_idx, align 8, !tbaa !17
  %83 = add nuw i64 %.1323356, 1
  %exitcond382.not = icmp eq i64 %.1323356, %.0329
  br i1 %exitcond382.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %73
  br i1 %31, label %84, label %92

84:                                               ; preds = %._crit_edge
  %85 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %86 = extractvalue { double, double } %85, 0
  %87 = extractvalue { double, double } %85, 1
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds ptr, ptr %88, i64 %.1320357
  %90 = load ptr, ptr %89, align 8, !tbaa !8
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %90, i64 %.1320357
  store double %86, ptr %91, align 8, !tbaa !17
  %.sroa.435.0..sroa_idx = getelementptr inbounds i8, ptr %91, i64 8
  store double %87, ptr %.sroa.435.0..sroa_idx, align 8, !tbaa !17
  br label %92

92:                                               ; preds = %._crit_edge, %84
  %exitcond383.not = icmp eq i64 %75, %.0326376
  br i1 %exitcond383.not, label %93, label %73, !llvm.loop !19

93:                                               ; preds = %92
  %94 = fadd double %32, 5.000000e-01
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef %1)
  br label %95

95:                                               ; preds = %93, %122
  %.2321358 = phi i64 [ 0, %93 ], [ %123, %122 ]
  switch i64 %29, label %122 [
    i64 0, label %96
    i64 1, label %104
    i64 2, label %113
  ]

96:                                               ; preds = %95
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds ptr, ptr %97, i64 %.2321358
  %99 = load ptr, ptr %98, align 8, !tbaa !8
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.2321358
  %102 = load ptr, ptr %101, align 8, !tbaa !8
  %103 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %99, i64 noundef 1, ptr noundef %102, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %103, double noundef %94)
  br label %122

104:                                              ; preds = %95
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %105, align 8, !tbaa !8
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %106, i64 %.2321358
  %108 = load i64, ptr %17, align 8, !tbaa !20
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = getelementptr inbounds ptr, ptr %109, i64 %.2321358
  %111 = load ptr, ptr %110, align 8, !tbaa !8
  %112 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %107, i64 noundef %108, ptr noundef %111, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %112, double noundef %94)
  br label %122

113:                                              ; preds = %95
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = load ptr, ptr %114, align 8, !tbaa !8
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %115, i64 %.2321358
  %117 = load i64, ptr %17, align 8, !tbaa !20
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = getelementptr inbounds ptr, ptr %118, i64 %.2321358
  %120 = load ptr, ptr %119, align 8, !tbaa !8
  %121 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  call void @_ZN11alglib_impl11ae_v_cmovedEPNS_10ae_complexElPKS0_lPKcld(ptr noundef %116, i64 noundef %117, ptr noundef %120, i64 noundef 1, ptr noundef nonnull @.str.190, i64 noundef %121, double noundef %94)
  br label %122

122:                                              ; preds = %104, %96, %95, %113
  %123 = add nuw nsw i64 %.2321358, 1
  %exitcond384.not = icmp eq i64 %123, %.0326376
  br i1 %exitcond384.not, label %124, label %95, !llvm.loop !25

124:                                              ; preds = %122
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0326376, ptr noundef %1)
  br label %125

125:                                              ; preds = %124, %125
  %.3359 = phi i64 [ 0, %124 ], [ %134, %125 ]
  %126 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %127 = call double @llvm.fmuladd.f64(double %126, double 2.000000e+00, double -1.000000e+00)
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %128, i64 %.3359
  store double %127, ptr %129, align 8, !tbaa !10
  %130 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %131 = call double @llvm.fmuladd.f64(double %130, double 2.000000e+00, double -1.000000e+00)
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %132, i64 %.3359, i32 1
  store double %131, ptr %133, align 8, !tbaa !13
  %134 = add nuw nsw i64 %.3359, 1
  %exitcond385.not = icmp eq i64 %134, %.0326376
  br i1 %exitcond385.not, label %135, label %125, !llvm.loop !26

135:                                              ; preds = %125
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0326376, ptr noundef %1)
  br label %136

136:                                              ; preds = %135, %136
  %.4360 = phi i64 [ 0, %135 ], [ %147, %136 ]
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds ptr, ptr %137, i64 %.4360
  %139 = load ptr, ptr %138, align 8, !tbaa !8
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  %141 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  %142 = call { double, double } @_ZN11alglib_impl16ae_v_cdotproductEPKNS_10ae_complexElPKcS2_lS4_l(ptr noundef %139, i64 noundef 1, ptr noundef nonnull @.str.191, ptr noundef %140, i64 noundef 1, ptr noundef nonnull @.str.191, i64 noundef %141)
  %143 = extractvalue { double, double } %142, 0
  %144 = extractvalue { double, double } %142, 1
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %145, i64 %.4360
  store double %143, ptr %146, align 8, !tbaa !17
  %.sroa.439.0..sroa_idx = getelementptr inbounds i8, ptr %146, i64 8
  store double %144, ptr %.sroa.439.0..sroa_idx, align 8, !tbaa !17
  %147 = add nuw nsw i64 %.4360, 1
  %exitcond386.not = icmp eq i64 %147, %.0326376
  br i1 %exitcond386.not, label %148, label %136, !llvm.loop !27

148:                                              ; preds = %136
  %149 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %1)
  %150 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %4, double noundef %94, i64 noundef %.0326376, ptr noundef nonnull %7, i1 noundef zeroext %28, i64 noundef %29, i1 noundef zeroext %31, double noundef %149, ptr noundef %1)
  br i1 %150, label %.preheader351, label %.loopexit352

.preheader351:                                    ; preds = %148, %162
  %.1317362 = phi i8 [ %164, %162 ], [ %.0316377, %148 ]
  %.5361 = phi i64 [ %165, %162 ], [ 0, %148 ]
  %151 = trunc nuw i8 %.1317362 to i1
  br i1 %151, label %162, label %152

152:                                              ; preds = %.preheader351
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %153, i64 %.5361
  %.sroa.028.0.copyload = load double, ptr %154, align 8, !tbaa !17
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %154, i64 8
  %.sroa.229.0.copyload = load double, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !17
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %155, i64 %.5361
  %.sroa.026.0.copyload = load double, ptr %156, align 8, !tbaa !17
  %.sroa.227.0..sroa_idx = getelementptr inbounds i8, ptr %156, i64 8
  %.sroa.227.0.copyload = load double, ptr %.sroa.227.0..sroa_idx, align 8, !tbaa !17
  %157 = call { double, double } @_ZN11alglib_impl8ae_c_subENS_10ae_complexES0_(double %.sroa.028.0.copyload, double %.sroa.229.0.copyload, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  %158 = extractvalue { double, double } %157, 0
  %159 = extractvalue { double, double } %157, 1
  %160 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %158, double %159, ptr noundef %1)
  %161 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %160, double noundef 5.000000e-11)
  br label %162

162:                                              ; preds = %152, %.preheader351
  %163 = phi i1 [ true, %.preheader351 ], [ %161, %152 ]
  %164 = zext i1 %163 to i8
  %165 = add nuw nsw i64 %.5361, 1
  %exitcond387.not = icmp eq i64 %165, %.0326376
  br i1 %exitcond387.not, label %.loopexit352, label %.preheader351, !llvm.loop !28

.loopexit352:                                     ; preds = %162, %148
  %.2318 = phi i8 [ 1, %148 ], [ %164, %162 ]
  %166 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %167 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %166, double noundef 5.000000e-01)
  %168 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %169 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %169, double noundef 5.000000e-01)
  %171 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef %1)
  br label %.preheader

.preheader:                                       ; preds = %.loopexit352, %191
  %.6364 = phi i64 [ 0, %.loopexit352 ], [ %192, %191 ]
  br label %172

172:                                              ; preds = %.preheader, %185
  %.2324363 = phi i64 [ 0, %.preheader ], [ %190, %185 ]
  %173 = icmp eq i64 %.6364, %.2324363
  br i1 %173, label %174, label %182

174:                                              ; preds = %172
  %175 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %176 = shl nsw i64 %175, 1
  %177 = add nsw i64 %176, -1
  %178 = sitofp i64 %177 to double
  %179 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %180 = fadd double %179, 5.000000e+00
  %181 = fmul double %180, %178
  br label %185

182:                                              ; preds = %172
  %183 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %184 = call double @llvm.fmuladd.f64(double %183, double 2.000000e-01, double -1.000000e-01)
  br label %185

185:                                              ; preds = %174, %182
  %.6364.sink = phi i64 [ %.6364, %174 ], [ %.2324363, %182 ]
  %.sink402 = phi double [ %181, %174 ], [ %184, %182 ]
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = getelementptr inbounds ptr, ptr %186, i64 %.6364
  %188 = load ptr, ptr %187, align 8, !tbaa !8
  %189 = getelementptr inbounds double, ptr %188, i64 %.6364.sink
  store double %.sink402, ptr %189, align 8, !tbaa !17
  %190 = add nuw nsw i64 %.2324363, 1
  %exitcond388.not = icmp eq i64 %190, %.0326376
  br i1 %exitcond388.not, label %191, label %172, !llvm.loop !29

191:                                              ; preds = %185
  %192 = add nuw nsw i64 %.6364, 1
  %exitcond389.not = icmp eq i64 %192, %.0326376
  br i1 %exitcond389.not, label %193, label %.preheader, !llvm.loop !30

193:                                              ; preds = %191
  call void @_ZL34testsafesolveunit_rmatrixmakeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef nonnull %11, ptr noundef %1)
  br label %194

194:                                              ; preds = %193, %231
  %.7370 = phi i64 [ 0, %193 ], [ %196, %231 ]
  %195 = add nsw i64 %.7370, -1
  %196 = add nuw nsw i64 %.7370, 1
  %.1330 = select i1 %167, i64 %195, i64 %72
  %.1328 = select i1 %167, i64 0, i64 %196
  %.not365 = icmp sgt i64 %.1328, %.1330
  br i1 %.not365, label %._crit_edge369, label %.lr.ph368.preheader

.lr.ph368.preheader:                              ; preds = %194
  %197 = add nsw i64 %.1330, 1
  %198 = sub i64 %197, %.1328
  %199 = sub i64 %.1330, %.1328
  %xtraiter = and i64 %198, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph368.prol.loopexit, label %.lr.ph368.prol

.lr.ph368.prol:                                   ; preds = %.lr.ph368.preheader, %.lr.ph368.prol
  %.3325366.prol = phi i64 [ %204, %.lr.ph368.prol ], [ %.1328, %.lr.ph368.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph368.prol ], [ 0, %.lr.ph368.preheader ]
  %200 = load ptr, ptr %21, align 8, !tbaa !5
  %201 = getelementptr inbounds ptr, ptr %200, i64 %.7370
  %202 = load ptr, ptr %201, align 8, !tbaa !8
  %203 = getelementptr inbounds double, ptr %202, i64 %.3325366.prol
  store double 0.000000e+00, ptr %203, align 8, !tbaa !17
  %204 = add nuw i64 %.3325366.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph368.prol.loopexit, label %.lr.ph368.prol, !llvm.loop !31

.lr.ph368.prol.loopexit:                          ; preds = %.lr.ph368.prol, %.lr.ph368.preheader
  %.3325366.unr = phi i64 [ %.1328, %.lr.ph368.preheader ], [ %204, %.lr.ph368.prol ]
  %205 = icmp ult i64 %199, 3
  br i1 %205, label %._crit_edge369, label %.lr.ph368

.lr.ph368:                                        ; preds = %.lr.ph368.prol.loopexit, %.lr.ph368
  %.3325366 = phi i64 [ %225, %.lr.ph368 ], [ %.3325366.unr, %.lr.ph368.prol.loopexit ]
  %206 = load ptr, ptr %21, align 8, !tbaa !5
  %207 = getelementptr inbounds ptr, ptr %206, i64 %.7370
  %208 = load ptr, ptr %207, align 8, !tbaa !8
  %209 = getelementptr inbounds double, ptr %208, i64 %.3325366
  store double 0.000000e+00, ptr %209, align 8, !tbaa !17
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds ptr, ptr %210, i64 %.7370
  %212 = load ptr, ptr %211, align 8, !tbaa !8
  %213 = getelementptr double, ptr %212, i64 %.3325366
  %214 = getelementptr i8, ptr %213, i64 8
  store double 0.000000e+00, ptr %214, align 8, !tbaa !17
  %215 = load ptr, ptr %21, align 8, !tbaa !5
  %216 = getelementptr inbounds ptr, ptr %215, i64 %.7370
  %217 = load ptr, ptr %216, align 8, !tbaa !8
  %218 = getelementptr double, ptr %217, i64 %.3325366
  %219 = getelementptr i8, ptr %218, i64 16
  store double 0.000000e+00, ptr %219, align 8, !tbaa !17
  %220 = add nuw i64 %.3325366, 3
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = getelementptr inbounds ptr, ptr %221, i64 %.7370
  %223 = load ptr, ptr %222, align 8, !tbaa !8
  %224 = getelementptr inbounds double, ptr %223, i64 %220
  store double 0.000000e+00, ptr %224, align 8, !tbaa !17
  %225 = add nuw i64 %.3325366, 4
  %exitcond390.not.3 = icmp eq i64 %220, %.1330
  br i1 %exitcond390.not.3, label %._crit_edge369, label %.lr.ph368, !llvm.loop !33

._crit_edge369:                                   ; preds = %.lr.ph368.prol.loopexit, %.lr.ph368, %194
  br i1 %170, label %226, label %231

226:                                              ; preds = %._crit_edge369
  %227 = load ptr, ptr %21, align 8, !tbaa !5
  %228 = getelementptr inbounds ptr, ptr %227, i64 %.7370
  %229 = load ptr, ptr %228, align 8, !tbaa !8
  %230 = getelementptr inbounds double, ptr %229, i64 %.7370
  store double 1.000000e+00, ptr %230, align 8, !tbaa !17
  br label %231

231:                                              ; preds = %._crit_edge369, %226
  %exitcond391.not = icmp eq i64 %196, %.0326376
  br i1 %exitcond391.not, label %232, label %194, !llvm.loop !34

232:                                              ; preds = %231
  %233 = fadd double %171, 5.000000e-01
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0326376, i64 noundef %.0326376, ptr noundef %1)
  br label %234

234:                                              ; preds = %232, %252
  %.8371 = phi i64 [ 0, %232 ], [ %253, %252 ]
  switch i64 %168, label %252 [
    i64 0, label %235
    i64 1, label %243
  ]

235:                                              ; preds = %234
  %236 = load ptr, ptr %22, align 8, !tbaa !5
  %237 = getelementptr inbounds ptr, ptr %236, i64 %.8371
  %238 = load ptr, ptr %237, align 8, !tbaa !8
  %239 = load ptr, ptr %21, align 8, !tbaa !5
  %240 = getelementptr inbounds ptr, ptr %239, i64 %.8371
  %241 = load ptr, ptr %240, align 8, !tbaa !8
  %242 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  call void @_ZN11alglib_impl10ae_v_movedEPdlPKdlld(ptr noundef %238, i64 noundef 1, ptr noundef %241, i64 noundef 1, i64 noundef %242, double noundef %233)
  br label %252

243:                                              ; preds = %234
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = load ptr, ptr %244, align 8, !tbaa !8
  %246 = getelementptr inbounds double, ptr %245, i64 %.8371
  %247 = load i64, ptr %23, align 8, !tbaa !20
  %248 = load ptr, ptr %21, align 8, !tbaa !5
  %249 = getelementptr inbounds ptr, ptr %248, i64 %.8371
  %250 = load ptr, ptr %249, align 8, !tbaa !8
  %251 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  call void @_ZN11alglib_impl10ae_v_movedEPdlPKdlld(ptr noundef %246, i64 noundef %247, ptr noundef %250, i64 noundef 1, i64 noundef %251, double noundef %233)
  br label %252

252:                                              ; preds = %235, %234, %243
  %253 = add nuw nsw i64 %.8371, 1
  %exitcond392.not = icmp eq i64 %253, %.0326376
  br i1 %exitcond392.not, label %254, label %234, !llvm.loop !35

254:                                              ; preds = %252
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.0326376, ptr noundef %1)
  br label %255

255:                                              ; preds = %254, %255
  %.9372 = phi i64 [ 0, %254 ], [ %260, %255 ]
  %256 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %257 = call double @llvm.fmuladd.f64(double %256, double 2.000000e+00, double -1.000000e+00)
  %258 = load ptr, ptr %24, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 %.9372
  store double %257, ptr %259, align 8, !tbaa !17
  %260 = add nuw nsw i64 %.9372, 1
  %exitcond393.not = icmp eq i64 %260, %.0326376
  br i1 %exitcond393.not, label %261, label %255, !llvm.loop !36

261:                                              ; preds = %255
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %.0326376, ptr noundef %1)
  br label %262

262:                                              ; preds = %261, %262
  %.10373 = phi i64 [ 0, %261 ], [ %271, %262 ]
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = getelementptr inbounds ptr, ptr %263, i64 %.10373
  %265 = load ptr, ptr %264, align 8, !tbaa !8
  %266 = load ptr, ptr %24, align 8, !tbaa !5
  %267 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %72)
  %268 = call noundef double @_ZN11alglib_impl15ae_v_dotproductEPKdlS1_ll(ptr noundef %265, i64 noundef 1, ptr noundef %266, i64 noundef 1, i64 noundef %267)
  %269 = load ptr, ptr %25, align 8, !tbaa !5
  %270 = getelementptr inbounds double, ptr %269, i64 %.10373
  store double %268, ptr %270, align 8, !tbaa !17
  %271 = add nuw nsw i64 %.10373, 1
  %exitcond394.not = icmp eq i64 %271, %.0326376
  br i1 %exitcond394.not, label %272, label %262, !llvm.loop !37

272:                                              ; preds = %262
  %273 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %1)
  %274 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %9, double noundef %233, i64 noundef %.0326376, ptr noundef nonnull %12, i1 noundef zeroext %167, i64 noundef %168, i1 noundef zeroext %170, double noundef %273, ptr noundef %1)
  br i1 %274, label %.preheader350, label %.loopexit

.preheader350:                                    ; preds = %272, %286
  %.1375 = phi i8 [ %288, %286 ], [ %.0378, %272 ]
  %.11374 = phi i64 [ %289, %286 ], [ 0, %272 ]
  %275 = trunc nuw i8 %.1375 to i1
  br i1 %275, label %286, label %276

276:                                              ; preds = %.preheader350
  %277 = load ptr, ptr %25, align 8, !tbaa !5
  %278 = getelementptr inbounds double, ptr %277, i64 %.11374
  %279 = load double, ptr %278, align 8, !tbaa !17
  %280 = load ptr, ptr %24, align 8, !tbaa !5
  %281 = getelementptr inbounds double, ptr %280, i64 %.11374
  %282 = load double, ptr %281, align 8, !tbaa !17
  %283 = fsub double %279, %282
  %284 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %283, ptr noundef %1)
  %285 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %284, double noundef 5.000000e-11)
  br label %286

286:                                              ; preds = %276, %.preheader350
  %287 = phi i1 [ true, %.preheader350 ], [ %285, %276 ]
  %288 = zext i1 %287 to i8
  %289 = add nuw nsw i64 %.11374, 1
  %exitcond395.not = icmp eq i64 %289, %.0326376
  br i1 %exitcond395.not, label %.loopexit, label %.preheader350, !llvm.loop !38

.loopexit:                                        ; preds = %286, %272
  %.2 = phi i8 [ 1, %272 ], [ %288, %286 ]
  %290 = add nuw nsw i64 %.0326376, 1
  %exitcond396.not = icmp eq i64 %290, 31
  br i1 %exitcond396.not, label %291, label %26, !llvm.loop !39

291:                                              ; preds = %.loopexit
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef 2, i64 noundef 2, ptr noundef %1)
  %292 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %293 = extractvalue { double, double } %292, 0
  %294 = extractvalue { double, double } %292, 1
  %295 = load ptr, ptr %14, align 8, !tbaa !5
  %296 = load ptr, ptr %295, align 8, !tbaa !8
  store double %293, ptr %296, align 8, !tbaa !17
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %296, i64 8
  store double %294, ptr %.sroa.425.0..sroa_idx, align 8, !tbaa !17
  %297 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %298 = extractvalue { double, double } %297, 0
  %299 = extractvalue { double, double } %297, 1
  %300 = load ptr, ptr %14, align 8, !tbaa !5
  %301 = load ptr, ptr %300, align 8, !tbaa !8
  %302 = getelementptr inbounds i8, ptr %301, i64 16
  store double %298, ptr %302, align 8, !tbaa !17
  %.sroa.423.0..sroa_idx = getelementptr inbounds i8, ptr %301, i64 24
  store double %299, ptr %.sroa.423.0..sroa_idx, align 8, !tbaa !17
  %303 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %304 = extractvalue { double, double } %303, 0
  %305 = extractvalue { double, double } %303, 1
  %306 = load ptr, ptr %14, align 8, !tbaa !5
  %307 = getelementptr inbounds i8, ptr %306, i64 8
  %308 = load ptr, ptr %307, align 8, !tbaa !8
  store double %304, ptr %308, align 8, !tbaa !17
  %.sroa.421.0..sroa_idx = getelementptr inbounds i8, ptr %308, i64 8
  store double %305, ptr %.sroa.421.0..sroa_idx, align 8, !tbaa !17
  %309 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e-01)
  %310 = extractvalue { double, double } %309, 0
  %311 = extractvalue { double, double } %309, 1
  %312 = load ptr, ptr %14, align 8, !tbaa !5
  %313 = getelementptr inbounds i8, ptr %312, i64 8
  %314 = load ptr, ptr %313, align 8, !tbaa !8
  %315 = getelementptr inbounds i8, ptr %314, i64 16
  store double %310, ptr %315, align 8, !tbaa !17
  %.sroa.419.0..sroa_idx = getelementptr inbounds i8, ptr %314, i64 24
  store double %311, ptr %.sroa.419.0..sroa_idx, align 8, !tbaa !17
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef 2, ptr noundef %1)
  %316 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %317 = extractvalue { double, double } %316, 0
  %318 = extractvalue { double, double } %316, 1
  %319 = load ptr, ptr %19, align 8, !tbaa !5
  store double %317, ptr %319, align 8, !tbaa !17
  %.sroa.417.0..sroa_idx = getelementptr inbounds i8, ptr %319, i64 8
  store double %318, ptr %.sroa.417.0..sroa_idx, align 8, !tbaa !17
  %320 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 5.000000e-01)
  %321 = extractvalue { double, double } %320, 0
  %322 = extractvalue { double, double } %320, 1
  %323 = load ptr, ptr %19, align 8, !tbaa !5
  %324 = getelementptr inbounds i8, ptr %323, i64 16
  store double %321, ptr %324, align 8, !tbaa !17
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %323, i64 24
  store double %322, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !17
  %325 = trunc nuw i8 %.2318 to i1
  br i1 %325, label %.critedge, label %326

326:                                              ; preds = %291
  %327 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %328 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %327, double noundef 5.000000e-01)
  %329 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %330 = load ptr, ptr %19, align 8, !tbaa !5
  %331 = getelementptr inbounds i8, ptr %330, i64 16
  %.sroa.012.0.copyload = load double, ptr %331, align 8, !tbaa !17
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %330, i64 24
  %.sroa.213.0.copyload = load double, ptr %.sroa.213.0..sroa_idx, align 8, !tbaa !17
  %332 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %.sroa.012.0.copyload, double %.sroa.213.0.copyload, ptr noundef %1)
  %333 = fmul double %332, 1.000000e+01
  %334 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %333, double noundef 1.000000e+00, ptr noundef %1)
  %335 = fmul double %334, 1.050000e+00
  %336 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %4, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %7, i1 noundef zeroext %328, i64 noundef %329, i1 noundef zeroext false, double noundef %335, ptr noundef %1)
  br i1 %336, label %337, label %.critedge

337:                                              ; preds = %326
  %338 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %339 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %338, double noundef 5.000000e-01)
  %340 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %341 = load ptr, ptr %19, align 8, !tbaa !5
  %342 = getelementptr inbounds i8, ptr %341, i64 16
  %.sroa.011.0.copyload = load double, ptr %342, align 8, !tbaa !17
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %341, i64 24
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  %343 = call noundef double @_ZN11alglib_impl8ae_c_absENS_10ae_complexEPNS_8ae_stateE(double %.sroa.011.0.copyload, double %.sroa.2.0.copyload, ptr noundef %1)
  %344 = fmul double %343, 1.000000e+01
  %345 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %344, double noundef 1.000000e+00, ptr noundef %1)
  %346 = fmul double %345, 0x3FEE666666666666
  %347 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %4, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %7, i1 noundef zeroext %339, i64 noundef %340, i1 noundef zeroext false, double noundef %346, ptr noundef %1)
  %348 = xor i1 %347, true
  br label %.critedge

.critedge:                                        ; preds = %291, %337, %326
  %349 = phi i1 [ true, %326 ], [ %348, %337 ], [ true, %291 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 2, i64 noundef 2, ptr noundef %1)
  %350 = load ptr, ptr %20, align 8, !tbaa !5
  %351 = load ptr, ptr %350, align 8, !tbaa !8
  store double 1.000000e+00, ptr %351, align 8, !tbaa !17
  %352 = load ptr, ptr %20, align 8, !tbaa !5
  %353 = load ptr, ptr %352, align 8, !tbaa !8
  %354 = getelementptr inbounds i8, ptr %353, i64 8
  store double 0.000000e+00, ptr %354, align 8, !tbaa !17
  %355 = load ptr, ptr %20, align 8, !tbaa !5
  %356 = getelementptr inbounds i8, ptr %355, i64 8
  %357 = load ptr, ptr %356, align 8, !tbaa !8
  store double 0.000000e+00, ptr %357, align 8, !tbaa !17
  %358 = load ptr, ptr %20, align 8, !tbaa !5
  %359 = getelementptr inbounds i8, ptr %358, i64 8
  %360 = load ptr, ptr %359, align 8, !tbaa !8
  %361 = getelementptr inbounds i8, ptr %360, i64 8
  store double 1.000000e-01, ptr %361, align 8, !tbaa !17
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 2, ptr noundef %1)
  %362 = load ptr, ptr %25, align 8, !tbaa !5
  store double 1.000000e+00, ptr %362, align 8, !tbaa !17
  %363 = load ptr, ptr %25, align 8, !tbaa !5
  %364 = getelementptr inbounds i8, ptr %363, i64 8
  store double 5.000000e-01, ptr %364, align 8, !tbaa !17
  %365 = trunc nuw i8 %.2 to i1
  br i1 %365, label %.critedge348, label %366

366:                                              ; preds = %.critedge
  %367 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %368 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %367, double noundef 5.000000e-01)
  %369 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %370 = load ptr, ptr %25, align 8, !tbaa !5
  %371 = getelementptr inbounds i8, ptr %370, i64 8
  %372 = load double, ptr %371, align 8, !tbaa !17
  %373 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %372, ptr noundef %1)
  %374 = fmul double %373, 1.000000e+01
  %375 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %374, double noundef 1.000000e+00, ptr noundef %1)
  %376 = fmul double %375, 1.050000e+00
  %377 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %9, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %12, i1 noundef zeroext %368, i64 noundef %369, i1 noundef zeroext false, double noundef %376, ptr noundef %1)
  br i1 %377, label %378, label %.critedge348

378:                                              ; preds = %366
  %379 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %380 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %379, double noundef 5.000000e-01)
  %381 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %382 = load ptr, ptr %25, align 8, !tbaa !5
  %383 = getelementptr inbounds i8, ptr %382, i64 8
  %384 = load double, ptr %383, align 8, !tbaa !17
  %385 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %384, ptr noundef %1)
  %386 = fmul double %385, 1.000000e+01
  %387 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %386, double noundef 1.000000e+00, ptr noundef %1)
  %388 = fmul double %387, 0x3FEE666666666666
  %389 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %9, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %12, i1 noundef zeroext %380, i64 noundef %381, i1 noundef zeroext false, double noundef %388, ptr noundef %1)
  %390 = xor i1 %389, true
  br label %.critedge348

.critedge348:                                     ; preds = %.critedge, %378, %366
  %391 = phi i1 [ true, %366 ], [ %390, %378 ], [ true, %.critedge ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef 2, i64 noundef 2, ptr noundef %1)
  %392 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 1)
  %393 = extractvalue { double, double } %392, 0
  %394 = extractvalue { double, double } %392, 1
  %395 = load ptr, ptr %14, align 8, !tbaa !5
  %396 = load ptr, ptr %395, align 8, !tbaa !8
  store double %393, ptr %396, align 8, !tbaa !17
  %.sroa.410.0..sroa_idx = getelementptr inbounds i8, ptr %396, i64 8
  store double %394, ptr %.sroa.410.0..sroa_idx, align 8, !tbaa !17
  %397 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %398 = extractvalue { double, double } %397, 0
  %399 = extractvalue { double, double } %397, 1
  %400 = load ptr, ptr %14, align 8, !tbaa !5
  %401 = load ptr, ptr %400, align 8, !tbaa !8
  %402 = getelementptr inbounds i8, ptr %401, i64 16
  store double %398, ptr %402, align 8, !tbaa !17
  %.sroa.48.0..sroa_idx = getelementptr inbounds i8, ptr %401, i64 24
  store double %399, ptr %.sroa.48.0..sroa_idx, align 8, !tbaa !17
  %403 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %404 = extractvalue { double, double } %403, 0
  %405 = extractvalue { double, double } %403, 1
  %406 = load ptr, ptr %14, align 8, !tbaa !5
  %407 = getelementptr inbounds i8, ptr %406, i64 8
  %408 = load ptr, ptr %407, align 8, !tbaa !8
  store double %404, ptr %408, align 8, !tbaa !17
  %.sroa.46.0..sroa_idx = getelementptr inbounds i8, ptr %408, i64 8
  store double %405, ptr %.sroa.46.0..sroa_idx, align 8, !tbaa !17
  %409 = call { double, double } @_ZN11alglib_impl17ae_complex_from_iEl(i64 noundef 0)
  %410 = extractvalue { double, double } %409, 0
  %411 = extractvalue { double, double } %409, 1
  %412 = load ptr, ptr %14, align 8, !tbaa !5
  %413 = getelementptr inbounds i8, ptr %412, i64 8
  %414 = load ptr, ptr %413, align 8, !tbaa !8
  %415 = getelementptr inbounds i8, ptr %414, i64 16
  store double %410, ptr %415, align 8, !tbaa !17
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %414, i64 24
  store double %411, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !17
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef 2, ptr noundef %1)
  %416 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 1.000000e+00)
  %417 = extractvalue { double, double } %416, 0
  %418 = extractvalue { double, double } %416, 1
  %419 = load ptr, ptr %19, align 8, !tbaa !5
  store double %417, ptr %419, align 8, !tbaa !17
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %419, i64 8
  store double %418, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !17
  %420 = call { double, double } @_ZN11alglib_impl17ae_complex_from_dEd(double noundef 5.000000e-01)
  %421 = extractvalue { double, double } %420, 0
  %422 = extractvalue { double, double } %420, 1
  %423 = load ptr, ptr %19, align 8, !tbaa !5
  %424 = getelementptr inbounds i8, ptr %423, i64 16
  store double %421, ptr %424, align 8, !tbaa !17
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %423, i64 24
  store double %422, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  br i1 %349, label %431, label %425

425:                                              ; preds = %.critedge348
  %426 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %427 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %426, double noundef 5.000000e-01)
  %428 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 3, ptr noundef %1)
  %429 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %1)
  %430 = call noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %4, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %7, i1 noundef zeroext %427, i64 noundef %428, i1 noundef zeroext false, double noundef %429, ptr noundef %1)
  br label %431

431:                                              ; preds = %425, %.critedge348
  %432 = phi i1 [ true, %.critedge348 ], [ %430, %425 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef 2, i64 noundef 2, ptr noundef %1)
  %433 = load ptr, ptr %20, align 8, !tbaa !5
  %434 = load ptr, ptr %433, align 8, !tbaa !8
  store double 1.000000e+00, ptr %434, align 8, !tbaa !17
  %435 = load ptr, ptr %20, align 8, !tbaa !5
  %436 = load ptr, ptr %435, align 8, !tbaa !8
  %437 = getelementptr inbounds i8, ptr %436, i64 8
  store double 0.000000e+00, ptr %437, align 8, !tbaa !17
  %438 = load ptr, ptr %20, align 8, !tbaa !5
  %439 = getelementptr inbounds i8, ptr %438, i64 8
  %440 = load ptr, ptr %439, align 8, !tbaa !8
  store double 0.000000e+00, ptr %440, align 8, !tbaa !17
  %441 = load ptr, ptr %20, align 8, !tbaa !5
  %442 = getelementptr inbounds i8, ptr %441, i64 8
  %443 = load ptr, ptr %442, align 8, !tbaa !8
  %444 = getelementptr inbounds i8, ptr %443, i64 8
  store double 0.000000e+00, ptr %444, align 8, !tbaa !17
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef 2, ptr noundef %1)
  %445 = load ptr, ptr %25, align 8, !tbaa !5
  store double 1.000000e+00, ptr %445, align 8, !tbaa !17
  %446 = load ptr, ptr %25, align 8, !tbaa !5
  %447 = getelementptr inbounds i8, ptr %446, i64 8
  store double 5.000000e-01, ptr %447, align 8, !tbaa !17
  br i1 %391, label %454, label %448

448:                                              ; preds = %431
  %449 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %450 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %449, double noundef 5.000000e-01)
  %451 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 2, ptr noundef %1)
  %452 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 1.000000e+300, ptr noundef %1)
  %453 = call noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef nonnull %9, double noundef 1.000000e+00, i64 noundef 2, ptr noundef nonnull %12, i1 noundef zeroext %450, i64 noundef %451, i1 noundef zeroext false, double noundef %452, ptr noundef %1)
  br label %454

454:                                              ; preds = %448, %431
  %455 = phi i1 [ true, %431 ], [ %453, %448 ]
  br i1 %0, label %467, label %456

456:                                              ; preds = %454
  %457 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.257)
  %458 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.258)
  %.str.7..str.6 = select i1 %455, ptr @.str.7, ptr @.str.6
  %459 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %460 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.259)
  br i1 %432, label %.thread, label %462

.thread:                                          ; preds = %456
  %461 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %464

462:                                              ; preds = %456
  %463 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %spec.select = select i1 %455, ptr @.str.1, ptr @.str.2
  br label %464

464:                                              ; preds = %462, %.thread
  %.str.2.sink = phi ptr [ @.str.1, %.thread ], [ %spec.select, %462 ]
  %465 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %466 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %467

467:                                              ; preds = %464, %454
  %468 = or i1 %432, %455
  %469 = xor i1 %468, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 80, 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 %469
}

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

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

declare noundef zeroext i1 @_ZN11alglib_impl24cmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef) local_unnamed_addr #1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl24rmatrixscaledtrsafesolveEPNS_9ae_matrixEdlPNS_9ae_vectorEblbdPNS_8ae_stateE(ptr noundef, double noundef, i64 noundef, ptr noundef, i1 noundef zeroext, i64 noundef, i1 noundef zeroext, double noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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, !12, i64 0}
!11 = !{!"_ZTSN11alglib_impl10ae_complexE", !12, i64 0, !12, i64 8}
!12 = !{!"double", !6, i64 0}
!13 = !{!11, !12, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = !{!21, !22, i64 16}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !22, i64 0, !22, i64 8, !22, i64 16, !22, i64 24, !23, i64 32, !24, i64 40, !6, i64 72}
!22 = !{!"long", !6, i64 0}
!23 = !{!"bool", !6, i64 0}
!24 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = distinct !{!29, !15}
!30 = distinct !{!30, !15}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.unroll.disable"}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}
!37 = distinct !{!37, !15}
!38 = distinct !{!38, !15}
!39 = distinct !{!39, !15}


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