; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7testldabPN11alglib_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.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.524 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.525 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.526 = external hidden unnamed_addr constant [42 x i8], align 1

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #1

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double 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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testldabPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #3 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  %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 %20, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, 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 %20, 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 %21, 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_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  store i64 10, ptr %6, align 8, !tbaa !11
  store i64 1000, ptr %7, align 8, !tbaa !11
  store i64 5, ptr %8, align 8, !tbaa !11
  store i64 1, ptr %9, align 8, !tbaa !11
  store i8 0, ptr %12, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  store i8 0, ptr %11, align 1, !tbaa !5
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %29

29:                                               ; preds = %211, %2
  %30 = load i64, ptr %13, align 8, !tbaa !11
  %31 = load i64, ptr %6, align 8, !tbaa !11
  %32 = icmp sle i64 %30, %31
  br i1 %32, label %33, label %214

33:                                               ; preds = %29
  store i64 2, ptr %14, align 8, !tbaa !11
  br label %34

34:                                               ; preds = %207, %33
  %35 = load i64, ptr %14, align 8, !tbaa !11
  %36 = load i64, ptr %8, align 8, !tbaa !11
  %37 = icmp sle i64 %35, %36
  br i1 %37, label %38, label %210

38:                                               ; preds = %34
  store i64 1, ptr %18, align 8, !tbaa !11
  br label %39

39:                                               ; preds = %203, %38
  %40 = load i64, ptr %18, align 8, !tbaa !11
  %41 = load i64, ptr %9, align 8, !tbaa !11
  %42 = icmp sle i64 %40, %41
  br i1 %42, label %43, label %206

43:                                               ; preds = %39
  %44 = load i64, ptr %13, align 8, !tbaa !11
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %44, ptr noundef %45)
  store i64 %46, ptr %19, align 8, !tbaa !11
  %47 = load i64, ptr %7, align 8, !tbaa !11
  %48 = sdiv i64 %47, 2
  %49 = load i64, ptr %7, align 8, !tbaa !11
  %50 = sdiv i64 %49, 2
  %51 = load ptr, ptr %4, align 8, !tbaa !9
  %52 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %50, ptr noundef %51)
  %53 = add nsw i64 %48, %52
  store i64 %53, ptr %15, align 8, !tbaa !11
  %54 = load i64, ptr %13, align 8, !tbaa !11
  %55 = load i64, ptr %14, align 8, !tbaa !11
  %56 = load i64, ptr %15, align 8, !tbaa !11
  %57 = load i64, ptr %19, align 8, !tbaa !11
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testldaunit_gensimplesetllllPN11alglib_impl9ae_matrixEPNS_8ae_stateE(i64 noundef %54, i64 noundef %55, i64 noundef %56, i64 noundef %57, ptr noundef %20, ptr noundef %58)
  %59 = load i64, ptr %15, align 8, !tbaa !11
  %60 = load i64, ptr %13, align 8, !tbaa !11
  %61 = load i64, ptr %14, align 8, !tbaa !11
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10fisherldanEPNS_9ae_matrixElllPlS1_PNS_8ae_stateE(ptr noundef %20, i64 noundef %59, i64 noundef %60, i64 noundef %61, ptr noundef %17, ptr noundef %21, ptr noundef %62)
  %63 = load i64, ptr %17, align 8, !tbaa !11
  %64 = icmp ne i64 %63, 1
  br i1 %64, label %65, label %66

65:                                               ; preds = %43
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %203

66:                                               ; preds = %43
  %67 = load i8, ptr %10, align 1, !tbaa !5, !range !13, !noundef !14
  %68 = trunc i8 %67 to i1
  br i1 %68, label %76, label %69

69:                                               ; preds = %66
  %70 = load i64, ptr %15, align 8, !tbaa !11
  %71 = load i64, ptr %13, align 8, !tbaa !11
  %72 = load i64, ptr %14, align 8, !tbaa !11
  %73 = load ptr, ptr %4, align 8, !tbaa !9
  %74 = call noundef zeroext i1 @_ZL18testldaunit_testwnPN11alglib_impl9ae_matrixES1_llllPNS_8ae_stateE(ptr noundef %20, ptr noundef %21, i64 noundef %70, i64 noundef %71, i64 noundef %72, i64 noundef 0, ptr noundef %73)
  %75 = xor i1 %74, true
  br label %76

76:                                               ; preds = %69, %66
  %77 = phi i1 [ true, %66 ], [ %75, %69 ]
  %78 = zext i1 %77 to i8
  store i8 %78, ptr %10, align 1, !tbaa !5
  %79 = load i8, ptr %10, align 1, !tbaa !5, !range !13, !noundef !14
  %80 = trunc i8 %79 to i1
  br i1 %80, label %92, label %81

