; LLVM IR from venumb/ZSPACE :: cpp/depends/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.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.726 = 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 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 zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double 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 = %343, %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 %346

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 = %339, %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 %342

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_makeacopyPN11alglib_impl9ae_matrixEllS1_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
  store i8 1, ptr %20, align 1, !tbaa !5
  br label %342

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_makeacopyPN11alglib_impl9ae_matrixEllS1_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_matrixEPNS_9ae_vectorES3_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
  store i8 1, ptr %20, align 1, !tbaa !5
  br label %342

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_makeacopyPN11alglib_impl9ae_matrixEllS1_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 i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %155 = trunc i8 %154 to i1
  br i1 %155, label %163, label %156

156:                                              ; preds = %145
  %157 = load i64, ptr %12, align 8, !tbaa !11
  %158 = load i64, ptr %12, align 8, !tbaa !11
  %159 = load ptr, ptr %4, align 8, !tbaa !9
  %160 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %157, i64 noundef %158, ptr noundef %159)
  %161 = load double, ptr %21, align 8, !tbaa !13
  %162 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %160, double noundef %161)
  br label %163

163:                                              ; preds = %156, %145
  %164 = phi i1 [ true, %145 ], [ %162, %156 ]
  %165 = zext i1 %164 to i8
  store i8 %165, ptr %20, align 1, !tbaa !5
  %166 = load i64, ptr %12, align 8, !tbaa !11
  %167 = load ptr, ptr %4, align 8, !tbaa !9
  %168 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %166, ptr noundef %167)
  store i64 %168, ptr %15, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %197, %163
  %170 = load i64, ptr %14, align 8, !tbaa !11
  %171 = load i64, ptr %12, align 8, !tbaa !11
  %172 = sub nsw i64 %171, 1
  %173 = icmp sle i64 %170, %172
  br i1 %173, label %174, label %200

174:                                              ; preds = %169
  %175 = load i64, ptr %14, align 8, !tbaa !11
  %176 = load i64, ptr %15, align 8, !tbaa !11
  %177 = icmp eq i64 %175, %176
  br i1 %177, label %178, label %183

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

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

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

197:                                              ; preds = %188
  %198 = load i64, ptr %14, align 8, !tbaa !11
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %14, align 8, !tbaa !11
  br label %169, !llvm.loop !20

200:                                              ; preds = %169
  %201 = load i64, ptr %12, align 8, !tbaa !11
  %202 = load i64, ptr %12, align 8, !tbaa !11
  %203 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %6, i64 noundef %201, i64 noundef %202, ptr noundef %8, ptr noundef %203)
  %204 = load i64, ptr %12, align 8, !tbaa !11
  %205 = load ptr, ptr %4, align 8, !tbaa !9
  %206 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %204, ptr noundef %205)
  br i1 %206, label %208, label %207

207:                                              ; preds = %200
  store i8 1, ptr %20, align 1, !tbaa !5
  br label %342

208:                                              ; preds = %200
  %209 = load i64, ptr %12, align 8, !tbaa !11
  %210 = load i64, ptr %12, align 8, !tbaa !11
  %211 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %7, i64 noundef %209, i64 noundef %210, ptr noundef %9, ptr noundef %211)
  %212 = load i64, ptr %12, align 8, !tbaa !11
  %213 = load i64, ptr %15, align 8, !tbaa !11
  %214 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl19rmatrixinvupdaterowEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %9, i64 noundef %212, i64 noundef %213, ptr noundef %11, ptr noundef %214)
  %215 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %216 = trunc i8 %215 to i1
  br i1 %216, label %224, label %217

217:                                              ; preds = %208
  %218 = load i64, ptr %12, align 8, !tbaa !11
  %219 = load i64, ptr %12, align 8, !tbaa !11
  %220 = load ptr, ptr %4, align 8, !tbaa !9
  %221 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %218, i64 noundef %219, ptr noundef %220)
  %222 = load double, ptr %21, align 8, !tbaa !13
  %223 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %221, double noundef %222)
  br label %224

