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

; 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 }

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare 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

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

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr 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

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

34:                                               ; preds = %2
  %35 = load ptr, ptr %4, align 8, !tbaa !9
  %36 = call noundef double @_ZN11alglib_impl15hqrndcontinuousEPNS_10hqrndstateEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, ptr noundef %6, i64 noundef 1, ptr noundef %35)
  %37 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds double, ptr %38, i64 0
  %40 = load double, ptr %39, align 8, !tbaa !12
  %41 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %36, double noundef %40)
  br label %42

42:                                               ; preds = %34, %2
  %43 = phi i1 [ true, %2 ], [ %41, %34 ]
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %18, align 1, !tbaa !5
  store i64 100000, ptr %12, align 8, !tbaa !16
  store double 1.000000e+01, ptr %17, align 8, !tbaa !12
  store i64 2, ptr %10, align 8, !tbaa !16
  br label %45

45:                                               ; preds = %288, %42
  %46 = load i64, ptr %10, align 8, !tbaa !16
  %47 = icmp sle i64 %46, 5
  br i1 %47, label %48, label %291

48:                                               ; preds = %45
  %49 = load i64, ptr %10, align 8, !tbaa !16
  %50 = sub nsw i64 %49, 1
  %51 = mul nsw i64 3, %50
  store i64 %51, ptr %9, align 8, !tbaa !16
  %52 = load i64, ptr %12, align 8, !tbaa !16
  %53 = sitofp i64 %52 to double
  %54 = load i64, ptr %9, align 8, !tbaa !16
  %55 = sitofp i64 %54 to double
  %56 = fdiv double 1.000000e+00, %55
  %57 = fmul double %53, %56
  %58 = load i64, ptr %9, align 8, !tbaa !16
  %59 = sitofp i64 %58 to double
  %60 = fdiv double 1.000000e+00, %59
  %61 = fsub double 1.000000e+00, %60
  %62 = fmul double %57, %61
  %63 = load ptr, ptr %4, align 8, !tbaa !9
  %64 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %62, ptr noundef %63)
  store double %64, ptr %16, align 8, !tbaa !12
  %65 = load i64, ptr %10, align 8, !tbaa !16
  %66 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %6, i64 noundef %65, ptr noundef %66)
  %67 = load ptr, ptr %4, align 8, !tbaa !9
  %68 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %67)
  %69 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %68, double -1.000000e+00)
  %70 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds double, ptr %71, i64 0
  store double %69, ptr %72, align 8, !tbaa !12
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %73

73:                                               ; preds = %93, %48
  %74 = load i64, ptr %13, align 8, !tbaa !16
  %75 = load i64, ptr %10, align 8, !tbaa !16
  %76 = sub nsw i64 %75, 2
  %77 = icmp sle i64 %74, %76
  br i1 %77, label %78, label %96

78:                                               ; preds = %73
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = load i64, ptr %13, align 8, !tbaa !16
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = fadd double %83, 1.000000e-01
  %85 = load ptr, ptr %4, align 8, !tbaa !9
  %86 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %85)
  %87 = fadd double %84, %86
  %88 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = load i64, ptr %13, align 8, !tbaa !16
  %91 = add nsw i64 %90, 1
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  store double %87, ptr %92, align 8, !tbaa !12
  br label %93

93:                                               ; preds = %78
  %94 = load i64, ptr %13, align 8, !tbaa !16
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %13, align 8, !tbaa !16
  br label %73, !llvm.loop !18

96:                                               ; preds = %73
  %97 = load i64, ptr %9, align 8, !tbaa !16
  %98 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %7, i64 noundef %97, ptr noundef %98)
  %99 = load i64, ptr %9, align 8, !tbaa !16
  %100 = add nsw i64 %99, 1
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %100, ptr noundef %101)
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %102

102:                                              ; preds = %188, %96
  %103 = load i64, ptr %13, align 8, !tbaa !16
  %104 = load i64, ptr %10, align 8, !tbaa !16
  %105 = sub nsw i64 %104, 2
  %106 = icmp sle i64 %103, %105
  br i1 %106, label %107, label %191

