; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z17testinverseupdatebPN11alglib_impl8ae_stateE)

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

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

@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.716 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.717 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.718 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.719 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.720 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.721 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.722 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.723 = external hidden unnamed_addr constant [31 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 i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

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

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

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

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

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testinverseupdatebPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %9 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i8, align 1
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i8, align 1
  %24 = zext i1 %0 to i8
  store i8 %24, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %25, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 64, i1 false)
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %7, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %9, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %10, i64 noundef 0, i64 noundef 3, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %11, i64 noundef 0, i64 noundef 3, ptr noundef %31, i1 noundef zeroext true)
  store i8 0, ptr %20, align 1, !tbaa !5
  store i64 10, ptr %13, align 8, !tbaa !11
  store i64 100, ptr %19, align 8, !tbaa !11
  store double 0x3EB0C6F7A0B5ED8D, ptr %21, align 8, !tbaa !13
  store i64 1, ptr %12, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %335, %2
  %33 = load i64, ptr %12, align 8, !tbaa !11
  %34 = load i64, ptr %13, align 8, !tbaa !11
  %35 = icmp sle i64 %33, %34
  br i1 %35, label %36, label %338

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

66:                                               ; preds = %331, %36
  %67 = load i64, ptr %18, align 8, !tbaa !11
  %68 = load i64, ptr %19, align 8, !tbaa !11
  %69 = icmp sle i64 %67, %68
  br i1 %69, label %70, label %334

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 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = call noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef 1.000000e+01, ptr noundef %73)
  %75 = fmul double %72, %74
  %76 = load ptr, ptr %4, align 8, !tbaa !9
  %77 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %75, ptr noundef %76)
  store double %77, ptr %22, align 8, !tbaa !13
  %78 = load i64, ptr %12, align 8, !tbaa !11
  %79 = load double, ptr %22, align 8, !tbaa !13
  %80 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL46testinverseupdateunit_generaterandommatrixcondPN11alglib_impl9ae_matrixEldPNS_8ae_stateE(ptr noundef %6, i64 noundef %78, double noundef %79, ptr noundef %80)
  %81 = load i64, ptr %12, align 8, !tbaa !11
  %82 = load i64, ptr %12, align 8, !tbaa !11
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %6, i64 noundef %81, i64 noundef %82, ptr noundef %7, ptr noundef %83)
  %84 = load i64, ptr %12, align 8, !tbaa !11
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  %86 = call noundef zeroext i1 @_ZL28testinverseupdateunit_invmatPN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef %7, i64 noundef %84, ptr noundef %85)
  br i1 %86, label %88, label %87

87:                                               ; preds = %70
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext true, ptr noundef @.str.19, i32 noundef 92099, ptr noundef @.str.714)
  br label %334

88:                                               ; preds = %70
  %89 = load i64, ptr %12, align 8, !tbaa !11
  %90 = load ptr, ptr %4, align 8, !tbaa !9
  %91 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %89, ptr noundef %90)
  store i64 %91, ptr %15, align 8, !tbaa !11
  %92 = load i64, ptr %12, align 8, !tbaa !11
  %93 = load ptr, ptr %4, align 8, !tbaa !9
  %94 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %92, ptr noundef %93)
  store i64 %94, ptr %16, align 8, !tbaa !11
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  %96 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %95)
  %97 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %96, double -1.000000e+00)
  %98 = fmul double 1.000000e-01, %97
  store double %98, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %134, %88
  %100 = load i64, ptr %14, align 8, !tbaa !11
  %101 = load i64, ptr %12, align 8, !tbaa !11
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %137

104:                                              ; preds = %99
  %105 = load i64, ptr %14, align 8, !tbaa !11
  %106 = load i64, ptr %15, align 8, !tbaa !11
  %107 = icmp eq i64 %105, %106
  br i1 %107, label %108, label %114

108:                                              ; preds = %104
  %109 = load double, ptr %17, align 8, !tbaa !13
  %110 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !15
  %112 = load i64, ptr %14, align 8, !tbaa !11
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  store double %109, ptr %113, align 8, !tbaa !13
  br label %119

114:                                              ; preds = %104
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = load i64, ptr %14, align 8, !tbaa !11
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  store double 0.000000e+00, ptr %118, align 8, !tbaa !13
  br label %119

