; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7crstestPbPN11alglib_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::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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #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_impl13ae_fp_less_eqEdd(double noundef, double noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7crstestPbPN11alglib_impl8ae_stateE(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca double, align 8
  %10 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %11 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %12 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %13 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %14 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %15 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %19, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 368, i1 false)
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %10, ptr noundef %20, i1 noundef zeroext true)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %11, ptr noundef %21, i1 noundef zeroext true)
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %12, ptr noundef %22, i1 noundef zeroext true)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %13, ptr noundef %23, i1 noundef zeroext true)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %14, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %15, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %10, ptr noundef %26)
  store i64 1, ptr %6, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %329, %2
  %28 = load i64, ptr %6, align 8, !tbaa !9
  %29 = icmp sle i64 %28, 10
  br i1 %29, label %30, label %332

30:                                               ; preds = %27
  store i64 1, ptr %7, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %325, %30
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = icmp sle i64 %32, 10
  br i1 %33, label %34, label %328

34:                                               ; preds = %31
  %35 = load i64, ptr %6, align 8, !tbaa !9
  %36 = load i64, ptr %7, align 8, !tbaa !9
  %37 = mul nsw i64 %35, %36
  store i64 %37, ptr %8, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %314, %34
  %39 = load i64, ptr %6, align 8, !tbaa !9
  %40 = icmp sgt i64 %39, 1
  br i1 %40, label %41, label %49

41:                                               ; preds = %38
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = sitofp i64 %42 to double
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = load i64, ptr %6, align 8, !tbaa !9
  %46 = mul nsw i64 %44, %45
  %47 = sitofp i64 %46 to double
  %48 = fdiv double %43, %47
  store double %48, ptr %9, align 8, !tbaa !11
  br label %50

49:                                               ; preds = %38
  store double 1.000000e+00, ptr %9, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %49, %41
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = load i64, ptr %6, align 8, !tbaa !9
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = sitofp i64 %53 to double
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %10, ptr noundef %55)
  %57 = fmul double %54, %56
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %57, ptr noundef %58)
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %51, i64 noundef %52, i64 noundef %59, ptr noundef %11, ptr noundef %60)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %88, %50
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = load i64, ptr %7, align 8, !tbaa !9
  %64 = sub nsw i64 %63, 1
  %65 = icmp sle i64 %62, %64
  br i1 %65, label %66, label %91

66:                                               ; preds = %61
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %84, %66
  %68 = load i64, ptr %17, align 8, !tbaa !9
  %69 = load i64, ptr %6, align 8, !tbaa !9
  %70 = sub nsw i64 %69, 1
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %87

72:                                               ; preds = %67
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %10, ptr noundef %73)
  %75 = load double, ptr %9, align 8, !tbaa !11
  %76 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %74, double noundef %75)
  br i1 %76, label %77, label %83

77:                                               ; preds = %72
  %78 = load i64, ptr %16, align 8, !tbaa !9
  %79 = load i64, ptr %17, align 8, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %10, ptr noundef %80)
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %11, i64 noundef %78, i64 noundef %79, double noundef %81, ptr noundef %82)
  br label %83

83:                                               ; preds = %77, %72
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %17, align 8, !tbaa !9
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %17, align 8, !tbaa !9
  br label %67, !llvm.loop !13

87:                                               ; preds = %67
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %16, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %16, align 8, !tbaa !9
  br label %61, !llvm.loop !15

91:                                               ; preds = %61
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %11, ptr noundef %12, ptr noundef %92)
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %94)
  %96 = xor i1 %95, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %93, i1 noundef zeroext %96, ptr noundef @.str.8, i32 noundef 4977, ptr noundef @.str.87)
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %123, %91
  %98 = load i64, ptr %16, align 8, !tbaa !9
  %99 = load i64, ptr %7, align 8, !tbaa !9
  %100 = sub nsw i64 %99, 1
  %101 = icmp sle i64 %98, %100
  br i1 %101, label %102, label %126

