; LLVM IR from Dimandragon/non-parametric-dsp :: alglib-cpp/tests/test_c.ll (Z17testsymmetricpermPN11alglib_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::hqrndstate" = type { i64, i64, i64 }
%"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::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [23 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

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

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

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

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

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

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr 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_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testsymmetricpermPN11alglib_impl8ae_stateE(ptr noundef %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.alglib_impl::ae_frame", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %10 = alloca i8, align 1
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %14 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %15 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %16 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %17 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %18 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 24, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %23, ptr noundef %4)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %9, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %16, ptr noundef %28, i1 noundef zeroext true)
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %17, ptr noundef %29, i1 noundef zeroext true)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %18, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %19, i64 noundef 0, i64 noundef 2, ptr noundef %31, i1 noundef zeroext true)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 2, ptr noundef %32, i1 noundef zeroext true)
  store double 0x3CF6849B86A12B9C, ptr %11, align 8, !tbaa !9
  store i8 0, ptr %21, align 1, !tbaa !11
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %9, ptr noundef %33)
  store i64 1, ptr %5, align 8, !tbaa !13
  br label %34

34:                                               ; preds = %592, %1
  %35 = load i64, ptr %5, align 8, !tbaa !13
  %36 = icmp sle i64 %35, 20
  br i1 %36, label %37, label %595

37:                                               ; preds = %34
  store double 1.000000e+00, ptr %12, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %588, %37
  %39 = load double, ptr %12, align 8, !tbaa !9
  %40 = load i64, ptr %5, align 8, !tbaa !13
  %41 = load i64, ptr %5, align 8, !tbaa !13
  %42 = mul nsw i64 %40, %41
  %43 = sitofp i64 %42 to double
  %44 = fdiv double 1.000000e-01, %43
  %45 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %39, double noundef %44)
  br i1 %45, label %46, label %591

46:                                               ; preds = %38
  %47 = load i64, ptr %5, align 8, !tbaa !13
  %48 = load i64, ptr %5, align 8, !tbaa !13
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %47, i64 noundef %48, i64 noundef 0, ptr noundef %16, ptr noundef %49)
  %50 = load i64, ptr %5, align 8, !tbaa !13
  %51 = load i64, ptr %5, align 8, !tbaa !13
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %50, i64 noundef %51, ptr noundef %52)
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %53

53:                                               ; preds = %103, %46
  %54 = load i64, ptr %7, align 8, !tbaa !13
  %55 = load i64, ptr %5, align 8, !tbaa !13
  %56 = sub nsw i64 %55, 1
  %57 = icmp sle i64 %54, %56
  br i1 %57, label %58, label %106

58:                                               ; preds = %53
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %59

59:                                               ; preds = %99, %58
  %60 = load i64, ptr %8, align 8, !tbaa !13
  %61 = load i64, ptr %5, align 8, !tbaa !13
  %62 = sub nsw i64 %61, 1
  %63 = icmp sle i64 %60, %62
  br i1 %63, label %64, label %102

64:                                               ; preds = %59
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %9, ptr noundef %65)
  %67 = load double, ptr %12, align 8, !tbaa !9
  %68 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %66, double noundef %67)
  br i1 %68, label %69, label %90

69:                                               ; preds = %64
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %9, ptr noundef %70)
  %72 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load i64, ptr %7, align 8, !tbaa !13
  %75 = getelementptr inbounds ptr, ptr %73, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = load i64, ptr %8, align 8, !tbaa !13
  %78 = getelementptr inbounds double, ptr %76, i64 %77
  store double %71, ptr %78, align 8, !tbaa !9
  %79 = load i64, ptr %7, align 8, !tbaa !13
  %80 = load i64, ptr %8, align 8, !tbaa !13
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = load i64, ptr %7, align 8, !tbaa !13
  %84 = getelementptr inbounds ptr, ptr %82, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = load i64, ptr %8, align 8, !tbaa !13
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %16, i64 noundef %79, i64 noundef %80, double noundef %88, ptr noundef %89)
  br label %98

90:                                               ; preds = %64
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i64, ptr %7, align 8, !tbaa !13
  %94 = getelementptr inbounds ptr, ptr %92, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load i64, ptr %8, align 8, !tbaa !13
  %97 = getelementptr inbounds double, ptr %95, i64 %96
  store double 0.000000e+00, ptr %97, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %90, %69
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %8, align 8, !tbaa !13
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %8, align 8, !tbaa !13
  br label %59, !llvm.loop !16

102:                                              ; preds = %59
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %7, align 8, !tbaa !13
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %7, align 8, !tbaa !13
  br label %53, !llvm.loop !18

106:                                              ; preds = %53
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %16, ptr noundef %107)
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %9, ptr noundef %108)
  %110 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %109, double noundef 0.000000e+00)
  %111 = zext i1 %110 to i8
  store i8 %111, ptr %10, align 1, !tbaa !11
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %112

112:                                              ; preds = %162, %106
  %113 = load i64, ptr %7, align 8, !tbaa !13
  %114 = load i64, ptr %5, align 8, !tbaa !13
  %115 = sub nsw i64 %114, 1
  %116 = icmp sle i64 %113, %115
  br i1 %116, label %117, label %165

117:                                              ; preds = %112
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %118

118:                                              ; preds = %158, %117
  %119 = load i64, ptr %8, align 8, !tbaa !13
  %120 = load i64, ptr %7, align 8, !tbaa !13
  %121 = icmp sle i64 %119, %120
  br i1 %121, label %122, label %161

122:                                              ; preds = %118
  %123 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %141

125:                                              ; preds = %122
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !15
  %128 = load i64, ptr %8, align 8, !tbaa !13
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i64, ptr %7, align 8, !tbaa !13
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !9
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = load i64, ptr %7, align 8, !tbaa !13
  %137 = getelementptr inbounds ptr, ptr %135, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = load i64, ptr %8, align 8, !tbaa !13
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  store double %133, ptr %140, align 8, !tbaa !9
  br label %157

141:                                              ; preds = %122
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  %144 = load i64, ptr %7, align 8, !tbaa !13
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i64, ptr %8, align 8, !tbaa !13
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %152 = load i64, ptr %8, align 8, !tbaa !13
  %153 = getelementptr inbounds ptr, ptr %151, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load i64, ptr %7, align 8, !tbaa !13
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  store double %149, ptr %156, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %141, %125
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %8, align 8, !tbaa !13
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %8, align 8, !tbaa !13
  br label %118, !llvm.loop !21

161:                                              ; preds = %118
  br label %162

162:                                              ; preds = %161
  %163 = load i64, ptr %7, align 8, !tbaa !13
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %7, align 8, !tbaa !13
  br label %112, !llvm.loop !22

165:                                              ; preds = %112
  %166 = load i64, ptr %5, align 8, !tbaa !13
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %19, i64 noundef %166, ptr noundef %167)
  %168 = load i64, ptr %5, align 8, !tbaa !13
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %168, ptr noundef %169)
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %181, %165
  %171 = load i64, ptr %7, align 8, !tbaa !13
  %172 = load i64, ptr %5, align 8, !tbaa !13
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %171, %173
  br i1 %174, label %175, label %184

175:                                              ; preds = %170
  %176 = load i64, ptr %7, align 8, !tbaa !13
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load i64, ptr %7, align 8, !tbaa !13
  %180 = getelementptr inbounds i64, ptr %178, i64 %179
  store i64 %176, ptr %180, align 8, !tbaa !13
  br label %181

181:                                              ; preds = %175
  %182 = load i64, ptr %7, align 8, !tbaa !13
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %7, align 8, !tbaa !13
  br label %170, !llvm.loop !23

184:                                              ; preds = %170
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %185

185:                                              ; preds = %229, %184
  %186 = load i64, ptr %7, align 8, !tbaa !13
  %187 = load i64, ptr %5, align 8, !tbaa !13
  %188 = sub nsw i64 %187, 1
  %189 = icmp sle i64 %186, %188
  br i1 %189, label %190, label %232

