; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z9testhqrndbPN11alglib_impl8ae_stateE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

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

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

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testhqrndbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #4 {
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.alglib_impl::ae_frame", align 8
  %6 = alloca i8, align 1
  %7 = alloca i64, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", 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 i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca double, align 8
  %30 = alloca i8, align 1
  %31 = alloca double, align 8
  %32 = alloca i8, align 1
  %33 = alloca double, align 8
  %34 = alloca i8, align 1
  %35 = alloca i8, align 1
  %36 = alloca double, align 8
  %37 = alloca i8, align 1
  %38 = alloca i8, align 1
  %39 = alloca %"struct.alglib_impl::hqrndstate", align 8
  %40 = alloca i8, align 1
  %41 = zext i1 %0 to i8
  store i8 %41, ptr %3, align 1, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #6
  %42 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %42, ptr noundef %5)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 24, i1 false)
  %43 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %20, i64 noundef 0, i64 noundef 3, ptr noundef %43, i1 noundef zeroext true)
  %44 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %21, i64 noundef 0, i64 noundef 2, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef %39, ptr noundef %45, i1 noundef zeroext true)
  store i8 0, ptr %6, align 1, !tbaa !5
  store double 7.000000e+00, ptr %8, align 8, !tbaa !11
  store i64 100000, ptr %7, align 8, !tbaa !13
  store i64 50, ptr %9, align 8, !tbaa !13
  store i8 0, ptr %27, align 1, !tbaa !5
  store i8 0, ptr %28, align 1, !tbaa !5
  store i8 0, ptr %30, align 1, !tbaa !5
  store i8 0, ptr %32, align 1, !tbaa !5
  store i8 0, ptr %35, align 1, !tbaa !5
  store i8 0, ptr %34, align 1, !tbaa !5
  %46 = load i64, ptr %7, align 8, !tbaa !13
  %47 = sub nsw i64 %46, 1
  %48 = add nsw i64 %47, 1
  %49 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %48, ptr noundef %49)
  store i64 1, ptr %13, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %103, %2
  %51 = load i64, ptr %13, align 8, !tbaa !13
  %52 = load i64, ptr %9, align 8, !tbaa !13
  %53 = icmp sle i64 %51, %52
  br i1 %53, label %54, label %106

54:                                               ; preds = %50
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  %56 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 32000, ptr noundef %55)
  %57 = add nsw i64 1, %56
  store i64 %57, ptr %14, align 8, !tbaa !13
  %58 = load ptr, ptr %4, align 8, !tbaa !9
  %59 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 32000, ptr noundef %58)
  %60 = add nsw i64 1, %59
  store i64 %60, ptr %15, align 8, !tbaa !13
  %61 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %61)
  %62 = load i64, ptr %14, align 8, !tbaa !13
  %63 = load i64, ptr %15, align 8, !tbaa !13
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %62, i64 noundef %63, ptr noundef %39, ptr noundef %64)
  %65 = load ptr, ptr %4, align 8, !tbaa !9
  %66 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %39, i64 noundef 100, ptr noundef %65)
  store i64 %66, ptr %16, align 8, !tbaa !13
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %67)
  %68 = load i64, ptr %14, align 8, !tbaa !13
  %69 = load i64, ptr %15, align 8, !tbaa !13
  %70 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %68, i64 noundef %69, ptr noundef %39, ptr noundef %70)
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  %72 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %39, i64 noundef 100, ptr noundef %71)
  store i64 %72, ptr %17, align 8, !tbaa !13
  %73 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %74 = trunc i8 %73 to i1
  br i1 %74, label %79, label %75

75:                                               ; preds = %54
  %76 = load i64, ptr %16, align 8, !tbaa !13
  %77 = load i64, ptr %17, align 8, !tbaa !13
  %78 = icmp ne i64 %76, %77
  br label %79

79:                                               ; preds = %75, %54
  %80 = phi i1 [ true, %54 ], [ %78, %75 ]
  %81 = zext i1 %80 to i8
  store i8 %81, ptr %27, align 1, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %82)
  %83 = load i64, ptr %14, align 8, !tbaa !13
  %84 = load i64, ptr %15, align 8, !tbaa !13
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %83, i64 noundef %84, ptr noundef %39, ptr noundef %85)
  %86 = load ptr, ptr %4, align 8, !tbaa !9
  %87 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %86)
  store double %87, ptr %18, align 8, !tbaa !11
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %88)
  %89 = load i64, ptr %14, align 8, !tbaa !13
  %90 = load i64, ptr %15, align 8, !tbaa !13
  %91 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %89, i64 noundef %90, ptr noundef %39, ptr noundef %91)
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %92)
  store double %93, ptr %19, align 8, !tbaa !11
  %94 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %95 = trunc i8 %94 to i1
  br i1 %95, label %100, label %96

96:                                               ; preds = %79
  %97 = load double, ptr %18, align 8, !tbaa !11
  %98 = load double, ptr %19, align 8, !tbaa !11
  %99 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %97, double noundef %98)
  br label %100

100:                                              ; preds = %96, %79
  %101 = phi i1 [ true, %79 ], [ %99, %96 ]
  %102 = zext i1 %101 to i8
  store i8 %102, ptr %27, align 1, !tbaa !5
  br label %103

103:                                              ; preds = %100
  %104 = load i64, ptr %13, align 8, !tbaa !13
  %105 = add nsw i64 %104, 1
  store i64 %105, ptr %13, align 8, !tbaa !13
  br label %50, !llvm.loop !17

106:                                              ; preds = %50
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %107)
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %108)
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %109

109:                                              ; preds = %121, %106
  %110 = load i64, ptr %11, align 8, !tbaa !13
  %111 = load i64, ptr %7, align 8, !tbaa !13
  %112 = sub nsw i64 %111, 1
  %113 = icmp sle i64 %110, %112
  br i1 %113, label %114, label %124

114:                                              ; preds = %109
  %115 = load ptr, ptr %4, align 8, !tbaa !9
  %116 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %115)
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !19
  %119 = load i64, ptr %11, align 8, !tbaa !13
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  store double %116, ptr %120, align 8, !tbaa !11
  br label %121

121:                                              ; preds = %114
  %122 = load i64, ptr %11, align 8, !tbaa !13
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %11, align 8, !tbaa !13
  br label %109, !llvm.loop !20

124:                                              ; preds = %109
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %125

125:                                              ; preds = %150, %124
  %126 = load i64, ptr %11, align 8, !tbaa !13
  %127 = load i64, ptr %7, align 8, !tbaa !13
  %128 = sub nsw i64 %127, 1
  %129 = icmp sle i64 %126, %128
  br i1 %129, label %130, label %153

130:                                              ; preds = %125
  %131 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %132 = trunc i8 %131 to i1
  br i1 %132, label %147, label %133

133:                                              ; preds = %130
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !19
  %136 = load i64, ptr %11, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %138, double noundef 0.000000e+00)
  br i1 %139, label %147, label %140

140:                                              ; preds = %133
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !19
  %143 = load i64, ptr %11, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !11
  %146 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %145, double noundef 1.000000e+00)
  br label %147

147:                                              ; preds = %140, %133, %130
  %148 = phi i1 [ true, %133 ], [ true, %130 ], [ %146, %140 ]
  %149 = zext i1 %148 to i8
  store i8 %149, ptr %28, align 1, !tbaa !5
  br label %150

150:                                              ; preds = %147
  %151 = load i64, ptr %11, align 8, !tbaa !13
  %152 = add nsw i64 %151, 1
  store i64 %152, ptr %11, align 8, !tbaa !13
  br label %125, !llvm.loop !21

153:                                              ; preds = %125
  %154 = load i64, ptr %7, align 8, !tbaa !13
  %155 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %20, i64 noundef %154, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %155)
  %156 = load double, ptr %23, align 8, !tbaa !11
  %157 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %156, double noundef 0.000000e+00)
  br i1 %157, label %158, label %168

158:                                              ; preds = %153
  %159 = load double, ptr %29, align 8, !tbaa !11
  %160 = load double, ptr %22, align 8, !tbaa !11
  %161 = fsub double %160, 5.000000e-01
  %162 = load double, ptr %23, align 8, !tbaa !11
  %163 = fdiv double %161, %162
  %164 = load ptr, ptr %4, align 8, !tbaa !9
  %165 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %163, ptr noundef %164)
  %166 = load ptr, ptr %4, align 8, !tbaa !9
  %167 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %159, double noundef %165, ptr noundef %166)
  store double %167, ptr %29, align 8, !tbaa !11
  br label %169

168:                                              ; preds = %153
  store i8 1, ptr %28, align 1, !tbaa !5
  br label %169

169:                                              ; preds = %168, %158
  %170 = load double, ptr %25, align 8, !tbaa !11
  %171 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %170, double noundef 0.000000e+00)
  br i1 %171, label %172, label %184

172:                                              ; preds = %169
  %173 = load double, ptr %29, align 8, !tbaa !11
  %174 = load double, ptr %24, align 8, !tbaa !11
  %175 = load ptr, ptr %4, align 8, !tbaa !9
  %176 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 0x3FB5555555555555, ptr noundef %175)
  %177 = fsub double %174, %176
  %178 = load double, ptr %25, align 8, !tbaa !11
  %179 = fdiv double %177, %178
  %180 = load ptr, ptr %4, align 8, !tbaa !9
  %181 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %179, ptr noundef %180)
  %182 = load ptr, ptr %4, align 8, !tbaa !9
  %183 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %173, double noundef %181, ptr noundef %182)
  store double %183, ptr %29, align 8, !tbaa !11
  br label %185