119:                                              ; preds = %114, %108
  %120 = load i64, ptr %14, align 8, !tbaa !11
  %121 = load i64, ptr %16, align 8, !tbaa !11
  %122 = icmp eq i64 %120, %121
  br i1 %122, label %123, label %128

123:                                              ; preds = %119
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !15
  %126 = load i64, ptr %14, align 8, !tbaa !11
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  store double 1.000000e+00, ptr %127, align 8, !tbaa !13
  br label %133

128:                                              ; preds = %119
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !15
  %131 = load i64, ptr %14, align 8, !tbaa !11
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double 0.000000e+00, ptr %132, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %128, %123
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %14, align 8, !tbaa !11
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %14, align 8, !tbaa !11
  br label %99, !llvm.loop !16

137:                                              ; preds = %99
  %138 = load i64, ptr %12, align 8, !tbaa !11
  %139 = load i64, ptr %12, align 8, !tbaa !11
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %6, i64 noundef %138, i64 noundef %139, ptr noundef %8, ptr noundef %140)
  %141 = load i64, ptr %12, align 8, !tbaa !11
  %142 = load ptr, ptr %4, align 8, !tbaa !9
  %143 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %141, ptr noundef %142)
  br i1 %143, label %145, label %144

144:                                              ; preds = %137
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext true, ptr noundef @.str.19, i32 noundef 92131, ptr noundef @.str.715)
  br label %334

145:                                              ; preds = %137
  %146 = load i64, ptr %12, align 8, !tbaa !11
  %147 = load i64, ptr %12, align 8, !tbaa !11
  %148 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %7, i64 noundef %146, i64 noundef %147, ptr noundef %9, ptr noundef %148)
  %149 = load i64, ptr %12, align 8, !tbaa !11
  %150 = load i64, ptr %15, align 8, !tbaa !11
  %151 = load i64, ptr %16, align 8, !tbaa !11
  %152 = load double, ptr %17, align 8, !tbaa !13
  %153 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22rmatrixinvupdatesimpleEPNS_9ae_matrixEllldPNS_8ae_stateE(ptr noundef %9, i64 noundef %149, i64 noundef %150, i64 noundef %151, double noundef %152, ptr noundef %153)
  %154 = load i64, ptr %12, align 8, !tbaa !11
  %155 = load i64, ptr %12, align 8, !tbaa !11
  %156 = load ptr, ptr %4, align 8, !tbaa !9
  %157 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %154, i64 noundef %155, ptr noundef %156)
  %158 = load double, ptr %21, align 8, !tbaa !13
  %159 = load i64, ptr %12, align 8, !tbaa !11
  %160 = load ptr, ptr %4, align 8, !tbaa !9
  %161 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef %8, i64 noundef %159, ptr noundef %160)
  %162 = fmul double %158, %161
  %163 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %157, double noundef %162)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext %163, ptr noundef @.str.19, i32 noundef 92136, ptr noundef @.str.716)
  %164 = load i64, ptr %12, align 8, !tbaa !11
  %165 = load ptr, ptr %4, align 8, !tbaa !9
  %166 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %164, ptr noundef %165)
  store i64 %166, ptr %15, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %167

167:                                              ; preds = %195, %145
  %168 = load i64, ptr %14, align 8, !tbaa !11
  %169 = load i64, ptr %12, align 8, !tbaa !11
  %170 = sub nsw i64 %169, 1
  %171 = icmp sle i64 %168, %170
  br i1 %171, label %172, label %198

172:                                              ; preds = %167
  %173 = load i64, ptr %14, align 8, !tbaa !11
  %174 = load i64, ptr %15, align 8, !tbaa !11
  %175 = icmp eq i64 %173, %174
  br i1 %175, label %176, label %181

176:                                              ; preds = %172
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i64, ptr %14, align 8, !tbaa !11
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  store double 1.000000e+00, ptr %180, align 8, !tbaa !13
  br label %186

181:                                              ; preds = %172
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i64, ptr %14, align 8, !tbaa !11
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  store double 0.000000e+00, ptr %185, align 8, !tbaa !13
  br label %186

186:                                              ; preds = %181, %176
  %187 = load ptr, ptr %4, align 8, !tbaa !9
  %188 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %187)
  %189 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %188, double -1.000000e+00)
  %190 = fmul double 1.000000e-01, %189
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i64, ptr %14, align 8, !tbaa !11
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  store double %190, ptr %194, align 8, !tbaa !13
  br label %195