190:                                              ; preds = %185
  %191 = load i64, ptr %7, align 8, !tbaa !13
  %192 = load i64, ptr %5, align 8, !tbaa !13
  %193 = load i64, ptr %7, align 8, !tbaa !13
  %194 = sub nsw i64 %192, %193
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %9, i64 noundef %194, ptr noundef %195)
  %197 = add nsw i64 %191, %196
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !15
  %200 = load i64, ptr %7, align 8, !tbaa !13
  %201 = getelementptr inbounds i64, ptr %199, i64 %200
  store i64 %197, ptr %201, align 8, !tbaa !13
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !15
  %204 = load i64, ptr %7, align 8, !tbaa !13
  %205 = getelementptr inbounds i64, ptr %203, i64 %204
  %206 = load i64, ptr %205, align 8, !tbaa !13
  store i64 %206, ptr %8, align 8, !tbaa !13
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %209 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load i64, ptr %7, align 8, !tbaa !13
  %212 = getelementptr inbounds i64, ptr %210, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !13
  %214 = getelementptr inbounds i64, ptr %208, i64 %213
  %215 = load i64, ptr %214, align 8, !tbaa !13
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !15
  %218 = load i64, ptr %7, align 8, !tbaa !13
  %219 = getelementptr inbounds i64, ptr %217, i64 %218
  store i64 %215, ptr %219, align 8, !tbaa !13
  %220 = load i64, ptr %8, align 8, !tbaa !13
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = load i64, ptr %7, align 8, !tbaa !13
  %226 = getelementptr inbounds i64, ptr %224, i64 %225
  %227 = load i64, ptr %226, align 8, !tbaa !13
  %228 = getelementptr inbounds i64, ptr %222, i64 %227
  store i64 %220, ptr %228, align 8, !tbaa !13
  br label %229

229:                                              ; preds = %190
  %230 = load i64, ptr %7, align 8, !tbaa !13
  %231 = add nsw i64 %230, 1
  store i64 %231, ptr %7, align 8, !tbaa !13
  br label %185, !llvm.loop !24

232:                                              ; preds = %185
  %233 = load i64, ptr %5, align 8, !tbaa !13
  %234 = load i64, ptr %5, align 8, !tbaa !13
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %14, i64 noundef %233, i64 noundef %234, ptr noundef %235)
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %236

236:                                              ; preds = %275, %232
  %237 = load i64, ptr %7, align 8, !tbaa !13
  %238 = load i64, ptr %5, align 8, !tbaa !13
  %239 = sub nsw i64 %238, 1
  %240 = icmp sle i64 %237, %239
  br i1 %240, label %241, label %278

241:                                              ; preds = %236
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %242

242:                                              ; preds = %271, %241
  %243 = load i64, ptr %8, align 8, !tbaa !13
  %244 = load i64, ptr %5, align 8, !tbaa !13
  %245 = sub nsw i64 %244, 1
  %246 = icmp sle i64 %243, %245
  br i1 %246, label %247, label %274

247:                                              ; preds = %242
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %249 = load ptr, ptr %248, align 8, !tbaa !15
  %250 = load i64, ptr %7, align 8, !tbaa !13
  %251 = getelementptr inbounds ptr, ptr %249, i64 %250
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  %253 = load i64, ptr %8, align 8, !tbaa !13
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !9
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %257 = load ptr, ptr %256, align 8, !tbaa !15
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !15
  %260 = load i64, ptr %7, align 8, !tbaa !13
  %261 = getelementptr inbounds i64, ptr %259, i64 %260
  %262 = load i64, ptr %261, align 8, !tbaa !13
  %263 = getelementptr inbounds ptr, ptr %257, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !15
  %267 = load i64, ptr %8, align 8, !tbaa !13
  %268 = getelementptr inbounds i64, ptr %266, i64 %267
  %269 = load i64, ptr %268, align 8, !tbaa !13
  %270 = getelementptr inbounds double, ptr %264, i64 %269
  store double %255, ptr %270, align 8, !tbaa !9
  br label %271

271:                                              ; preds = %247
  %272 = load i64, ptr %8, align 8, !tbaa !13
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %8, align 8, !tbaa !13
  br label %242, !llvm.loop !25

274:                                              ; preds = %242
  br label %275

275:                                              ; preds = %274
  %276 = load i64, ptr %7, align 8, !tbaa !13
  %277 = add nsw i64 %276, 1
  store i64 %277, ptr %7, align 8, !tbaa !13
  br label %236, !llvm.loop !26

278:                                              ; preds = %236
  %279 = load i64, ptr %5, align 8, !tbaa !13
  %280 = load i64, ptr %5, align 8, !tbaa !13
  %281 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %279, i64 noundef %280, ptr noundef %281)
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %282

282:                                              ; preds = %321, %278
  %283 = load i64, ptr %7, align 8, !tbaa !13
  %284 = load i64, ptr %5, align 8, !tbaa !13
  %285 = sub nsw i64 %284, 1
  %286 = icmp sle i64 %283, %285
  br i1 %286, label %287, label %324

287:                                              ; preds = %282
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %288

288:                                              ; preds = %317, %287
  %289 = load i64, ptr %8, align 8, !tbaa !13
  %290 = load i64, ptr %5, align 8, !tbaa !13
  %291 = sub nsw i64 %290, 1
  %292 = icmp sle i64 %289, %291
  br i1 %292, label %293, label %320

293:                                              ; preds = %288
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %13, i32 0, i32 6
  %295 = load ptr, ptr %294, align 8, !tbaa !15
  %296 = load i64, ptr %8, align 8, !tbaa !13
  %297 = getelementptr inbounds ptr, ptr %295, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !5
  %299 = load i64, ptr %7, align 8, !tbaa !13
  %300 = getelementptr inbounds double, ptr %298, i64 %299
  %301 = load double, ptr %300, align 8, !tbaa !9
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %303 = load ptr, ptr %302, align 8, !tbaa !15
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !15
  %306 = load i64, ptr %7, align 8, !tbaa !13
  %307 = getelementptr inbounds i64, ptr %305, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !13
  %309 = getelementptr inbounds ptr, ptr %303, i64 %308
  %310 = load ptr, ptr %309, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !15
  %313 = load i64, ptr %8, align 8, !tbaa !13
  %314 = getelementptr inbounds i64, ptr %312, i64 %313
  %315 = load i64, ptr %314, align 8, !tbaa !13
  %316 = getelementptr inbounds double, ptr %310, i64 %315
  store double %301, ptr %316, align 8, !tbaa !9
  br label %317

317:                                              ; preds = %293
  %318 = load i64, ptr %8, align 8, !tbaa !13
  %319 = add nsw i64 %318, 1
  store i64 %319, ptr %8, align 8, !tbaa !13
  br label %288, !llvm.loop !27

320:                                              ; preds = %288
  br label %321

321:                                              ; preds = %320
  %322 = load i64, ptr %7, align 8, !tbaa !13
  %323 = add nsw i64 %322, 1
  store i64 %323, ptr %7, align 8, !tbaa !13
  br label %282, !llvm.loop !28

324:                                              ; preds = %282
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  %326 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %9, i64 noundef 2, ptr noundef %325)
  store i64 %326, ptr %6, align 8, !tbaa !13
  %327 = load i64, ptr %6, align 8, !tbaa !13
  %328 = icmp eq i64 %327, 0
  br i1 %328, label %329, label %333

329:                                              ; preds = %324
  %330 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %331 = trunc i8 %330 to i1
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl20sparsesymmpermtblbufEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %16, i1 noundef zeroext %331, ptr noundef %19, ptr noundef %17, ptr noundef %332)
  br label %333

333:                                              ; preds = %329, %324
  %334 = load i64, ptr %6, align 8, !tbaa !13
  %335 = icmp eq i64 %334, 1
  br i1 %335, label %336, label %340

336:                                              ; preds = %333
  %337 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %338 = trunc i8 %337 to i1
  %339 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl17sparsesymmpermtblEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %16, i1 noundef zeroext %338, ptr noundef %19, ptr noundef %17, ptr noundef %339)
  br label %340

340:                                              ; preds = %336, %333
  %341 = load ptr, ptr %3, align 8, !tbaa !5
  %342 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %17, ptr noundef %341)
  %343 = xor i1 %342, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %343, ptr noundef @.str.19, i32 noundef 16426, ptr noundef @.str.268)
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %17, ptr noundef %344)
  %346 = load i64, ptr %5, align 8, !tbaa !13
  %347 = icmp ne i64 %345, %346
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %347, ptr noundef @.str.19, i32 noundef 16427, ptr noundef @.str.269)
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %17, ptr noundef %348)
  %350 = load i64, ptr %5, align 8, !tbaa !13
  %351 = icmp ne i64 %349, %350
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %351, ptr noundef @.str.19, i32 noundef 16428, ptr noundef @.str.270)
  %352 = load i8, ptr %21, align 1, !tbaa !11, !range !19, !noundef !20
  %353 = trunc i8 %352 to i1
  br i1 %353, label %354, label %358

354:                                              ; preds = %340
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %355)
  %356 = load i8, ptr %21, align 1, !tbaa !11, !range !19, !noundef !20
  %357 = trunc i8 %356 to i1
  store i1 %357, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %599

358:                                              ; preds = %340
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %359

359:                                              ; preds = %453, %358
  %360 = load i64, ptr %7, align 8, !tbaa !13
  %361 = load i64, ptr %5, align 8, !tbaa !13
  %362 = sub nsw i64 %361, 1
  %363 = icmp sle i64 %360, %362
  br i1 %363, label %364, label %456

364:                                              ; preds = %359
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %365

