; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (statistics)

; 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }

; 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13studentttest2EPNS_9ae_vectorElS1_lPdS2_S2_PNS_8ae_stateE(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #1 {
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  %31 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = icmp sle i64 %32, 0
  br i1 %33, label %37, label %34

34:                                               ; preds = %8
  %35 = load i64, ptr %12, align 8, !tbaa !9
  %36 = icmp sle i64 %35, 0
  br i1 %36, label %37, label %41

37:                                               ; preds = %34, %8
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %38, align 8, !tbaa !11
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %39, align 8, !tbaa !11
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %40, align 8, !tbaa !11
  store i32 1, ptr %28, align 4
  br label %247

41:                                               ; preds = %34
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds double, ptr %44, i64 0
  %46 = load double, ptr %45, align 8, !tbaa !11
  store double %46, ptr %20, align 8, !tbaa !11
  store i8 1, ptr %18, align 1, !tbaa !14
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %71, %41
  %48 = load i64, ptr %17, align 8, !tbaa !9
  %49 = load i64, ptr %10, align 8, !tbaa !9
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %48, %50
  br i1 %51, label %52, label %74

52:                                               ; preds = %47
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load i64, ptr %17, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  store double %58, ptr %24, align 8, !tbaa !11
  %59 = load double, ptr %22, align 8, !tbaa !11
  %60 = load double, ptr %24, align 8, !tbaa !11
  %61 = fadd double %59, %60
  store double %61, ptr %22, align 8, !tbaa !11
  %62 = load i8, ptr %18, align 1, !tbaa !14, !range !16, !noundef !17
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %68

64:                                               ; preds = %52
  %65 = load double, ptr %24, align 8, !tbaa !11
  %66 = load double, ptr %20, align 8, !tbaa !11
  %67 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %65, double noundef %66)
  br label %68

68:                                               ; preds = %64, %52
  %69 = phi i1 [ false, %52 ], [ %67, %64 ]
  %70 = zext i1 %69 to i8
  store i8 %70, ptr %18, align 1, !tbaa !14
  br label %71

71:                                               ; preds = %68
  %72 = load i64, ptr %17, align 8, !tbaa !9
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %17, align 8, !tbaa !9
  br label %47, !llvm.loop !18

74:                                               ; preds = %47
  %75 = load i8, ptr %18, align 1, !tbaa !14, !range !16, !noundef !17
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load double, ptr %20, align 8, !tbaa !11
  store double %78, ptr %22, align 8, !tbaa !11
  br label %84

79:                                               ; preds = %74
  %80 = load double, ptr %22, align 8, !tbaa !11
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = sitofp i64 %81 to double
  %83 = fdiv double %80, %82
  store double %83, ptr %22, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %79, %77
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %85, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %87, i64 0
  %89 = load double, ptr %88, align 8, !tbaa !11
  store double %89, ptr %21, align 8, !tbaa !11
  store i8 1, ptr %19, align 1, !tbaa !14
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %114, %84
  %91 = load i64, ptr %17, align 8, !tbaa !9
  %92 = load i64, ptr %12, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  %94 = icmp sle i64 %91, %93
  br i1 %94, label %95, label %117

95:                                               ; preds = %90
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = load i64, ptr %17, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !11
  store double %101, ptr %24, align 8, !tbaa !11
  %102 = load double, ptr %23, align 8, !tbaa !11
  %103 = load double, ptr %24, align 8, !tbaa !11
  %104 = fadd double %102, %103
  store double %104, ptr %23, align 8, !tbaa !11
  %105 = load i8, ptr %19, align 1, !tbaa !14, !range !16, !noundef !17
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %111

107:                                              ; preds = %95
  %108 = load double, ptr %24, align 8, !tbaa !11
  %109 = load double, ptr %21, align 8, !tbaa !11
  %110 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %108, double noundef %109)
  br label %111