224:                                              ; preds = %217, %208
  %225 = phi i1 [ true, %208 ], [ %223, %217 ]
  %226 = zext i1 %225 to i8
  store i8 %226, ptr %20, align 1, !tbaa !5
  %227 = load i64, ptr %12, align 8, !tbaa !11
  %228 = load ptr, ptr %4, align 8, !tbaa !9
  %229 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %227, ptr noundef %228)
  store i64 %229, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %230

230:                                              ; preds = %258, %224
  %231 = load i64, ptr %14, align 8, !tbaa !11
  %232 = load i64, ptr %12, align 8, !tbaa !11
  %233 = sub nsw i64 %232, 1
  %234 = icmp sle i64 %231, %233
  br i1 %234, label %235, label %261

235:                                              ; preds = %230
  %236 = load i64, ptr %14, align 8, !tbaa !11
  %237 = load i64, ptr %16, align 8, !tbaa !11
  %238 = icmp eq i64 %236, %237
  br i1 %238, label %239, label %244

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

244:                                              ; preds = %235
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %11, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !15
  %247 = load i64, ptr %14, align 8, !tbaa !11
  %248 = getelementptr inbounds double, ptr %246, i64 %247
  store double 0.000000e+00, ptr %248, align 8, !tbaa !13
  br label %249

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

258:                                              ; preds = %249
  %259 = load i64, ptr %14, align 8, !tbaa !11
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %14, align 8, !tbaa !11
  br label %230, !llvm.loop !21

261:                                              ; preds = %230
  %262 = load i64, ptr %12, align 8, !tbaa !11
  %263 = load i64, ptr %12, align 8, !tbaa !11
  %264 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %6, i64 noundef %262, i64 noundef %263, ptr noundef %8, ptr noundef %264)
  %265 = load i64, ptr %12, align 8, !tbaa !11
  %266 = load ptr, ptr %4, align 8, !tbaa !9
  %267 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %265, ptr noundef %266)
  br i1 %267, label %269, label %268

268:                                              ; preds = %261
  store i8 1, ptr %20, align 1, !tbaa !5
  br label %342

269:                                              ; preds = %261
  %270 = load i64, ptr %12, align 8, !tbaa !11
  %271 = load i64, ptr %12, align 8, !tbaa !11
  %272 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %7, i64 noundef %270, i64 noundef %271, ptr noundef %9, ptr noundef %272)
  %273 = load i64, ptr %12, align 8, !tbaa !11
  %274 = load i64, ptr %16, align 8, !tbaa !11
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22rmatrixinvupdatecolumnEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %9, i64 noundef %273, i64 noundef %274, ptr noundef %10, ptr noundef %275)
  %276 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %277 = trunc i8 %276 to i1
  br i1 %277, label %285, label %278

278:                                              ; preds = %269
  %279 = load i64, ptr %12, align 8, !tbaa !11
  %280 = load i64, ptr %12, align 8, !tbaa !11
  %281 = load ptr, ptr %4, align 8, !tbaa !9
  %282 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %279, i64 noundef %280, ptr noundef %281)
  %283 = load double, ptr %21, align 8, !tbaa !13
  %284 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %282, double noundef %283)
  br label %285

285:                                              ; preds = %278, %269
  %286 = phi i1 [ true, %269 ], [ %284, %278 ]
  %287 = zext i1 %286 to i8
  store i8 %287, ptr %20, align 1, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %288

288:                                              ; preds = %310, %285
  %289 = load i64, ptr %14, align 8, !tbaa !11
  %290 = load i64, ptr %12, align 8, !tbaa !11
  %291 = sub nsw i64 %290, 1
  %292 = icmp sle i64 %289, %291
  br i1 %292, label %293, label %313

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

310:                                              ; preds = %293
  %311 = load i64, ptr %14, align 8, !tbaa !11
  %312 = add nsw i64 %311, 1
  store i64 %312, ptr %14, align 8, !tbaa !11
  br label %288, !llvm.loop !22

313:                                              ; preds = %288
  %314 = load i64, ptr %12, align 8, !tbaa !11
  %315 = load i64, ptr %12, align 8, !tbaa !11
  %316 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %6, i64 noundef %314, i64 noundef %315, ptr noundef %8, ptr noundef %316)
  %317 = load i64, ptr %12, align 8, !tbaa !11
  %318 = load ptr, ptr %4, align 8, !tbaa !9
  %319 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef %8, ptr noundef %10, ptr noundef %11, i64 noundef %317, ptr noundef %318)
  br i1 %319, label %321, label %320

320:                                              ; preds = %313
  store i8 1, ptr %20, align 1, !tbaa !5
  br label %342

321:                                              ; preds = %313
  %322 = load i64, ptr %12, align 8, !tbaa !11
  %323 = load i64, ptr %12, align 8, !tbaa !11
  %324 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef %7, i64 noundef %322, i64 noundef %323, ptr noundef %9, ptr noundef %324)
  %325 = load i64, ptr %12, align 8, !tbaa !11
  %326 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef %9, i64 noundef %325, ptr noundef %10, ptr noundef %11, ptr noundef %326)
  %327 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %328 = trunc i8 %327 to i1
  br i1 %328, label %336, label %329

329:                                              ; preds = %321
  %330 = load i64, ptr %12, align 8, !tbaa !11
  %331 = load i64, ptr %12, align 8, !tbaa !11
  %332 = load ptr, ptr %4, align 8, !tbaa !9
  %333 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef %8, ptr noundef %9, i64 noundef %330, i64 noundef %331, ptr noundef %332)
  %334 = load double, ptr %21, align 8, !tbaa !13
  %335 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %333, double noundef %334)
  br label %336

336:                                              ; preds = %329, %321
  %337 = phi i1 [ true, %321 ], [ %335, %329 ]
  %338 = zext i1 %337 to i8
  store i8 %338, ptr %20, align 1, !tbaa !5
  br label %339

339:                                              ; preds = %336
  %340 = load i64, ptr %18, align 8, !tbaa !11
  %341 = add nsw i64 %340, 1
  store i64 %341, ptr %18, align 8, !tbaa !11
  br label %66, !llvm.loop !23

342:                                              ; preds = %320, %268, %207, %144, %87, %66
  br label %343

343:                                              ; preds = %342
  %344 = load i64, ptr %12, align 8, !tbaa !11
  %345 = add nsw i64 %344, 1
  store i64 %345, ptr %12, align 8, !tbaa !11
  br label %32, !llvm.loop !24

346:                                              ; preds = %32
  %347 = load i8, ptr %3, align 1, !tbaa !5, !range !18, !noundef !19
  %348 = trunc i8 %347 to i1
  br i1 %348, label %359, label %349

349:                                              ; preds = %346
  %350 = call i32 (ptr, ...) @printf(ptr noundef @.str.726)
  %351 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %352 = trunc i8 %351 to i1
  br i1 %352, label %353, label %355

353:                                              ; preds = %349
  %354 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %357

355:                                              ; preds = %349
  %356 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %357

357:                                              ; preds = %355, %353
  %358 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %359

359:                                              ; preds = %357, %346
  %360 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %361 = trunc i8 %360 to i1
  %362 = xor i1 %361, true
  %363 = zext i1 %362 to i8
  store i8 %363, ptr %23, align 1, !tbaa !5
  %364 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %364)
  %365 = load i8, ptr %23, align 1, !tbaa !5, !range !18, !noundef !19
  %366 = trunc i8 %365 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 %366
}

; 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_makeacopyPN11alglib_impl9ae_matrixEllS1_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_matrixEPNS_9ae_vectorES3_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_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

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

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

declare void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPNS_9ae_vectorES3_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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


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

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.726 = 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

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 zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

; 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
  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 @_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)
  %10 = getelementptr inbounds i8, ptr %8, i64 56
  %11 = getelementptr inbounds i8, ptr %9, i64 56
  br label %12

12:                                               ; preds = %2, %102
  %.0168 = phi i64 [ 1, %2 ], [ %103, %102 ]
  %.0153167 = phi i8 [ 0, %2 ], [ %.2155, %102 ]
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0168, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.0168, ptr noundef %1)
  br label %13

13:                                               ; preds = %12, %98
  %.1154166 = phi i8 [ %.0153167, %12 ], [ %100, %98 ]
  %.0156165 = phi i64 [ 1, %12 ], [ %101, %98 ]
  %14 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %15 = call noundef double @_ZN11alglib_impl6ae_logEdPNS_8ae_stateE(double noundef 1.000000e+01, ptr noundef %1)
  %16 = fmul double %14, %15
  %17 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %16, ptr noundef %1)
  call void @_ZL46testinverseupdateunit_generaterandommatrixcondPN11alglib_impl9ae_matrixEldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, double noundef %17, ptr noundef %1)
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %5, ptr noundef %1)
  %18 = call noundef zeroext i1 @_ZL28testinverseupdateunit_invmatPN11alglib_impl9ae_matrixElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0168, ptr noundef %1)
  br i1 %18, label %19, label %102

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

25:                                               ; preds = %19, %25
  %.0152161 = phi i64 [ 0, %19 ], [ %32, %25 ]
  %26 = icmp eq i64 %.0152161, %20
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %. = select i1 %26, double %24, double 0.000000e+00
  %28 = getelementptr inbounds double, ptr %27, i64 %.0152161
  store double %., ptr %28, align 8, !tbaa !8
  %29 = icmp eq i64 %.0152161, %21
  %.sink175 = select i1 %29, double 1.000000e+00, double 0.000000e+00
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 %.0152161
  store double %.sink175, ptr %31, align 8, !tbaa !8
  %32 = add nuw nsw i64 %.0152161, 1
  %exitcond.not = icmp eq i64 %32, %.0168
  br i1 %exitcond.not, label %33, label %25, !llvm.loop !10

33:                                               ; preds = %25
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %6, ptr noundef %1)
  %34 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0168, ptr noundef %1)
  br i1 %34, label %35, label %102

35:                                               ; preds = %33
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl22rmatrixinvupdatesimpleEPNS_9ae_matrixEllldPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %20, i64 noundef %21, double noundef %24, ptr noundef %1)
  %36 = trunc nuw i8 %.1154166 to i1
  br i1 %36, label %40, label %37

37:                                               ; preds = %35
  %38 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  %39 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %38, double noundef 0x3EB0C6F7A0B5ED8D)
  br label %40

40:                                               ; preds = %37, %35
  %41 = phi i1 [ true, %35 ], [ %39, %37 ]
  %42 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0168, ptr noundef %1)
  br label %43

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

53:                                               ; preds = %43
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %6, ptr noundef %1)
  %54 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0168, ptr noundef %1)
  br i1 %54, label %55, label %102

55:                                               ; preds = %53
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl19rmatrixinvupdaterowEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %42, ptr noundef nonnull %9, ptr noundef %1)
  br i1 %41, label %59, label %56

56:                                               ; preds = %55
  %57 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  %58 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %57, double noundef 0x3EB0C6F7A0B5ED8D)
  br label %59

59:                                               ; preds = %56, %55
  %60 = phi i1 [ true, %55 ], [ %58, %56 ]
  %61 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.0168, ptr noundef %1)
  br label %62