81:                                               ; preds = %76
  %82 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i64, ptr %19, align 8, !tbaa !11
  %85 = getelementptr inbounds ptr, ptr %83, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %86, i64 0
  %88 = load double, ptr %87, align 8, !tbaa !16
  %89 = load ptr, ptr %4, align 8, !tbaa !9
  %90 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %88, ptr noundef %89)
  %91 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %90, double noundef 7.500000e-01)
  br label %92

92:                                               ; preds = %81, %76
  %93 = phi i1 [ true, %76 ], [ %91, %81 ]
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %10, align 1, !tbaa !5
  %95 = load i64, ptr %15, align 8, !tbaa !11
  %96 = load i64, ptr %13, align 8, !tbaa !11
  %97 = load i64, ptr %14, align 8, !tbaa !11
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fisherldaEPNS_9ae_matrixElllPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %20, i64 noundef %95, i64 noundef %96, i64 noundef %97, ptr noundef %17, ptr noundef %22, ptr noundef %98)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %124, %92
  %100 = load i64, ptr %16, align 8, !tbaa !11
  %101 = load i64, ptr %13, align 8, !tbaa !11
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %127

104:                                              ; preds = %99
  %105 = load i8, ptr %11, align 1, !tbaa !5, !range !13, !noundef !14
  %106 = trunc i8 %105 to i1
  br i1 %106, label %121, label %107

107:                                              ; preds = %104
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  %110 = load i64, ptr %16, align 8, !tbaa !11
  %111 = getelementptr inbounds double, ptr %109, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !16
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i64, ptr %16, align 8, !tbaa !11
  %116 = getelementptr inbounds ptr, ptr %114, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %117, i64 0
  %119 = load double, ptr %118, align 8, !tbaa !16
  %120 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %112, double noundef %119)
  br label %121

121:                                              ; preds = %107, %104
  %122 = phi i1 [ true, %104 ], [ %120, %107 ]
  %123 = zext i1 %122 to i8
  store i8 %123, ptr %11, align 1, !tbaa !5
  br label %124

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

127:                                              ; preds = %99
  %128 = load i64, ptr %13, align 8, !tbaa !11
  %129 = icmp sge i64 %128, 3
  br i1 %129, label %130, label %202

130:                                              ; preds = %127
  %131 = load i64, ptr %7, align 8, !tbaa !11
  %132 = sdiv i64 %131, 2
  %133 = load i64, ptr %7, align 8, !tbaa !11
  %134 = sdiv i64 %133, 2
  %135 = load ptr, ptr %4, align 8, !tbaa !9
  %136 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %134, ptr noundef %135)
  %137 = add nsw i64 %132, %136
  store i64 %137, ptr %15, align 8, !tbaa !11
  %138 = load i64, ptr %13, align 8, !tbaa !11
  %139 = sub nsw i64 %138, 2
  %140 = load ptr, ptr %4, align 8, !tbaa !9
  %141 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %139, ptr noundef %140)
  store i64 %141, ptr %19, align 8, !tbaa !11
  %142 = load i64, ptr %13, align 8, !tbaa !11
  %143 = load i64, ptr %14, align 8, !tbaa !11
  %144 = load i64, ptr %15, align 8, !tbaa !11
  %145 = load i64, ptr %19, align 8, !tbaa !11
  %146 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL22testldaunit_gendeg1setllllPN11alglib_impl9ae_matrixEPNS_8ae_stateE(i64 noundef %142, i64 noundef %143, i64 noundef %144, i64 noundef %145, ptr noundef %20, ptr noundef %146)
  %147 = load i64, ptr %15, align 8, !tbaa !11
  %148 = load i64, ptr %13, align 8, !tbaa !11
  %149 = load i64, ptr %14, align 8, !tbaa !11
  %150 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10fisherldanEPNS_9ae_matrixElllPlS1_PNS_8ae_stateE(ptr noundef %20, i64 noundef %147, i64 noundef %148, i64 noundef %149, ptr noundef %17, ptr noundef %21, ptr noundef %150)
  %151 = load i64, ptr %17, align 8, !tbaa !11
  %152 = icmp ne i64 %151, 2
  br i1 %152, label %153, label %154

153:                                              ; preds = %130
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %203

154:                                              ; preds = %130
  %155 = load i8, ptr %10, align 1, !tbaa !5, !range !13, !noundef !14
  %156 = trunc i8 %155 to i1
  br i1 %156, label %166, label %157