102:                                              ; preds = %97
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %119, %102
  %104 = load i64, ptr %17, align 8, !tbaa !9
  %105 = load i64, ptr %6, align 8, !tbaa !9
  %106 = sub nsw i64 %105, 1
  %107 = icmp sle i64 %104, %106
  br i1 %107, label %108, label %122

108:                                              ; preds = %103
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = load i64, ptr %16, align 8, !tbaa !9
  %111 = load i64, ptr %17, align 8, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %11, i64 noundef %110, i64 noundef %111, ptr noundef %112)
  %114 = load i64, ptr %16, align 8, !tbaa !9
  %115 = load i64, ptr %17, align 8, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %114, i64 noundef %115, ptr noundef %116)
  %118 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %113, double noundef %117)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %109, i1 noundef zeroext %118, ptr noundef @.str.8, i32 noundef 4982, ptr noundef @.str.88)
  br label %119

119:                                              ; preds = %108
  %120 = load i64, ptr %17, align 8, !tbaa !9
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %17, align 8, !tbaa !9
  br label %103, !llvm.loop !16

122:                                              ; preds = %103
  br label %123

123:                                              ; preds = %122
  %124 = load i64, ptr %16, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %16, align 8, !tbaa !9
  br label %97, !llvm.loop !17

126:                                              ; preds = %97
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load i8, ptr %127, align 1, !tbaa !18, !range !20, !noundef !21
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %131)
  store i32 1, ptr %18, align 4
  br label %334

132:                                              ; preds = %126
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %12, ptr noundef %13, ptr noundef %133)
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %13, ptr noundef %134)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %13, ptr noundef %136)
  %138 = xor i1 %137, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %135, i1 noundef zeroext %138, ptr noundef @.str.8, i32 noundef 4996, ptr noundef @.str.89)
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %140)
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %13, ptr noundef %142)
  %144 = icmp ne i64 %141, %143
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %139, i1 noundef zeroext %144, ptr noundef @.str.8, i32 noundef 4997, ptr noundef @.str.90)
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %146)
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %13, ptr noundef %148)
  %150 = icmp ne i64 %147, %149
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %145, i1 noundef zeroext %150, ptr noundef @.str.8, i32 noundef 4998, ptr noundef @.str.91)
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = load i8, ptr %151, align 1, !tbaa !18, !range !20, !noundef !21
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %156

154:                                              ; preds = %132
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %155)
  store i32 1, ptr %18, align 4
  br label %334

156:                                              ; preds = %132
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %183, %156
  %158 = load i64, ptr %16, align 8, !tbaa !9
  %159 = load i64, ptr %7, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = icmp sle i64 %158, %160
  br i1 %161, label %162, label %186

162:                                              ; preds = %157
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %163

163:                                              ; preds = %179, %162
  %164 = load i64, ptr %17, align 8, !tbaa !9
  %165 = load i64, ptr %6, align 8, !tbaa !9
  %166 = sub nsw i64 %165, 1
  %167 = icmp sle i64 %164, %166
  br i1 %167, label %168, label %182

168:                                              ; preds = %163
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = load i64, ptr %16, align 8, !tbaa !9
  %171 = load i64, ptr %17, align 8, !tbaa !9
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %170, i64 noundef %171, ptr noundef %172)
  %174 = load i64, ptr %17, align 8, !tbaa !9
  %175 = load i64, ptr %16, align 8, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %13, i64 noundef %174, i64 noundef %175, ptr noundef %176)
  %178 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %173, double noundef %177)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %169, i1 noundef zeroext %178, ptr noundef @.str.8, i32 noundef 5008, ptr noundef @.str.92)
  br label %179

179:                                              ; preds = %168
  %180 = load i64, ptr %17, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %17, align 8, !tbaa !9
  br label %163, !llvm.loop !22