107:                                              ; preds = %102
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = load i64, ptr %13, align 8, !tbaa !16
  %111 = mul nsw i64 3, %110
  %112 = add nsw i64 %111, 0
  %113 = getelementptr inbounds i64, ptr %109, i64 %112
  store i64 0, ptr %113, align 8, !tbaa !16
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = load i64, ptr %13, align 8, !tbaa !16
  %117 = mul nsw i64 3, %116
  %118 = add nsw i64 %117, 1
  %119 = getelementptr inbounds i64, ptr %115, i64 %118
  store i64 0, ptr %119, align 8, !tbaa !16
  %120 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  %122 = load i64, ptr %13, align 8, !tbaa !16
  %123 = mul nsw i64 3, %122
  %124 = add nsw i64 %123, 2
  %125 = getelementptr inbounds i64, ptr %121, i64 %124
  store i64 0, ptr %125, align 8, !tbaa !16
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = load i64, ptr %13, align 8, !tbaa !16
  %129 = getelementptr inbounds double, ptr %127, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !12
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  %133 = load i64, ptr %13, align 8, !tbaa !16
  %134 = mul nsw i64 3, %133
  %135 = add nsw i64 %134, 0
  %136 = getelementptr inbounds double, ptr %132, i64 %135
  store double %130, ptr %136, align 8, !tbaa !12
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !11
  %139 = load i64, ptr %13, align 8, !tbaa !16
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !12
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !11
  %144 = load i64, ptr %13, align 8, !tbaa !16
  %145 = add nsw i64 %144, 1
  %146 = getelementptr inbounds double, ptr %143, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !12
  %148 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !11
  %150 = load i64, ptr %13, align 8, !tbaa !16
  %151 = getelementptr inbounds double, ptr %149, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !12
  %153 = fsub double %147, %152
  %154 = fdiv double %153, 3.000000e+00
  %155 = fadd double %141, %154
  %156 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = load i64, ptr %13, align 8, !tbaa !16
  %159 = mul nsw i64 3, %158
  %160 = add nsw i64 %159, 1
  %161 = getelementptr inbounds double, ptr %157, i64 %160
  store double %155, ptr %161, align 8, !tbaa !12
  %162 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = load i64, ptr %13, align 8, !tbaa !16
  %165 = getelementptr inbounds double, ptr %163, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !12
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !11
  %169 = load i64, ptr %13, align 8, !tbaa !16
  %170 = add nsw i64 %169, 1
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = load double, ptr %171, align 8, !tbaa !12
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = load i64, ptr %13, align 8, !tbaa !16
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !12
  %178 = fsub double %172, %177
  %179 = fmul double %178, 2.000000e+00
  %180 = fdiv double %179, 3.000000e+00
  %181 = fadd double %166, %180
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = load i64, ptr %13, align 8, !tbaa !16
  %185 = mul nsw i64 3, %184
  %186 = add nsw i64 %185, 2
  %187 = getelementptr inbounds double, ptr %183, i64 %186
  store double %181, ptr %187, align 8, !tbaa !12
  br label %188

188:                                              ; preds = %107
  %189 = load i64, ptr %13, align 8, !tbaa !16
  %190 = add nsw i64 %189, 1
  store i64 %190, ptr %13, align 8, !tbaa !16
  br label %102, !llvm.loop !20

191:                                              ; preds = %102
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %6, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = load i64, ptr %10, align 8, !tbaa !16
  %195 = sub nsw i64 %194, 1
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !12
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = load i64, ptr %9, align 8, !tbaa !16
  %201 = getelementptr inbounds double, ptr %199, i64 %200
  store double %197, ptr %201, align 8, !tbaa !12
  %202 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef %11, ptr noundef %202)
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %203

203:                                              ; preds = %250, %191
  %204 = load i64, ptr %13, align 8, !tbaa !16
  %205 = load i64, ptr %12, align 8, !tbaa !16
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %253

