; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7testfhtbPN11alglib_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 }

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 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.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.596 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.597 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.598 = external hidden unnamed_addr constant [43 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 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testfhtbPN11alglib_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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %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 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, 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 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, 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 %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 64, i1 false)
  %21 = 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 %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 %9, i64 noundef 0, i64 noundef 3, 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 %10, i64 noundef 0, i64 noundef 3, ptr noundef %23, i1 noundef zeroext true)
  store i64 128, ptr %11, align 8, !tbaa !11
  %24 = load i64, ptr %11, align 8, !tbaa !11
  %25 = sitofp i64 %24 to double
  %26 = load ptr, ptr %4, align 8, !tbaa !9
  %27 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef %25, double noundef 1.500000e+00, ptr noundef %26)
  %28 = fmul double 1.000000e+05, %27
  %29 = fmul double %28, 5.000000e-16
  store double %29, ptr %14, align 8, !tbaa !13
  store i8 0, ptr %16, align 1, !tbaa !5
  store i8 0, ptr %15, align 1, !tbaa !5
  store i8 0, ptr %17, align 1, !tbaa !5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !13
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %126, %2
  %31 = load i64, ptr %6, align 8, !tbaa !11
  %32 = load i64, ptr %11, align 8, !tbaa !11
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %34, label %129

34:                                               ; preds = %30
  %35 = load i64, ptr %6, align 8, !tbaa !11
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %35, ptr noundef %36)
  %37 = load i64, ptr %6, align 8, !tbaa !11
  %38 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %37, ptr noundef %38)
  %39 = load i64, ptr %6, align 8, !tbaa !11
  %40 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %39, ptr noundef %40)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %72, %34
  %42 = load i64, ptr %7, align 8, !tbaa !11
  %43 = load i64, ptr %6, align 8, !tbaa !11
  %44 = sub nsw i64 %43, 1
  %45 = icmp sle i64 %42, %44
  br i1 %45, label %46, label %75

46:                                               ; preds = %41
  %47 = load ptr, ptr %4, align 8, !tbaa !9
  %48 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %47)
  %49 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %48, double -1.000000e+00)
  %50 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = load i64, ptr %7, align 8, !tbaa !11
  %53 = getelementptr inbounds double, ptr %51, i64 %52
  store double %49, ptr %53, align 8, !tbaa !13
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = load i64, ptr %7, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %55, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = load i64, ptr %7, align 8, !tbaa !11
  %62 = getelementptr inbounds double, ptr %60, i64 %61
  store double %58, ptr %62, align 8, !tbaa !13
  %63 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = load i64, ptr %7, align 8, !tbaa !11
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !13
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !15
  %70 = load i64, ptr %7, align 8, !tbaa !11
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store double %67, ptr %71, align 8, !tbaa !13
  br label %72

72:                                               ; preds = %46
  %73 = load i64, ptr %7, align 8, !tbaa !11
  %74 = add nsw i64 %73, 1
  store i64 %74, ptr %7, align 8, !tbaa !11
  br label %41, !llvm.loop !16

75:                                               ; preds = %41
  %76 = load i64, ptr %6, align 8, !tbaa !11
  %77 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %76, ptr noundef %77)
  %78 = load i64, ptr %6, align 8, !tbaa !11
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %78, ptr noundef %79)
  %80 = load i64, ptr %6, align 8, !tbaa !11
  %81 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %80, ptr noundef %81)
  %82 = load i64, ptr %6, align 8, !tbaa !11
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %10, i64 noundef %82, ptr noundef %83)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %122, %75
  %85 = load i64, ptr %7, align 8, !tbaa !11
  %86 = load i64, ptr %6, align 8, !tbaa !11
  %87 = sub nsw i64 %86, 1
  %88 = icmp sle i64 %85, %87
  br i1 %88, label %89, label %125