184:                                              ; preds = %169
  store i8 1, ptr %28, align 1, !tbaa !5
  br label %185

185:                                              ; preds = %184, %172
  %186 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %187 = trunc i8 %186 to i1
  br i1 %187, label %192, label %188

188:                                              ; preds = %185
  %189 = load double, ptr %29, align 8, !tbaa !11
  %190 = load double, ptr %8, align 8, !tbaa !11
  %191 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %189, double noundef %190)
  br label %192

192:                                              ; preds = %188, %185
  %193 = phi i1 [ true, %185 ], [ %191, %188 ]
  %194 = zext i1 %193 to i8
  store i8 %194, ptr %28, align 1, !tbaa !5
  %195 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %195)
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %196)
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  store i64 2, ptr %10, align 8, !tbaa !13
  br label %197

197:                                              ; preds = %291, %192
  %198 = load i64, ptr %10, align 8, !tbaa !13
  %199 = icmp sle i64 %198, 10
  br i1 %199, label %200, label %294

200:                                              ; preds = %197
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %201

201:                                              ; preds = %215, %200
  %202 = load i64, ptr %11, align 8, !tbaa !13
  %203 = load i64, ptr %7, align 8, !tbaa !13
  %204 = sub nsw i64 %203, 1
  %205 = icmp sle i64 %202, %204
  br i1 %205, label %206, label %218

206:                                              ; preds = %201
  %207 = load i64, ptr %10, align 8, !tbaa !13
  %208 = load ptr, ptr %4, align 8, !tbaa !9
  %209 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %39, i64 noundef %207, ptr noundef %208)
  %210 = sitofp i64 %209 to double
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !19
  %213 = load i64, ptr %11, align 8, !tbaa !13
  %214 = getelementptr inbounds double, ptr %212, i64 %213
  store double %210, ptr %214, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %206
  %216 = load i64, ptr %11, align 8, !tbaa !13
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %11, align 8, !tbaa !13
  br label %201, !llvm.loop !22

218:                                              ; preds = %201
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %219

219:                                              ; preds = %246, %218
  %220 = load i64, ptr %11, align 8, !tbaa !13
  %221 = load i64, ptr %7, align 8, !tbaa !13
  %222 = sub nsw i64 %221, 1
  %223 = icmp sle i64 %220, %222
  br i1 %223, label %224, label %249

224:                                              ; preds = %219
  %225 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %226 = trunc i8 %225 to i1
  br i1 %226, label %243, label %227

227:                                              ; preds = %224
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !19
  %230 = load i64, ptr %11, align 8, !tbaa !13
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %232, double noundef 0.000000e+00)
  br i1 %233, label %243, label %234

234:                                              ; preds = %227
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !19
  %237 = load i64, ptr %11, align 8, !tbaa !13
  %238 = getelementptr inbounds double, ptr %236, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !11
  %240 = load i64, ptr %10, align 8, !tbaa !13
  %241 = sitofp i64 %240 to double
  %242 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %239, double noundef %241)
  br label %243

243:                                              ; preds = %234, %227, %224
  %244 = phi i1 [ true, %227 ], [ true, %224 ], [ %242, %234 ]
  %245 = zext i1 %244 to i8
  store i8 %245, ptr %30, align 1, !tbaa !5
  br label %246

246:                                              ; preds = %243
  %247 = load i64, ptr %11, align 8, !tbaa !13
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %11, align 8, !tbaa !13
  br label %219, !llvm.loop !23

249:                                              ; preds = %219
  %250 = load i64, ptr %7, align 8, !tbaa !13
  %251 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %20, i64 noundef %250, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %251)
  %252 = load double, ptr %23, align 8, !tbaa !11
  %253 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %252, double noundef 0.000000e+00)
  br i1 %253, label %254, label %267

254:                                              ; preds = %249
  %255 = load double, ptr %31, align 8, !tbaa !11
  %256 = load double, ptr %22, align 8, !tbaa !11
  %257 = load i64, ptr %10, align 8, !tbaa !13
  %258 = sub nsw i64 %257, 1
  %259 = sitofp i64 %258 to double
  %260 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %259, double %256)
  %261 = load double, ptr %23, align 8, !tbaa !11
  %262 = fdiv double %260, %261
  %263 = load ptr, ptr %4, align 8, !tbaa !9
  %264 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %262, ptr noundef %263)
  %265 = load ptr, ptr %4, align 8, !tbaa !9
  %266 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %255, double noundef %264, ptr noundef %265)
  store double %266, ptr %31, align 8, !tbaa !11
  br label %268

267:                                              ; preds = %249
  store i8 1, ptr %30, align 1, !tbaa !5
  br label %268

268:                                              ; preds = %267, %254
  %269 = load double, ptr %25, align 8, !tbaa !11
  %270 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %269, double noundef 0.000000e+00)
  br i1 %270, label %271, label %289

271:                                              ; preds = %268
  %272 = load double, ptr %31, align 8, !tbaa !11
  %273 = load double, ptr %24, align 8, !tbaa !11
  %274 = load i64, ptr %10, align 8, !tbaa !13
  %275 = sitofp i64 %274 to double
  %276 = load ptr, ptr %4, align 8, !tbaa !9
  %277 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %275, ptr noundef %276)
  %278 = fsub double %277, 1.000000e+00
  %279 = fdiv double %278, 1.200000e+01
  %280 = load ptr, ptr %4, align 8, !tbaa !9
  %281 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %279, ptr noundef %280)
  %282 = fsub double %273, %281
  %283 = load double, ptr %25, align 8, !tbaa !11
  %284 = fdiv double %282, %283
  %285 = load ptr, ptr %4, align 8, !tbaa !9
  %286 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %284, ptr noundef %285)
  %287 = load ptr, ptr %4, align 8, !tbaa !9
  %288 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %272, double noundef %286, ptr noundef %287)
  store double %288, ptr %31, align 8, !tbaa !11
  br label %290

289:                                              ; preds = %268
  store i8 1, ptr %30, align 1, !tbaa !5
  br label %290

290:                                              ; preds = %289, %271
  br label %291

291:                                              ; preds = %290
  %292 = load i64, ptr %10, align 8, !tbaa !13
  %293 = add nsw i64 %292, 1
  store i64 %293, ptr %10, align 8, !tbaa !13
  br label %197, !llvm.loop !24

294:                                              ; preds = %197
  %295 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %296 = trunc i8 %295 to i1
  br i1 %296, label %301, label %297

297:                                              ; preds = %294
  %298 = load double, ptr %31, align 8, !tbaa !11
  %299 = load double, ptr %8, align 8, !tbaa !11
  %300 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %298, double noundef %299)
  br label %301

301:                                              ; preds = %297, %294
  %302 = phi i1 [ true, %294 ], [ %300, %297 ]
  %303 = zext i1 %302 to i8
  store i8 %303, ptr %30, align 1, !tbaa !5
  %304 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %304)
  %305 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %305)
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  store i64 1431655708, ptr %10, align 8, !tbaa !13
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %306

306:                                              ; preds = %320, %301
  %307 = load i64, ptr %11, align 8, !tbaa !13
  %308 = load i64, ptr %7, align 8, !tbaa !13
  %309 = sub nsw i64 %308, 1
  %310 = icmp sle i64 %307, %309
  br i1 %310, label %311, label %323

311:                                              ; preds = %306
  %312 = load i64, ptr %10, align 8, !tbaa !13
  %313 = load ptr, ptr %4, align 8, !tbaa !9
  %314 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef %39, i64 noundef %312, ptr noundef %313)
  %315 = sitofp i64 %314 to double
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %317 = load ptr, ptr %316, align 8, !tbaa !19
  %318 = load i64, ptr %11, align 8, !tbaa !13
  %319 = getelementptr inbounds double, ptr %317, i64 %318
  store double %315, ptr %319, align 8, !tbaa !11
  br label %320

320:                                              ; preds = %311
  %321 = load i64, ptr %11, align 8, !tbaa !13
  %322 = add nsw i64 %321, 1
  store i64 %322, ptr %11, align 8, !tbaa !13
  br label %306, !llvm.loop !25

323:                                              ; preds = %306
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %324

324:                                              ; preds = %351, %323
  %325 = load i64, ptr %11, align 8, !tbaa !13
  %326 = load i64, ptr %7, align 8, !tbaa !13
  %327 = sub nsw i64 %326, 1
  %328 = icmp sle i64 %325, %327
  br i1 %328, label %329, label %354

329:                                              ; preds = %324
  %330 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %331 = trunc i8 %330 to i1
  br i1 %331, label %348, label %332

332:                                              ; preds = %329
  %333 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %334 = load ptr, ptr %333, align 8, !tbaa !19
  %335 = load i64, ptr %11, align 8, !tbaa !13
  %336 = getelementptr inbounds double, ptr %334, i64 %335
  %337 = load double, ptr %336, align 8, !tbaa !11
  %338 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %337, double noundef 0.000000e+00)
  br i1 %338, label %348, label %339