208:                                              ; preds = %203
  %209 = load i64, ptr %10, align 8, !tbaa !16
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  %211 = call noundef double @_ZN11alglib_impl15hqrndcontinuousEPNS_10hqrndstateEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %11, ptr noundef %6, i64 noundef %209, ptr noundef %210)
  store double %211, ptr %15, align 8, !tbaa !12
  store i64 0, ptr %14, align 8, !tbaa !16
  br label %212

212:                                              ; preds = %246, %208
  %213 = load i64, ptr %14, align 8, !tbaa !16
  %214 = load i64, ptr %9, align 8, !tbaa !16
  %215 = sub nsw i64 %214, 1
  %216 = icmp sle i64 %213, %215
  br i1 %216, label %217, label %249

217:                                              ; preds = %212
  %218 = load double, ptr %15, align 8, !tbaa !12
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !11
  %221 = load i64, ptr %14, align 8, !tbaa !16
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !12
  %224 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %218, double noundef %223)
  br i1 %224, label %225, label %245

225:                                              ; preds = %217
  %226 = load double, ptr %15, align 8, !tbaa !12
  %227 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %228 = load ptr, ptr %227, align 8, !tbaa !11
  %229 = load i64, ptr %14, align 8, !tbaa !16
  %230 = add nsw i64 %229, 1
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !12
  %233 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %226, double noundef %232)
  br i1 %233, label %234, label %245

234:                                              ; preds = %225
  %235 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !11
  %237 = load i64, ptr %14, align 8, !tbaa !16
  %238 = getelementptr inbounds i64, ptr %236, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !16
  %240 = add nsw i64 %239, 1
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !11
  %243 = load i64, ptr %14, align 8, !tbaa !16
  %244 = getelementptr inbounds i64, ptr %242, i64 %243
  store i64 %240, ptr %244, align 8, !tbaa !16
  br label %249

245:                                              ; preds = %225, %217
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %14, align 8, !tbaa !16
  %248 = add nsw i64 %247, 1
  store i64 %248, ptr %14, align 8, !tbaa !16
  br label %212, !llvm.loop !21

249:                                              ; preds = %234, %212
  br label %250

250:                                              ; preds = %249
  %251 = load i64, ptr %13, align 8, !tbaa !16
  %252 = add nsw i64 %251, 1
  store i64 %252, ptr %13, align 8, !tbaa !16
  br label %203, !llvm.loop !22

253:                                              ; preds = %203
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %254

254:                                              ; preds = %284, %253
  %255 = load i64, ptr %13, align 8, !tbaa !16
  %256 = load i64, ptr %9, align 8, !tbaa !16
  %257 = sub nsw i64 %256, 1
  %258 = icmp sle i64 %255, %257
  br i1 %258, label %259, label %287

259:                                              ; preds = %254
  %260 = load i8, ptr %18, align 1, !tbaa !5, !range !14, !noundef !15
  %261 = trunc i8 %260 to i1
  br i1 %261, label %281, label %262

262:                                              ; preds = %259
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %7, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = load i64, ptr %13, align 8, !tbaa !16
  %266 = getelementptr inbounds i64, ptr %264, i64 %265
  %267 = load i64, ptr %266, align 8, !tbaa !16
  %268 = sitofp i64 %267 to double
  %269 = load i64, ptr %12, align 8, !tbaa !16
  %270 = sitofp i64 %269 to double
  %271 = load i64, ptr %9, align 8, !tbaa !16
  %272 = sitofp i64 %271 to double
  %273 = fdiv double %270, %272
  %274 = fsub double %268, %273
  %275 = load ptr, ptr %4, align 8, !tbaa !9
  %276 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %274, ptr noundef %275)
  %277 = load double, ptr %16, align 8, !tbaa !12
  %278 = load double, ptr %17, align 8, !tbaa !12
  %279 = fmul double %277, %278
  %280 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %276, double noundef %279)
  br label %281

281:                                              ; preds = %262, %259
  %282 = phi i1 [ true, %259 ], [ %280, %262 ]
  %283 = zext i1 %282 to i8
  store i8 %283, ptr %18, align 1, !tbaa !5
  br label %284