89:                                               ; preds = %84
  %90 = load double, ptr %12, align 8, !tbaa !13
  %91 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load i64, ptr %7, align 8, !tbaa !11
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !13
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !15
  %98 = load i64, ptr %7, align 8, !tbaa !11
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !13
  %101 = fsub double %95, %100
  %102 = load ptr, ptr %4, align 8, !tbaa !9
  %103 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %101, ptr noundef %102)
  %104 = load ptr, ptr %4, align 8, !tbaa !9
  %105 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %90, double noundef %103, ptr noundef %104)
  store double %105, ptr %12, align 8, !tbaa !13
  %106 = load double, ptr %12, align 8, !tbaa !13
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !15
  %109 = load i64, ptr %7, align 8, !tbaa !11
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %10, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !15
  %114 = load i64, ptr %7, align 8, !tbaa !11
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !13
  %117 = fsub double %111, %116
  %118 = load ptr, ptr %4, align 8, !tbaa !9
  %119 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %117, ptr noundef %118)
  %120 = load ptr, ptr %4, align 8, !tbaa !9
  %121 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %106, double noundef %119, ptr noundef %120)
  store double %121, ptr %12, align 8, !tbaa !13
  br label %122

122:                                              ; preds = %89
  %123 = load i64, ptr %7, align 8, !tbaa !11
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %7, align 8, !tbaa !11
  br label %84, !llvm.loop !18

125:                                              ; preds = %84
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %6, align 8, !tbaa !11
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %6, align 8, !tbaa !11
  br label %30, !llvm.loop !19

129:                                              ; preds = %30
  %130 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %131 = trunc i8 %130 to i1
  br i1 %131, label %136, label %132

132:                                              ; preds = %129
  %133 = load double, ptr %12, align 8, !tbaa !13
  %134 = load double, ptr %14, align 8, !tbaa !13
  %135 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %133, double noundef %134)
  br label %136

136:                                              ; preds = %132, %129
  %137 = phi i1 [ true, %129 ], [ %135, %132 ]
  %138 = zext i1 %137 to i8
  store i8 %138, ptr %16, align 1, !tbaa !5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !13
  store i64 1, ptr %6, align 8, !tbaa !11
  br label %139

139:                                              ; preds = %264, %136
  %140 = load i64, ptr %6, align 8, !tbaa !11
  %141 = load i64, ptr %11, align 8, !tbaa !11
  %142 = icmp sle i64 %140, %141
  br i1 %142, label %143, label %267

143:                                              ; preds = %139
  %144 = load i64, ptr %6, align 8, !tbaa !11
  %145 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %144, ptr noundef %145)
  %146 = load i64, ptr %6, align 8, !tbaa !11
  %147 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %146, ptr noundef %147)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %148

148:                                              ; preds = %170, %143
  %149 = load i64, ptr %7, align 8, !tbaa !11
  %150 = load i64, ptr %6, align 8, !tbaa !11
  %151 = sub nsw i64 %150, 1
  %152 = icmp sle i64 %149, %151
  br i1 %152, label %153, label %173

153:                                              ; preds = %148
  %154 = load ptr, ptr %4, align 8, !tbaa !9
  %155 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %154)
  %156 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %155, double -1.000000e+00)
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !15
  %159 = load i64, ptr %7, align 8, !tbaa !11
  %160 = getelementptr inbounds double, ptr %158, i64 %159
  store double %156, ptr %160, align 8, !tbaa !13
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !15
  %163 = load i64, ptr %7, align 8, !tbaa !11
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !13
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !15
  %168 = load i64, ptr %7, align 8, !tbaa !11
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  store double %165, ptr %169, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %153
  %171 = load i64, ptr %7, align 8, !tbaa !11
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %7, align 8, !tbaa !11
  br label %148, !llvm.loop !22

173:                                              ; preds = %148
  %174 = load i64, ptr %6, align 8, !tbaa !11
  %175 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %174, ptr noundef %175)
  %176 = load i64, ptr %6, align 8, !tbaa !11
  %177 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL21testfhtunit_reffhtr1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %176, ptr noundef %177)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %200, %173
  %179 = load i64, ptr %7, align 8, !tbaa !11
  %180 = load i64, ptr %6, align 8, !tbaa !11
  %181 = sub nsw i64 %180, 1
  %182 = icmp sle i64 %179, %181
  br i1 %182, label %183, label %203