339:                                              ; preds = %332
  %340 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %341 = load ptr, ptr %340, align 8, !tbaa !19
  %342 = load i64, ptr %11, align 8, !tbaa !13
  %343 = getelementptr inbounds double, ptr %341, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !11
  %345 = load i64, ptr %10, align 8, !tbaa !13
  %346 = sitofp i64 %345 to double
  %347 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %344, double noundef %346)
  br label %348

348:                                              ; preds = %339, %332, %329
  %349 = phi i1 [ true, %332 ], [ true, %329 ], [ %347, %339 ]
  %350 = zext i1 %349 to i8
  store i8 %350, ptr %30, align 1, !tbaa !5
  br label %351

351:                                              ; preds = %348
  %352 = load i64, ptr %11, align 8, !tbaa !13
  %353 = add nsw i64 %352, 1
  store i64 %353, ptr %11, align 8, !tbaa !13
  br label %324, !llvm.loop !26

354:                                              ; preds = %324
  %355 = load i64, ptr %7, align 8, !tbaa !13
  %356 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %20, i64 noundef %355, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %356)
  %357 = load double, ptr %23, align 8, !tbaa !11
  %358 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %357, double noundef 0.000000e+00)
  br i1 %358, label %359, label %372

359:                                              ; preds = %354
  %360 = load double, ptr %31, align 8, !tbaa !11
  %361 = load double, ptr %22, align 8, !tbaa !11
  %362 = load i64, ptr %10, align 8, !tbaa !13
  %363 = sub nsw i64 %362, 1
  %364 = sitofp i64 %363 to double
  %365 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %364, double %361)
  %366 = load double, ptr %23, align 8, !tbaa !11
  %367 = fdiv double %365, %366
  %368 = load ptr, ptr %4, align 8, !tbaa !9
  %369 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %367, ptr noundef %368)
  %370 = load ptr, ptr %4, align 8, !tbaa !9
  %371 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %360, double noundef %369, ptr noundef %370)
  store double %371, ptr %31, align 8, !tbaa !11
  br label %373

372:                                              ; preds = %354
  store i8 1, ptr %30, align 1, !tbaa !5
  br label %373

373:                                              ; preds = %372, %359
  %374 = load double, ptr %25, align 8, !tbaa !11
  %375 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %374, double noundef 0.000000e+00)
  br i1 %375, label %376, label %394

376:                                              ; preds = %373
  %377 = load double, ptr %31, align 8, !tbaa !11
  %378 = load double, ptr %24, align 8, !tbaa !11
  %379 = load i64, ptr %10, align 8, !tbaa !13
  %380 = sitofp i64 %379 to double
  %381 = load ptr, ptr %4, align 8, !tbaa !9
  %382 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %380, ptr noundef %381)
  %383 = fsub double %382, 1.000000e+00
  %384 = fdiv double %383, 1.200000e+01
  %385 = load ptr, ptr %4, align 8, !tbaa !9
  %386 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %384, ptr noundef %385)
  %387 = fsub double %378, %386
  %388 = load double, ptr %25, align 8, !tbaa !11
  %389 = fdiv double %387, %388
  %390 = load ptr, ptr %4, align 8, !tbaa !9
  %391 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %389, ptr noundef %390)
  %392 = load ptr, ptr %4, align 8, !tbaa !9
  %393 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %377, double noundef %391, ptr noundef %392)
  store double %393, ptr %31, align 8, !tbaa !11
  br label %395

394:                                              ; preds = %373
  store i8 1, ptr %30, align 1, !tbaa !5
  br label %395

395:                                              ; preds = %394, %376
  %396 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %397 = trunc i8 %396 to i1
  br i1 %397, label %402, label %398

398:                                              ; preds = %395
  %399 = load double, ptr %31, align 8, !tbaa !11
  %400 = load double, ptr %8, align 8, !tbaa !11
  %401 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %399, double noundef %400)
  br label %402

402:                                              ; preds = %398, %395
  %403 = phi i1 [ true, %395 ], [ %401, %398 ]
  %404 = zext i1 %403 to i8
  store i8 %404, ptr %30, align 1, !tbaa !5
  %405 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %405)
  %406 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %406)
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %407

407:                                              ; preds = %429, %402
  %408 = load i64, ptr %11, align 8, !tbaa !13
  %409 = load i64, ptr %7, align 8, !tbaa !13
  %410 = icmp slt i64 %408, %409
  br i1 %410, label %411, label %432

411:                                              ; preds = %407
  %412 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl12hqrndnormal2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef %39, ptr noundef %18, ptr noundef %19, ptr noundef %412)
  %413 = load double, ptr %18, align 8, !tbaa !11
  %414 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %415 = load ptr, ptr %414, align 8, !tbaa !19
  %416 = load i64, ptr %11, align 8, !tbaa !13
  %417 = getelementptr inbounds double, ptr %415, i64 %416
  store double %413, ptr %417, align 8, !tbaa !11
  %418 = load i64, ptr %11, align 8, !tbaa !13
  %419 = add nsw i64 %418, 1
  %420 = load i64, ptr %7, align 8, !tbaa !13
  %421 = icmp slt i64 %419, %420
  br i1 %421, label %422, label %429

422:                                              ; preds = %411
  %423 = load double, ptr %19, align 8, !tbaa !11
  %424 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %425 = load ptr, ptr %424, align 8, !tbaa !19
  %426 = load i64, ptr %11, align 8, !tbaa !13
  %427 = add nsw i64 %426, 1
  %428 = getelementptr inbounds double, ptr %425, i64 %427
  store double %423, ptr %428, align 8, !tbaa !11
  br label %429

429:                                              ; preds = %422, %411
  %430 = load i64, ptr %11, align 8, !tbaa !13
  %431 = add nsw i64 %430, 2
  store i64 %431, ptr %11, align 8, !tbaa !13
  br label %407, !llvm.loop !27

432:                                              ; preds = %407
  %433 = load i64, ptr %7, align 8, !tbaa !13
  %434 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %20, i64 noundef %433, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %434)
  %435 = load double, ptr %23, align 8, !tbaa !11
  %436 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %435, double noundef 0.000000e+00)
  br i1 %436, label %437, label %447

437:                                              ; preds = %432
  %438 = load double, ptr %33, align 8, !tbaa !11
  %439 = load double, ptr %22, align 8, !tbaa !11
  %440 = fsub double %439, 0.000000e+00
  %441 = load double, ptr %23, align 8, !tbaa !11
  %442 = fdiv double %440, %441
  %443 = load ptr, ptr %4, align 8, !tbaa !9
  %444 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %442, ptr noundef %443)
  %445 = load ptr, ptr %4, align 8, !tbaa !9
  %446 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %438, double noundef %444, ptr noundef %445)
  store double %446, ptr %33, align 8, !tbaa !11
  br label %448

447:                                              ; preds = %432
  store i8 1, ptr %32, align 1, !tbaa !5
  br label %448

448:                                              ; preds = %447, %437
  %449 = load double, ptr %25, align 8, !tbaa !11
  %450 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %449, double noundef 0.000000e+00)
  br i1 %450, label %451, label %461

451:                                              ; preds = %448
  %452 = load double, ptr %33, align 8, !tbaa !11
  %453 = load double, ptr %24, align 8, !tbaa !11
  %454 = fsub double %453, 1.000000e+00
  %455 = load double, ptr %25, align 8, !tbaa !11
  %456 = fdiv double %454, %455
  %457 = load ptr, ptr %4, align 8, !tbaa !9
  %458 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %456, ptr noundef %457)
  %459 = load ptr, ptr %4, align 8, !tbaa !9
  %460 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %452, double noundef %458, ptr noundef %459)
  store double %460, ptr %33, align 8, !tbaa !11
  br label %462

461:                                              ; preds = %448
  store i8 1, ptr %32, align 1, !tbaa !5
  br label %462

462:                                              ; preds = %461, %451
  %463 = load i8, ptr %32, align 1, !tbaa !5, !range !15, !noundef !16
  %464 = trunc i8 %463 to i1
  br i1 %464, label %469, label %465

465:                                              ; preds = %462
  %466 = load double, ptr %33, align 8, !tbaa !11
  %467 = load double, ptr %8, align 8, !tbaa !11
  %468 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %466, double noundef %467)
  br label %469

469:                                              ; preds = %465, %462
  %470 = phi i1 [ true, %462 ], [ %468, %465 ]
  %471 = zext i1 %470 to i8
  store i8 %471, ptr %32, align 1, !tbaa !5
  %472 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %472)
  %473 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %473)
  store i64 1000000, ptr %10, align 8, !tbaa !13
  %474 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef 10, ptr noundef %474)
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %475

475:                                              ; preds = %486, %469
  %476 = load i64, ptr %11, align 8, !tbaa !13
  %477 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %478 = load i64, ptr %477, align 8, !tbaa !28
  %479 = sub nsw i64 %478, 1
  %480 = icmp sle i64 %476, %479
  br i1 %480, label %481, label %489

481:                                              ; preds = %475
  %482 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !19
  %484 = load i64, ptr %11, align 8, !tbaa !13
  %485 = getelementptr inbounds i64, ptr %483, i64 %484
  store i64 0, ptr %485, align 8, !tbaa !13
  br label %486

486:                                              ; preds = %481
  %487 = load i64, ptr %11, align 8, !tbaa !13
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %11, align 8, !tbaa !13
  br label %475, !llvm.loop !31

489:                                              ; preds = %475
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %490