365:                                              ; preds = %449, %364
  %366 = load i64, ptr %8, align 8, !tbaa !13
  %367 = load i64, ptr %5, align 8, !tbaa !13
  %368 = sub nsw i64 %367, 1
  %369 = icmp sle i64 %366, %368
  br i1 %369, label %370, label %452

370:                                              ; preds = %365
  %371 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %372 = trunc i8 %371 to i1
  br i1 %372, label %373, label %395

373:                                              ; preds = %370
  %374 = load i64, ptr %8, align 8, !tbaa !13
  %375 = load i64, ptr %7, align 8, !tbaa !13
  %376 = icmp sge i64 %374, %375
  br i1 %376, label %377, label %395

377:                                              ; preds = %373
  %378 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %379 = load ptr, ptr %378, align 8, !tbaa !15
  %380 = load i64, ptr %7, align 8, !tbaa !13
  %381 = getelementptr inbounds ptr, ptr %379, i64 %380
  %382 = load ptr, ptr %381, align 8, !tbaa !5
  %383 = load i64, ptr %8, align 8, !tbaa !13
  %384 = getelementptr inbounds double, ptr %382, i64 %383
  %385 = load double, ptr %384, align 8, !tbaa !9
  %386 = load i64, ptr %7, align 8, !tbaa !13
  %387 = load i64, ptr %8, align 8, !tbaa !13
  %388 = load ptr, ptr %3, align 8, !tbaa !5
  %389 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %386, i64 noundef %387, ptr noundef %388)
  %390 = fsub double %385, %389
  %391 = load ptr, ptr %3, align 8, !tbaa !5
  %392 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %390, ptr noundef %391)
  %393 = load double, ptr %11, align 8, !tbaa !9
  %394 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %392, double noundef %393)
  br label %395

395:                                              ; preds = %377, %373, %370
  %396 = phi i1 [ false, %373 ], [ false, %370 ], [ %394, %377 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %396, ptr noundef @.str.19, i32 noundef 16438, ptr noundef @.str.271)
  %397 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %398 = trunc i8 %397 to i1
  br i1 %398, label %399, label %408

399:                                              ; preds = %395
  %400 = load i64, ptr %8, align 8, !tbaa !13
  %401 = load i64, ptr %7, align 8, !tbaa !13
  %402 = icmp slt i64 %400, %401
  br i1 %402, label %403, label %408

403:                                              ; preds = %399
  %404 = load i64, ptr %7, align 8, !tbaa !13
  %405 = load i64, ptr %8, align 8, !tbaa !13
  %406 = load ptr, ptr %3, align 8, !tbaa !5
  %407 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %404, i64 noundef %405, ptr noundef %406)
  br label %408

408:                                              ; preds = %403, %399, %395
  %409 = phi i1 [ false, %399 ], [ false, %395 ], [ %407, %403 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %409, ptr noundef @.str.19, i32 noundef 16439, ptr noundef @.str.272)
  %410 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %411 = trunc i8 %410 to i1
  br i1 %411, label %434, label %412

412:                                              ; preds = %408
  %413 = load i64, ptr %8, align 8, !tbaa !13
  %414 = load i64, ptr %7, align 8, !tbaa !13
  %415 = icmp sle i64 %413, %414
  br i1 %415, label %416, label %434

416:                                              ; preds = %412
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %14, i32 0, i32 6
  %418 = load ptr, ptr %417, align 8, !tbaa !15
  %419 = load i64, ptr %7, align 8, !tbaa !13
  %420 = getelementptr inbounds ptr, ptr %418, i64 %419
  %421 = load ptr, ptr %420, align 8, !tbaa !5
  %422 = load i64, ptr %8, align 8, !tbaa !13
  %423 = getelementptr inbounds double, ptr %421, i64 %422
  %424 = load double, ptr %423, align 8, !tbaa !9
  %425 = load i64, ptr %7, align 8, !tbaa !13
  %426 = load i64, ptr %8, align 8, !tbaa !13
  %427 = load ptr, ptr %3, align 8, !tbaa !5
  %428 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %425, i64 noundef %426, ptr noundef %427)
  %429 = fsub double %424, %428
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  %431 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %429, ptr noundef %430)
  %432 = load double, ptr %11, align 8, !tbaa !9
  %433 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %431, double noundef %432)
  br label %434

434:                                              ; preds = %416, %412, %408
  %435 = phi i1 [ false, %412 ], [ false, %408 ], [ %433, %416 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %435, ptr noundef @.str.19, i32 noundef 16440, ptr noundef @.str.273)
  %436 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %437 = trunc i8 %436 to i1
  br i1 %437, label %447, label %438

438:                                              ; preds = %434
  %439 = load i64, ptr %8, align 8, !tbaa !13
  %440 = load i64, ptr %7, align 8, !tbaa !13
  %441 = icmp sgt i64 %439, %440
  br i1 %441, label %442, label %447

442:                                              ; preds = %438
  %443 = load i64, ptr %7, align 8, !tbaa !13
  %444 = load i64, ptr %8, align 8, !tbaa !13
  %445 = load ptr, ptr %3, align 8, !tbaa !5
  %446 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %443, i64 noundef %444, ptr noundef %445)
  br label %447

447:                                              ; preds = %442, %438, %434
  %448 = phi i1 [ false, %438 ], [ false, %434 ], [ %446, %442 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %448, ptr noundef @.str.19, i32 noundef 16441, ptr noundef @.str.274)
  br label %449

449:                                              ; preds = %447
  %450 = load i64, ptr %8, align 8, !tbaa !13
  %451 = add nsw i64 %450, 1
  store i64 %451, ptr %8, align 8, !tbaa !13
  br label %365, !llvm.loop !29

452:                                              ; preds = %365
  br label %453

453:                                              ; preds = %452
  %454 = load i64, ptr %7, align 8, !tbaa !13
  %455 = add nsw i64 %454, 1
  store i64 %455, ptr %7, align 8, !tbaa !13
  br label %359, !llvm.loop !30

456:                                              ; preds = %359
  %457 = load ptr, ptr %3, align 8, !tbaa !5
  %458 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %9, i64 noundef 2, ptr noundef %457)
  store i64 %458, ptr %6, align 8, !tbaa !13
  %459 = load i64, ptr %6, align 8, !tbaa !13
  %460 = icmp eq i64 %459, 0
  br i1 %460, label %461, label %465

461:                                              ; preds = %456
  %462 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %463 = trunc i8 %462 to i1
  %464 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl29sparsesymmpermtbltransposebufEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %16, i1 noundef zeroext %463, ptr noundef %19, ptr noundef %18, ptr noundef %464)
  br label %465

465:                                              ; preds = %461, %456
  %466 = load i64, ptr %6, align 8, !tbaa !13
  %467 = icmp eq i64 %466, 1
  br i1 %467, label %468, label %472

468:                                              ; preds = %465
  %469 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %470 = trunc i8 %469 to i1
  %471 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl26sparsesymmpermtbltransposeEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef %16, i1 noundef zeroext %470, ptr noundef %19, ptr noundef %18, ptr noundef %471)
  br label %472

472:                                              ; preds = %468, %465
  %473 = load ptr, ptr %3, align 8, !tbaa !5
  %474 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %473)
  %475 = xor i1 %474, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %475, ptr noundef @.str.19, i32 noundef 16457, ptr noundef @.str.275)
  %476 = load ptr, ptr %3, align 8, !tbaa !5
  %477 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %476)
  %478 = load i64, ptr %5, align 8, !tbaa !13
  %479 = icmp ne i64 %477, %478
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %479, ptr noundef @.str.19, i32 noundef 16458, ptr noundef @.str.276)
  %480 = load ptr, ptr %3, align 8, !tbaa !5
  %481 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %18, ptr noundef %480)
  %482 = load i64, ptr %5, align 8, !tbaa !13
  %483 = icmp ne i64 %481, %482
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %483, ptr noundef @.str.19, i32 noundef 16459, ptr noundef @.str.277)
  %484 = load i8, ptr %21, align 1, !tbaa !11, !range !19, !noundef !20
  %485 = trunc i8 %484 to i1
  br i1 %485, label %486, label %490

486:                                              ; preds = %472
  %487 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %487)
  %488 = load i8, ptr %21, align 1, !tbaa !11, !range !19, !noundef !20
  %489 = trunc i8 %488 to i1
  store i1 %489, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %599

490:                                              ; preds = %472
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %491

491:                                              ; preds = %585, %490
  %492 = load i64, ptr %7, align 8, !tbaa !13
  %493 = load i64, ptr %5, align 8, !tbaa !13
  %494 = sub nsw i64 %493, 1
  %495 = icmp sle i64 %492, %494
  br i1 %495, label %496, label %588

496:                                              ; preds = %491
  store i64 0, ptr %8, align 8, !tbaa !13
  br label %497