284:                                              ; preds = %281
  %285 = load i64, ptr %13, align 8, !tbaa !16
  %286 = add nsw i64 %285, 1
  store i64 %286, ptr %13, align 8, !tbaa !16
  br label %254, !llvm.loop !23

287:                                              ; preds = %254
  br label %288

288:                                              ; preds = %287
  %289 = load i64, ptr %10, align 8, !tbaa !16
  %290 = add nsw i64 %289, 1
  store i64 %290, ptr %10, align 8, !tbaa !16
  br label %45, !llvm.loop !24

291:                                              ; preds = %45
  %292 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %292)
  %293 = load i8, ptr %18, align 1, !tbaa !5, !range !14, !noundef !15
  %294 = trunc i8 %293 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %294
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_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 }

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare 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) #3

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

declare void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr 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

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

.lr.ph.preheader:                                 ; preds = %._crit_edge99, %2
  %indvars.iv = phi i64 [ 1, %2 ], [ %indvars.iv.next, %._crit_edge99 ]
  %.0102 = phi i1 [ %14, %2 ], [ %195, %._crit_edge99 ]
  %.074101 = phi i64 [ 2, %2 ], [ %197, %._crit_edge99 ]
  %17 = add nsw i64 %.074101, -1
  %18 = mul nuw nsw i64 %17, 3
  %19 = uitofp nneg i64 %18 to double
  %20 = fdiv double 1.000000e+00, %19
  %21 = fmul double %20, 1.000000e+05
  %22 = fsub double 1.000000e+00, %20
  %23 = fmul double %21, %22
  %24 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %23, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.074101, ptr noundef %1)
  %25 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %26 = call double @llvm.fmuladd.f64(double %25, double 2.000000e+00, double -1.000000e+00)
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  store double %26, ptr %27, align 8, !tbaa !8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.07584 = phi i64 [ %35, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %.07584
  %30 = load double, ptr %29, align 8, !tbaa !8
  %31 = fadd double %30, 1.000000e-01
  %32 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %33 = fadd double %31, %32
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = add nuw nsw i64 %.07584, 1
  %36 = getelementptr inbounds double, ptr %34, i64 %35
  store double %33, ptr %36, align 8, !tbaa !8
  %exitcond.not = icmp eq i64 %35, %indvars.iv
  br i1 %exitcond.not, label %.lr.ph88.preheader, label %.lr.ph, !llvm.loop !10

.lr.ph88.preheader:                               ; preds = %.lr.ph
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %18, ptr noundef %1)
  %37 = add nuw nsw i64 %18, 1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %37, ptr noundef %1)
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %38, align 8, !tbaa !12
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  store i64 0, ptr %40, align 8, !tbaa !12
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store i64 0, ptr %42, align 8, !tbaa !12
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = load double, ptr %43, align 8, !tbaa !8
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  store double %44, ptr %45, align 8, !tbaa !8
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load double, ptr %46, align 8, !tbaa !8
  %48 = getelementptr inbounds i8, ptr %46, i64 8
  %49 = load double, ptr %48, align 8, !tbaa !8
  %50 = fsub double %49, %47
  %51 = fdiv double %50, 3.000000e+00
  %52 = fadd double %47, %51
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  store double %52, ptr %54, align 8, !tbaa !8
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load double, ptr %55, align 8, !tbaa !8
  %57 = getelementptr inbounds i8, ptr %55, i64 8
  %58 = load double, ptr %57, align 8, !tbaa !8
  %59 = fsub double %58, %56
  %60 = fmul double %59, 2.000000e+00
  %61 = fdiv double %60, 3.000000e+00
  %62 = fadd double %56, %61
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store double %62, ptr %64, align 8, !tbaa !8
  %exitcond105.not = icmp eq i64 %indvars.iv, 1
  br i1 %exitcond105.not, label %.lr.ph93.us.preheader, label %.lr.ph88.1, !llvm.loop !14