183:                                              ; preds = %178
  %184 = load double, ptr %13, align 8, !tbaa !13
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !15
  %187 = load i64, ptr %7, align 8, !tbaa !11
  %188 = getelementptr inbounds double, ptr %186, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !13
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !15
  %192 = load i64, ptr %7, align 8, !tbaa !11
  %193 = getelementptr inbounds double, ptr %191, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !13
  %195 = fsub double %189, %194
  %196 = load ptr, ptr %4, align 8, !tbaa !9
  %197 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %195, ptr noundef %196)
  %198 = load ptr, ptr %4, align 8, !tbaa !9
  %199 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %184, double noundef %197, ptr noundef %198)
  store double %199, ptr %13, align 8, !tbaa !13
  br label %200

200:                                              ; preds = %183
  %201 = load i64, ptr %7, align 8, !tbaa !11
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %7, align 8, !tbaa !11
  br label %178, !llvm.loop !23

203:                                              ; preds = %178
  %204 = load i64, ptr %6, align 8, !tbaa !11
  %205 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %204, ptr noundef %205)
  %206 = load i64, ptr %6, align 8, !tbaa !11
  %207 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %206, ptr noundef %207)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %208

208:                                              ; preds = %230, %203
  %209 = load i64, ptr %7, align 8, !tbaa !11
  %210 = load i64, ptr %6, align 8, !tbaa !11
  %211 = sub nsw i64 %210, 1
  %212 = icmp sle i64 %209, %211
  br i1 %212, label %213, label %233

213:                                              ; preds = %208
  %214 = load ptr, ptr %4, align 8, !tbaa !9
  %215 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %214)
  %216 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %215, double -1.000000e+00)
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !15
  %219 = load i64, ptr %7, align 8, !tbaa !11
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  store double %216, ptr %220, align 8, !tbaa !13
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = load i64, ptr %7, align 8, !tbaa !11
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !13
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %227 = load ptr, ptr %226, align 8, !tbaa !15
  %228 = load i64, ptr %7, align 8, !tbaa !11
  %229 = getelementptr inbounds double, ptr %227, i64 %228
  store double %225, ptr %229, align 8, !tbaa !13
  br label %230

230:                                              ; preds = %213
  %231 = load i64, ptr %7, align 8, !tbaa !11
  %232 = add nsw i64 %231, 1
  store i64 %232, ptr %7, align 8, !tbaa !11
  br label %208, !llvm.loop !24

233:                                              ; preds = %208
  %234 = load i64, ptr %6, align 8, !tbaa !11
  %235 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %8, i64 noundef %234, ptr noundef %235)
  %236 = load i64, ptr %6, align 8, !tbaa !11
  %237 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZL24testfhtunit_reffhtr1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef %9, i64 noundef %236, ptr noundef %237)
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %238

238:                                              ; preds = %260, %233
  %239 = load i64, ptr %7, align 8, !tbaa !11
  %240 = load i64, ptr %6, align 8, !tbaa !11
  %241 = sub nsw i64 %240, 1
  %242 = icmp sle i64 %239, %241
  br i1 %242, label %243, label %263

243:                                              ; preds = %238
  %244 = load double, ptr %13, align 8, !tbaa !13
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %8, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !15
  %247 = load i64, ptr %7, align 8, !tbaa !11
  %248 = getelementptr inbounds double, ptr %246, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !13
  %250 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %9, i32 0, i32 4
  %251 = load ptr, ptr %250, align 8, !tbaa !15
  %252 = load i64, ptr %7, align 8, !tbaa !11
  %253 = getelementptr inbounds double, ptr %251, i64 %252
  %254 = load double, ptr %253, align 8, !tbaa !13
  %255 = fsub double %249, %254
  %256 = load ptr, ptr %4, align 8, !tbaa !9
  %257 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %255, ptr noundef %256)
  %258 = load ptr, ptr %4, align 8, !tbaa !9
  %259 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %244, double noundef %257, ptr noundef %258)
  store double %259, ptr %13, align 8, !tbaa !13
  br label %260