182:                                              ; preds = %163
  br label %183

183:                                              ; preds = %182
  %184 = load i64, ptr %16, align 8, !tbaa !9
  %185 = add nsw i64 %184, 1
  store i64 %185, ptr %16, align 8, !tbaa !9
  br label %157, !llvm.loop !23

186:                                              ; preds = %157
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = load i8, ptr %187, align 1, !tbaa !18, !range !20, !noundef !21
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %192

190:                                              ; preds = %186
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %191)
  store i32 1, ptr %18, align 4
  br label %334

192:                                              ; preds = %186
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %12, ptr noundef %14, ptr noundef %193)
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %195)
  %197 = xor i1 %196, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %194, i1 noundef zeroext %197, ptr noundef @.str.8, i32 noundef 5021, ptr noundef @.str.93)
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %199)
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %201)
  %203 = icmp ne i64 %200, %202
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %198, i1 noundef zeroext %203, ptr noundef @.str.8, i32 noundef 5022, ptr noundef @.str.94)
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %205)
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %14, ptr noundef %207)
  %209 = icmp ne i64 %206, %208
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %204, i1 noundef zeroext %209, ptr noundef @.str.8, i32 noundef 5023, ptr noundef @.str.95)
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = load i8, ptr %210, align 1, !tbaa !18, !range !20, !noundef !21
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %215

213:                                              ; preds = %192
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %214)
  store i32 1, ptr %18, align 4
  br label %334

215:                                              ; preds = %192
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %216

216:                                              ; preds = %242, %215
  %217 = load i64, ptr %16, align 8, !tbaa !9
  %218 = load i64, ptr %7, align 8, !tbaa !9
  %219 = sub nsw i64 %218, 1
  %220 = icmp sle i64 %217, %219
  br i1 %220, label %221, label %245

221:                                              ; preds = %216
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %222

222:                                              ; preds = %238, %221
  %223 = load i64, ptr %17, align 8, !tbaa !9
  %224 = load i64, ptr %6, align 8, !tbaa !9
  %225 = sub nsw i64 %224, 1
  %226 = icmp sle i64 %223, %225
  br i1 %226, label %227, label %241

227:                                              ; preds = %222
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load i64, ptr %16, align 8, !tbaa !9
  %230 = load i64, ptr %17, align 8, !tbaa !9
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %229, i64 noundef %230, ptr noundef %231)
  %233 = load i64, ptr %17, align 8, !tbaa !9
  %234 = load i64, ptr %16, align 8, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %14, i64 noundef %233, i64 noundef %234, ptr noundef %235)
  %237 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %232, double noundef %236)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %228, i1 noundef zeroext %237, ptr noundef @.str.8, i32 noundef 5033, ptr noundef @.str.96)
  br label %238

238:                                              ; preds = %227
  %239 = load i64, ptr %17, align 8, !tbaa !9
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %17, align 8, !tbaa !9
  br label %222, !llvm.loop !24

241:                                              ; preds = %222
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %16, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %16, align 8, !tbaa !9
  br label %216, !llvm.loop !25

245:                                              ; preds = %216
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = load i8, ptr %246, align 1, !tbaa !18, !range !20, !noundef !21
  %248 = trunc i8 %247 to i1
  br i1 %248, label %249, label %251

249:                                              ; preds = %245
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %250)
  store i32 1, ptr %18, align 4
  br label %334

251:                                              ; preds = %245
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %12, ptr noundef %15, ptr noundef %252)
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %15, ptr noundef %254)
  %256 = xor i1 %255, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %253, i1 noundef zeroext %256, ptr noundef @.str.8, i32 noundef 5046, ptr noundef @.str.97)
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %258)
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %15, ptr noundef %260)
  %262 = icmp ne i64 %259, %261
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %257, i1 noundef zeroext %262, ptr noundef @.str.8, i32 noundef 5047, ptr noundef @.str.98)
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %12, ptr noundef %264)
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %15, ptr noundef %266)
  %268 = icmp ne i64 %265, %267
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %263, i1 noundef zeroext %268, ptr noundef @.str.8, i32 noundef 5048, ptr noundef @.str.99)
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = load i8, ptr %269, align 1, !tbaa !18, !range !20, !noundef !21
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %274