490:                                              ; preds = %542, %489
  %491 = load i64, ptr %13, align 8, !tbaa !13
  %492 = load i64, ptr %10, align 8, !tbaa !13
  %493 = sub nsw i64 %492, 1
  %494 = icmp sle i64 %491, %493
  br i1 %494, label %495, label %545

495:                                              ; preds = %490
  %496 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl10hqrndunit2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef %39, ptr noundef %18, ptr noundef %19, ptr noundef %496)
  %497 = load double, ptr %18, align 8, !tbaa !11
  %498 = load double, ptr %18, align 8, !tbaa !11
  %499 = load double, ptr %19, align 8, !tbaa !11
  %500 = load double, ptr %19, align 8, !tbaa !11
  %501 = fmul double %499, %500
  %502 = call double @llvm.fmuladd.f64(double %497, double %498, double %501)
  %503 = fsub double %502, 1.000000e+00
  %504 = load ptr, ptr %4, align 8, !tbaa !9
  %505 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %503, ptr noundef %504)
  %506 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %505, double noundef 5.000000e-14)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %34, i1 noundef zeroext %506, ptr noundef @.str.8, i32 noundef 3636, ptr noundef @.str.9)
  %507 = load double, ptr %18, align 8, !tbaa !11
  %508 = load double, ptr %19, align 8, !tbaa !11
  %509 = load ptr, ptr %4, align 8, !tbaa !9
  %510 = call noundef double @_ZN11alglib_impl8ae_atan2EddPNS_8ae_stateE(double noundef %507, double noundef %508, ptr noundef %509)
  %511 = fadd double %510, 0x400921FB54442D18
  %512 = fdiv double %511, 0x401921FB54442D18
  %513 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %514 = load i64, ptr %513, align 8, !tbaa !28
  %515 = sitofp i64 %514 to double
  %516 = fmul double %512, %515
  %517 = load ptr, ptr %4, align 8, !tbaa !9
  %518 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %516, ptr noundef %517)
  store i64 %518, ptr %12, align 8, !tbaa !13
  %519 = load i64, ptr %12, align 8, !tbaa !13
  %520 = icmp slt i64 %519, 0
  br i1 %520, label %521, label %522

521:                                              ; preds = %495
  store i64 0, ptr %12, align 8, !tbaa !13
  br label %522

522:                                              ; preds = %521, %495
  %523 = load i64, ptr %12, align 8, !tbaa !13
  %524 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %525 = load i64, ptr %524, align 8, !tbaa !28
  %526 = icmp sge i64 %523, %525
  br i1 %526, label %527, label %531

527:                                              ; preds = %522
  %528 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %529 = load i64, ptr %528, align 8, !tbaa !28
  %530 = sub nsw i64 %529, 1
  store i64 %530, ptr %12, align 8, !tbaa !13
  br label %531

531:                                              ; preds = %527, %522
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !19
  %534 = load i64, ptr %12, align 8, !tbaa !13
  %535 = getelementptr inbounds i64, ptr %533, i64 %534
  %536 = load i64, ptr %535, align 8, !tbaa !13
  %537 = add nsw i64 %536, 1
  %538 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %539 = load ptr, ptr %538, align 8, !tbaa !19
  %540 = load i64, ptr %12, align 8, !tbaa !13
  %541 = getelementptr inbounds i64, ptr %539, i64 %540
  store i64 %537, ptr %541, align 8, !tbaa !13
  br label %542

542:                                              ; preds = %531
  %543 = load i64, ptr %13, align 8, !tbaa !13
  %544 = add nsw i64 %543, 1
  store i64 %544, ptr %13, align 8, !tbaa !13
  br label %490, !llvm.loop !32

545:                                              ; preds = %490
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %546

546:                                              ; preds = %584, %545
  %547 = load i64, ptr %11, align 8, !tbaa !13
  %548 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %549 = load i64, ptr %548, align 8, !tbaa !28
  %550 = sub nsw i64 %549, 1
  %551 = icmp sle i64 %547, %550
  br i1 %551, label %552, label %587

552:                                              ; preds = %546
  %553 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %554 = load ptr, ptr %553, align 8, !tbaa !19
  %555 = load i64, ptr %11, align 8, !tbaa !13
  %556 = getelementptr inbounds i64, ptr %554, i64 %555
  %557 = load i64, ptr %556, align 8, !tbaa !13
  %558 = sitofp i64 %557 to double
  %559 = load i64, ptr %10, align 8, !tbaa !13
  %560 = sitofp i64 %559 to double
  %561 = fmul double 9.000000e-01, %560
  %562 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %563 = load i64, ptr %562, align 8, !tbaa !28
  %564 = sitofp i64 %563 to double
  %565 = fdiv double %561, %564
  %566 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %558, double noundef %565)
  br i1 %566, label %582, label %567

567:                                              ; preds = %552
  %568 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %569 = load ptr, ptr %568, align 8, !tbaa !19
  %570 = load i64, ptr %11, align 8, !tbaa !13
  %571 = getelementptr inbounds i64, ptr %569, i64 %570
  %572 = load i64, ptr %571, align 8, !tbaa !13
  %573 = sitofp i64 %572 to double
  %574 = load i64, ptr %10, align 8, !tbaa !13
  %575 = sitofp i64 %574 to double
  %576 = fmul double 1.100000e+00, %575
  %577 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %578 = load i64, ptr %577, align 8, !tbaa !28
  %579 = sitofp i64 %578 to double
  %580 = fdiv double %576, %579
  %581 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %573, double noundef %580)
  br label %582

582:                                              ; preds = %567, %552
  %583 = phi i1 [ true, %552 ], [ %581, %567 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef %34, i1 noundef zeroext %583, ptr noundef @.str.8, i32 noundef 3650, ptr noundef @.str.10)
  br label %584

584:                                              ; preds = %582
  %585 = load i64, ptr %11, align 8, !tbaa !13
  %586 = add nsw i64 %585, 1
  store i64 %586, ptr %11, align 8, !tbaa !13
  br label %546, !llvm.loop !33

587:                                              ; preds = %546
  %588 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %588)
  %589 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %39, ptr noundef %589)
  store double 0.000000e+00, ptr %36, align 8, !tbaa !11
  %590 = load ptr, ptr %4, align 8, !tbaa !9
  %591 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %590)
  %592 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %591, double 2.000000e+00)
  store double %592, ptr %26, align 8, !tbaa !11
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %593

593:                                              ; preds = %606, %587
  %594 = load i64, ptr %11, align 8, !tbaa !13
  %595 = load i64, ptr %7, align 8, !tbaa !13
  %596 = sub nsw i64 %595, 1
  %597 = icmp sle i64 %594, %596
  br i1 %597, label %598, label %609

598:                                              ; preds = %593
  %599 = load double, ptr %26, align 8, !tbaa !11
  %600 = load ptr, ptr %4, align 8, !tbaa !9
  %601 = call noundef double @_ZN11alglib_impl16hqrndexponentialEPNS_10hqrndstateEdPNS_8ae_stateE(ptr noundef %39, double noundef %599, ptr noundef %600)
  %602 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %603 = load ptr, ptr %602, align 8, !tbaa !19
  %604 = load i64, ptr %11, align 8, !tbaa !13
  %605 = getelementptr inbounds double, ptr %603, i64 %604
  store double %601, ptr %605, align 8, !tbaa !11
  br label %606

606:                                              ; preds = %598
  %607 = load i64, ptr %11, align 8, !tbaa !13
  %608 = add nsw i64 %607, 1
  store i64 %608, ptr %11, align 8, !tbaa !13
  br label %593, !llvm.loop !34

609:                                              ; preds = %593
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %610

610:                                              ; preds = %628, %609
  %611 = load i64, ptr %11, align 8, !tbaa !13
  %612 = load i64, ptr %7, align 8, !tbaa !13
  %613 = sub nsw i64 %612, 1
  %614 = icmp sle i64 %611, %613
  br i1 %614, label %615, label %631

615:                                              ; preds = %610
  %616 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %617 = trunc i8 %616 to i1
  br i1 %617, label %625, label %618

618:                                              ; preds = %615
  %619 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %620 = load ptr, ptr %619, align 8, !tbaa !19
  %621 = load i64, ptr %11, align 8, !tbaa !13
  %622 = getelementptr inbounds double, ptr %620, i64 %621
  %623 = load double, ptr %622, align 8, !tbaa !11
  %624 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %623, double noundef 0.000000e+00)
  br label %625

625:                                              ; preds = %618, %615
  %626 = phi i1 [ true, %615 ], [ %624, %618 ]
  %627 = zext i1 %626 to i8
  store i8 %627, ptr %30, align 1, !tbaa !5
  br label %628

628:                                              ; preds = %625
  %629 = load i64, ptr %11, align 8, !tbaa !13
  %630 = add nsw i64 %629, 1
  store i64 %630, ptr %11, align 8, !tbaa !13
  br label %610, !llvm.loop !35

631:                                              ; preds = %610
  %632 = load i64, ptr %7, align 8, !tbaa !13
  %633 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef %20, i64 noundef %632, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %633)
  %634 = load double, ptr %23, align 8, !tbaa !11
  %635 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %634, double noundef 0.000000e+00)
  br i1 %635, label %636, label %648