497:                                              ; preds = %581, %496
  %498 = load i64, ptr %8, align 8, !tbaa !13
  %499 = load i64, ptr %5, align 8, !tbaa !13
  %500 = sub nsw i64 %499, 1
  %501 = icmp sle i64 %498, %500
  br i1 %501, label %502, label %584

502:                                              ; preds = %497
  %503 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %504 = trunc i8 %503 to i1
  br i1 %504, label %505, label %527

505:                                              ; preds = %502
  %506 = load i64, ptr %8, align 8, !tbaa !13
  %507 = load i64, ptr %7, align 8, !tbaa !13
  %508 = icmp sle i64 %506, %507
  br i1 %508, label %509, label %527

509:                                              ; preds = %505
  %510 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %511 = load ptr, ptr %510, align 8, !tbaa !15
  %512 = load i64, ptr %7, align 8, !tbaa !13
  %513 = getelementptr inbounds ptr, ptr %511, i64 %512
  %514 = load ptr, ptr %513, align 8, !tbaa !5
  %515 = load i64, ptr %8, align 8, !tbaa !13
  %516 = getelementptr inbounds double, ptr %514, i64 %515
  %517 = load double, ptr %516, align 8, !tbaa !9
  %518 = load i64, ptr %7, align 8, !tbaa !13
  %519 = load i64, ptr %8, align 8, !tbaa !13
  %520 = load ptr, ptr %3, align 8, !tbaa !5
  %521 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %518, i64 noundef %519, ptr noundef %520)
  %522 = fsub double %517, %521
  %523 = load ptr, ptr %3, align 8, !tbaa !5
  %524 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %522, ptr noundef %523)
  %525 = load double, ptr %11, align 8, !tbaa !9
  %526 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %524, double noundef %525)
  br label %527

527:                                              ; preds = %509, %505, %502
  %528 = phi i1 [ false, %505 ], [ false, %502 ], [ %526, %509 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %528, ptr noundef @.str.19, i32 noundef 16469, ptr noundef @.str.278)
  %529 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %530 = trunc i8 %529 to i1
  br i1 %530, label %531, label %540

531:                                              ; preds = %527
  %532 = load i64, ptr %8, align 8, !tbaa !13
  %533 = load i64, ptr %7, align 8, !tbaa !13
  %534 = icmp sgt i64 %532, %533
  br i1 %534, label %535, label %540

535:                                              ; preds = %531
  %536 = load i64, ptr %7, align 8, !tbaa !13
  %537 = load i64, ptr %8, align 8, !tbaa !13
  %538 = load ptr, ptr %3, align 8, !tbaa !5
  %539 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %536, i64 noundef %537, ptr noundef %538)
  br label %540

540:                                              ; preds = %535, %531, %527
  %541 = phi i1 [ false, %531 ], [ false, %527 ], [ %539, %535 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %541, ptr noundef @.str.19, i32 noundef 16470, ptr noundef @.str.279)
  %542 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %543 = trunc i8 %542 to i1
  br i1 %543, label %566, label %544

544:                                              ; preds = %540
  %545 = load i64, ptr %8, align 8, !tbaa !13
  %546 = load i64, ptr %7, align 8, !tbaa !13
  %547 = icmp sge i64 %545, %546
  br i1 %547, label %548, label %566

548:                                              ; preds = %544
  %549 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %15, i32 0, i32 6
  %550 = load ptr, ptr %549, align 8, !tbaa !15
  %551 = load i64, ptr %7, align 8, !tbaa !13
  %552 = getelementptr inbounds ptr, ptr %550, i64 %551
  %553 = load ptr, ptr %552, align 8, !tbaa !5
  %554 = load i64, ptr %8, align 8, !tbaa !13
  %555 = getelementptr inbounds double, ptr %553, i64 %554
  %556 = load double, ptr %555, align 8, !tbaa !9
  %557 = load i64, ptr %7, align 8, !tbaa !13
  %558 = load i64, ptr %8, align 8, !tbaa !13
  %559 = load ptr, ptr %3, align 8, !tbaa !5
  %560 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %557, i64 noundef %558, ptr noundef %559)
  %561 = fsub double %556, %560
  %562 = load ptr, ptr %3, align 8, !tbaa !5
  %563 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %561, ptr noundef %562)
  %564 = load double, ptr %11, align 8, !tbaa !9
  %565 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %563, double noundef %564)
  br label %566

566:                                              ; preds = %548, %544, %540
  %567 = phi i1 [ false, %544 ], [ false, %540 ], [ %565, %548 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %567, ptr noundef @.str.19, i32 noundef 16471, ptr noundef @.str.280)
  %568 = load i8, ptr %10, align 1, !tbaa !11, !range !19, !noundef !20
  %569 = trunc i8 %568 to i1
  br i1 %569, label %579, label %570

570:                                              ; preds = %566
  %571 = load i64, ptr %8, align 8, !tbaa !13
  %572 = load i64, ptr %7, align 8, !tbaa !13
  %573 = icmp slt i64 %571, %572
  br i1 %573, label %574, label %579

574:                                              ; preds = %570
  %575 = load i64, ptr %7, align 8, !tbaa !13
  %576 = load i64, ptr %8, align 8, !tbaa !13
  %577 = load ptr, ptr %3, align 8, !tbaa !5
  %578 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %18, i64 noundef %575, i64 noundef %576, ptr noundef %577)
  br label %579

579:                                              ; preds = %574, %570, %566
  %580 = phi i1 [ false, %570 ], [ false, %566 ], [ %578, %574 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %21, i1 noundef zeroext %580, ptr noundef @.str.19, i32 noundef 16472, ptr noundef @.str.281)
  br label %581

581:                                              ; preds = %579
  %582 = load i64, ptr %8, align 8, !tbaa !13
  %583 = add nsw i64 %582, 1
  store i64 %583, ptr %8, align 8, !tbaa !13
  br label %497, !llvm.loop !31

584:                                              ; preds = %497
  br label %585

585:                                              ; preds = %584
  %586 = load i64, ptr %7, align 8, !tbaa !13
  %587 = add nsw i64 %586, 1
  store i64 %587, ptr %7, align 8, !tbaa !13
  br label %491, !llvm.loop !32

588:                                              ; preds = %491
  %589 = load double, ptr %12, align 8, !tbaa !9
  %590 = fmul double 7.500000e-01, %589
  store double %590, ptr %12, align 8, !tbaa !9
  br label %38, !llvm.loop !33

591:                                              ; preds = %38
  br label %592

592:                                              ; preds = %591
  %593 = load i64, ptr %5, align 8, !tbaa !13
  %594 = add nsw i64 %593, 1
  store i64 %594, ptr %5, align 8, !tbaa !13
  br label %34, !llvm.loop !34

595:                                              ; preds = %34
  %596 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %596)
  %597 = load i8, ptr %21, align 1, !tbaa !11, !range !19, !noundef !20
  %598 = trunc i8 %597 to i1
  store i1 %598, ptr %2, align 1
  store i32 1, ptr %22, align 4
  br label %599

599:                                              ; preds = %595, %486, %354
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  %600 = load i1, ptr %2, align 1
  ret i1 %600
}

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

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

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

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

declare void @_ZN11alglib_impl26sparsesymmpermtbltransposeEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = distinct !{!33, !17}
!34 = distinct !{!34, !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::hqrndstate" = type { i64, i64, i64 }
%"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::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }

@.str.19 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.274 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.275 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.276 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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_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_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_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr 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_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

declare noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef, double noundef) local_unnamed_addr #1

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17testsymmetricpermPN11alglib_impl8ae_stateE(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %"struct.alglib_impl::ae_frame", align 8
  %3 = alloca %"struct.alglib_impl::hqrndstate", 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::sparsematrix", align 8
  %8 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %9 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %0, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  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(368) %7, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %8, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %9, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %3, ptr noundef %0, i1 noundef zeroext true)
  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 %0, 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 %0, 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 %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 2, ptr noundef %0, i1 noundef zeroext true)
  store i8 0, ptr %12, align 1, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %13 = getelementptr inbounds i8, ptr %4, i64 72
  %14 = getelementptr inbounds i8, ptr %10, i64 56
  %15 = getelementptr inbounds i8, ptr %11, i64 56
  %16 = getelementptr inbounds i8, ptr %5, i64 72
  %17 = getelementptr inbounds i8, ptr %6, i64 72
  br label %.preheader255