.lr.ph88.1:                                       ; preds = %.lr.ph88.preheader
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 24
  store i64 0, ptr %66, align 8, !tbaa !12
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  store i64 0, ptr %68, align 8, !tbaa !12
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  store i64 0, ptr %70, align 8, !tbaa !12
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load double, ptr %72, align 8, !tbaa !8
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 24
  store double %73, ptr %75, align 8, !tbaa !8
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load double, ptr %77, align 8, !tbaa !8
  %79 = getelementptr inbounds i8, ptr %76, i64 16
  %80 = load double, ptr %79, align 8, !tbaa !8
  %81 = fsub double %80, %78
  %82 = fdiv double %81, 3.000000e+00
  %83 = fadd double %78, %82
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  store double %83, ptr %85, align 8, !tbaa !8
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load double, ptr %87, align 8, !tbaa !8
  %89 = getelementptr inbounds i8, ptr %86, i64 16
  %90 = load double, ptr %89, align 8, !tbaa !8
  %91 = fsub double %90, %88
  %92 = fmul double %91, 2.000000e+00
  %93 = fdiv double %92, 3.000000e+00
  %94 = fadd double %88, %93
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 40
  store double %94, ptr %96, align 8, !tbaa !8
  %exitcond105.not.1 = icmp eq i64 %indvars.iv, 2
  br i1 %exitcond105.not.1, label %.lr.ph93.us.preheader, label %.lr.ph88.2, !llvm.loop !14

.lr.ph88.2:                                       ; preds = %.lr.ph88.1
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 48
  store i64 0, ptr %98, align 8, !tbaa !12
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 56
  store i64 0, ptr %100, align 8, !tbaa !12
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 64
  store i64 0, ptr %102, align 8, !tbaa !12
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  %105 = load double, ptr %104, align 8, !tbaa !8
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 48
  store double %105, ptr %107, align 8, !tbaa !8
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  %110 = load double, ptr %109, align 8, !tbaa !8
  %111 = getelementptr inbounds i8, ptr %108, i64 24
  %112 = load double, ptr %111, align 8, !tbaa !8
  %113 = fsub double %112, %110
  %114 = fdiv double %113, 3.000000e+00
  %115 = fadd double %110, %114
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 56
  store double %115, ptr %117, align 8, !tbaa !8
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i64 16
  %120 = load double, ptr %119, align 8, !tbaa !8
  %121 = getelementptr inbounds i8, ptr %118, i64 24
  %122 = load double, ptr %121, align 8, !tbaa !8
  %123 = fsub double %122, %120
  %124 = fmul double %123, 2.000000e+00
  %125 = fdiv double %124, 3.000000e+00
  %126 = fadd double %120, %125
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 64
  store double %126, ptr %128, align 8, !tbaa !8
  %exitcond105.not.2 = icmp eq i64 %indvars.iv, 3
  br i1 %exitcond105.not.2, label %.lr.ph93.us.preheader, label %.lr.ph88.3, !llvm.loop !14

.lr.ph88.3:                                       ; preds = %.lr.ph88.2
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 72
  store i64 0, ptr %130, align 8, !tbaa !12
  %131 = getelementptr inbounds i8, ptr %129, i64 80
  store i64 0, ptr %131, align 8, !tbaa !12
  %132 = getelementptr inbounds i8, ptr %129, i64 88
  store i64 0, ptr %132, align 8, !tbaa !12
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 24
  %135 = load double, ptr %134, align 8, !tbaa !8
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 72
  store double %135, ptr %137, align 8, !tbaa !8
  %138 = getelementptr inbounds i8, ptr %133, i64 24
  %139 = load double, ptr %138, align 8, !tbaa !8
  %140 = getelementptr inbounds i8, ptr %133, i64 32
  %141 = load double, ptr %140, align 8, !tbaa !8
  %142 = fsub double %141, %139
  %143 = fdiv double %142, 3.000000e+00
  %144 = fadd double %139, %143
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 80
  store double %144, ptr %146, align 8, !tbaa !8
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i64 24
  %149 = load double, ptr %148, align 8, !tbaa !8
  %150 = getelementptr inbounds i8, ptr %147, i64 32
  %151 = load double, ptr %150, align 8, !tbaa !8
  %152 = fsub double %151, %149
  %153 = fmul double %152, 2.000000e+00
  %154 = fdiv double %153, 3.000000e+00
  %155 = fadd double %149, %154
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i64 88
  store double %155, ptr %157, align 8, !tbaa !8
  br label %.lr.ph93.us.preheader