195:                                              ; preds = %186
  %196 = load i64, ptr %14, align 8, !tbaa !11
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %14, align 8, !tbaa !11
  br label %167, !llvm.loop !18

198:                                              ; preds = %167
  %199 = load i64, ptr %12, align 8, !tbaa !11
  %200 = load i64, ptr %12, align 8, !tbaa !11
  %201 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %6, i64 noundef %199, i64 noundef %200, ptr noundef %8, ptr noundef %201)
  %202 = load i64, ptr %12, align 8, !tbaa !11
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  %204 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %202, ptr noundef %203)
  br i1 %204, label %206, label %205

205:                                              ; preds = %198
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext true, ptr noundef @.str.19, i32 noundef 92157, ptr noundef @.str.717)
  br label %334

206:                                              ; preds = %198
  %207 = load i64, ptr %12, align 8, !tbaa !11
  %208 = load i64, ptr %12, align 8, !tbaa !11
  %209 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %7, i64 noundef %207, i64 noundef %208, ptr noundef %9, ptr noundef %209)
  %210 = load i64, ptr %12, align 8, !tbaa !11
  %211 = load i64, ptr %15, align 8, !tbaa !11
  %212 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19rmatrixinvupdaterowEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %9, i64 noundef %210, i64 noundef %211, ptr noundef %11, ptr noundef %212)
  %213 = load i64, ptr %12, align 8, !tbaa !11
  %214 = load i64, ptr %12, align 8, !tbaa !11
  %215 = load ptr, ptr %4, align 8, !tbaa !9
  %216 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %213, i64 noundef %214, ptr noundef %215)
  %217 = load double, ptr %21, align 8, !tbaa !13
  %218 = load i64, ptr %12, align 8, !tbaa !11
  %219 = load ptr, ptr %4, align 8, !tbaa !9
  %220 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef %8, i64 noundef %218, ptr noundef %219)
  %221 = fmul double %217, %220
  %222 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %216, double noundef %221)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext %222, ptr noundef @.str.19, i32 noundef 92162, ptr noundef @.str.718)
  %223 = load i64, ptr %12, align 8, !tbaa !11
  %224 = load ptr, ptr %4, align 8, !tbaa !9
  %225 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %223, ptr noundef %224)
  store i64 %225, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %254, %206
  %227 = load i64, ptr %14, align 8, !tbaa !11
  %228 = load i64, ptr %12, align 8, !tbaa !11
  %229 = sub nsw i64 %228, 1
  %230 = icmp sle i64 %227, %229
  br i1 %230, label %231, label %257

231:                                              ; preds = %226
  %232 = load i64, ptr %14, align 8, !tbaa !11
  %233 = load i64, ptr %16, align 8, !tbaa !11
  %234 = icmp eq i64 %232, %233
  br i1 %234, label %235, label %240

235:                                              ; preds = %231
  %236 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %237 = load ptr, ptr %236, align 8, !tbaa !15
  %238 = load i64, ptr %14, align 8, !tbaa !11
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  store double 1.000000e+00, ptr %239, align 8, !tbaa !13
  br label %245

240:                                              ; preds = %231
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load i64, ptr %14, align 8, !tbaa !11
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  store double 0.000000e+00, ptr %244, align 8, !tbaa !13
  br label %245

245:                                              ; preds = %240, %235
  %246 = load ptr, ptr %4, align 8, !tbaa !9
  %247 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %246)
  %248 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %247, double -1.000000e+00)
  %249 = fmul double 1.000000e-01, %248
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !15
  %252 = load i64, ptr %14, align 8, !tbaa !11
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  store double %249, ptr %253, align 8, !tbaa !13
  br label %254

254:                                              ; preds = %245
  %255 = load i64, ptr %14, align 8, !tbaa !11
  %256 = add nsw i64 %255, 1
  store i64 %256, ptr %14, align 8, !tbaa !11
  br label %226, !llvm.loop !19

257:                                              ; preds = %226
  %258 = load i64, ptr %12, align 8, !tbaa !11
  %259 = load i64, ptr %12, align 8, !tbaa !11
  %260 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %6, i64 noundef %258, i64 noundef %259, ptr noundef %8, ptr noundef %260)
  %261 = load i64, ptr %12, align 8, !tbaa !11
  %262 = load ptr, ptr %4, align 8, !tbaa !9
  %263 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %261, ptr noundef %262)
  br i1 %263, label %265, label %264