.preheader255:                                    ; preds = %1, %._crit_edge
  %indvar = phi i64 [ 0, %1 ], [ %indvar.next, %._crit_edge ]
  %.0210274 = phi i64 [ 1, %1 ], [ %338, %._crit_edge ]
  %18 = mul nuw nsw i64 %.0210274, %.0210274
  %19 = uitofp nneg i64 %18 to double
  %20 = fdiv double 1.000000e-01, %19
  %21 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef 1.000000e+00, double noundef %20)
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader255
  %xtraiter305 = and i64 %.0210274, 3
  %22 = icmp ult i64 %indvar, 3
  %unroll_iter307 = and i64 %.0210274, 9223372036854775804
  %lcmp.mod306.not = icmp eq i64 %xtraiter305, 0
  %xtraiter310 = and i64 %.0210274, 1
  %23 = icmp eq i64 %indvar, 0
  %unroll_iter313 = and i64 %.0210274, 9223372036854775806
  %lcmp.mod312.not = icmp eq i64 %xtraiter310, 0
  %xtraiter317 = and i64 %.0210274, 1
  %24 = icmp eq i64 %indvar, 0
  %unroll_iter321 = and i64 %.0210274, 9223372036854775806
  %lcmp.mod319.not = icmp eq i64 %xtraiter317, 0
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %335
  %.0273 = phi double [ %336, %335 ], [ 1.000000e+00, %.lr.ph.preheader ]
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0210274, i64 noundef %.0210274, i64 noundef 0, ptr noundef nonnull %7, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0210274, i64 noundef %.0210274, ptr noundef %0)
  br label %.preheader251

.preheader251:                                    ; preds = %.lr.ph, %46
  %.0212257 = phi i64 [ 0, %.lr.ph ], [ %47, %46 ]
  br label %25

25:                                               ; preds = %.preheader251, %44
  %.0211256 = phi i64 [ 0, %.preheader251 ], [ %45, %44 ]
  %26 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %27 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %26, double noundef %.0273)
  br i1 %27, label %28, label %39

28:                                               ; preds = %25
  %29 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %30 = load ptr, ptr %13, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 %.0212257
  %32 = load ptr, ptr %31, align 8, !tbaa !10
  %33 = getelementptr inbounds double, ptr %32, i64 %.0211256
  store double %29, ptr %33, align 8, !tbaa !12
  %34 = load ptr, ptr %13, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.0212257
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds double, ptr %36, i64 %.0211256
  %38 = load double, ptr %37, align 8, !tbaa !12
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0212257, i64 noundef %.0211256, double noundef %38, ptr noundef %0)
  br label %44

39:                                               ; preds = %25
  %40 = load ptr, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds ptr, ptr %40, i64 %.0212257
  %42 = load ptr, ptr %41, align 8, !tbaa !10
  %43 = getelementptr inbounds double, ptr %42, i64 %.0211256
  store double 0.000000e+00, ptr %43, align 8, !tbaa !12
  br label %44

44:                                               ; preds = %28, %39
  %45 = add nuw nsw i64 %.0211256, 1
  %exitcond.not = icmp eq i64 %45, %.0210274
  br i1 %exitcond.not, label %46, label %25, !llvm.loop !14

46:                                               ; preds = %44
  %47 = add nuw nsw i64 %.0212257, 1
  %exitcond276.not = icmp eq i64 %47, %.0210274
  br i1 %exitcond276.not, label %48, label %.preheader251, !llvm.loop !16

48:                                               ; preds = %46
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %0)
  %49 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %3, ptr noundef %0)
  %50 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %49, double noundef 0.000000e+00)
  br i1 %50, label %.preheader250.us, label %.preheader250

.preheader250.us:                                 ; preds = %48, %.split.us.us
  %indvars.iv279 = phi i64 [ %indvars.iv.next280, %.split.us.us ], [ 1, %48 ]
  %.1213259.us = phi i64 [ %79, %.split.us.us ], [ 0, %48 ]
  %xtraiter300 = and i64 %indvars.iv279, 1
  %51 = icmp eq i64 %.1213259.us, 0
  br i1 %51, label %.split.us.us.unr-lcssa, label %.preheader250.us.new

.preheader250.us.new:                             ; preds = %.preheader250.us
  %unroll_iter302 = and i64 %indvars.iv279, 9223372036854775806
  br label %52

52:                                               ; preds = %52, %.preheader250.us.new
  %.1258.us.us = phi i64 [ 0, %.preheader250.us.new ], [ %70, %52 ]
  %niter303 = phi i64 [ 0, %.preheader250.us.new ], [ %niter303.next.1, %52 ]
  %53 = load ptr, ptr %13, align 8, !tbaa !9
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.1258.us.us
  %55 = load ptr, ptr %54, align 8, !tbaa !10
  %56 = getelementptr inbounds double, ptr %55, i64 %.1213259.us
  %57 = load double, ptr %56, align 8, !tbaa !12
  %58 = getelementptr inbounds ptr, ptr %53, i64 %.1213259.us
  %59 = load ptr, ptr %58, align 8, !tbaa !10
  %60 = getelementptr inbounds double, ptr %59, i64 %.1258.us.us
  store double %57, ptr %60, align 8, !tbaa !12
  %61 = or disjoint i64 %.1258.us.us, 1
  %62 = load ptr, ptr %13, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %62, i64 %61
  %64 = load ptr, ptr %63, align 8, !tbaa !10
  %65 = getelementptr inbounds double, ptr %64, i64 %.1213259.us
  %66 = load double, ptr %65, align 8, !tbaa !12
  %67 = getelementptr inbounds ptr, ptr %62, i64 %.1213259.us
  %68 = load ptr, ptr %67, align 8, !tbaa !10
  %69 = getelementptr inbounds double, ptr %68, i64 %61
  store double %66, ptr %69, align 8, !tbaa !12
  %70 = add nuw nsw i64 %.1258.us.us, 2
  %niter303.next.1 = add i64 %niter303, 2
  %niter303.ncmp.1 = icmp eq i64 %niter303.next.1, %unroll_iter302
  br i1 %niter303.ncmp.1, label %.split.us.us.unr-lcssa, label %52, !llvm.loop !17

.split.us.us.unr-lcssa:                           ; preds = %52, %.preheader250.us
  %.1258.us.us.unr = phi i64 [ 0, %.preheader250.us ], [ %70, %52 ]
  %lcmp.mod301.not = icmp eq i64 %xtraiter300, 0
  br i1 %lcmp.mod301.not, label %.split.us.us, label %.split.us.us.epilog-lcssa

.split.us.us.epilog-lcssa:                        ; preds = %.split.us.us.unr-lcssa
  %71 = load ptr, ptr %13, align 8, !tbaa !9
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.1258.us.us.unr
  %73 = load ptr, ptr %72, align 8, !tbaa !10
  %74 = getelementptr inbounds double, ptr %73, i64 %.1213259.us
  %75 = load double, ptr %74, align 8, !tbaa !12
  %76 = getelementptr inbounds ptr, ptr %71, i64 %.1213259.us
  %77 = load ptr, ptr %76, align 8, !tbaa !10
  %78 = getelementptr inbounds double, ptr %77, i64 %.1258.us.us.unr
  store double %75, ptr %78, align 8, !tbaa !12
  br label %.split.us.us

.split.us.us:                                     ; preds = %.split.us.us.unr-lcssa, %.split.us.us.epilog-lcssa
  %79 = add nuw nsw i64 %.1213259.us, 1
  %indvars.iv.next280 = add nuw nsw i64 %indvars.iv279, 1
  %exitcond282.not = icmp eq i64 %79, %.0210274
  br i1 %exitcond282.not, label %.split262.us, label %.preheader250.us, !llvm.loop !18

.preheader250:                                    ; preds = %48, %.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.split ], [ 1, %48 ]
  %.1213259 = phi i64 [ %108, %.split ], [ 0, %48 ]
  %xtraiter = and i64 %indvars.iv, 1
  %80 = icmp eq i64 %.1213259, 0
  br i1 %80, label %.split.unr-lcssa, label %.preheader250.new

.preheader250.new:                                ; preds = %.preheader250
  %unroll_iter = and i64 %indvars.iv, 9223372036854775806
  br label %81

81:                                               ; preds = %81, %.preheader250.new
  %.1258 = phi i64 [ 0, %.preheader250.new ], [ %99, %81 ]
  %niter = phi i64 [ 0, %.preheader250.new ], [ %niter.next.1, %81 ]
  %82 = load ptr, ptr %13, align 8, !tbaa !9
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.1213259
  %84 = load ptr, ptr %83, align 8, !tbaa !10
  %85 = getelementptr inbounds double, ptr %84, i64 %.1258
  %86 = load double, ptr %85, align 8, !tbaa !12
  %87 = getelementptr inbounds ptr, ptr %82, i64 %.1258
  %88 = load ptr, ptr %87, align 8, !tbaa !10
  %89 = getelementptr inbounds double, ptr %88, i64 %.1213259
  store double %86, ptr %89, align 8, !tbaa !12
  %90 = or disjoint i64 %.1258, 1
  %91 = load ptr, ptr %13, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.1213259
  %93 = load ptr, ptr %92, align 8, !tbaa !10
  %94 = getelementptr inbounds double, ptr %93, i64 %90
  %95 = load double, ptr %94, align 8, !tbaa !12
  %96 = getelementptr inbounds ptr, ptr %91, i64 %90
  %97 = load ptr, ptr %96, align 8, !tbaa !10
  %98 = getelementptr inbounds double, ptr %97, i64 %.1213259
  store double %95, ptr %98, align 8, !tbaa !12
  %99 = add nuw nsw i64 %.1258, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.split.unr-lcssa, label %81, !llvm.loop !17