260:                                              ; preds = %243
  %261 = load i64, ptr %7, align 8, !tbaa !11
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %7, align 8, !tbaa !11
  br label %238, !llvm.loop !25

263:                                              ; preds = %238
  br label %264

264:                                              ; preds = %263
  %265 = load i64, ptr %6, align 8, !tbaa !11
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %6, align 8, !tbaa !11
  br label %139, !llvm.loop !26

267:                                              ; preds = %139
  %268 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %269 = trunc i8 %268 to i1
  br i1 %269, label %274, label %270

270:                                              ; preds = %267
  %271 = load double, ptr %13, align 8, !tbaa !13
  %272 = load double, ptr %14, align 8, !tbaa !13
  %273 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %271, double noundef %272)
  br label %274

274:                                              ; preds = %270, %267
  %275 = phi i1 [ true, %267 ], [ %273, %270 ]
  %276 = zext i1 %275 to i8
  store i8 %276, ptr %15, align 1, !tbaa !5
  %277 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %278 = trunc i8 %277 to i1
  br i1 %278, label %282, label %279

279:                                              ; preds = %274
  %280 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %281 = trunc i8 %280 to i1
  br label %282

282:                                              ; preds = %279, %274
  %283 = phi i1 [ true, %274 ], [ %281, %279 ]
  %284 = zext i1 %283 to i8
  store i8 %284, ptr %17, align 1, !tbaa !5
  %285 = load i8, ptr %3, align 1, !tbaa !5, !range !20, !noundef !21
  %286 = trunc i8 %285 to i1
  br i1 %286, label %320, label %287

287:                                              ; preds = %282
  %288 = call i32 (ptr, ...) @printf(ptr noundef @.str.596)
  %289 = call i32 (ptr, ...) @printf(ptr noundef @.str.579)
  %290 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %291 = trunc i8 %290 to i1
  br i1 %291, label %292, label %294

292:                                              ; preds = %287
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %296

294:                                              ; preds = %287
  %295 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %296

296:                                              ; preds = %294, %292
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str.597)
  %298 = load i8, ptr %16, align 1, !tbaa !5, !range !20, !noundef !21
  %299 = trunc i8 %298 to i1
  br i1 %299, label %300, label %302

300:                                              ; preds = %296
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %304

302:                                              ; preds = %296
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %304

304:                                              ; preds = %302, %300
  %305 = call i32 (ptr, ...) @printf(ptr noundef @.str.598)
  %306 = load i8, ptr %15, align 1, !tbaa !5, !range !20, !noundef !21
  %307 = trunc i8 %306 to i1
  br i1 %307, label %308, label %310

308:                                              ; preds = %304
  %309 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %312

310:                                              ; preds = %304
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %312

312:                                              ; preds = %310, %308
  %313 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %314 = trunc i8 %313 to i1
  br i1 %314, label %315, label %317

315:                                              ; preds = %312
  %316 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %319

317:                                              ; preds = %312
  %318 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %319

319:                                              ; preds = %317, %315
  br label %320