.lr.ph93.us.preheader:                            ; preds = %.lr.ph88.3, %.lr.ph88.2, %.lr.ph88.1, %.lr.ph88.preheader
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds double, ptr %158, i64 %17
  %160 = load double, ptr %159, align 8, !tbaa !8
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 %18
  store double %160, ptr %162, align 8, !tbaa !8
  call void @_ZN11alglib_impl14hqrndrandomizeEPNS_10hqrndstateEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef %1)
  br label %.lr.ph93.us

.lr.ph93.us:                                      ; preds = %.lr.ph93.us.preheader, %..loopexit_crit_edge.us
  %.294.us = phi i64 [ %182, %..loopexit_crit_edge.us ], [ 0, %.lr.ph93.us.preheader ]
  %163 = call noundef double @_ZN11alglib_impl15hqrndcontinuousEPNS_10hqrndstateEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %4, i64 noundef %.074101, ptr noundef %1)
  br label %164

164:                                              ; preds = %.lr.ph93.us, %175
  %.07791.us = phi i64 [ 0, %.lr.ph93.us ], [ %176, %175 ]
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 %.07791.us
  %167 = load double, ptr %166, align 8, !tbaa !8
  %168 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %163, double noundef %167)
  br i1 %168, label %169, label %175

169:                                              ; preds = %164
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = getelementptr inbounds double, ptr %170, i64 %.07791.us
  %172 = getelementptr inbounds i8, ptr %171, i64 8
  %173 = load double, ptr %172, align 8, !tbaa !8
  %174 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %163, double noundef %173)
  br i1 %174, label %177, label %175

175:                                              ; preds = %169, %164
  %176 = add nuw nsw i64 %.07791.us, 1
  %.not81.not.us = icmp ult i64 %176, %18
  br i1 %.not81.not.us, label %164, label %..loopexit_crit_edge.us, !llvm.loop !15

177:                                              ; preds = %169
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds i64, ptr %178, i64 %.07791.us
  %180 = load i64, ptr %179, align 8, !tbaa !12
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %179, align 8, !tbaa !12
  br label %..loopexit_crit_edge.us

..loopexit_crit_edge.us:                          ; preds = %175, %177
  %182 = add nuw nsw i64 %.294.us, 1
  %exitcond106.not = icmp eq i64 %182, 100000
  br i1 %exitcond106.not, label %.lr.ph98, label %.lr.ph93.us, !llvm.loop !16

.lr.ph98:                                         ; preds = %..loopexit_crit_edge.us
  %183 = fdiv double 1.000000e+05, %19
  %184 = fmul double %24, 1.000000e+01
  br label %185

185:                                              ; preds = %.lr.ph98, %194
  %.197 = phi i1 [ %.0102, %.lr.ph98 ], [ %195, %194 ]
  %.396 = phi i64 [ 0, %.lr.ph98 ], [ %196, %194 ]
  br i1 %.197, label %194, label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  %188 = getelementptr inbounds i64, ptr %187, i64 %.396
  %189 = load i64, ptr %188, align 8, !tbaa !12
  %190 = sitofp i64 %189 to double
  %191 = fsub double %190, %183
  %192 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %191, ptr noundef %1)
  %193 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %192, double noundef %184)
  br label %194

194:                                              ; preds = %186, %185
  %195 = phi i1 [ true, %185 ], [ %193, %186 ]
  %196 = add nuw nsw i64 %.396, 1
  %.not80.not = icmp ult i64 %196, %18
  br i1 %.not80.not, label %185, label %._crit_edge99, !llvm.loop !17

._crit_edge99:                                    ; preds = %194
  %197 = add nuw nsw i64 %.074101, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next, 5
  br i1 %exitcond107.not, label %198, label %.lr.ph.preheader, !llvm.loop !18

198:                                              ; preds = %._crit_edge99
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %195
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !6, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


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