.split.unr-lcssa:                                 ; preds = %81, %.preheader250
  %.1258.unr = phi i64 [ 0, %.preheader250 ], [ %99, %81 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.split, label %.split.epilog-lcssa

.split.epilog-lcssa:                              ; preds = %.split.unr-lcssa
  %100 = load ptr, ptr %13, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.1213259
  %102 = load ptr, ptr %101, align 8, !tbaa !10
  %103 = getelementptr inbounds double, ptr %102, i64 %.1258.unr
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = getelementptr inbounds ptr, ptr %100, i64 %.1258.unr
  %106 = load ptr, ptr %105, align 8, !tbaa !10
  %107 = getelementptr inbounds double, ptr %106, i64 %.1213259
  store double %104, ptr %107, align 8, !tbaa !12
  br label %.split

.split:                                           ; preds = %.split.unr-lcssa, %.split.epilog-lcssa
  %108 = add nuw nsw i64 %.1213259, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond278.not = icmp eq i64 %108, %.0210274
  br i1 %exitcond278.not, label %.split262.us, label %.preheader250, !llvm.loop !18

.split262.us:                                     ; preds = %.split, %.split.us.us
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %.0210274, ptr noundef %0)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %.0210274, ptr noundef %0)
  br i1 %22, label %.preheader254.preheader.unr-lcssa, label %.split262.us.new

.split262.us.new:                                 ; preds = %.split262.us, %.split262.us.new
  %.2214263 = phi i64 [ %120, %.split262.us.new ], [ 0, %.split262.us ]
  %niter308 = phi i64 [ %niter308.next.3, %.split262.us.new ], [ 0, %.split262.us ]
  %109 = load ptr, ptr %14, align 8, !tbaa !9
  %110 = getelementptr inbounds i64, ptr %109, i64 %.2214263
  store i64 %.2214263, ptr %110, align 8, !tbaa !19
  %111 = or disjoint i64 %.2214263, 1
  %112 = load ptr, ptr %14, align 8, !tbaa !9
  %113 = getelementptr inbounds i64, ptr %112, i64 %111
  store i64 %111, ptr %113, align 8, !tbaa !19
  %114 = or disjoint i64 %.2214263, 2
  %115 = load ptr, ptr %14, align 8, !tbaa !9
  %116 = getelementptr inbounds i64, ptr %115, i64 %114
  store i64 %114, ptr %116, align 8, !tbaa !19
  %117 = or disjoint i64 %.2214263, 3
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = getelementptr inbounds i64, ptr %118, i64 %117
  store i64 %117, ptr %119, align 8, !tbaa !19
  %120 = add nuw nsw i64 %.2214263, 4
  %niter308.next.3 = add i64 %niter308, 4
  %niter308.ncmp.3 = icmp eq i64 %niter308.next.3, %unroll_iter307
  br i1 %niter308.ncmp.3, label %.preheader254.preheader.unr-lcssa, label %.split262.us.new, !llvm.loop !21

.preheader254.preheader.unr-lcssa:                ; preds = %.split262.us.new, %.split262.us
  %.2214263.unr = phi i64 [ 0, %.split262.us ], [ %120, %.split262.us.new ]
  br i1 %lcmp.mod306.not, label %.preheader254.preheader, label %.epil.preheader304

.epil.preheader304:                               ; preds = %.preheader254.preheader.unr-lcssa, %.epil.preheader304
  %.2214263.epil = phi i64 [ %123, %.epil.preheader304 ], [ %.2214263.unr, %.preheader254.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader304 ], [ 0, %.preheader254.preheader.unr-lcssa ]
  %121 = load ptr, ptr %14, align 8, !tbaa !9
  %122 = getelementptr inbounds i64, ptr %121, i64 %.2214263.epil
  store i64 %.2214263.epil, ptr %122, align 8, !tbaa !19
  %123 = add nuw nsw i64 %.2214263.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter305
  br i1 %epil.iter.cmp.not, label %.preheader254.preheader, label %.epil.preheader304, !llvm.loop !22

.preheader254.preheader:                          ; preds = %.epil.preheader304, %.preheader254.preheader.unr-lcssa
  br label %.preheader254

.preheader254:                                    ; preds = %.preheader254.preheader, %.preheader254
  %.3215264 = phi i64 [ %142, %.preheader254 ], [ 0, %.preheader254.preheader ]
  %124 = sub nsw i64 %.0210274, %.3215264
  %125 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %124, ptr noundef %0)
  %126 = add nsw i64 %125, %.3215264
  %127 = load ptr, ptr %15, align 8, !tbaa !9
  %128 = getelementptr inbounds i64, ptr %127, i64 %.3215264
  store i64 %126, ptr %128, align 8, !tbaa !19
  %129 = load ptr, ptr %14, align 8, !tbaa !9
  %130 = getelementptr inbounds i64, ptr %129, i64 %.3215264
  %131 = load i64, ptr %130, align 8, !tbaa !19
  %132 = load ptr, ptr %15, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %132, i64 %.3215264
  %134 = load i64, ptr %133, align 8, !tbaa !19
  %135 = getelementptr inbounds i64, ptr %129, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !19
  store i64 %136, ptr %130, align 8, !tbaa !19
  %137 = load ptr, ptr %14, align 8, !tbaa !9
  %138 = load ptr, ptr %15, align 8, !tbaa !9
  %139 = getelementptr inbounds i64, ptr %138, i64 %.3215264
  %140 = load i64, ptr %139, align 8, !tbaa !19
  %141 = getelementptr inbounds i64, ptr %137, i64 %140
  store i64 %131, ptr %141, align 8, !tbaa !19
  %142 = add nuw nsw i64 %.3215264, 1
  %exitcond284.not = icmp eq i64 %142, %.0210274
  br i1 %exitcond284.not, label %143, label %.preheader254, !llvm.loop !24

143:                                              ; preds = %.preheader254
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0210274, i64 noundef %.0210274, ptr noundef %0)
  br label %.preheader249

.preheader249:                                    ; preds = %143, %188
  %.4216266 = phi i64 [ 0, %143 ], [ %189, %188 ]
  br i1 %23, label %.unr-lcssa, label %.preheader249.new

.preheader249.new:                                ; preds = %.preheader249, %.preheader249.new
  %.2265 = phi i64 [ %173, %.preheader249.new ], [ 0, %.preheader249 ]
  %niter314 = phi i64 [ %niter314.next.1, %.preheader249.new ], [ 0, %.preheader249 ]
  %144 = load ptr, ptr %13, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.4216266
  %146 = load ptr, ptr %145, align 8, !tbaa !10
  %147 = getelementptr inbounds double, ptr %146, i64 %.2265
  %148 = load double, ptr %147, align 8, !tbaa !12
  %149 = load ptr, ptr %16, align 8, !tbaa !9
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  %151 = getelementptr inbounds i64, ptr %150, i64 %.4216266
  %152 = load i64, ptr %151, align 8, !tbaa !19
  %153 = getelementptr inbounds ptr, ptr %149, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !10
  %155 = getelementptr inbounds i64, ptr %150, i64 %.2265
  %156 = load i64, ptr %155, align 8, !tbaa !19
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  store double %148, ptr %157, align 8, !tbaa !12
  %158 = or disjoint i64 %.2265, 1
  %159 = load ptr, ptr %13, align 8, !tbaa !9
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.4216266
  %161 = load ptr, ptr %160, align 8, !tbaa !10
  %162 = getelementptr inbounds double, ptr %161, i64 %158
  %163 = load double, ptr %162, align 8, !tbaa !12
  %164 = load ptr, ptr %16, align 8, !tbaa !9
  %165 = load ptr, ptr %14, align 8, !tbaa !9
  %166 = getelementptr inbounds i64, ptr %165, i64 %.4216266
  %167 = load i64, ptr %166, align 8, !tbaa !19
  %168 = getelementptr inbounds ptr, ptr %164, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !10
  %170 = getelementptr inbounds i64, ptr %165, i64 %158
  %171 = load i64, ptr %170, align 8, !tbaa !19
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  store double %163, ptr %172, align 8, !tbaa !12
  %173 = add nuw nsw i64 %.2265, 2
  %niter314.next.1 = add i64 %niter314, 2
  %niter314.ncmp.1 = icmp eq i64 %niter314.next.1, %unroll_iter313
  br i1 %niter314.ncmp.1, label %.unr-lcssa, label %.preheader249.new, !llvm.loop !25

.unr-lcssa:                                       ; preds = %.preheader249.new, %.preheader249
  %.2265.unr = phi i64 [ 0, %.preheader249 ], [ %173, %.preheader249.new ]
  br i1 %lcmp.mod312.not, label %188, label %.epilog-lcssa

.epilog-lcssa:                                    ; preds = %.unr-lcssa
  %174 = load ptr, ptr %13, align 8, !tbaa !9
  %175 = getelementptr inbounds ptr, ptr %174, i64 %.4216266
  %176 = load ptr, ptr %175, align 8, !tbaa !10
  %177 = getelementptr inbounds double, ptr %176, i64 %.2265.unr
  %178 = load double, ptr %177, align 8, !tbaa !12
  %179 = load ptr, ptr %16, align 8, !tbaa !9
  %180 = load ptr, ptr %14, align 8, !tbaa !9
  %181 = getelementptr inbounds i64, ptr %180, i64 %.4216266
  %182 = load i64, ptr %181, align 8, !tbaa !19
  %183 = getelementptr inbounds ptr, ptr %179, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !10
  %185 = getelementptr inbounds i64, ptr %180, i64 %.2265.unr
  %186 = load i64, ptr %185, align 8, !tbaa !19
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %178, ptr %187, align 8, !tbaa !12
  br label %188

188:                                              ; preds = %.unr-lcssa, %.epilog-lcssa
  %189 = add nuw nsw i64 %.4216266, 1
  %exitcond286.not = icmp eq i64 %189, %.0210274
  br i1 %exitcond286.not, label %190, label %.preheader249, !llvm.loop !26

190:                                              ; preds = %188
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0210274, i64 noundef %.0210274, ptr noundef %0)
  br label %.preheader248

.preheader248:                                    ; preds = %190, %235
  %.5217268 = phi i64 [ 0, %190 ], [ %236, %235 ]
  br i1 %24, label %.unr-lcssa315, label %.preheader248.new

.preheader248.new:                                ; preds = %.preheader248, %.preheader248.new
  %.3267 = phi i64 [ %220, %.preheader248.new ], [ 0, %.preheader248 ]
  %niter322 = phi i64 [ %niter322.next.1, %.preheader248.new ], [ 0, %.preheader248 ]
  %191 = load ptr, ptr %13, align 8, !tbaa !9
  %192 = getelementptr inbounds ptr, ptr %191, i64 %.3267
  %193 = load ptr, ptr %192, align 8, !tbaa !10
  %194 = getelementptr inbounds double, ptr %193, i64 %.5217268
  %195 = load double, ptr %194, align 8, !tbaa !12
  %196 = load ptr, ptr %17, align 8, !tbaa !9
  %197 = load ptr, ptr %14, align 8, !tbaa !9
  %198 = getelementptr inbounds i64, ptr %197, i64 %.5217268
  %199 = load i64, ptr %198, align 8, !tbaa !19
  %200 = getelementptr inbounds ptr, ptr %196, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !10
  %202 = getelementptr inbounds i64, ptr %197, i64 %.3267
  %203 = load i64, ptr %202, align 8, !tbaa !19
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  store double %195, ptr %204, align 8, !tbaa !12
  %205 = or disjoint i64 %.3267, 1
  %206 = load ptr, ptr %13, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %206, i64 %205
  %208 = load ptr, ptr %207, align 8, !tbaa !10
  %209 = getelementptr inbounds double, ptr %208, i64 %.5217268
  %210 = load double, ptr %209, align 8, !tbaa !12
  %211 = load ptr, ptr %17, align 8, !tbaa !9
  %212 = load ptr, ptr %14, align 8, !tbaa !9
  %213 = getelementptr inbounds i64, ptr %212, i64 %.5217268
  %214 = load i64, ptr %213, align 8, !tbaa !19
  %215 = getelementptr inbounds ptr, ptr %211, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !10
  %217 = getelementptr inbounds i64, ptr %212, i64 %205
  %218 = load i64, ptr %217, align 8, !tbaa !19
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  store double %210, ptr %219, align 8, !tbaa !12
  %220 = add nuw nsw i64 %.3267, 2
  %niter322.next.1 = add i64 %niter322, 2
  %niter322.ncmp.1 = icmp eq i64 %niter322.next.1, %unroll_iter321
  br i1 %niter322.ncmp.1, label %.unr-lcssa315, label %.preheader248.new, !llvm.loop !27

.unr-lcssa315:                                    ; preds = %.preheader248.new, %.preheader248
  %.3267.unr = phi i64 [ 0, %.preheader248 ], [ %220, %.preheader248.new ]
  br i1 %lcmp.mod319.not, label %235, label %.epilog-lcssa320

.epilog-lcssa320:                                 ; preds = %.unr-lcssa315
  %221 = load ptr, ptr %13, align 8, !tbaa !9
  %222 = getelementptr inbounds ptr, ptr %221, i64 %.3267.unr
  %223 = load ptr, ptr %222, align 8, !tbaa !10
  %224 = getelementptr inbounds double, ptr %223, i64 %.5217268
  %225 = load double, ptr %224, align 8, !tbaa !12
  %226 = load ptr, ptr %17, align 8, !tbaa !9
  %227 = load ptr, ptr %14, align 8, !tbaa !9
  %228 = getelementptr inbounds i64, ptr %227, i64 %.5217268
  %229 = load i64, ptr %228, align 8, !tbaa !19
  %230 = getelementptr inbounds ptr, ptr %226, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !10
  %232 = getelementptr inbounds i64, ptr %227, i64 %.3267.unr
  %233 = load i64, ptr %232, align 8, !tbaa !19
  %234 = getelementptr inbounds double, ptr %231, i64 %233
  store double %225, ptr %234, align 8, !tbaa !12
  br label %235

235:                                              ; preds = %.unr-lcssa315, %.epilog-lcssa320
  %236 = add nuw nsw i64 %.5217268, 1
  %exitcond288.not = icmp eq i64 %236, %.0210274
  br i1 %exitcond288.not, label %237, label %.preheader248, !llvm.loop !28

237:                                              ; preds = %235
  %238 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 2, ptr noundef %0)
  switch i64 %238, label %241 [
    i64 0, label %239
    i64 1, label %240
  ]

239:                                              ; preds = %237
  call void @_ZN11alglib_impl20sparsesymmpermtblbufEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i1 noundef zeroext %50, ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %0)
  br label %241

240:                                              ; preds = %237
  call void @_ZN11alglib_impl17sparsesymmpermtblEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i1 noundef zeroext %50, ptr noundef nonnull %10, ptr noundef nonnull %8, ptr noundef %0)
  br label %241

241:                                              ; preds = %239, %237, %240
  %242 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %0)
  %243 = xor i1 %242, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %243, ptr noundef nonnull @.str.19, i32 noundef 16426, ptr noundef nonnull @.str.268)
  %244 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %0)
  %245 = icmp ne i64 %244, %.0210274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %245, ptr noundef nonnull @.str.19, i32 noundef 16427, ptr noundef nonnull @.str.269)
  %246 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %0)
  %247 = icmp ne i64 %246, %.0210274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %247, ptr noundef nonnull @.str.19, i32 noundef 16428, ptr noundef nonnull @.str.270)
  %248 = load i8, ptr %12, align 1, !tbaa !5, !range !29, !noundef !30
  %249 = trunc nuw i8 %248 to i1
  br i1 %249, label %.loopexit, label %.preheader253

.preheader253:                                    ; preds = %241
  %.not236 = xor i1 %50, true
  br label %.preheader247

.preheader247:                                    ; preds = %.preheader253, %284
  %.6270 = phi i64 [ 0, %.preheader253 ], [ %285, %284 ]
  br label %250

250:                                              ; preds = %.preheader247, %281
  %.4269 = phi i64 [ 0, %.preheader247 ], [ %283, %281 ]
  %.not230 = icmp ult i64 %.4269, %.6270
  %or.cond = or i1 %.not230, %.not236
  br i1 %or.cond, label %261, label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %16, align 8, !tbaa !9
  %253 = getelementptr inbounds ptr, ptr %252, i64 %.6270
  %254 = load ptr, ptr %253, align 8, !tbaa !10
  %255 = getelementptr inbounds double, ptr %254, i64 %.4269
  %256 = load double, ptr %255, align 8, !tbaa !12
  %257 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.6270, i64 noundef %.4269, ptr noundef %0)
  %258 = fsub double %256, %257
  %259 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %258, ptr noundef %0)
  %260 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %259, double noundef 0x3CF6849B86A12B9C)
  br label %261