320:                                              ; preds = %319, %282
  %321 = load i8, ptr %17, align 1, !tbaa !5, !range !20, !noundef !21
  %322 = trunc i8 %321 to i1
  %323 = xor i1 %322, true
  %324 = zext i1 %323 to i8
  store i8 %324, ptr %18, align 1, !tbaa !5
  %325 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %325)
  %326 = load i8, ptr %18, align 1, !tbaa !5, !range !20, !noundef !21
  %327 = trunc i8 %326 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  ret i1 %327
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24testfhtunit_reffhtr1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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 = { 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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


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

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

@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 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.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.596 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.597 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.598 = external hidden unnamed_addr constant [43 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

; 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testfhtbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #5 {
  %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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  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 @_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 3, 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)
  %7 = call noundef double @_ZN11alglib_impl6ae_powEddPNS_8ae_stateE(double noundef 1.280000e+02, double noundef 1.500000e+00, ptr noundef %1)
  %8 = fmul double %7, 1.000000e+05
  %9 = getelementptr inbounds i8, ptr %4, i64 56
  %10 = getelementptr inbounds i8, ptr %5, i64 56
  %11 = getelementptr inbounds i8, ptr %6, i64 56
  br label %12

12:                                               ; preds = %2, %50
  %.0127 = phi i64 [ 1, %2 ], [ %51, %50 ]
  %.0114126 = phi double [ 0.000000e+00, %2 ], [ %48, %50 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.0127, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0127, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0127, ptr noundef %1)
  br label %13

13:                                               ; preds = %12, %13
  %.0109123 = phi i64 [ 0, %12 ], [ %28, %13 ]
  %14 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %15 = call double @llvm.fmuladd.f64(double %14, double 2.000000e+00, double -1.000000e+00)
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  %17 = getelementptr inbounds double, ptr %16, i64 %.0109123
  store double %15, ptr %17, align 8, !tbaa !8
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds double, ptr %18, i64 %.0109123
  %20 = load double, ptr %19, align 8, !tbaa !8
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 %.0109123
  store double %20, ptr %22, align 8, !tbaa !8
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 %.0109123
  %25 = load double, ptr %24, align 8, !tbaa !8
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 %.0109123
  store double %25, ptr %27, align 8, !tbaa !8
  %28 = add nuw nsw i64 %.0109123, 1
  %exitcond.not = icmp eq i64 %28, %.0127
  br i1 %exitcond.not, label %29, label %13, !llvm.loop !10

29:                                               ; preds = %13
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0127, ptr noundef %1)
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.0127, ptr noundef %1)
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0127, ptr noundef %1)
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.0127, ptr noundef %1)
  br label %30

30:                                               ; preds = %29, %30
  %.1110125 = phi i64 [ 0, %29 ], [ %49, %30 ]
  %.1115124 = phi double [ %.0114126, %29 ], [ %48, %30 ]
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds double, ptr %31, i64 %.1110125
  %33 = load double, ptr %32, align 8, !tbaa !8
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 %.1110125
  %36 = load double, ptr %35, align 8, !tbaa !8
  %37 = fsub double %33, %36
  %38 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %37, ptr noundef %1)
  %39 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1115124, double noundef %38, ptr noundef %1)
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 %.1110125
  %42 = load double, ptr %41, align 8, !tbaa !8
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %.1110125
  %45 = load double, ptr %44, align 8, !tbaa !8
  %46 = fsub double %42, %45
  %47 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %46, ptr noundef %1)
  %48 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %39, double noundef %47, ptr noundef %1)
  %49 = add nuw nsw i64 %.1110125, 1
  %exitcond138.not = icmp eq i64 %49, %.0127
  br i1 %exitcond138.not, label %50, label %30, !llvm.loop !12

50:                                               ; preds = %30
  %51 = add nuw nsw i64 %.0127, 1
  %exitcond139.not = icmp eq i64 %51, 129
  br i1 %exitcond139.not, label %52, label %12, !llvm.loop !13

52:                                               ; preds = %50
  %53 = fmul double %8, 5.000000e-16
  %54 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %48, double noundef %53)
  br label %55

55:                                               ; preds = %52, %103
  %.1135 = phi i64 [ 1, %52 ], [ %104, %103 ]
  %.0111134 = phi double [ 0.000000e+00, %52 ], [ %101, %103 ]
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1135, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1135, ptr noundef %1)
  br label %56

56:                                               ; preds = %55, %56
  %.2128 = phi i64 [ 0, %55 ], [ %66, %56 ]
  %57 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %58 = call double @llvm.fmuladd.f64(double %57, double 2.000000e+00, double -1.000000e+00)
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %.2128
  store double %58, ptr %60, align 8, !tbaa !8
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 %.2128
  %63 = load double, ptr %62, align 8, !tbaa !8
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds double, ptr %64, i64 %.2128
  store double %63, ptr %65, align 8, !tbaa !8
  %66 = add nuw nsw i64 %.2128, 1
  %exitcond140.not = icmp eq i64 %66, %.1135
  br i1 %exitcond140.not, label %67, label %56, !llvm.loop !14