111:                                              ; preds = %107, %95
  %112 = phi i1 [ false, %95 ], [ %110, %107 ]
  %113 = zext i1 %112 to i8
  store i8 %113, ptr %19, align 1, !tbaa !14
  br label %114

114:                                              ; preds = %111
  %115 = load i64, ptr %17, align 8, !tbaa !9
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %17, align 8, !tbaa !9
  br label %90, !llvm.loop !20

117:                                              ; preds = %90
  %118 = load i8, ptr %19, align 1, !tbaa !14, !range !16, !noundef !17
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %122

120:                                              ; preds = %117
  %121 = load double, ptr %21, align 8, !tbaa !11
  store double %121, ptr %23, align 8, !tbaa !11
  br label %127

122:                                              ; preds = %117
  %123 = load double, ptr %23, align 8, !tbaa !11
  %124 = load i64, ptr %12, align 8, !tbaa !9
  %125 = sitofp i64 %124 to double
  %126 = fdiv double %123, %125
  store double %126, ptr %23, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %122, %120
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  %128 = load i64, ptr %10, align 8, !tbaa !9
  %129 = load i64, ptr %12, align 8, !tbaa !9
  %130 = add nsw i64 %128, %129
  %131 = icmp sgt i64 %130, 2
  br i1 %131, label %132, label %194

132:                                              ; preds = %127
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %151, %132
  %134 = load i64, ptr %17, align 8, !tbaa !9
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = sub nsw i64 %135, 1
  %137 = icmp sle i64 %134, %136
  br i1 %137, label %138, label %154

138:                                              ; preds = %133
  %139 = load double, ptr %26, align 8, !tbaa !11
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !13
  %143 = load i64, ptr %17, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !11
  %146 = load double, ptr %22, align 8, !tbaa !11
  %147 = fsub double %145, %146
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %147, ptr noundef %148)
  %150 = fadd double %139, %149
  store double %150, ptr %26, align 8, !tbaa !11
  br label %151

151:                                              ; preds = %138
  %152 = load i64, ptr %17, align 8, !tbaa !9
  %153 = add nsw i64 %152, 1
  store i64 %153, ptr %17, align 8, !tbaa !9
  br label %133, !llvm.loop !21

154:                                              ; preds = %133
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %173, %154
  %156 = load i64, ptr %17, align 8, !tbaa !9
  %157 = load i64, ptr %12, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  %159 = icmp sle i64 %156, %158
  br i1 %159, label %160, label %176

160:                                              ; preds = %155
  %161 = load double, ptr %26, align 8, !tbaa !11
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %162, i32 0, i32 4
  %164 = load ptr, ptr %163, align 8, !tbaa !13
  %165 = load i64, ptr %17, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %164, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = load double, ptr %23, align 8, !tbaa !11
  %169 = fsub double %167, %168
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %169, ptr noundef %170)
  %172 = fadd double %161, %171
  store double %172, ptr %26, align 8, !tbaa !11
  br label %173

173:                                              ; preds = %160
  %174 = load i64, ptr %17, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %17, align 8, !tbaa !9
  br label %155, !llvm.loop !22

176:                                              ; preds = %155
  %177 = load double, ptr %26, align 8, !tbaa !11
  %178 = load i64, ptr %10, align 8, !tbaa !9
  %179 = sitofp i64 %178 to double
  %180 = fdiv double 1.000000e+00, %179
  %181 = load i64, ptr %12, align 8, !tbaa !9
  %182 = sitofp i64 %181 to double
  %183 = fdiv double 1.000000e+00, %182
  %184 = fadd double %180, %183
  %185 = fmul double %177, %184
  %186 = load i64, ptr %10, align 8, !tbaa !9
  %187 = load i64, ptr %12, align 8, !tbaa !9
  %188 = add nsw i64 %186, %187
  %189 = sub nsw i64 %188, 2
  %190 = sitofp i64 %189 to double
  %191 = fdiv double %185, %190
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %191, ptr noundef %192)
  store double %193, ptr %26, align 8, !tbaa !11
  br label %194