636:                                              ; preds = %631
  %637 = load double, ptr %36, align 8, !tbaa !11
  %638 = load double, ptr %22, align 8, !tbaa !11
  %639 = load double, ptr %26, align 8, !tbaa !11
  %640 = fdiv double 1.000000e+00, %639
  %641 = fsub double %638, %640
  %642 = load double, ptr %23, align 8, !tbaa !11
  %643 = fdiv double %641, %642
  %644 = load ptr, ptr %4, align 8, !tbaa !9
  %645 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %643, ptr noundef %644)
  %646 = load ptr, ptr %4, align 8, !tbaa !9
  %647 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %637, double noundef %645, ptr noundef %646)
  store double %647, ptr %36, align 8, !tbaa !11
  br label %649

648:                                              ; preds = %631
  store i8 1, ptr %35, align 1, !tbaa !5
  br label %649

649:                                              ; preds = %648, %636
  %650 = load double, ptr %25, align 8, !tbaa !11
  %651 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %650, double noundef 0.000000e+00)
  br i1 %651, label %652, label %664

652:                                              ; preds = %649
  %653 = load double, ptr %36, align 8, !tbaa !11
  %654 = load double, ptr %24, align 8, !tbaa !11
  %655 = load double, ptr %26, align 8, !tbaa !11
  %656 = fdiv double 1.000000e+00, %655
  %657 = fsub double %654, %656
  %658 = load double, ptr %25, align 8, !tbaa !11
  %659 = fdiv double %657, %658
  %660 = load ptr, ptr %4, align 8, !tbaa !9
  %661 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %659, ptr noundef %660)
  %662 = load ptr, ptr %4, align 8, !tbaa !9
  %663 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %653, double noundef %661, ptr noundef %662)
  store double %663, ptr %36, align 8, !tbaa !11
  br label %665

664:                                              ; preds = %649
  store i8 1, ptr %35, align 1, !tbaa !5
  br label %665

665:                                              ; preds = %664, %652
  %666 = load i8, ptr %35, align 1, !tbaa !5, !range !15, !noundef !16
  %667 = trunc i8 %666 to i1
  br i1 %667, label %672, label %668

668:                                              ; preds = %665
  %669 = load double, ptr %36, align 8, !tbaa !11
  %670 = load double, ptr %8, align 8, !tbaa !11
  %671 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %669, double noundef %670)
  br label %672

672:                                              ; preds = %668, %665
  %673 = phi i1 [ true, %665 ], [ %671, %668 ]
  %674 = zext i1 %673 to i8
  store i8 %674, ptr %35, align 1, !tbaa !5
  %675 = load ptr, ptr %4, align 8, !tbaa !9
  %676 = call noundef zeroext i1 @_Z17hqrnddiscretetestbPN11alglib_impl8ae_stateE(i1 noundef zeroext true, ptr noundef %675)
  %677 = zext i1 %676 to i8
  store i8 %677, ptr %37, align 1, !tbaa !5
  %678 = load ptr, ptr %4, align 8, !tbaa !9
  %679 = call noundef zeroext i1 @_Z19hqrndcontinuoustestbPN11alglib_impl8ae_stateE(i1 noundef zeroext true, ptr noundef %678)
  %680 = zext i1 %679 to i8
  store i8 %680, ptr %38, align 1, !tbaa !5
  %681 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %682 = trunc i8 %681 to i1
  br i1 %682, label %704, label %683

683:                                              ; preds = %672
  %684 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %685 = trunc i8 %684 to i1
  br i1 %685, label %704, label %686

686:                                              ; preds = %683
  %687 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %688 = trunc i8 %687 to i1
  br i1 %688, label %704, label %689

689:                                              ; preds = %686
  %690 = load i8, ptr %32, align 1, !tbaa !5, !range !15, !noundef !16
  %691 = trunc i8 %690 to i1
  br i1 %691, label %704, label %692

692:                                              ; preds = %689
  %693 = load i8, ptr %34, align 1, !tbaa !5, !range !15, !noundef !16
  %694 = trunc i8 %693 to i1
  br i1 %694, label %704, label %695

695:                                              ; preds = %692
  %696 = load i8, ptr %35, align 1, !tbaa !5, !range !15, !noundef !16
  %697 = trunc i8 %696 to i1
  br i1 %697, label %704, label %698

698:                                              ; preds = %695
  %699 = load i8, ptr %37, align 1, !tbaa !5, !range !15, !noundef !16
  %700 = trunc i8 %699 to i1
  br i1 %700, label %704, label %701

701:                                              ; preds = %698
  %702 = load i8, ptr %38, align 1, !tbaa !5, !range !15, !noundef !16
  %703 = trunc i8 %702 to i1
  br label %704

704:                                              ; preds = %701, %698, %695, %692, %689, %686, %683, %672
  %705 = phi i1 [ true, %698 ], [ true, %695 ], [ true, %692 ], [ true, %689 ], [ true, %686 ], [ true, %683 ], [ true, %672 ], [ %703, %701 ]
  %706 = zext i1 %705 to i8
  store i8 %706, ptr %6, align 1, !tbaa !5
  %707 = load i8, ptr %3, align 1, !tbaa !5, !range !15, !noundef !16
  %708 = trunc i8 %707 to i1
  br i1 %708, label %783, label %709

709:                                              ; preds = %704
  %710 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %711 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %712 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %713 = trunc i8 %712 to i1
  br i1 %713, label %716, label %714

714:                                              ; preds = %709
  %715 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %718

716:                                              ; preds = %709
  %717 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %718

718:                                              ; preds = %716, %714
  %719 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %720 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %721 = trunc i8 %720 to i1
  br i1 %721, label %724, label %722

722:                                              ; preds = %718
  %723 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %726

724:                                              ; preds = %718
  %725 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %726

726:                                              ; preds = %724, %722
  %727 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %728 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %729 = trunc i8 %728 to i1
  br i1 %729, label %732, label %730

730:                                              ; preds = %726
  %731 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %734

732:                                              ; preds = %726
  %733 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %734

734:                                              ; preds = %732, %730
  %735 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %736 = load i8, ptr %32, align 1, !tbaa !5, !range !15, !noundef !16
  %737 = trunc i8 %736 to i1
  br i1 %737, label %740, label %738

738:                                              ; preds = %734
  %739 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %742

740:                                              ; preds = %734
  %741 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %742

742:                                              ; preds = %740, %738
  %743 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %744 = load i8, ptr %34, align 1, !tbaa !5, !range !15, !noundef !16
  %745 = trunc i8 %744 to i1
  br i1 %745, label %748, label %746

746:                                              ; preds = %742
  %747 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %750

748:                                              ; preds = %742
  %749 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %750

750:                                              ; preds = %748, %746
  %751 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %752 = load i8, ptr %35, align 1, !tbaa !5, !range !15, !noundef !16
  %753 = trunc i8 %752 to i1
  br i1 %753, label %756, label %754

754:                                              ; preds = %750
  %755 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %758

756:                                              ; preds = %750
  %757 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %758

758:                                              ; preds = %756, %754
  %759 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %760 = load i8, ptr %37, align 1, !tbaa !5, !range !15, !noundef !16
  %761 = trunc i8 %760 to i1
  br i1 %761, label %764, label %762

762:                                              ; preds = %758
  %763 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %766

764:                                              ; preds = %758
  %765 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %766

766:                                              ; preds = %764, %762
  %767 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %768 = load i8, ptr %38, align 1, !tbaa !5, !range !15, !noundef !16
  %769 = trunc i8 %768 to i1
  br i1 %769, label %772, label %770

770:                                              ; preds = %766
  %771 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %774

772:                                              ; preds = %766
  %773 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %774

774:                                              ; preds = %772, %770
  %775 = load i8, ptr %6, align 1, !tbaa !5, !range !15, !noundef !16
  %776 = trunc i8 %775 to i1
  br i1 %776, label %777, label %779

777:                                              ; preds = %774
  %778 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %781

779:                                              ; preds = %774
  %780 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  br label %781

781:                                              ; preds = %779, %777
  %782 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %783

783:                                              ; preds = %781, %704
  %784 = load i8, ptr %6, align 1, !tbaa !5, !range !15, !noundef !16
  %785 = trunc i8 %784 to i1
  %786 = xor i1 %785, true
  %787 = zext i1 %786 to i8
  store i8 %787, ptr %40, align 1, !tbaa !5
  %788 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %788)
  %789 = load i8, ptr %40, align 1, !tbaa !5, !range !15, !noundef !16
  %790 = trunc i8 %789 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #6
  ret i1 %790
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) #5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z17hqrnddiscretetestbPN11alglib_impl8ae_stateE(i1 noundef zeroext, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z19hqrndcontinuoustestbPN11alglib_impl8ae_stateE(i1 noundef zeroext, ptr noundef) #4

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

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

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


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

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

@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z9testhqrndbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca %"struct.alglib_impl::ae_vector", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i8, align 1
  %13 = alloca %"struct.alglib_impl::hqrndstate", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  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(64) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %13, i8 0, i64 24, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl16_hqrndstate_initEPvPNS_8ae_stateEb(ptr noundef nonnull %13, ptr noundef %1, i1 noundef zeroext true)
  store i8 0, ptr %12, align 1, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef %1)
  br label %14

14:                                               ; preds = %2, %28
  %.0240271 = phi i1 [ false, %2 ], [ %29, %28 ]
  %.0242270 = phi i64 [ 1, %2 ], [ %30, %28 ]
  %15 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 32000, ptr noundef %1)
  %16 = add nsw i64 %15, 1
  %17 = call noundef i64 @_ZN11alglib_impl16ae_randomintegerElPNS_8ae_stateE(i64 noundef 32000, ptr noundef %1)
  %18 = add nsw i64 %17, 1
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %16, i64 noundef %18, ptr noundef nonnull %13, ptr noundef %1)
  %19 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 100, ptr noundef %1)
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %16, i64 noundef %18, ptr noundef nonnull %13, ptr noundef %1)
  %20 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 100, ptr noundef %1)
  %21 = icmp ne i64 %19, %20
  %22 = or i1 %.0240271, %21
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %16, i64 noundef %18, ptr noundef nonnull %13, ptr noundef %1)
  %23 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  store double %23, ptr %4, align 8, !tbaa !9
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl9hqrndseedEllPNS_10hqrndstateEPNS_8ae_stateE(i64 noundef %16, i64 noundef %18, ptr noundef nonnull %13, ptr noundef %1)
  %24 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  store double %24, ptr %5, align 8, !tbaa !9
  br i1 %22, label %28, label %25

25:                                               ; preds = %14
  %26 = load double, ptr %4, align 8, !tbaa !9
  %27 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %26, double noundef %24)
  br label %28

28:                                               ; preds = %25, %14
  %29 = phi i1 [ true, %14 ], [ %27, %25 ]
  %30 = add nuw nsw i64 %.0242270, 1
  %exitcond.not = icmp eq i64 %30, 51
  br i1 %exitcond.not, label %31, label %14, !llvm.loop !11

31:                                               ; preds = %28
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %32 = getelementptr inbounds i8, ptr %6, i64 56
  br label %33

33:                                               ; preds = %31, %33
  %.0213272 = phi i64 [ 0, %31 ], [ %37, %33 ]
  %34 = call noundef double @_ZN11alglib_impl13hqrnduniformrEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %35 = load ptr, ptr %32, align 8, !tbaa !13
  %36 = getelementptr inbounds double, ptr %35, i64 %.0213272
  store double %34, ptr %36, align 8, !tbaa !9
  %37 = add nuw nsw i64 %.0213272, 1
  %exitcond298.not = icmp eq i64 %37, 100000
  br i1 %exitcond298.not, label %.preheader269, label %33, !llvm.loop !14

.preheader269:                                    ; preds = %33, %48
  %.1274 = phi i64 [ %50, %48 ], [ 0, %33 ]
  %.0237273 = phi i1 [ %49, %48 ], [ false, %33 ]
  br i1 %.0237273, label %48, label %38

38:                                               ; preds = %.preheader269
  %39 = load ptr, ptr %32, align 8, !tbaa !13
  %40 = getelementptr inbounds double, ptr %39, i64 %.1274
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %41, double noundef 0.000000e+00)
  br i1 %42, label %48, label %43

43:                                               ; preds = %38
  %44 = load ptr, ptr %32, align 8, !tbaa !13
  %45 = getelementptr inbounds double, ptr %44, i64 %.1274
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %46, double noundef 1.000000e+00)
  br label %48

48:                                               ; preds = %43, %38, %.preheader269
  %49 = phi i1 [ true, %38 ], [ true, %.preheader269 ], [ %47, %43 ]
  %50 = add nuw nsw i64 %.1274, 1
  %exitcond299.not = icmp eq i64 %50, 100000
  br i1 %exitcond299.not, label %51, label %.preheader269, !llvm.loop !15

51:                                               ; preds = %48
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  %52 = load double, ptr %9, align 8, !tbaa !9
  %53 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %52, double noundef 0.000000e+00)
  br i1 %53, label %54, label %61

54:                                               ; preds = %51
  %55 = load double, ptr %8, align 8, !tbaa !9
  %56 = fadd double %55, -5.000000e-01
  %57 = load double, ptr %9, align 8, !tbaa !9
  %58 = fdiv double %56, %57
  %59 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %58, ptr noundef %1)
  %60 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %59, ptr noundef %1)
  br label %61

61:                                               ; preds = %51, %54
  %.1238 = phi i1 [ %49, %54 ], [ true, %51 ]
  %.0235 = phi double [ %60, %54 ], [ 0.000000e+00, %51 ]
  %62 = load double, ptr %11, align 8, !tbaa !9
  %63 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %62, double noundef 0.000000e+00)
  br i1 %63, label %64, label %.thread

64:                                               ; preds = %61
  %65 = load double, ptr %10, align 8, !tbaa !9
  %66 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef 0x3FB5555555555555, ptr noundef %1)
  %67 = fsub double %65, %66
  %68 = load double, ptr %11, align 8, !tbaa !9
  %69 = fdiv double %67, %68
  %70 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %69, ptr noundef %1)
  %71 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0235, double noundef %70, ptr noundef %1)
  br i1 %.1238, label %.thread, label %72

72:                                               ; preds = %64
  %73 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %71, double noundef 7.000000e+00)
  br label %.thread

.thread:                                          ; preds = %61, %72, %64
  %74 = phi i1 [ true, %64 ], [ %73, %72 ], [ true, %61 ]
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  br label %.preheader268

.preheader268:                                    ; preds = %.thread, %124
  %.0280 = phi i64 [ 2, %.thread ], [ %125, %124 ]
  %.0222279 = phi double [ 0.000000e+00, %.thread ], [ %.2224, %124 ]
  %.0227278 = phi i8 [ 0, %.thread ], [ %.3230, %124 ]
  br label %76

.preheader267:                                    ; preds = %76
  %75 = uitofp nneg i64 %.0280 to double
  br label %82

76:                                               ; preds = %.preheader268, %76
  %.2275 = phi i64 [ 0, %.preheader268 ], [ %81, %76 ]
  %77 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef %.0280, ptr noundef %1)
  %78 = sitofp i64 %77 to double
  %79 = load ptr, ptr %32, align 8, !tbaa !13
  %80 = getelementptr inbounds double, ptr %79, i64 %.2275
  store double %78, ptr %80, align 8, !tbaa !9
  %81 = add nuw nsw i64 %.2275, 1
  %exitcond300.not = icmp eq i64 %81, 100000
  br i1 %exitcond300.not, label %.preheader267, label %76, !llvm.loop !16

82:                                               ; preds = %.preheader267, %94
  %.3277 = phi i64 [ 0, %.preheader267 ], [ %97, %94 ]
  %.1228276 = phi i8 [ %.0227278, %.preheader267 ], [ %96, %94 ]
  %83 = trunc nuw i8 %.1228276 to i1
  br i1 %83, label %94, label %84

84:                                               ; preds = %82
  %85 = load ptr, ptr %32, align 8, !tbaa !13
  %86 = getelementptr inbounds double, ptr %85, i64 %.3277
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %87, double noundef 0.000000e+00)
  br i1 %88, label %94, label %89

89:                                               ; preds = %84
  %90 = load ptr, ptr %32, align 8, !tbaa !13
  %91 = getelementptr inbounds double, ptr %90, i64 %.3277
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %92, double noundef %75)
  br label %94

94:                                               ; preds = %89, %84, %82
  %95 = phi i1 [ true, %84 ], [ true, %82 ], [ %93, %89 ]
  %96 = zext i1 %95 to i8
  %97 = add nuw nsw i64 %.3277, 1
  %exitcond301.not = icmp eq i64 %97, 100000
  br i1 %exitcond301.not, label %98, label %82, !llvm.loop !17

98:                                               ; preds = %94
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  %99 = load double, ptr %9, align 8, !tbaa !9
  %100 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %99, double noundef 0.000000e+00)
  br i1 %100, label %101, label %110

101:                                              ; preds = %98
  %102 = load double, ptr %8, align 8, !tbaa !9
  %103 = add nsw i64 %.0280, -1
  %104 = sitofp i64 %103 to double
  %105 = call double @llvm.fmuladd.f64(double %104, double -5.000000e-01, double %102)
  %106 = load double, ptr %9, align 8, !tbaa !9
  %107 = fdiv double %105, %106
  %108 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %107, ptr noundef %1)
  %109 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0222279, double noundef %108, ptr noundef %1)
  br label %110

110:                                              ; preds = %98, %101
  %.2229 = phi i8 [ %96, %101 ], [ 1, %98 ]
  %.1223 = phi double [ %109, %101 ], [ %.0222279, %98 ]
  %111 = load double, ptr %11, align 8, !tbaa !9
  %112 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %111, double noundef 0.000000e+00)
  br i1 %112, label %113, label %124

113:                                              ; preds = %110
  %114 = load double, ptr %10, align 8, !tbaa !9
  %115 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %75, ptr noundef %1)
  %116 = fadd double %115, -1.000000e+00
  %117 = fdiv double %116, 1.200000e+01
  %118 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %117, ptr noundef %1)
  %119 = fsub double %114, %118
  %120 = load double, ptr %11, align 8, !tbaa !9
  %121 = fdiv double %119, %120
  %122 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %121, ptr noundef %1)
  %123 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1223, double noundef %122, ptr noundef %1)
  br label %124

124:                                              ; preds = %110, %113
  %.3230 = phi i8 [ %.2229, %113 ], [ 1, %110 ]
  %.2224 = phi double [ %123, %113 ], [ %.1223, %110 ]
  %125 = add nuw nsw i64 %.0280, 1
  %exitcond302.not = icmp eq i64 %125, 11
  br i1 %exitcond302.not, label %126, label %.preheader268, !llvm.loop !18

126:                                              ; preds = %124
  %127 = trunc nuw i8 %.3230 to i1
  br i1 %127, label %130, label %128

128:                                              ; preds = %126
  %129 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.2224, double noundef 7.000000e+00)
  br label %130

130:                                              ; preds = %128, %126
  %131 = phi i1 [ true, %126 ], [ %129, %128 ]
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  br label %132

132:                                              ; preds = %130, %132
  %.4281 = phi i64 [ 0, %130 ], [ %137, %132 ]
  %133 = call noundef i64 @_ZN11alglib_impl13hqrnduniformiEPNS_10hqrndstateElPNS_8ae_stateE(ptr noundef nonnull %13, i64 noundef 1431655708, ptr noundef %1)
  %134 = sitofp i64 %133 to double
  %135 = load ptr, ptr %32, align 8, !tbaa !13
  %136 = getelementptr inbounds double, ptr %135, i64 %.4281
  store double %134, ptr %136, align 8, !tbaa !9
  %137 = add nuw nsw i64 %.4281, 1
  %exitcond303.not = icmp eq i64 %137, 100000
  br i1 %exitcond303.not, label %.preheader266, label %132, !llvm.loop !19

.preheader266:                                    ; preds = %132, %148
  %.5283 = phi i64 [ %150, %148 ], [ 0, %132 ]
  %.4231.in282 = phi i1 [ %149, %148 ], [ %131, %132 ]
  br i1 %.4231.in282, label %148, label %138

138:                                              ; preds = %.preheader266
  %139 = load ptr, ptr %32, align 8, !tbaa !13
  %140 = getelementptr inbounds double, ptr %139, i64 %.5283
  %141 = load double, ptr %140, align 8, !tbaa !9
  %142 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %141, double noundef 0.000000e+00)
  br i1 %142, label %148, label %143

143:                                              ; preds = %138
  %144 = load ptr, ptr %32, align 8, !tbaa !13
  %145 = getelementptr inbounds double, ptr %144, i64 %.5283
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %146, double noundef 0x41D5555547000000)
  br label %148

148:                                              ; preds = %143, %138, %.preheader266
  %149 = phi i1 [ true, %138 ], [ true, %.preheader266 ], [ %147, %143 ]
  %150 = add nuw nsw i64 %.5283, 1
  %exitcond304.not = icmp eq i64 %150, 100000
  br i1 %exitcond304.not, label %151, label %.preheader266, !llvm.loop !20

151:                                              ; preds = %148
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  %152 = load double, ptr %9, align 8, !tbaa !9
  %153 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %152, double noundef 0.000000e+00)
  br i1 %153, label %154, label %161

154:                                              ; preds = %151
  %155 = load double, ptr %8, align 8, !tbaa !9
  %156 = fadd double %155, 0xC1C5555546C00000
  %157 = load double, ptr %9, align 8, !tbaa !9
  %158 = fdiv double %156, %157
  %159 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %158, ptr noundef %1)
  %160 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %159, ptr noundef %1)
  br label %161

161:                                              ; preds = %151, %154
  %.5232 = phi i1 [ %149, %154 ], [ true, %151 ]
  %.3225 = phi double [ %160, %154 ], [ 0.000000e+00, %151 ]
  %162 = load double, ptr %11, align 8, !tbaa !9
  %163 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %162, double noundef 0.000000e+00)
  br i1 %163, label %164, label %.thread255

164:                                              ; preds = %161
  %165 = load double, ptr %10, align 8, !tbaa !9
  %166 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 0x41D5555547000000, ptr noundef %1)
  %167 = fadd double %166, -1.000000e+00
  %168 = fdiv double %167, 1.200000e+01
  %169 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %168, ptr noundef %1)
  %170 = fsub double %165, %169
  %171 = load double, ptr %11, align 8, !tbaa !9
  %172 = fdiv double %170, %171
  %173 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %172, ptr noundef %1)
  %174 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.3225, double noundef %173, ptr noundef %1)
  br i1 %.5232, label %.thread255, label %175

175:                                              ; preds = %164
  %176 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %174, double noundef 7.000000e+00)
  br label %.thread255

.thread255:                                       ; preds = %161, %175, %164
  %177 = phi i1 [ true, %164 ], [ %176, %175 ], [ true, %161 ]
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  br label %178

178:                                              ; preds = %.thread255, %178
  %.6284 = phi i64 [ 0, %.thread255 ], [ %186, %178 ]
  call void @_ZN11alglib_impl12hqrndnormal2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  %179 = load double, ptr %4, align 8, !tbaa !9
  %180 = load ptr, ptr %32, align 8, !tbaa !13
  %181 = getelementptr inbounds double, ptr %180, i64 %.6284
  store double %179, ptr %181, align 8, !tbaa !9
  %182 = or disjoint i64 %.6284, 1
  %183 = load double, ptr %5, align 8, !tbaa !9
  %184 = load ptr, ptr %32, align 8, !tbaa !13
  %185 = getelementptr inbounds double, ptr %184, i64 %182
  store double %183, ptr %185, align 8, !tbaa !9
  %186 = add nuw nsw i64 %.6284, 2
  %187 = icmp ult i64 %.6284, 99998
  br i1 %187, label %178, label %188, !llvm.loop !21

188:                                              ; preds = %178
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  %189 = load double, ptr %9, align 8, !tbaa !9
  %190 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %189, double noundef 0.000000e+00)
  br i1 %190, label %191, label %197

191:                                              ; preds = %188
  %192 = load double, ptr %8, align 8, !tbaa !9
  %193 = load double, ptr %9, align 8, !tbaa !9
  %194 = fdiv double %192, %193
  %195 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %194, ptr noundef %1)
  %196 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %195, ptr noundef %1)
  br label %197

197:                                              ; preds = %188, %191
  %.0218 = phi double [ %196, %191 ], [ 0.000000e+00, %188 ]
  %198 = load double, ptr %11, align 8, !tbaa !9
  %199 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %198, double noundef 0.000000e+00)
  br i1 %199, label %200, label %.thread258

200:                                              ; preds = %197
  %201 = load double, ptr %10, align 8, !tbaa !9
  %202 = fadd double %201, -1.000000e+00
  %203 = load double, ptr %11, align 8, !tbaa !9
  %204 = fdiv double %202, %203
  %205 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %204, ptr noundef %1)
  %206 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0218, double noundef %205, ptr noundef %1)
  br i1 %190, label %207, label %.thread258

207:                                              ; preds = %200
  %208 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %206, double noundef 7.000000e+00)
  br label %.thread258

.thread258:                                       ; preds = %197, %207, %200
  %209 = phi i1 [ true, %200 ], [ %208, %207 ], [ true, %197 ]
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef 10, ptr noundef %1)
  %210 = load i64, ptr %7, align 8, !tbaa !22
  %.not.not285 = icmp sgt i64 %210, 0
  br i1 %.not.not285, label %.lr.ph, label %.preheader265

.lr.ph:                                           ; preds = %.thread258
  %211 = getelementptr inbounds i8, ptr %7, i64 56
  br label %213

.preheader265:                                    ; preds = %213, %.thread258
  %212 = getelementptr inbounds i8, ptr %7, i64 56
  br label %219

213:                                              ; preds = %.lr.ph, %213
  %.7286 = phi i64 [ 0, %.lr.ph ], [ %216, %213 ]
  %214 = load ptr, ptr %211, align 8, !tbaa !13
  %215 = getelementptr inbounds i64, ptr %214, i64 %.7286
  store i64 0, ptr %215, align 8, !tbaa !27
  %216 = add nuw nsw i64 %.7286, 1
  %217 = load i64, ptr %7, align 8, !tbaa !22
  %.not.not = icmp slt i64 %216, %217
  br i1 %.not.not, label %213, label %.preheader265, !llvm.loop !28

.preheader264:                                    ; preds = %219
  %218 = load i64, ptr %7, align 8, !tbaa !22
  %.not.not246288 = icmp sgt i64 %218, 0
  br i1 %.not.not246288, label %.lr.ph290, label %._crit_edge