157:                                              ; preds = %154
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %159 = load ptr, ptr %158, align 8, !tbaa !15
  %160 = load i64, ptr %19, align 8, !tbaa !11
  %161 = getelementptr inbounds ptr, ptr %159, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !9
  %163 = getelementptr inbounds double, ptr %162, i64 0
  %164 = load double, ptr %163, align 8, !tbaa !16
  %165 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %164, double noundef 7.500000e-01)
  br label %166

166:                                              ; preds = %157, %154
  %167 = phi i1 [ true, %154 ], [ %165, %157 ]
  %168 = zext i1 %167 to i8
  store i8 %168, ptr %10, align 1, !tbaa !5
  %169 = load i64, ptr %15, align 8, !tbaa !11
  %170 = load i64, ptr %13, align 8, !tbaa !11
  %171 = load i64, ptr %14, align 8, !tbaa !11
  %172 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fisherldaEPNS_9ae_matrixElllPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %20, i64 noundef %169, i64 noundef %170, i64 noundef %171, ptr noundef %17, ptr noundef %22, ptr noundef %172)
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %198, %166
  %174 = load i64, ptr %16, align 8, !tbaa !11
  %175 = load i64, ptr %13, align 8, !tbaa !11
  %176 = sub nsw i64 %175, 1
  %177 = icmp sle i64 %174, %176
  br i1 %177, label %178, label %201

178:                                              ; preds = %173
  %179 = load i8, ptr %11, align 1, !tbaa !5, !range !13, !noundef !14
  %180 = trunc i8 %179 to i1
  br i1 %180, label %195, label %181

181:                                              ; preds = %178
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i64, ptr %16, align 8, !tbaa !11
  %185 = getelementptr inbounds double, ptr %183, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !16
  %187 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %21, i32 0, i32 6
  %188 = load ptr, ptr %187, align 8, !tbaa !15
  %189 = load i64, ptr %16, align 8, !tbaa !11
  %190 = getelementptr inbounds ptr, ptr %188, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %191, i64 0
  %193 = load double, ptr %192, align 8, !tbaa !16
  %194 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %186, double noundef %193)
  br label %195

195:                                              ; preds = %181, %178
  %196 = phi i1 [ true, %178 ], [ %194, %181 ]
  %197 = zext i1 %196 to i8
  store i8 %197, ptr %11, align 1, !tbaa !5
  br label %198

198:                                              ; preds = %195
  %199 = load i64, ptr %16, align 8, !tbaa !11
  %200 = add nsw i64 %199, 1
  store i64 %200, ptr %16, align 8, !tbaa !11
  br label %173, !llvm.loop !20

201:                                              ; preds = %173
  br label %202

202:                                              ; preds = %201, %127
  br label %203

203:                                              ; preds = %202, %153, %65
  %204 = load i64, ptr %18, align 8, !tbaa !11
  %205 = add nsw i64 %204, 1
  store i64 %205, ptr %18, align 8, !tbaa !11
  br label %39, !llvm.loop !21

206:                                              ; preds = %39
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %14, align 8, !tbaa !11
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %14, align 8, !tbaa !11
  br label %34, !llvm.loop !22

210:                                              ; preds = %34
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %13, align 8, !tbaa !11
  %213 = add nsw i64 %212, 1
  store i64 %213, ptr %13, align 8, !tbaa !11
  br label %29, !llvm.loop !23

214:                                              ; preds = %29
  %215 = load i8, ptr %10, align 1, !tbaa !5, !range !13, !noundef !14
  %216 = trunc i8 %215 to i1
  br i1 %216, label %220, label %217

217:                                              ; preds = %214
  %218 = load i8, ptr %11, align 1, !tbaa !5, !range !13, !noundef !14
  %219 = trunc i8 %218 to i1
  br label %220

220:                                              ; preds = %217, %214
  %221 = phi i1 [ true, %214 ], [ %219, %217 ]
  %222 = zext i1 %221 to i8
  store i8 %222, ptr %12, align 1, !tbaa !5
  %223 = load i8, ptr %3, align 1, !tbaa !5, !range !13, !noundef !14
  %224 = trunc i8 %223 to i1
  br i1 %224, label %251, label %225

225:                                              ; preds = %220
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.524)
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.525)
  %228 = load i8, ptr %10, align 1, !tbaa !5, !range !13, !noundef !14
  %229 = trunc i8 %228 to i1
  br i1 %229, label %232, label %230

230:                                              ; preds = %225
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %234

232:                                              ; preds = %225
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %234

234:                                              ; preds = %232, %230
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.526)
  %236 = load i8, ptr %11, align 1, !tbaa !5, !range !13, !noundef !14
  %237 = trunc i8 %236 to i1
  br i1 %237, label %240, label %238