272:                                              ; preds = %251
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %273)
  store i32 1, ptr %18, align 4
  br label %334

274:                                              ; preds = %251
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %301, %274
  %276 = load i64, ptr %16, align 8, !tbaa !9
  %277 = load i64, ptr %7, align 8, !tbaa !9
  %278 = sub nsw i64 %277, 1
  %279 = icmp sle i64 %276, %278
  br i1 %279, label %280, label %304

280:                                              ; preds = %275
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %281

281:                                              ; preds = %297, %280
  %282 = load i64, ptr %17, align 8, !tbaa !9
  %283 = load i64, ptr %6, align 8, !tbaa !9
  %284 = sub nsw i64 %283, 1
  %285 = icmp sle i64 %282, %284
  br i1 %285, label %286, label %300

286:                                              ; preds = %281
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = load i64, ptr %16, align 8, !tbaa !9
  %289 = load i64, ptr %17, align 8, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %12, i64 noundef %288, i64 noundef %289, ptr noundef %290)
  %292 = load i64, ptr %17, align 8, !tbaa !9
  %293 = load i64, ptr %16, align 8, !tbaa !9
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %15, i64 noundef %292, i64 noundef %293, ptr noundef %294)
  %296 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %291, double noundef %295)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %287, i1 noundef zeroext %296, ptr noundef @.str.8, i32 noundef 5058, ptr noundef @.str.100)
  br label %297

297:                                              ; preds = %286
  %298 = load i64, ptr %17, align 8, !tbaa !9
  %299 = add nsw i64 %298, 1
  store i64 %299, ptr %17, align 8, !tbaa !9
  br label %281, !llvm.loop !26

300:                                              ; preds = %281
  br label %301

301:                                              ; preds = %300
  %302 = load i64, ptr %16, align 8, !tbaa !9
  %303 = add nsw i64 %302, 1
  store i64 %303, ptr %16, align 8, !tbaa !9
  br label %275, !llvm.loop !27

304:                                              ; preds = %275
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = load i8, ptr %305, align 1, !tbaa !18, !range !20, !noundef !21
  %307 = trunc i8 %306 to i1
  br i1 %307, label %308, label %310

308:                                              ; preds = %304
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %309)
  store i32 1, ptr %18, align 4
  br label %334

310:                                              ; preds = %304
  %311 = load i64, ptr %8, align 8, !tbaa !9
  %312 = icmp eq i64 %311, 0
  br i1 %312, label %313, label %314

313:                                              ; preds = %310
  br label %324

314:                                              ; preds = %310
  %315 = load i64, ptr %8, align 8, !tbaa !9
  %316 = sitofp i64 %315 to double
  %317 = fmul double %316, 0x3FEE666666666666
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %317, ptr noundef %318)
  %320 = load i64, ptr %8, align 8, !tbaa !9
  %321 = sub nsw i64 %320, 1
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %319, i64 noundef %321, ptr noundef %322)
  store i64 %323, ptr %8, align 8, !tbaa !9
  br label %38, !llvm.loop !28

324:                                              ; preds = %313
  br label %325

325:                                              ; preds = %324
  %326 = load i64, ptr %7, align 8, !tbaa !9
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %7, align 8, !tbaa !9
  br label %31, !llvm.loop !29

328:                                              ; preds = %31
  br label %329

329:                                              ; preds = %328
  %330 = load i64, ptr %6, align 8, !tbaa !9
  %331 = add nsw i64 %330, 1
  store i64 %331, ptr %6, align 8, !tbaa !9
  br label %27, !llvm.loop !30

332:                                              ; preds = %27
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %333)
  store i32 0, ptr %18, align 4
  br label %334

334:                                              ; preds = %332, %308, %272, %249, %213, %190, %154, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #4
  %335 = load i32, ptr %18, align 4
  switch i32 %335, label %337 [
    i32 0, label %336
    i32 1, label %336
  ]

336:                                              ; preds = %334, %334
  ret void

337:                                              ; preds = %334
  unreachable
}

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 noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #1

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

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

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

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

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

declare noundef double @_ZN11alglib_impl9sparsegetEPNS_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_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}


; 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::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.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) 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_impl13ae_fp_less_eqEdd(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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7crstestPbPN11alglib_impl8ae_stateE(ptr noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %5 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %6 = alloca %"struct.alglib_impl::sparsematrix", 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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 368, 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 @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %5, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %6, i8 0, i64 368, 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 @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  br label %.preheader164

.preheader164:                                    ; preds = %2, %114
  %.0146176 = phi i64 [ 1, %2 ], [ %115, %114 ]
  %10 = icmp ugt i64 %.0146176, 1
  br label %11

11:                                               ; preds = %.preheader164, %112
  %.0145175 = phi i64 [ 1, %.preheader164 ], [ %113, %112 ]
  %12 = mul nuw nsw i64 %.0145175, %.0146176
  %13 = uitofp nneg i64 %12 to double
  br label %14

14:                                               ; preds = %107, %11
  %.0144 = phi i64 [ %12, %11 ], [ %111, %107 ]
  %15 = sitofp i64 %.0144 to double
  %16 = fdiv double %15, %13
  %.0143 = select i1 %10, double %16, double 1.000000e+00
  %17 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  %18 = fmul double %17, %15
  %19 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %18, ptr noundef %1)
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0145175, i64 noundef %.0146176, i64 noundef %19, ptr noundef nonnull %5, ptr noundef %1)
  br label %.preheader160

.preheader160:                                    ; preds = %14, %27
  %.0138166 = phi i64 [ 0, %14 ], [ %28, %27 ]
  br label %20

20:                                               ; preds = %.preheader160, %25
  %.0165 = phi i64 [ 0, %.preheader160 ], [ %26, %25 ]
  %21 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  %22 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %21, double noundef %.0143)
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call noundef double @_ZN11alglib_impl11hqrndnormalEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0138166, i64 noundef %.0165, double noundef %24, ptr noundef %1)
  br label %25

25:                                               ; preds = %20, %23
  %26 = add nuw nsw i64 %.0165, 1
  %exitcond.not = icmp eq i64 %26, %.0146176
  br i1 %exitcond.not, label %27, label %20, !llvm.loop !5

27:                                               ; preds = %25
  %28 = add nuw nsw i64 %.0138166, 1
  %exitcond177.not = icmp eq i64 %28, %.0145175
  br i1 %exitcond177.not, label %29, label %.preheader160, !llvm.loop !7

29:                                               ; preds = %27
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef %1)
  %30 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %31 = xor i1 %30, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %0, i1 noundef zeroext %31, ptr noundef nonnull @.str.8, i32 noundef 4977, ptr noundef nonnull @.str.87)
  br label %.preheader159

.preheader159:                                    ; preds = %29, %37
  %.1139168 = phi i64 [ 0, %29 ], [ %38, %37 ]
  br label %32

32:                                               ; preds = %.preheader159, %32
  %.1167 = phi i64 [ 0, %.preheader159 ], [ %36, %32 ]
  %33 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1139168, i64 noundef %.1167, ptr noundef %1)
  %34 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1139168, i64 noundef %.1167, ptr noundef %1)
  %35 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %33, double noundef %34)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %0, i1 noundef zeroext %35, ptr noundef nonnull @.str.8, i32 noundef 4982, ptr noundef nonnull @.str.88)
  %36 = add nuw nsw i64 %.1167, 1
  %exitcond178.not = icmp eq i64 %36, %.0146176
  br i1 %exitcond178.not, label %37, label %32, !llvm.loop !8