219:                                              ; preds = %.preheader265, %219
  %.1243287 = phi i64 [ 0, %.preheader265 ], [ %242, %219 ]
  call void @_ZN11alglib_impl10hqrndunit2EPNS_10hqrndstateEPdS2_PNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  %220 = load double, ptr %4, align 8, !tbaa !9
  %221 = load double, ptr %5, align 8, !tbaa !9
  %222 = fmul double %221, %221
  %223 = call double @llvm.fmuladd.f64(double %220, double %220, double %222)
  %224 = fadd double %223, -1.000000e+00
  %225 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %224, ptr noundef %1)
  %226 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %225, double noundef 5.000000e-14)
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %226, ptr noundef nonnull @.str.8, i32 noundef 3636, ptr noundef nonnull @.str.9)
  %227 = load double, ptr %4, align 8, !tbaa !9
  %228 = load double, ptr %5, align 8, !tbaa !9
  %229 = call noundef double @_ZN11alglib_impl8ae_atan2EddPNS_8ae_stateE(double noundef %227, double noundef %228, ptr noundef %1)
  %230 = fadd double %229, 0x400921FB54442D18
  %231 = fdiv double %230, 0x401921FB54442D18
  %232 = load i64, ptr %7, align 8, !tbaa !22
  %233 = sitofp i64 %232 to double
  %234 = fmul double %231, %233
  %235 = call noundef i64 @_ZN11alglib_impl9ae_ifloorEdPNS_8ae_stateE(double noundef %234, ptr noundef %1)
  %spec.store.select = call i64 @llvm.smax.i64(i64 %235, i64 0)
  %236 = load i64, ptr %7, align 8, !tbaa !22
  %.not = icmp slt i64 %spec.store.select, %236
  %237 = add nsw i64 %236, -1
  %spec.select = select i1 %.not, i64 %spec.store.select, i64 %237
  %238 = load ptr, ptr %212, align 8, !tbaa !13
  %239 = getelementptr inbounds i64, ptr %238, i64 %spec.select
  %240 = load i64, ptr %239, align 8, !tbaa !27
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %239, align 8, !tbaa !27
  %242 = add nuw nsw i64 %.1243287, 1
  %exitcond305.not = icmp eq i64 %242, 1000000
  br i1 %exitcond305.not, label %.preheader264, label %219, !llvm.loop !29

.lr.ph290:                                        ; preds = %.preheader264, %260
  %243 = phi i64 [ %263, %260 ], [ %218, %.preheader264 ]
  %.8289 = phi i64 [ %262, %260 ], [ 0, %.preheader264 ]
  %244 = load ptr, ptr %212, align 8, !tbaa !13
  %245 = getelementptr inbounds i64, ptr %244, i64 %.8289
  %246 = load i64, ptr %245, align 8, !tbaa !27
  %247 = sitofp i64 %246 to double
  %248 = sitofp i64 %243 to double
  %249 = fdiv double 9.000000e+05, %248
  %250 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %247, double noundef %249)
  br i1 %250, label %260, label %251

251:                                              ; preds = %.lr.ph290
  %252 = load ptr, ptr %212, align 8, !tbaa !13
  %253 = getelementptr inbounds i64, ptr %252, i64 %.8289
  %254 = load i64, ptr %253, align 8, !tbaa !27
  %255 = sitofp i64 %254 to double
  %256 = load i64, ptr %7, align 8, !tbaa !22
  %257 = sitofp i64 %256 to double
  %258 = fdiv double 1.100000e+06, %257
  %259 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %255, double noundef %258)
  br label %260

260:                                              ; preds = %251, %.lr.ph290
  %261 = phi i1 [ true, %.lr.ph290 ], [ %259, %251 ]
  call void @_ZN11alglib_impl17ae_set_error_flagEPbbPKciS2_(ptr noundef nonnull %12, i1 noundef zeroext %261, ptr noundef nonnull @.str.8, i32 noundef 3650, ptr noundef nonnull @.str.10)
  %262 = add nuw nsw i64 %.8289, 1
  %263 = load i64, ptr %7, align 8, !tbaa !22
  %.not.not246 = icmp slt i64 %262, %263
  br i1 %.not.not246, label %.lr.ph290, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %260, %.preheader264
  call void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %13, ptr noundef %1)
  %264 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %265 = call double @llvm.fmuladd.f64(double %264, double 5.000000e+00, double 2.000000e+00)
  br label %266

266:                                              ; preds = %._crit_edge, %266
  %.9291 = phi i64 [ 0, %._crit_edge ], [ %270, %266 ]
  %267 = call noundef double @_ZN11alglib_impl16hqrndexponentialEPNS_10hqrndstateEdPNS_8ae_stateE(ptr noundef nonnull %13, double noundef %265, ptr noundef %1)
  %268 = load ptr, ptr %32, align 8, !tbaa !13
  %269 = getelementptr inbounds double, ptr %268, i64 %.9291
  store double %267, ptr %269, align 8, !tbaa !9
  %270 = add nuw nsw i64 %.9291, 1
  %exitcond306.not = icmp eq i64 %270, 100000
  br i1 %exitcond306.not, label %.preheader, label %266, !llvm.loop !31

.preheader:                                       ; preds = %266, %276
  %.10293 = phi i64 [ %278, %276 ], [ 0, %266 ]
  %.7234.in292 = phi i1 [ %277, %276 ], [ %177, %266 ]
  br i1 %.7234.in292, label %276, label %271

271:                                              ; preds = %.preheader
  %272 = load ptr, ptr %32, align 8, !tbaa !13
  %273 = getelementptr inbounds double, ptr %272, i64 %.10293
  %274 = load double, ptr %273, align 8, !tbaa !9
  %275 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %274, double noundef 0.000000e+00)
  br label %276

276:                                              ; preds = %271, %.preheader
  %277 = phi i1 [ true, %.preheader ], [ %275, %271 ]
  %278 = add nuw nsw i64 %.10293, 1
  %exitcond307.not = icmp eq i64 %278, 100000
  br i1 %exitcond307.not, label %279, label %.preheader, !llvm.loop !32

279:                                              ; preds = %276
  call void @_ZL25testhqrndunit_calculatemvPN11alglib_impl9ae_vectorElPdS2_S2_S2_PNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef 100000, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %1)
  %280 = load double, ptr %9, align 8, !tbaa !9
  %281 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %280, double noundef 0.000000e+00)
  br i1 %281, label %282, label %290

282:                                              ; preds = %279
  %283 = load double, ptr %8, align 8, !tbaa !9
  %284 = fdiv double 1.000000e+00, %265
  %285 = fsub double %283, %284
  %286 = load double, ptr %9, align 8, !tbaa !9
  %287 = fdiv double %285, %286
  %288 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %287, ptr noundef %1)
  %289 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef 0.000000e+00, double noundef %288, ptr noundef %1)
  br label %290

290:                                              ; preds = %279, %282
  %.0214 = phi double [ %289, %282 ], [ 0.000000e+00, %279 ]
  %291 = load double, ptr %11, align 8, !tbaa !9
  %292 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %291, double noundef 0.000000e+00)
  br i1 %292, label %293, label %.thread261

293:                                              ; preds = %290
  %294 = load double, ptr %10, align 8, !tbaa !9
  %295 = fdiv double 1.000000e+00, %265
  %296 = fsub double %294, %295
  %297 = load double, ptr %11, align 8, !tbaa !9
  %298 = fdiv double %296, %297
  %299 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %298, ptr noundef %1)
  %300 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0214, double noundef %299, ptr noundef %1)
  br i1 %281, label %301, label %.thread261

301:                                              ; preds = %293
  %302 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %300, double noundef 7.000000e+00)
  br label %.thread261

.thread261:                                       ; preds = %290, %301, %293
  %303 = phi i1 [ true, %293 ], [ %302, %301 ], [ true, %290 ]
  %304 = call noundef zeroext i1 @_Z17hqrnddiscretetestbPN11alglib_impl8ae_stateE(i1 noundef zeroext true, ptr noundef %1)
  %305 = call noundef zeroext i1 @_Z19hqrndcontinuoustestbPN11alglib_impl8ae_stateE(i1 noundef zeroext true, ptr noundef %1)
  %brmerge = or i1 %29, %74
  %brmerge247 = or i1 %brmerge, %277
  %brmerge248 = or i1 %209, %brmerge247
  %306 = load i8, ptr %12, align 1, !range !33
  %307 = trunc nuw i8 %306 to i1
  %brmerge249 = or i1 %303, %307
  %or.cond = select i1 %brmerge248, i1 true, i1 %brmerge249
  %308 = or i1 %305, %or.cond
  %spec.select252 = or i1 %304, %308
  br i1 %0, label %331, label %309

309:                                              ; preds = %.thread261
  %310 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %311 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %.str.7..str.6 = select i1 %29, ptr @.str.7, ptr @.str.6
  %312 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %313 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %.str.7.sink312 = select i1 %74, ptr @.str.7, ptr @.str.6
  %314 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink312)
  %315 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %.str.7.sink313 = select i1 %277, ptr @.str.7, ptr @.str.6
  %316 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink313)
  %317 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %.str.7.sink314 = select i1 %209, ptr @.str.7, ptr @.str.6
  %318 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink314)
  %319 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %320 = load i8, ptr %12, align 1, !tbaa !5, !range !33, !noundef !34
  %321 = trunc nuw i8 %320 to i1
  %.str.7.sink315 = select i1 %321, ptr @.str.7, ptr @.str.6
  %322 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink315)
  %323 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %.str.7.sink316 = select i1 %303, ptr @.str.7, ptr @.str.6
  %324 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink316)
  %325 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %.str.7.sink317 = select i1 %304, ptr @.str.7, ptr @.str.6
  %326 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink317)
  %327 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %.str.7.sink318 = select i1 %305, ptr @.str.7, ptr @.str.6
  %328 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink318)
  %.str.21.sink = select i1 %spec.select252, ptr @.str.20, ptr @.str.21
  %329 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.21.sink)
  %330 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %331

331:                                              ; preds = %309, %.thread261
  %332 = xor i1 %spec.select252, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  ret i1 %332
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL24testhqrndunit_unsetstatePN11alglib_impl10hqrndstateEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z17hqrnddiscretetestbPN11alglib_impl8ae_stateE(i1 noundef zeroext, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z19hqrndcontinuoustestbPN11alglib_impl8ae_stateE(i1 noundef zeroext, ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

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

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

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


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