238:                                              ; preds = %234
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %242

240:                                              ; preds = %234
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %242

242:                                              ; preds = %240, %238
  %243 = load i8, ptr %12, align 1, !tbaa !5, !range !13, !noundef !14
  %244 = trunc i8 %243 to i1
  br i1 %244, label %245, label %247

245:                                              ; preds = %242
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %249

247:                                              ; preds = %242
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %249

249:                                              ; preds = %247, %245
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %251

251:                                              ; preds = %249, %220
  %252 = load i8, ptr %12, align 1, !tbaa !5, !range !13, !noundef !14
  %253 = trunc i8 %252 to i1
  %254 = xor i1 %253, true
  %255 = zext i1 %254 to i8
  store i8 %255, ptr %23, align 1, !tbaa !5
  %256 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %256)
  %257 = load i8, ptr %23, align 1, !tbaa !5, !range !13, !noundef !14
  %258 = trunc i8 %257 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  ret i1 %258
}

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

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

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

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

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

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 = { 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 #4 = { 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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}


; 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.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.524 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.525 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.526 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testldabPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %6 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  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) %5, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %5, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %8 = getelementptr inbounds i8, ptr %6, i64 72
  %9 = getelementptr inbounds i8, ptr %7, i64 56
  br label %.preheader93

.preheader93:                                     ; preds = %2, %72
  %.0105 = phi i1 [ false, %2 ], [ %.3.shrunk, %72 ]
  %.084104 = phi i64 [ 1, %2 ], [ %73, %72 ]
  %.085103 = phi i8 [ 0, %2 ], [ %.5, %72 ]
  %10 = icmp ugt i64 %.084104, 2
  %11 = add nsw i64 %.084104, -2
  br label %.preheader

.preheader:                                       ; preds = %.preheader93, %.loopexit
  %.1102 = phi i1 [ %.0105, %.preheader93 ], [ %.3.shrunk, %.loopexit ]
  %.083101 = phi i64 [ 2, %.preheader93 ], [ %71, %.loopexit ]
  %.186100 = phi i8 [ %.085103, %.preheader93 ], [ %.5, %.loopexit ]
  %12 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %.084104, ptr noundef %1)
  %13 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 500, ptr noundef %1)
  %14 = add nsw i64 %13, 500
  call void @_ZL24testldaunit_gensimplesetllllPN11alglib_impl9ae_matrixEPNS_8ae_stateE(i64 noundef %.084104, i64 noundef %.083101, i64 noundef %14, i64 noundef %12, ptr noundef nonnull %5, ptr noundef %1)
  call void @_ZN11alglib_impl10fisherldanEPNS_9ae_matrixElllPlS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %14, i64 noundef %.084104, i64 noundef %.083101, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef %1)
  %15 = load i64, ptr %4, align 8, !tbaa !5
  %.not = icmp eq i64 %15, 1
  br i1 %.not, label %16, label %.loopexit

16:                                               ; preds = %.preheader
  br i1 %.1102, label %.critedge, label %17

17:                                               ; preds = %16
  %18 = call noundef zeroext i1 @_ZL18testldaunit_testwnPN11alglib_impl9ae_matrixES1_llllPNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %14, i64 noundef %.084104, i64 noundef %.083101, i64 noundef 0, ptr noundef %1)
  br i1 %18, label %19, label %.critedge

19:                                               ; preds = %17
  %20 = load ptr, ptr %8, align 8, !tbaa !9
  %21 = getelementptr inbounds ptr, ptr %20, i64 %12
  %22 = load ptr, ptr %21, align 8, !tbaa !10
  %23 = load double, ptr %22, align 8, !tbaa !12
  %24 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %23, ptr noundef %1)
  %25 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %24, double noundef 7.500000e-01)
  br label %.critedge

.critedge:                                        ; preds = %16, %19, %17
  %26 = phi i1 [ true, %17 ], [ %25, %19 ], [ true, %16 ]
  call void @_ZN11alglib_impl9fisherldaEPNS_9ae_matrixElllPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %14, i64 noundef %.084104, i64 noundef %.083101, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef %1)
  br label %27

27:                                               ; preds = %.critedge, %38
  %.08195 = phi i64 [ 0, %.critedge ], [ %41, %38 ]
  %.38894 = phi i8 [ %.186100, %.critedge ], [ %40, %38 ]
  %28 = trunc nuw i8 %.38894 to i1
  br i1 %28, label %38, label %29