264:                                              ; preds = %257
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext true, ptr noundef @.str.19, i32 noundef 92183, ptr noundef @.str.719)
  br label %334

265:                                              ; preds = %257
  %266 = load i64, ptr %12, align 8, !tbaa !11
  %267 = load i64, ptr %12, align 8, !tbaa !11
  %268 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %7, i64 noundef %266, i64 noundef %267, ptr noundef %9, ptr noundef %268)
  %269 = load i64, ptr %12, align 8, !tbaa !11
  %270 = load i64, ptr %16, align 8, !tbaa !11
  %271 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22rmatrixinvupdatecolumnEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %9, i64 noundef %269, i64 noundef %270, ptr noundef %10, ptr noundef %271)
  %272 = load i64, ptr %12, align 8, !tbaa !11
  %273 = load i64, ptr %12, align 8, !tbaa !11
  %274 = load ptr, ptr %4, align 8, !tbaa !9
  %275 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %272, i64 noundef %273, ptr noundef %274)
  %276 = load double, ptr %21, align 8, !tbaa !13
  %277 = load i64, ptr %12, align 8, !tbaa !11
  %278 = load ptr, ptr %4, align 8, !tbaa !9
  %279 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef %8, i64 noundef %277, ptr noundef %278)
  %280 = fmul double %276, %279
  %281 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %275, double noundef %280)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext %281, ptr noundef @.str.19, i32 noundef 92188, ptr noundef @.str.720)
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %282

282:                                              ; preds = %304, %265
  %283 = load i64, ptr %14, align 8, !tbaa !11
  %284 = load i64, ptr %12, align 8, !tbaa !11
  %285 = sub nsw i64 %284, 1
  %286 = icmp sle i64 %283, %285
  br i1 %286, label %287, label %307

287:                                              ; preds = %282
  %288 = load ptr, ptr %4, align 8, !tbaa !9
  %289 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %288)
  %290 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %289, double -1.000000e+00)
  %291 = fmul double 1.000000e-01, %290
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !15
  %294 = load i64, ptr %14, align 8, !tbaa !11
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  store double %291, ptr %295, align 8, !tbaa !13
  %296 = load ptr, ptr %4, align 8, !tbaa !9
  %297 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %296)
  %298 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %297, double -1.000000e+00)
  %299 = fmul double 1.000000e-01, %298
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !15
  %302 = load i64, ptr %14, align 8, !tbaa !11
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %299, ptr %303, align 8, !tbaa !13
  br label %304

304:                                              ; preds = %287
  %305 = load i64, ptr %14, align 8, !tbaa !11
  %306 = add nsw i64 %305, 1
  store i64 %306, ptr %14, align 8, !tbaa !11
  br label %282, !llvm.loop !20

307:                                              ; preds = %282
  %308 = load i64, ptr %12, align 8, !tbaa !11
  %309 = load i64, ptr %12, align 8, !tbaa !11
  %310 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %6, i64 noundef %308, i64 noundef %309, ptr noundef %8, ptr noundef %310)
  %311 = load i64, ptr %12, align 8, !tbaa !11
  %312 = load ptr, ptr %4, align 8, !tbaa !9
  %313 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %311, ptr noundef %312)
  br i1 %313, label %315, label %314

314:                                              ; preds = %307
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext true, ptr noundef @.str.19, i32 noundef 92201, ptr noundef @.str.721)
  br label %334

315:                                              ; preds = %307
  %316 = load i64, ptr %12, align 8, !tbaa !11
  %317 = load i64, ptr %12, align 8, !tbaa !11
  %318 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef %7, i64 noundef %316, i64 noundef %317, ptr noundef %9, ptr noundef %318)
  %319 = load i64, ptr %12, align 8, !tbaa !11
  %320 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPKNS_9ae_vectorES4_PNS_8ae_stateE(ptr noundef %9, i64 noundef %319, ptr noundef %10, ptr noundef %11, ptr noundef %320)
  %321 = load i64, ptr %12, align 8, !tbaa !11
  %322 = load i64, ptr %12, align 8, !tbaa !11
  %323 = load ptr, ptr %4, align 8, !tbaa !9
  %324 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %321, i64 noundef %322, ptr noundef %323)
  %325 = load double, ptr %21, align 8, !tbaa !13
  %326 = load i64, ptr %12, align 8, !tbaa !11
  %327 = load ptr, ptr %4, align 8, !tbaa !9
  %328 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef %8, i64 noundef %326, ptr noundef %327)
  %329 = fmul double %325, %328
  %330 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %324, double noundef %329)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %20, i1 noundef zeroext %330, ptr noundef @.str.19, i32 noundef 92206, ptr noundef @.str.722)
  br label %331