194:                                              ; preds = %176, %127
  %195 = load double, ptr %26, align 8, !tbaa !11
  %196 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %195, double noundef 0.000000e+00)
  br i1 %196, label %197, label %222

197:                                              ; preds = %194
  %198 = load double, ptr %22, align 8, !tbaa !11
  %199 = load double, ptr %23, align 8, !tbaa !11
  %200 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %198, double noundef %199)
  br i1 %200, label %201, label %203

201:                                              ; preds = %197
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %202, align 8, !tbaa !11
  br label %205

203:                                              ; preds = %197
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %204, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %203, %201
  %206 = load double, ptr %22, align 8, !tbaa !11
  %207 = load double, ptr %23, align 8, !tbaa !11
  %208 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %206, double noundef %207)
  br i1 %208, label %209, label %211

209:                                              ; preds = %205
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  store double 1.000000e+00, ptr %210, align 8, !tbaa !11
  br label %213

211:                                              ; preds = %205
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %212, align 8, !tbaa !11
  br label %213

213:                                              ; preds = %211, %209
  %214 = load double, ptr %22, align 8, !tbaa !11
  %215 = load double, ptr %23, align 8, !tbaa !11
  %216 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %214, double noundef %215)
  br i1 %216, label %217, label %219

217:                                              ; preds = %213
  %218 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %218, align 8, !tbaa !11
  br label %221

219:                                              ; preds = %213
  %220 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %220, align 8, !tbaa !11
  br label %221

221:                                              ; preds = %219, %217
  store i32 1, ptr %28, align 4
  br label %247

222:                                              ; preds = %194
  %223 = load double, ptr %22, align 8, !tbaa !11
  %224 = load double, ptr %23, align 8, !tbaa !11
  %225 = fsub double %223, %224
  %226 = load double, ptr %26, align 8, !tbaa !11
  %227 = fdiv double %225, %226
  store double %227, ptr %25, align 8, !tbaa !11
  %228 = load i64, ptr %10, align 8, !tbaa !9
  %229 = load i64, ptr %12, align 8, !tbaa !9
  %230 = add nsw i64 %228, %229
  %231 = sub nsw i64 %230, 2
  %232 = load double, ptr %25, align 8, !tbaa !11
  %233 = load ptr, ptr %16, align 8, !tbaa !5
  %234 = call noundef double @_ZN11alglib_impl20studenttdistributionEldPNS_8ae_stateE(i64 noundef %231, double noundef %232, ptr noundef %233)
  store double %234, ptr %27, align 8, !tbaa !11
  %235 = load double, ptr %27, align 8, !tbaa !11
  %236 = load double, ptr %27, align 8, !tbaa !11
  %237 = fsub double 1.000000e+00, %236
  %238 = load ptr, ptr %16, align 8, !tbaa !5
  %239 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %235, double noundef %237, ptr noundef %238)
  %240 = fmul double 2.000000e+00, %239
  %241 = load ptr, ptr %13, align 8, !tbaa !5
  store double %240, ptr %241, align 8, !tbaa !11
  %242 = load double, ptr %27, align 8, !tbaa !11
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  store double %242, ptr %243, align 8, !tbaa !11
  %244 = load double, ptr %27, align 8, !tbaa !11
  %245 = fsub double 1.000000e+00, %244
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  store double %245, ptr %246, align 8, !tbaa !11
  store i32 0, ptr %28, align 4
  br label %247

247:                                              ; preds = %222, %221, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  %248 = load i32, ptr %28, align 4
  switch i32 %248, label %250 [
    i32 0, label %249
    i32 1, label %249
  ]

249:                                              ; preds = %247, %247
  ret void

250:                                              ; preds = %247
  unreachable
}

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef, ptr noundef) #2

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