29:                                               ; preds = %27
  %30 = load ptr, ptr %9, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %30, i64 %.08195
  %32 = load double, ptr %31, align 8, !tbaa !12
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.08195
  %35 = load ptr, ptr %34, align 8, !tbaa !10
  %36 = load double, ptr %35, align 8, !tbaa !12
  %37 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %32, double noundef %36)
  br label %38

38:                                               ; preds = %29, %27
  %39 = phi i1 [ true, %27 ], [ %37, %29 ]
  %40 = zext i1 %39 to i8
  %41 = add nuw nsw i64 %.08195, 1
  %exitcond.not = icmp eq i64 %41, %.084104
  br i1 %exitcond.not, label %42, label %27, !llvm.loop !14

42:                                               ; preds = %38
  br i1 %10, label %43, label %.loopexit

43:                                               ; preds = %42
  %44 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 500, ptr noundef %1)
  %45 = add nsw i64 %44, 500
  %46 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef %11, ptr noundef %1)
  call void @_ZL22testldaunit_gendeg1setllllPN11alglib_impl9ae_matrixEPNS_8ae_stateE(i64 noundef %.084104, i64 noundef %.083101, i64 noundef %45, i64 noundef %46, ptr noundef nonnull %5, ptr noundef %1)
  call void @_ZN11alglib_impl10fisherldanEPNS_9ae_matrixElllPlS1_PNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %45, i64 noundef %.084104, i64 noundef %.083101, ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef %1)
  %47 = load i64, ptr %4, align 8, !tbaa !5
  %.not91 = icmp eq i64 %47, 2
  br i1 %.not91, label %48, label %.loopexit

48:                                               ; preds = %43
  br i1 %26, label %55, label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 %46
  %52 = load ptr, ptr %51, align 8, !tbaa !10
  %53 = load double, ptr %52, align 8, !tbaa !12
  %54 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %53, double noundef 7.500000e-01)
  br label %55

55:                                               ; preds = %49, %48
  %56 = phi i1 [ true, %48 ], [ %54, %49 ]
  call void @_ZN11alglib_impl9fisherldaEPNS_9ae_matrixElllPlPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %45, i64 noundef %.084104, i64 noundef %.083101, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef %1)
  br label %57

57:                                               ; preds = %55, %67
  %.18297 = phi i64 [ 0, %55 ], [ %69, %67 ]
  %.496 = phi i1 [ %39, %55 ], [ %68, %67 ]
  br i1 %.496, label %67, label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %9, align 8, !tbaa !9
  %60 = getelementptr inbounds double, ptr %59, i64 %.18297
  %61 = load double, ptr %60, align 8, !tbaa !12
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.18297
  %64 = load ptr, ptr %63, align 8, !tbaa !10
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %61, double noundef %65)
  br label %67

67:                                               ; preds = %58, %57
  %68 = phi i1 [ true, %57 ], [ %66, %58 ]
  %69 = add nuw nsw i64 %.18297, 1
  %exitcond108.not = icmp eq i64 %69, %.084104
  br i1 %exitcond108.not, label %.loopexit.loopexit, label %57, !llvm.loop !16

.loopexit.loopexit:                               ; preds = %67
  %70 = zext i1 %68 to i8
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %43, %.preheader, %42
  %.5 = phi i8 [ %40, %42 ], [ %.186100, %.preheader ], [ %40, %43 ], [ %70, %.loopexit.loopexit ]
  %.3.shrunk = phi i1 [ %26, %42 ], [ true, %.preheader ], [ true, %43 ], [ %56, %.loopexit.loopexit ]
  %71 = add nuw nsw i64 %.083101, 1
  %exitcond109.not = icmp eq i64 %71, 6
  br i1 %exitcond109.not, label %72, label %.preheader, !llvm.loop !17

72:                                               ; preds = %.loopexit
  %73 = add nuw nsw i64 %.084104, 1
  %exitcond110.not = icmp eq i64 %73, 11
  br i1 %exitcond110.not, label %74, label %.preheader93, !llvm.loop !18

74:                                               ; preds = %72
  %75 = trunc nuw i8 %.5 to i1
  %76 = select i1 %.3.shrunk, i1 true, i1 %75
  br i1 %0, label %85, label %77

77:                                               ; preds = %74
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.524)
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.525)
  %.str.7..str.6 = select i1 %.3.shrunk, ptr @.str.7, ptr @.str.6
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.526)
  %.str.7.sink113 = select i1 %75, ptr @.str.7, ptr @.str.6
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink113)
  %.str.21.sink = select i1 %76, ptr @.str.20, ptr @.str.21
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %85

85:                                               ; preds = %77, %74
  %86 = xor i1 %76, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %86
}

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

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

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

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

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

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 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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