62:                                               ; preds = %59, %62
  %.2163 = phi i64 [ 0, %59 ], [ %71, %62 ]
  %63 = icmp eq i64 %.2163, %61
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %.184 = select i1 %63, double 1.000000e+00, double 0.000000e+00
  %65 = getelementptr inbounds double, ptr %64, i64 %.2163
  store double %.184, ptr %65, align 8, !tbaa !8
  %66 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %67 = call double @llvm.fmuladd.f64(double %66, double 2.000000e+00, double -1.000000e+00)
  %68 = fmul double %67, 1.000000e-01
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.2163
  store double %68, ptr %70, align 8, !tbaa !8
  %71 = add nuw nsw i64 %.2163, 1
  %exitcond170.not = icmp eq i64 %71, %.0168
  br i1 %exitcond170.not, label %72, label %62, !llvm.loop !13

72:                                               ; preds = %62
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %6, ptr noundef %1)
  %73 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0168, ptr noundef %1)
  br i1 %73, label %74, label %102

74:                                               ; preds = %72
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl22rmatrixinvupdatecolumnEPNS_9ae_matrixEllPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %61, ptr noundef nonnull %8, ptr noundef %1)
  br i1 %60, label %78, label %75

75:                                               ; preds = %74
  %76 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  %77 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %76, double noundef 0x3EB0C6F7A0B5ED8D)
  br label %78

78:                                               ; preds = %75, %74
  %79 = phi i1 [ true, %74 ], [ %77, %75 ]
  br label %80

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

92:                                               ; preds = %80
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %6, ptr noundef %1)
  %93 = call noundef zeroext i1 @_ZL31testinverseupdateunit_updandinvPN11alglib_impl9ae_matrixEPNS_9ae_vectorES3_lPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %.0168, ptr noundef %1)
  br i1 %93, label %94, label %102

94:                                               ; preds = %92
  call void @_ZL31testinverseupdateunit_makeacopyPN11alglib_impl9ae_matrixEllS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0168, i64 noundef %.0168, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl18rmatrixinvupdateuvEPNS_9ae_matrixElPNS_9ae_vectorES3_PNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0168, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %1)
  br i1 %79, label %98, label %95

95:                                               ; preds = %94
  %96 = call noundef double @_ZL32testinverseupdateunit_matrixdiffPN11alglib_impl9ae_matrixES1_llPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, i64 noundef %.0168, i64 noundef %.0168, ptr noundef %1)
  %97 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %96, double noundef 0x3EB0C6F7A0B5ED8D)
  br label %98

98:                                               ; preds = %95, %94
  %99 = phi i1 [ true, %94 ], [ %97, %95 ]
  %100 = zext i1 %99 to i8
  %101 = add nuw nsw i64 %.0156165, 1
  %exitcond172.not = icmp eq i64 %101, 101
  br i1 %exitcond172.not, label %102, label %13, !llvm.loop !15

102:                                              ; preds = %92, %72, %53, %33, %13, %98
  %.2155 = phi i8 [ %100, %98 ], [ 1, %13 ], [ 1, %33 ], [ 1, %53 ], [ 1, %72 ], [ 1, %92 ]
  %103 = add nuw nsw i64 %.0168, 1
  %exitcond173.not = icmp eq i64 %103, 11
  br i1 %exitcond173.not, label %104, label %12, !llvm.loop !16

104:                                              ; preds = %102
  br i1 %0, label %._crit_edge, label %105

._crit_edge:                                      ; preds = %104
  %.pre = trunc nuw i8 %.2155 to i1
  br label %110

105:                                              ; preds = %104
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.726)
  %107 = trunc nuw i8 %.2155 to i1
  %.str.1..str.2 = select i1 %107, ptr @.str.1, ptr @.str.2
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1..str.2)
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %110

110:                                              ; preds = %._crit_edge, %105
  %.pre-phi = phi i1 [ %.pre, %._crit_edge ], [ %107, %105 ]
  %111 = xor i1 %.pre-phi, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  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 %111
}

; 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_makeacopyPN11alglib_impl9ae_matrixEllS1_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_matrixEPNS_9ae_vectorES3_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 #1

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

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

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

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

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

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

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


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