331:                                              ; preds = %315
  %332 = load i64, ptr %18, align 8, !tbaa !11
  %333 = add nsw i64 %332, 1
  store i64 %333, ptr %18, align 8, !tbaa !11
  br label %66, !llvm.loop !21

334:                                              ; preds = %314, %264, %205, %144, %87, %66
  br label %335

335:                                              ; preds = %334
  %336 = load i64, ptr %12, align 8, !tbaa !11
  %337 = add nsw i64 %336, 1
  store i64 %337, ptr %12, align 8, !tbaa !11
  br label %32, !llvm.loop !22

338:                                              ; preds = %32
  %339 = load i8, ptr %3, align 1, !tbaa !5, !range !23, !noundef !24
  %340 = trunc i8 %339 to i1
  br i1 %340, label %351, label %341

341:                                              ; preds = %338
  %342 = call i32 (ptr, ...) @printf(ptr noundef @.str.723)
  %343 = load i8, ptr %20, align 1, !tbaa !5, !range !23, !noundef !24
  %344 = trunc i8 %343 to i1
  br i1 %344, label %345, label %347

345:                                              ; preds = %341
  %346 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %349

347:                                              ; preds = %341
  %348 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %349

349:                                              ; preds = %347, %345
  %350 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %351

351:                                              ; preds = %349, %338
  %352 = load i8, ptr %20, align 1, !tbaa !5, !range !23, !noundef !24
  %353 = trunc i8 %352 to i1
  %354 = xor i1 %353, true
  %355 = zext i1 %354 to i8
  store i8 %355, ptr %23, align 1, !tbaa !5
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %356)
  %357 = load i8, ptr %23, align 1, !tbaa !5, !range !23, !noundef !24
  %358 = trunc i8 %357 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %358
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL28testinverseupdateunit_invmatPN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #4

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

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

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

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

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

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

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

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

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


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

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

@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.716 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.717 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.718 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.719 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.720 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.721 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.722 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.723 = external hidden unnamed_addr constant [31 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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 #3

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 #3

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

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

declare noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef, i1 noundef zeroext, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #3

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

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

declare noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testinverseupdatebPN11alglib_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_matrix", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca i8, align 1
  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 80, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %4, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %4, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %7, 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 %8, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %10, align 1, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %8, i64 56
  %12 = getelementptr inbounds i8, ptr %9, i64 56
  br label %13

13:                                               ; preds = %2, %.loopexit
  %.0165 = phi i64 [ 1, %2 ], [ %102, %.loopexit ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0165, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0165, ptr noundef %1)
  br label %14

14:                                               ; preds = %13, %96
  %.0155164 = phi i64 [ 1, %13 ], [ %101, %96 ]
  %15 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %16 = call noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef 1.000000e+01, ptr noundef %1)
  %17 = fmul double %15, %16
  %18 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %17, ptr noundef %1)
  call void @_ZL46testinverseupdateunit_generaterandommatrixcondPN11alglib_impl9ae_matrixEldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, double noundef %18, ptr noundef %1)
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %5, ptr noundef %1)
  %19 = call noundef zeroext i1 @_ZL28testinverseupdateunit_invmatPN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0165, ptr noundef %1)
  br i1 %19, label %21, label %20

20:                                               ; preds = %14
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext true, ptr noundef nonnull @.str.19, i32 noundef 92099, ptr noundef nonnull @.str.714)
  br label %.loopexit

21:                                               ; preds = %14
  %22 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0165, ptr noundef %1)
  %23 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0165, ptr noundef %1)
  %24 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %25 = call double @llvm.fmuladd.f64(double %24, double 2.000000e+00, double -1.000000e+00)
  %26 = fmul double %25, 1.000000e-01
  br label %27

27:                                               ; preds = %21, %27
  %.0154160 = phi i64 [ 0, %21 ], [ %34, %27 ]
  %28 = icmp eq i64 %.0154160, %22
  %29 = load ptr, ptr %11, align 8, !tbaa !9
  %. = select i1 %28, double %26, double 0.000000e+00
  %30 = getelementptr inbounds double, ptr %29, i64 %.0154160
  store double %., ptr %30, align 8, !tbaa !10
  %31 = icmp eq i64 %.0154160, %23
  %.sink172 = select i1 %31, double 1.000000e+00, double 0.000000e+00
  %32 = load ptr, ptr %12, align 8, !tbaa !9
  %33 = getelementptr inbounds double, ptr %32, i64 %.0154160
  store double %.sink172, ptr %33, align 8, !tbaa !10
  %34 = add nuw nsw i64 %.0154160, 1
  %exitcond.not = icmp eq i64 %34, %.0165
  br i1 %exitcond.not, label %35, label %27, !llvm.loop !12

35:                                               ; preds = %27
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %6, ptr noundef %1)
  %36 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0165, ptr noundef %1)
  br i1 %36, label %38, label %37

37:                                               ; preds = %35
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext true, ptr noundef nonnull @.str.19, i32 noundef 92131, ptr noundef nonnull @.str.715)
  br label %.loopexit

38:                                               ; preds = %35
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl22rmatrixinvupdatesimpleEPNS_9ae_matrixEllldPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %22, i64 noundef %23, double noundef %26, ptr noundef %1)
  %39 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  %40 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165, ptr noundef %1)
  %41 = fmul double %40, 0x3EB0C6F7A0B5ED8D
  %42 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %39, double noundef %41)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext %42, ptr noundef nonnull @.str.19, i32 noundef 92136, ptr noundef nonnull @.str.716)
  %43 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0165, ptr noundef %1)
  br label %44

44:                                               ; preds = %38, %44
  %.1161 = phi i64 [ 0, %38 ], [ %53, %44 ]
  %45 = icmp eq i64 %.1161, %43
  %46 = load ptr, ptr %11, align 8, !tbaa !9
  %.180 = select i1 %45, double 1.000000e+00, double 0.000000e+00
  %47 = getelementptr inbounds double, ptr %46, i64 %.1161
  store double %.180, ptr %47, align 8, !tbaa !10
  %48 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %49 = call double @llvm.fmuladd.f64(double %48, double 2.000000e+00, double -1.000000e+00)
  %50 = fmul double %49, 1.000000e-01
  %51 = load ptr, ptr %12, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %51, i64 %.1161
  store double %50, ptr %52, align 8, !tbaa !10
  %53 = add nuw nsw i64 %.1161, 1
  %exitcond166.not = icmp eq i64 %53, %.0165
  br i1 %exitcond166.not, label %54, label %44, !llvm.loop !14

54:                                               ; preds = %44
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %6, ptr noundef %1)
  %55 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0165, ptr noundef %1)
  br i1 %55, label %57, label %56

56:                                               ; preds = %54
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext true, ptr noundef nonnull @.str.19, i32 noundef 92157, ptr noundef nonnull @.str.717)
  br label %.loopexit

57:                                               ; preds = %54
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl19rmatrixinvupdaterowEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %43, ptr noundef nonnull %9, ptr noundef %1)
  %58 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  %59 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165, ptr noundef %1)
  %60 = fmul double %59, 0x3EB0C6F7A0B5ED8D
  %61 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %58, double noundef %60)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext %61, ptr noundef nonnull @.str.19, i32 noundef 92162, ptr noundef nonnull @.str.718)
  %62 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0165, ptr noundef %1)
  br label %63

63:                                               ; preds = %57, %63
  %.2162 = phi i64 [ 0, %57 ], [ %72, %63 ]
  %64 = icmp eq i64 %.2162, %62
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %.181 = select i1 %64, double 1.000000e+00, double 0.000000e+00
  %66 = getelementptr inbounds double, ptr %65, i64 %.2162
  store double %.181, ptr %66, align 8, !tbaa !10
  %67 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %68 = call double @llvm.fmuladd.f64(double %67, double 2.000000e+00, double -1.000000e+00)
  %69 = fmul double %68, 1.000000e-01
  %70 = load ptr, ptr %11, align 8, !tbaa !9
  %71 = getelementptr inbounds double, ptr %70, i64 %.2162
  store double %69, ptr %71, align 8, !tbaa !10
  %72 = add nuw nsw i64 %.2162, 1
  %exitcond167.not = icmp eq i64 %72, %.0165
  br i1 %exitcond167.not, label %73, label %63, !llvm.loop !15

73:                                               ; preds = %63
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %6, ptr noundef %1)
  %74 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0165, ptr noundef %1)
  br i1 %74, label %76, label %75

75:                                               ; preds = %73
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext true, ptr noundef nonnull @.str.19, i32 noundef 92183, ptr noundef nonnull @.str.719)
  br label %.loopexit

76:                                               ; preds = %73
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl22rmatrixinvupdatecolumnEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %62, ptr noundef nonnull %8, ptr noundef %1)
  %77 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  %78 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165, ptr noundef %1)
  %79 = fmul double %78, 0x3EB0C6F7A0B5ED8D
  %80 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %77, double noundef %79)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext %80, ptr noundef nonnull @.str.19, i32 noundef 92188, ptr noundef nonnull @.str.720)
  br label %81

81:                                               ; preds = %76, %81
  %.3163 = phi i64 [ 0, %76 ], [ %92, %81 ]
  %82 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %83 = call double @llvm.fmuladd.f64(double %82, double 2.000000e+00, double -1.000000e+00)
  %84 = fmul double %83, 1.000000e-01
  %85 = load ptr, ptr %12, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 %.3163
  store double %84, ptr %86, align 8, !tbaa !10
  %87 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %88 = call double @llvm.fmuladd.f64(double %87, double 2.000000e+00, double -1.000000e+00)
  %89 = fmul double %88, 1.000000e-01
  %90 = load ptr, ptr %11, align 8, !tbaa !9
  %91 = getelementptr inbounds double, ptr %90, i64 %.3163
  store double %89, ptr %91, align 8, !tbaa !10
  %92 = add nuw nsw i64 %.3163, 1
  %exitcond168.not = icmp eq i64 %92, %.0165
  br i1 %exitcond168.not, label %93, label %81, !llvm.loop !16

93:                                               ; preds = %81
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %6, ptr noundef %1)
  %94 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0165, ptr noundef %1)
  br i1 %94, label %96, label %95

95:                                               ; preds = %93
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext true, ptr noundef nonnull @.str.19, i32 noundef 92201, ptr noundef nonnull @.str.721)
  br label %.loopexit

96:                                               ; preds = %93
  call void @_ZL31testinverseupdateunit_makeacopyPKN11alglib_impl9ae_matrixEllPS0_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0165, i64 noundef %.0165, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPKNS_9ae_vectorES4_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0165, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %1)
  %97 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPKN11alglib_impl9ae_matrixES2_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0165, i64 noundef %.0165, ptr noundef %1)
  %98 = call noundef double @_ZL35testinverseupdateunit_normalizednrmPKN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0165, ptr noundef %1)
  %99 = fmul double %98, 0x3EB0C6F7A0B5ED8D
  %100 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %97, double noundef %99)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %10, i1 noundef zeroext %100, ptr noundef nonnull @.str.19, i32 noundef 92206, ptr noundef nonnull @.str.722)
  %101 = add nuw nsw i64 %.0155164, 1
  %exitcond169.not = icmp eq i64 %101, 101
  br i1 %exitcond169.not, label %.loopexit, label %14, !llvm.loop !17

.loopexit:                                        ; preds = %96, %20, %37, %56, %75, %95
  %102 = add nuw nsw i64 %.0165, 1
  %exitcond170.not = icmp eq i64 %102, 11
  br i1 %exitcond170.not, label %103, label %13, !llvm.loop !18

103:                                              ; preds = %.loopexit
  br i1 %0, label %110, label %104

104:                                              ; preds = %103
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.723)
  %106 = load i8, ptr %10, align 1, !tbaa !5, !range !19, !noundef !20
  %107 = trunc nuw i8 %106 to i1
  %.str.15..str.16 = select i1 %107, ptr @.str.15, ptr @.str.16
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.15..str.16)
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  br label %110

110:                                              ; preds = %104, %103
  %111 = load i8, ptr %10, align 1, !tbaa !5, !range !19, !noundef !20
  %112 = trunc nuw i8 %111 to i1
  %113 = xor i1 %112, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 80, 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 %113
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL28testinverseupdateunit_invmatPN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPKNS_9ae_vectorES4_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare void @_ZN11alglib_impl22rmatrixinvupdatesimpleEPNS_9ae_matrixEllldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN11alglib_impl19rmatrixinvupdaterowEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl22rmatrixinvupdatecolumnEPNS_9ae_matrixEllPKNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPKNS_9ae_vectorES4_PNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 nounwind willreturn memory(argmem: write) }
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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{i8 0, i8 2}
!20 = !{}


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