declare noundef double @_ZN11alglib_impl20studenttdistributionEldPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef) #2

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


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl13studentttest2EPNS_9ae_vectorElS1_lPdS2_S2_PNS_8ae_stateE(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr noundef %7) local_unnamed_addr #0 {
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  %9 = icmp slt i64 %1, 1
  %10 = icmp slt i64 %3, 1
  %or.cond = or i1 %9, %10
  br i1 %or.cond, label %11, label %12

11:                                               ; preds = %8
  store double 1.000000e+00, ptr %4, align 8, !tbaa !5
  store double 1.000000e+00, ptr %5, align 8, !tbaa !5
  br label %88

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = load double, ptr %14, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %12, %23
  %.0112 = phi i64 [ 0, %12 ], [ %25, %23 ]
  %.093111 = phi i1 [ true, %12 ], [ %24, %23 ]
  %.096110 = phi double [ 0.000000e+00, %12 ], [ %20, %23 ]
  %17 = load ptr, ptr %13, align 8, !tbaa !9
  %18 = getelementptr inbounds double, ptr %17, i64 %.0112
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fadd double %.096110, %19
  br i1 %.093111, label %21, label %23

21:                                               ; preds = %16
  %22 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %19, double noundef %15)
  br label %23

23:                                               ; preds = %21, %16
  %24 = phi i1 [ false, %16 ], [ %22, %21 ]
  %25 = add nuw nsw i64 %.0112, 1
  %exitcond.not = icmp eq i64 %25, %1
  br i1 %exitcond.not, label %26, label %16, !llvm.loop !10

26:                                               ; preds = %23
  %27 = uitofp nneg i64 %1 to double
  %28 = fdiv double %20, %27
  %.197 = select i1 %24, double %15, double %28
  %29 = getelementptr inbounds i8, ptr %2, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = load double, ptr %30, align 8, !tbaa !5
  %.not.not104113 = icmp sgt i64 %3, 0
  br i1 %.not.not104113, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %26
  %32 = uitofp nneg i64 %3 to double
  br label %45

.lr.ph:                                           ; preds = %26, %39
  %.1116 = phi i64 [ %41, %39 ], [ 0, %26 ]
  %.094115 = phi double [ %36, %39 ], [ 0.000000e+00, %26 ]
  %.098114 = phi i1 [ %40, %39 ], [ true, %26 ]
  %33 = load ptr, ptr %29, align 8, !tbaa !9
  %34 = getelementptr inbounds double, ptr %33, i64 %.1116
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = fadd double %.094115, %35
  br i1 %.098114, label %37, label %39

37:                                               ; preds = %.lr.ph
  %38 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %35, double noundef %31)
  br label %39

39:                                               ; preds = %37, %.lr.ph
  %40 = phi i1 [ false, %.lr.ph ], [ %38, %37 ]
  %41 = add nuw nsw i64 %.1116, 1
  %exitcond134.not = icmp eq i64 %41, %3
  br i1 %exitcond134.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %39
  %42 = uitofp nneg i64 %3 to double
  %43 = fdiv double %36, %42
  br i1 %40, label %44, label %45

44:                                               ; preds = %._crit_edge
  br label %45

45:                                               ; preds = %._crit_edge.thread, %._crit_edge, %44
  %46 = phi double [ %42, %._crit_edge ], [ %32, %._crit_edge.thread ], [ %42, %44 ]
  %47 = phi double [ %43, %._crit_edge ], [ %31, %._crit_edge.thread ], [ %31, %44 ]
  %48 = add nuw nsw i64 %3, %1
  %49 = icmp sgt i64 %48, 2
  br i1 %49, label %.preheader109, label %74

.preheader109:                                    ; preds = %45
  %.not.not105118 = icmp sgt i64 %1, 0
  br i1 %.not.not105118, label %.lr.ph121, label %.preheader

.preheader:                                       ; preds = %.lr.ph121, %.preheader109
  %.090.lcssa = phi double [ 0.000000e+00, %.preheader109 ], [ %55, %.lr.ph121 ]
  br i1 %.not.not104113, label %.lr.ph126, label %._crit_edge127