37:                                               ; preds = %32
  %38 = add nuw nsw i64 %.1139168, 1
  %exitcond179.not = icmp eq i64 %38, %.0145175
  br i1 %exitcond179.not, label %39, label %.preheader159, !llvm.loop !9

39:                                               ; preds = %37
  %40 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %41 = trunc nuw i8 %40 to i1
  br i1 %41, label %.loopexit, label %42

42:                                               ; preds = %39
  call void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %43 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %44 = xor i1 %43, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %44, ptr noundef nonnull @.str.8, i32 noundef 4996, ptr noundef nonnull @.str.89)
  %45 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %46 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %47 = icmp ne i64 %45, %46
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %47, ptr noundef nonnull @.str.8, i32 noundef 4997, ptr noundef nonnull @.str.90)
  %48 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %49 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  %50 = icmp ne i64 %48, %49
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %50, ptr noundef nonnull @.str.8, i32 noundef 4998, ptr noundef nonnull @.str.91)
  %51 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %.loopexit, label %.preheader158

.preheader158:                                    ; preds = %42, %58
  %.2140170 = phi i64 [ %59, %58 ], [ 0, %42 ]
  br label %53

53:                                               ; preds = %.preheader158, %53
  %.2169 = phi i64 [ 0, %.preheader158 ], [ %57, %53 ]
  %54 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.2140170, i64 noundef %.2169, ptr noundef %1)
  %55 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.2169, i64 noundef %.2140170, ptr noundef %1)
  %56 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %54, double noundef %55)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %56, ptr noundef nonnull @.str.8, i32 noundef 5008, ptr noundef nonnull @.str.92)
  %57 = add nuw nsw i64 %.2169, 1
  %exitcond180.not = icmp eq i64 %57, %.0146176
  br i1 %exitcond180.not, label %58, label %53, !llvm.loop !16

58:                                               ; preds = %53
  %59 = add nuw nsw i64 %.2140170, 1
  %exitcond181.not = icmp eq i64 %59, %.0145175
  br i1 %exitcond181.not, label %60, label %.preheader158, !llvm.loop !17

60:                                               ; preds = %58
  %61 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %.loopexit, label %63

63:                                               ; preds = %60
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef %1)
  %64 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %1)
  %65 = xor i1 %64, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %65, ptr noundef nonnull @.str.8, i32 noundef 5021, ptr noundef nonnull @.str.93)
  %66 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %67 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %1)
  %68 = icmp ne i64 %66, %67
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %68, ptr noundef nonnull @.str.8, i32 noundef 5022, ptr noundef nonnull @.str.94)
  %69 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %70 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef %1)
  %71 = icmp ne i64 %69, %70
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %71, ptr noundef nonnull @.str.8, i32 noundef 5023, ptr noundef nonnull @.str.95)
  %72 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %.loopexit, label %.preheader157

.preheader157:                                    ; preds = %63, %79
  %.3141172 = phi i64 [ %80, %79 ], [ 0, %63 ]
  br label %74

74:                                               ; preds = %.preheader157, %74
  %.3171 = phi i64 [ 0, %.preheader157 ], [ %78, %74 ]
  %75 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.3141172, i64 noundef %.3171, ptr noundef %1)
  %76 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.3171, i64 noundef %.3141172, ptr noundef %1)
  %77 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %75, double noundef %76)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %77, ptr noundef nonnull @.str.8, i32 noundef 5033, ptr noundef nonnull @.str.96)
  %78 = add nuw nsw i64 %.3171, 1
  %exitcond182.not = icmp eq i64 %78, %.0146176
  br i1 %exitcond182.not, label %79, label %74, !llvm.loop !18