67:                                               ; preds = %56
  call void @_ZN11alglib_impl6fhtr1dEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1135, ptr noundef %1)
  call void @_ZL21testfhtunit_reffhtr1dPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1135, ptr noundef %1)
  br label %68

68:                                               ; preds = %67, %68
  %.3130 = phi i64 [ 0, %67 ], [ %78, %68 ]
  %.1112129 = phi double [ %.0111134, %67 ], [ %77, %68 ]
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 %.3130
  %71 = load double, ptr %70, align 8, !tbaa !8
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 %.3130
  %74 = load double, ptr %73, align 8, !tbaa !8
  %75 = fsub double %71, %74
  %76 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %75, ptr noundef %1)
  %77 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.1112129, double noundef %76, ptr noundef %1)
  %78 = add nuw nsw i64 %.3130, 1
  %exitcond141.not = icmp eq i64 %78, %.1135
  br i1 %exitcond141.not, label %79, label %68, !llvm.loop !15

79:                                               ; preds = %68
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1135, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1135, ptr noundef %1)
  br label %80

80:                                               ; preds = %79, %80
  %.4131 = phi i64 [ 0, %79 ], [ %90, %80 ]
  %81 = call noundef double @_ZN11alglib_impl13ae_randomrealEPNS_8ae_stateE(ptr noundef %1)
  %82 = call double @llvm.fmuladd.f64(double %81, double 2.000000e+00, double -1.000000e+00)
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 %.4131
  store double %82, ptr %84, align 8, !tbaa !8
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 %.4131
  %87 = load double, ptr %86, align 8, !tbaa !8
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 %.4131
  store double %87, ptr %89, align 8, !tbaa !8
  %90 = add nuw nsw i64 %.4131, 1
  %exitcond142.not = icmp eq i64 %90, %.1135
  br i1 %exitcond142.not, label %91, label %80, !llvm.loop !16

91:                                               ; preds = %80
  call void @_ZN11alglib_impl9fhtr1dinvEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1135, ptr noundef %1)
  call void @_ZL24testfhtunit_reffhtr1dinvPN11alglib_impl9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1135, ptr noundef %1)
  br label %92

92:                                               ; preds = %91, %92
  %.5133 = phi i64 [ 0, %91 ], [ %102, %92 ]
  %.2113132 = phi double [ %77, %91 ], [ %101, %92 ]
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 %.5133
  %95 = load double, ptr %94, align 8, !tbaa !8
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 %.5133
  %98 = load double, ptr %97, align 8, !tbaa !8
  %99 = fsub double %95, %98
  %100 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %99, ptr noundef %1)
  %101 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.2113132, double noundef %100, ptr noundef %1)
  %102 = add nuw nsw i64 %.5133, 1
  %exitcond143.not = icmp eq i64 %102, %.1135
  br i1 %exitcond143.not, label %103, label %92, !llvm.loop !17

103:                                              ; preds = %92
  %104 = add nuw nsw i64 %.1135, 1
  %exitcond144.not = icmp eq i64 %104, 129
  br i1 %exitcond144.not, label %105, label %55, !llvm.loop !18

105:                                              ; preds = %103
  %106 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %101, double noundef %53)
  %107 = or i1 %54, %106
  br i1 %0, label %119, label %108

108:                                              ; preds = %105
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.596)
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.579)
  %.str.7..str.6 = select i1 %107, ptr @.str.7, ptr @.str.6
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.597)
  %.str.6.sink147 = select i1 %54, ptr @.str.7, ptr @.str.6
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink147)
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.598)
  br i1 %106, label %.thread, label %116

.thread:                                          ; preds = %108
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %.sink.split

116:                                              ; preds = %108
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %spec.select = select i1 %54, ptr @.str.1, ptr @.str.2
  br label %.sink.split

.sink.split:                                      ; preds = %116, %.thread
  %.str.1.sink = phi ptr [ @.str.1, %.thread ], [ %spec.select, %116 ]
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  br label %119

119:                                              ; preds = %.sink.split, %105
  %120 = xor i1 %107, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %120
}

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

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

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

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

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 = { 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 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


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