261:                                              ; preds = %251, %250
  %262 = phi i1 [ false, %250 ], [ %260, %251 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %262, ptr noundef nonnull @.str.19, i32 noundef 16438, ptr noundef nonnull @.str.271)
  %or.cond237 = and i1 %50, %.not230
  br i1 %or.cond237, label %263, label %265

263:                                              ; preds = %261
  %264 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.6270, i64 noundef %.4269, ptr noundef %0)
  br label %265

265:                                              ; preds = %263, %261
  %266 = phi i1 [ false, %261 ], [ %264, %263 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %266, ptr noundef nonnull @.str.19, i32 noundef 16439, ptr noundef nonnull @.str.272)
  %.not231 = icmp ugt i64 %.4269, %.6270
  %or.cond238 = or i1 %50, %.not231
  br i1 %or.cond238, label %277, label %267

267:                                              ; preds = %265
  %268 = load ptr, ptr %16, align 8, !tbaa !9
  %269 = getelementptr inbounds ptr, ptr %268, i64 %.6270
  %270 = load ptr, ptr %269, align 8, !tbaa !10
  %271 = getelementptr inbounds double, ptr %270, i64 %.4269
  %272 = load double, ptr %271, align 8, !tbaa !12
  %273 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.6270, i64 noundef %.4269, ptr noundef %0)
  %274 = fsub double %272, %273
  %275 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %274, ptr noundef %0)
  %276 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %275, double noundef 0x3CF6849B86A12B9C)
  br label %277

277:                                              ; preds = %267, %265
  %278 = phi i1 [ false, %265 ], [ %276, %267 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %278, ptr noundef nonnull @.str.19, i32 noundef 16440, ptr noundef nonnull @.str.273)
  %or.cond240 = and i1 %.not231, %.not236
  br i1 %or.cond240, label %279, label %281

279:                                              ; preds = %277
  %280 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.6270, i64 noundef %.4269, ptr noundef %0)
  br label %281

281:                                              ; preds = %279, %277
  %282 = phi i1 [ false, %277 ], [ %280, %279 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %282, ptr noundef nonnull @.str.19, i32 noundef 16441, ptr noundef nonnull @.str.274)
  %283 = add nuw nsw i64 %.4269, 1
  %exitcond289.not = icmp eq i64 %283, %.0210274
  br i1 %exitcond289.not, label %284, label %250, !llvm.loop !31

284:                                              ; preds = %281
  %285 = add nuw nsw i64 %.6270, 1
  %exitcond290.not = icmp eq i64 %285, %.0210274
  br i1 %exitcond290.not, label %286, label %.preheader247, !llvm.loop !32

286:                                              ; preds = %284
  %287 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef 2, ptr noundef %0)
  switch i64 %287, label %290 [
    i64 0, label %288
    i64 1, label %289
  ]

288:                                              ; preds = %286
  call void @_ZN11alglib_impl29sparsesymmpermtbltransposebufEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i1 noundef zeroext %50, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %0)
  br label %290

289:                                              ; preds = %286
  call void @_ZN11alglib_impl26sparsesymmpermtbltransposeEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef nonnull %7, i1 noundef zeroext %50, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %0)
  br label %290

290:                                              ; preds = %288, %286, %289
  %291 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  %292 = xor i1 %291, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %292, ptr noundef nonnull @.str.19, i32 noundef 16457, ptr noundef nonnull @.str.275)
  %293 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  %294 = icmp ne i64 %293, %.0210274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %294, ptr noundef nonnull @.str.19, i32 noundef 16458, ptr noundef nonnull @.str.276)
  %295 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %0)
  %296 = icmp ne i64 %295, %.0210274
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %296, ptr noundef nonnull @.str.19, i32 noundef 16459, ptr noundef nonnull @.str.277)
  %297 = load i8, ptr %12, align 1, !tbaa !5, !range !29, !noundef !30
  %298 = trunc nuw i8 %297 to i1
  br i1 %298, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %290, %333
  %.7272 = phi i64 [ %334, %333 ], [ 0, %290 ]
  br label %299

299:                                              ; preds = %.preheader, %330
  %.5271 = phi i64 [ 0, %.preheader ], [ %332, %330 ]
  %.not = icmp ugt i64 %.5271, %.7272
  %or.cond242 = or i1 %.not, %.not236
  br i1 %or.cond242, label %310, label %300

300:                                              ; preds = %299
  %301 = load ptr, ptr %17, align 8, !tbaa !9
  %302 = getelementptr inbounds ptr, ptr %301, i64 %.7272
  %303 = load ptr, ptr %302, align 8, !tbaa !10
  %304 = getelementptr inbounds double, ptr %303, i64 %.5271
  %305 = load double, ptr %304, align 8, !tbaa !12
  %306 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.7272, i64 noundef %.5271, ptr noundef %0)
  %307 = fsub double %305, %306
  %308 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %307, ptr noundef %0)
  %309 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %308, double noundef 0x3CF6849B86A12B9C)
  br label %310

310:                                              ; preds = %300, %299
  %311 = phi i1 [ false, %299 ], [ %309, %300 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %311, ptr noundef nonnull @.str.19, i32 noundef 16469, ptr noundef nonnull @.str.278)
  %or.cond243 = and i1 %50, %.not
  br i1 %or.cond243, label %312, label %314

312:                                              ; preds = %310
  %313 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.7272, i64 noundef %.5271, ptr noundef %0)
  br label %314

314:                                              ; preds = %312, %310
  %315 = phi i1 [ false, %310 ], [ %313, %312 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %315, ptr noundef nonnull @.str.19, i32 noundef 16470, ptr noundef nonnull @.str.279)
  %.not228 = icmp ult i64 %.5271, %.7272
  %or.cond244 = or i1 %50, %.not228
  br i1 %or.cond244, label %326, label %316

316:                                              ; preds = %314
  %317 = load ptr, ptr %17, align 8, !tbaa !9
  %318 = getelementptr inbounds ptr, ptr %317, i64 %.7272
  %319 = load ptr, ptr %318, align 8, !tbaa !10
  %320 = getelementptr inbounds double, ptr %319, i64 %.5271
  %321 = load double, ptr %320, align 8, !tbaa !12
  %322 = call noundef double @_ZN11alglib_impl9sparsegetEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.7272, i64 noundef %.5271, ptr noundef %0)
  %323 = fsub double %321, %322
  %324 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %323, ptr noundef %0)
  %325 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %324, double noundef 0x3CF6849B86A12B9C)
  br label %326

326:                                              ; preds = %316, %314
  %327 = phi i1 [ false, %314 ], [ %325, %316 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %327, ptr noundef nonnull @.str.19, i32 noundef 16471, ptr noundef nonnull @.str.280)
  %or.cond246 = and i1 %.not228, %.not236
  br i1 %or.cond246, label %328, label %330

328:                                              ; preds = %326
  %329 = call noundef zeroext i1 @_ZN11alglib_impl12sparseexistsEPKNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.7272, i64 noundef %.5271, ptr noundef %0)
  br label %330

330:                                              ; preds = %328, %326
  %331 = phi i1 [ false, %326 ], [ %329, %328 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %331, ptr noundef nonnull @.str.19, i32 noundef 16472, ptr noundef nonnull @.str.281)
  %332 = add nuw nsw i64 %.5271, 1
  %exitcond291.not = icmp eq i64 %332, %.0210274
  br i1 %exitcond291.not, label %333, label %299, !llvm.loop !33

333:                                              ; preds = %330
  %334 = add nuw nsw i64 %.7272, 1
  %exitcond292.not = icmp eq i64 %334, %.0210274
  br i1 %exitcond292.not, label %335, label %.preheader, !llvm.loop !34

335:                                              ; preds = %333
  %336 = fmul double %.0273, 7.500000e-01
  %337 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %336, double noundef %20)
  br i1 %337, label %.lr.ph, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %335, %.preheader255
  %338 = add nuw nsw i64 %.0210274, 1
  %exitcond293.not = icmp eq i64 %338, 21
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond293.not, label %.loopexit, label %.preheader255, !llvm.loop !36

.loopexit:                                        ; preds = %._crit_edge, %290, %241
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %0)
  %.0209.in = load i8, ptr %12, align 1, !tbaa !5, !range !29, !noundef !30
  %.0209 = trunc nuw i8 %.0209.in to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret i1 %.0209
}

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPKNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

declare void @_ZN11alglib_impl26sparsesymmpermtbltransposeEPKNS_12sparsematrixEbPKNS_9ae_vectorEPS0_PNS_8ae_stateE(ptr noundef, i1 noundef zeroext, 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 = { 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 = !{!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}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !15}
!32 = distinct !{!32, !15}
!33 = distinct !{!33, !15}
!34 = distinct !{!34, !15}
!35 = distinct !{!35, !15}
!36 = distinct !{!36, !15}


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