79:                                               ; preds = %74
  %80 = add nuw nsw i64 %.3141172, 1
  %exitcond183.not = icmp eq i64 %80, %.0145175
  br i1 %exitcond183.not, label %81, label %.preheader157, !llvm.loop !19

81:                                               ; preds = %79
  %82 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %.loopexit, label %84

84:                                               ; preds = %81
  call void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef %1)
  %85 = call noundef zeroext i1 @_ZN11alglib_impl11sparseiscrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %1)
  %86 = xor i1 %85, true
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %86, ptr noundef nonnull @.str.8, i32 noundef 5046, ptr noundef nonnull @.str.97)
  %87 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %88 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %1)
  %89 = icmp ne i64 %87, %88
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %89, ptr noundef nonnull @.str.8, i32 noundef 5047, ptr noundef nonnull @.str.98)
  %90 = call noundef i64 @_ZN11alglib_impl14sparsegetncolsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef %1)
  %91 = call noundef i64 @_ZN11alglib_impl14sparsegetnrowsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %1)
  %92 = icmp ne i64 %90, %91
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %92, ptr noundef nonnull @.str.8, i32 noundef 5048, ptr noundef nonnull @.str.99)
  %93 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %94 = trunc nuw i8 %93 to i1
  br i1 %94, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %84, %100
  %.4142174 = phi i64 [ %101, %100 ], [ 0, %84 ]
  br label %95

95:                                               ; preds = %.preheader, %95
  %.4173 = phi i64 [ 0, %.preheader ], [ %99, %95 ]
  %96 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.4142174, i64 noundef %.4173, ptr noundef %1)
  %97 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %.4173, i64 noundef %.4142174, ptr noundef %1)
  %98 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %96, double noundef %97)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %0, i1 noundef zeroext %98, ptr noundef nonnull @.str.8, i32 noundef 5058, ptr noundef nonnull @.str.100)
  %99 = add nuw nsw i64 %.4173, 1
  %exitcond184.not = icmp eq i64 %99, %.0146176
  br i1 %exitcond184.not, label %100, label %95, !llvm.loop !20

100:                                              ; preds = %95
  %101 = add nuw nsw i64 %.4142174, 1
  %exitcond185.not = icmp eq i64 %101, %.0145175
  br i1 %exitcond185.not, label %102, label %.preheader, !llvm.loop !21

102:                                              ; preds = %100
  %103 = load i8, ptr %0, align 1, !tbaa !10, !range !14, !noundef !15
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %.loopexit, label %105

105:                                              ; preds = %102
  %106 = icmp eq i64 %.0144, 0
  br i1 %106, label %112, label %107

107:                                              ; preds = %105
  %108 = fmul double %15, 0x3FEE666666666666
  %109 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %108, ptr noundef %1)
  %110 = add nsw i64 %.0144, -1
  %111 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %109, i64 noundef %110, ptr noundef %1)
  br label %14, !llvm.loop !22

112:                                              ; preds = %105
  %113 = add nuw nsw i64 %.0145175, 1
  %exitcond186.not = icmp eq i64 %113, 11
  br i1 %exitcond186.not, label %114, label %11, !llvm.loop !23

114:                                              ; preds = %112
  %115 = add nuw nsw i64 %.0146176, 1
  %exitcond187.not = icmp eq i64 %115, 11
  br i1 %exitcond187.not, label %.loopexit, label %.preheader164, !llvm.loop !24

.loopexit:                                        ; preds = %114, %102, %84, %81, %63, %60, %42, %39
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  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 368, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  ret void
}

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 noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef, i64 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 void @_ZN11alglib_impl15sparsecopytocrsEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare noundef double @_ZN11alglib_impl9sparsegetEPNS_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_impl18sparsetransposecrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl22sparsecopytransposecrsEPNS_12sparsematrixES1_PNS_8ae_stateE(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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}


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