.lr.ph121:                                        ; preds = %.preheader109, %.lr.ph121
  %.2120 = phi i64 [ %56, %.lr.ph121 ], [ 0, %.preheader109 ]
  %.090119 = phi double [ %55, %.lr.ph121 ], [ 0.000000e+00, %.preheader109 ]
  %50 = load ptr, ptr %13, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %50, i64 %.2120
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = fsub double %52, %.197
  %54 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %53, ptr noundef %7)
  %55 = fadd double %.090119, %54
  %56 = add nuw nsw i64 %.2120, 1
  %exitcond135.not = icmp eq i64 %56, %1
  br i1 %exitcond135.not, label %.preheader, label %.lr.ph121, !llvm.loop !13

.lr.ph126:                                        ; preds = %.preheader, %.lr.ph126
  %.3125 = phi i64 [ %63, %.lr.ph126 ], [ 0, %.preheader ]
  %.191124 = phi double [ %62, %.lr.ph126 ], [ %.090.lcssa, %.preheader ]
  %57 = load ptr, ptr %29, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %57, i64 %.3125
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fsub double %59, %47
  %61 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %60, ptr noundef %7)
  %62 = fadd double %.191124, %61
  %63 = add nuw nsw i64 %.3125, 1
  %exitcond136.not = icmp eq i64 %63, %3
  br i1 %exitcond136.not, label %._crit_edge127, label %.lr.ph126, !llvm.loop !14

._crit_edge127:                                   ; preds = %.lr.ph126, %.preheader
  %.191.lcssa = phi double [ %.090.lcssa, %.preheader ], [ %62, %.lr.ph126 ]
  %64 = insertelement <2 x double> poison, double %27, i64 0
  %65 = insertelement <2 x double> %64, double %46, i64 1
  %66 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %65
  %shift = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %67 = fadd <2 x double> %66, %shift
  %68 = extractelement <2 x double> %67, i64 0
  %69 = fmul double %68, %.191.lcssa
  %70 = add nsw i64 %48, -2
  %71 = uitofp nneg i64 %70 to double
  %72 = fdiv double %69, %71
  %73 = tail call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %72, ptr noundef %7)
  br label %74

74:                                               ; preds = %._crit_edge127, %45
  %.292 = phi double [ %73, %._crit_edge127 ], [ 0.000000e+00, %45 ]
  %75 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.292, double noundef 0.000000e+00)
  br i1 %75, label %76, label %80

76:                                               ; preds = %74
  %77 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %.197, double noundef %47)
  %. = select i1 %77, double 1.000000e+00, double 0.000000e+00
  store double %., ptr %4, align 8, !tbaa !5
  %78 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %.197, double noundef %47)
  %storemerge107 = select i1 %78, double 1.000000e+00, double 0.000000e+00
  store double %storemerge107, ptr %5, align 8, !tbaa !5
  %79 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %.197, double noundef %47)
  %storemerge108 = select i1 %79, double 1.000000e+00, double 0.000000e+00
  br label %88

80:                                               ; preds = %74
  %81 = fsub double %.197, %47
  %82 = fdiv double %81, %.292
  %83 = add nsw i64 %48, -2
  %84 = tail call noundef double @_ZN11alglib_impl20studenttdistributionEldPNS_8ae_stateE(i64 noundef %83, double noundef %82, ptr noundef %7)
  %85 = fsub double 1.000000e+00, %84
  %86 = tail call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %84, double noundef %85, ptr noundef %7)
  %87 = fmul double %86, 2.000000e+00
  store double %87, ptr %4, align 8, !tbaa !5
  store double %84, ptr %5, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %80, %76, %11
  %.sink = phi double [ %85, %80 ], [ %storemerge108, %76 ], [ 1.000000e+00, %11 ]
  store double %.sink, ptr %6, align 8, !tbaa !5
  ret void
}

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

declare noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double 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_less_eqEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

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

attributes #0 = { 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 #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" }

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass