; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z7testgkqbPN11alglib_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.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.583 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.585 = 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 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_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 void @_ZN11alglib_impl23gqgenerategausslegendreElPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

40:                                               ; preds = %149, %2
  %41 = load i64, ptr %6, align 8, !tbaa !13
  %42 = icmp sle i64 %41, 5
  br i1 %42, label %43, label %152

43:                                               ; preds = %40
  store i64 0, ptr %9, align 8, !tbaa !13
  %44 = load i64, ptr %6, align 8, !tbaa !13
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i64 15, ptr %9, align 8, !tbaa !13
  br label %47

47:                                               ; preds = %46, %43
  %48 = load i64, ptr %6, align 8, !tbaa !13
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  store i64 21, ptr %9, align 8, !tbaa !13
  br label %51

51:                                               ; preds = %50, %47
  %52 = load i64, ptr %6, align 8, !tbaa !13
  %53 = icmp eq i64 %52, 2
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store i64 31, ptr %9, align 8, !tbaa !13
  br label %55

55:                                               ; preds = %54, %51
  %56 = load i64, ptr %6, align 8, !tbaa !13
  %57 = icmp eq i64 %56, 3
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i64 41, ptr %9, align 8, !tbaa !13
  br label %59

59:                                               ; preds = %58, %55
  %60 = load i64, ptr %6, align 8, !tbaa !13
  %61 = icmp eq i64 %60, 4
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  store i64 51, ptr %9, align 8, !tbaa !13
  br label %63

63:                                               ; preds = %62, %59
  %64 = load i64, ptr %6, align 8, !tbaa !13
  %65 = icmp eq i64 %64, 5
  br i1 %65, label %66, label %67

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

67:                                               ; preds = %66, %63
  %68 = load i64, ptr %9, align 8, !tbaa !13
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl15gkqlegendrecalcElPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %68, ptr noundef %12, ptr noundef %18, ptr noundef %20, ptr noundef %19, ptr noundef %69)
  %70 = load i64, ptr %9, align 8, !tbaa !13
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14gkqlegendretblElPNS_9ae_vectorES1_S1_PdPNS_8ae_stateE(i64 noundef %70, ptr noundef %21, ptr noundef %23, ptr noundef %22, ptr noundef %8, ptr noundef %71)
  %72 = load i64, ptr %12, align 8, !tbaa !13
  %73 = icmp sle i64 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %67
  store i8 1, ptr %29, align 1, !tbaa !5
  br label %152

75:                                               ; preds = %67
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %76

76:                                               ; preds = %145, %75
  %77 = load i64, ptr %10, align 8, !tbaa !13
  %78 = load i64, ptr %9, align 8, !tbaa !13
  %79 = sub nsw i64 %78, 1
  %80 = icmp sle i64 %77, %79
  br i1 %80, label %81, label %148

81:                                               ; preds = %76
  %82 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %83 = trunc i8 %82 to i1
  br i1 %83, label %100, label %84

84:                                               ; preds = %81
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !17
  %87 = load i64, ptr %10, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %86, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = load i64, ptr %10, align 8, !tbaa !13
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = fsub double %89, %94
  %96 = load ptr, ptr %4, align 8, !tbaa !9
  %97 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %95, ptr noundef %96)
  %98 = load double, ptr %7, align 8, !tbaa !11
  %99 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %97, double noundef %98)
  br label %100

100:                                              ; preds = %84, %81
  %101 = phi i1 [ true, %81 ], [ %99, %84 ]
  %102 = zext i1 %101 to i8
  store i8 %102, ptr %28, align 1, !tbaa !5
  %103 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %104 = trunc i8 %103 to i1
  br i1 %104, label %121, label %105

105:                                              ; preds = %100
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  %108 = load i64, ptr %10, align 8, !tbaa !13
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %23, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !17
  %113 = load i64, ptr %10, align 8, !tbaa !13
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = fsub double %110, %115
  %117 = load ptr, ptr %4, align 8, !tbaa !9
  %118 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %116, ptr noundef %117)
  %119 = load double, ptr %7, align 8, !tbaa !11
  %120 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %118, double noundef %119)
  br label %121

121:                                              ; preds = %105, %100
  %122 = phi i1 [ true, %100 ], [ %120, %105 ]
  %123 = zext i1 %122 to i8
  store i8 %123, ptr %28, align 1, !tbaa !5
  %124 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %125 = trunc i8 %124 to i1
  br i1 %125, label %142, label %126

126:                                              ; preds = %121
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !17
  %129 = load i64, ptr %10, align 8, !tbaa !13
  %130 = getelementptr inbounds double, ptr %128, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load i64, ptr %10, align 8, !tbaa !13
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = fsub double %131, %136
  %138 = load ptr, ptr %4, align 8, !tbaa !9
  %139 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %137, ptr noundef %138)
  %140 = load double, ptr %7, align 8, !tbaa !11
  %141 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %139, double noundef %140)
  br label %142

142:                                              ; preds = %126, %121
  %143 = phi i1 [ true, %121 ], [ %141, %126 ]
  %144 = zext i1 %143 to i8
  store i8 %144, ptr %28, align 1, !tbaa !5
  br label %145

145:                                              ; preds = %142
  %146 = load i64, ptr %10, align 8, !tbaa !13
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %10, align 8, !tbaa !13
  br label %76, !llvm.loop !18

148:                                              ; preds = %76
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %6, align 8, !tbaa !13
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %6, align 8, !tbaa !13
  br label %40, !llvm.loop !20

152:                                              ; preds = %74, %40
  store i64 1, ptr %11, align 8, !tbaa !13
  br label %153

153:                                              ; preds = %227, %152
  %154 = load i64, ptr %11, align 8, !tbaa !13
  %155 = icmp sle i64 %154, 30
  br i1 %155, label %156, label %230

156:                                              ; preds = %153
  %157 = load i64, ptr %11, align 8, !tbaa !13
  %158 = mul nsw i64 2, %157
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %9, align 8, !tbaa !13
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  %160 = load i64, ptr %9, align 8, !tbaa !13
  %161 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl24gkqgenerategausslegendreElPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %160, ptr noundef %24, ptr noundef %18, ptr noundef %20, ptr noundef %19, ptr noundef %161)
  %162 = load i64, ptr %11, align 8, !tbaa !13
  %163 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl23gqgenerategausslegendreElPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %162, ptr noundef %25, ptr noundef %21, ptr noundef %22, ptr noundef %163)
  %164 = load i64, ptr %24, align 8, !tbaa !13
  %165 = icmp sgt i64 %164, 0
  br i1 %165, label %166, label %216

166:                                              ; preds = %156
  %167 = load i64, ptr %25, align 8, !tbaa !13
  %168 = icmp sgt i64 %167, 0
  br i1 %168, label %169, label %216

169:                                              ; preds = %166
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %212, %169
  %171 = load i64, ptr %10, align 8, !tbaa !13
  %172 = load i64, ptr %11, align 8, !tbaa !13
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %171, %173
  br i1 %174, label %175, label %215

175:                                              ; preds = %170
  %176 = load double, ptr %13, align 8, !tbaa !11
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !17
  %179 = load i64, ptr %10, align 8, !tbaa !13
  %180 = mul nsw i64 2, %179
  %181 = add nsw i64 %180, 1
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !11
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !17
  %186 = load i64, ptr %10, align 8, !tbaa !13
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !11
  %189 = fsub double %183, %188
  %190 = load ptr, ptr %4, align 8, !tbaa !9
  %191 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %189, ptr noundef %190)
  %192 = load ptr, ptr %4, align 8, !tbaa !9
  %193 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %176, double noundef %191, ptr noundef %192)
  store double %193, ptr %13, align 8, !tbaa !11
  %194 = load double, ptr %13, align 8, !tbaa !11
  %195 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !17
  %197 = load i64, ptr %10, align 8, !tbaa !13
  %198 = mul nsw i64 2, %197
  %199 = add nsw i64 %198, 1
  %200 = getelementptr inbounds double, ptr %196, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !11
  %202 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !17
  %204 = load i64, ptr %10, align 8, !tbaa !13
  %205 = getelementptr inbounds double, ptr %203, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = fsub double %201, %206
  %208 = load ptr, ptr %4, align 8, !tbaa !9
  %209 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %207, ptr noundef %208)
  %210 = load ptr, ptr %4, align 8, !tbaa !9
  %211 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %194, double noundef %209, ptr noundef %210)
  store double %211, ptr %13, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %175
  %213 = load i64, ptr %10, align 8, !tbaa !13
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %10, align 8, !tbaa !13
  br label %170, !llvm.loop !21

215:                                              ; preds = %170
  br label %217

216:                                              ; preds = %166, %156
  store i8 1, ptr %29, align 1, !tbaa !5
  br label %217

217:                                              ; preds = %216, %215
  %218 = load i8, ptr %29, align 1, !tbaa !5, !range !15, !noundef !16
  %219 = trunc i8 %218 to i1
  br i1 %219, label %224, label %220

220:                                              ; preds = %217
  %221 = load double, ptr %13, align 8, !tbaa !11
  %222 = load double, ptr %7, align 8, !tbaa !11
  %223 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %221, double noundef %222)
  br label %224

224:                                              ; preds = %220, %217
  %225 = phi i1 [ true, %217 ], [ %223, %220 ]
  %226 = zext i1 %225 to i8
  store i8 %226, ptr %29, align 1, !tbaa !5
  br label %227

227:                                              ; preds = %224
  %228 = load i64, ptr %11, align 8, !tbaa !13
  %229 = add nsw i64 %228, 1
  store i64 %229, ptr %11, align 8, !tbaa !13
  br label %153, !llvm.loop !22

230:                                              ; preds = %153
  store i64 1, ptr %11, align 8, !tbaa !13
  br label %231

231:                                              ; preds = %343, %230
  %232 = load i64, ptr %11, align 8, !tbaa !13
  %233 = icmp sle i64 %232, 15
  br i1 %233, label %234, label %346

234:                                              ; preds = %231
  %235 = load i64, ptr %11, align 8, !tbaa !13
  %236 = mul nsw i64 2, %235
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %9, align 8, !tbaa !13
  store i8 0, ptr %26, align 1, !tbaa !5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  store i64 0, ptr %14, align 8, !tbaa !13
  br label %238

238:                                              ; preds = %326, %234
  %239 = load i64, ptr %14, align 8, !tbaa !13
  %240 = icmp sle i64 %239, 9
  br i1 %240, label %241, label %329

241:                                              ; preds = %238
  store i64 0, ptr %15, align 8, !tbaa !13
  br label %242

242:                                              ; preds = %322, %241
  %243 = load i64, ptr %15, align 8, !tbaa !13
  %244 = icmp sle i64 %243, 9
  br i1 %244, label %245, label %325

245:                                              ; preds = %242
  %246 = load i64, ptr %14, align 8, !tbaa !13
  %247 = load ptr, ptr %4, align 8, !tbaa !9
  %248 = call noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef %246, ptr noundef %247)
  store double %248, ptr %16, align 8, !tbaa !11
  %249 = load i64, ptr %15, align 8, !tbaa !13
  %250 = load ptr, ptr %4, align 8, !tbaa !9
  %251 = call noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef %249, ptr noundef %250)
  store double %251, ptr %17, align 8, !tbaa !11
  %252 = load i64, ptr %9, align 8, !tbaa !13
  %253 = load double, ptr %16, align 8, !tbaa !11
  %254 = load double, ptr %17, align 8, !tbaa !11
  %255 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl22gkqgenerategaussjacobiElddPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %252, double noundef %253, double noundef %254, ptr noundef %24, ptr noundef %18, ptr noundef %20, ptr noundef %19, ptr noundef %255)
  %256 = load i64, ptr %11, align 8, !tbaa !13
  %257 = load double, ptr %16, align 8, !tbaa !11
  %258 = load double, ptr %17, align 8, !tbaa !11
  %259 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl21gqgenerategaussjacobiElddPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %256, double noundef %257, double noundef %258, ptr noundef %25, ptr noundef %21, ptr noundef %22, ptr noundef %259)
  %260 = load i64, ptr %24, align 8, !tbaa !13
  %261 = icmp sgt i64 %260, 0
  br i1 %261, label %262, label %312

262:                                              ; preds = %245
  %263 = load i64, ptr %25, align 8, !tbaa !13
  %264 = icmp sgt i64 %263, 0
  br i1 %264, label %265, label %312

265:                                              ; preds = %262
  store i8 1, ptr %26, align 1, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %266

266:                                              ; preds = %308, %265
  %267 = load i64, ptr %10, align 8, !tbaa !13
  %268 = load i64, ptr %11, align 8, !tbaa !13
  %269 = sub nsw i64 %268, 1
  %270 = icmp sle i64 %267, %269
  br i1 %270, label %271, label %311

271:                                              ; preds = %266
  %272 = load double, ptr %13, align 8, !tbaa !11
  %273 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %274 = load ptr, ptr %273, align 8, !tbaa !17
  %275 = load i64, ptr %10, align 8, !tbaa !13
  %276 = mul nsw i64 2, %275
  %277 = add nsw i64 %276, 1
  %278 = getelementptr inbounds double, ptr %274, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !11
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !17
  %282 = load i64, ptr %10, align 8, !tbaa !13
  %283 = getelementptr inbounds double, ptr %281, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !11
  %285 = fsub double %279, %284
  %286 = load ptr, ptr %4, align 8, !tbaa !9
  %287 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %285, ptr noundef %286)
  %288 = load ptr, ptr %4, align 8, !tbaa !9
  %289 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %272, double noundef %287, ptr noundef %288)
  store double %289, ptr %13, align 8, !tbaa !11
  %290 = load double, ptr %13, align 8, !tbaa !11
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !17
  %293 = load i64, ptr %10, align 8, !tbaa !13
  %294 = mul nsw i64 2, %293
  %295 = add nsw i64 %294, 1
  %296 = getelementptr inbounds double, ptr %292, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !11
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !17
  %300 = load i64, ptr %10, align 8, !tbaa !13
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !11
  %303 = fsub double %297, %302
  %304 = load ptr, ptr %4, align 8, !tbaa !9
  %305 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %303, ptr noundef %304)
  %306 = load ptr, ptr %4, align 8, !tbaa !9
  %307 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %290, double noundef %305, ptr noundef %306)
  store double %307, ptr %13, align 8, !tbaa !11
  br label %308

308:                                              ; preds = %271
  %309 = load i64, ptr %10, align 8, !tbaa !13
  %310 = add nsw i64 %309, 1
  store i64 %310, ptr %10, align 8, !tbaa !13
  br label %266, !llvm.loop !23

311:                                              ; preds = %266
  br label %321

312:                                              ; preds = %262, %245
  %313 = load i8, ptr %29, align 1, !tbaa !5, !range !15, !noundef !16
  %314 = trunc i8 %313 to i1
  br i1 %314, label %318, label %315

315:                                              ; preds = %312
  %316 = load i64, ptr %24, align 8, !tbaa !13
  %317 = icmp ne i64 %316, -5
  br label %318

318:                                              ; preds = %315, %312
  %319 = phi i1 [ true, %312 ], [ %317, %315 ]
  %320 = zext i1 %319 to i8
  store i8 %320, ptr %29, align 1, !tbaa !5
  br label %321

321:                                              ; preds = %318, %311
  br label %322

322:                                              ; preds = %321
  %323 = load i64, ptr %15, align 8, !tbaa !13
  %324 = add nsw i64 %323, 1
  store i64 %324, ptr %15, align 8, !tbaa !13
  br label %242, !llvm.loop !24

325:                                              ; preds = %242
  br label %326

326:                                              ; preds = %325
  %327 = load i64, ptr %14, align 8, !tbaa !13
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %14, align 8, !tbaa !13
  br label %238, !llvm.loop !25

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

332:                                              ; preds = %329
  %333 = load double, ptr %13, align 8, !tbaa !11
  %334 = load double, ptr %7, align 8, !tbaa !11
  %335 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %333, double noundef %334)
  br i1 %335, label %340, label %336

336:                                              ; preds = %332
  %337 = load i8, ptr %26, align 1, !tbaa !5, !range !15, !noundef !16
  %338 = trunc i8 %337 to i1
  %339 = xor i1 %338, true
  br label %340

340:                                              ; preds = %336, %332, %329
  %341 = phi i1 [ true, %332 ], [ true, %329 ], [ %339, %336 ]
  %342 = zext i1 %341 to i8
  store i8 %342, ptr %29, align 1, !tbaa !5
  br label %343

343:                                              ; preds = %340
  %344 = load i64, ptr %11, align 8, !tbaa !13
  %345 = add nsw i64 %344, 1
  store i64 %345, ptr %11, align 8, !tbaa !13
  br label %231, !llvm.loop !26

346:                                              ; preds = %231
  %347 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %348 = trunc i8 %347 to i1
  br i1 %348, label %355, label %349

349:                                              ; preds = %346
  %350 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %351 = trunc i8 %350 to i1
  br i1 %351, label %355, label %352

352:                                              ; preds = %349
  %353 = load i8, ptr %29, align 1, !tbaa !5, !range !15, !noundef !16
  %354 = trunc i8 %353 to i1
  br label %355

355:                                              ; preds = %352, %349, %346
  %356 = phi i1 [ true, %349 ], [ true, %346 ], [ %354, %352 ]
  %357 = zext i1 %356 to i8
  store i8 %357, ptr %30, align 1, !tbaa !5
  %358 = load i8, ptr %3, align 1, !tbaa !5, !range !15, !noundef !16
  %359 = trunc i8 %358 to i1
  br i1 %359, label %402, label %360

360:                                              ; preds = %355
  %361 = call i32 (ptr, ...) @printf(ptr noundef @.str.582)
  %362 = call i32 (ptr, ...) @printf(ptr noundef @.str.579)
  %363 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %364 = trunc i8 %363 to i1
  br i1 %364, label %365, label %367

365:                                              ; preds = %360
  %366 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %369

367:                                              ; preds = %360
  %368 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %369

369:                                              ; preds = %367, %365
  %370 = call i32 (ptr, ...) @printf(ptr noundef @.str.583)
  %371 = load i8, ptr %27, align 1, !tbaa !5, !range !15, !noundef !16
  %372 = trunc i8 %371 to i1
  br i1 %372, label %373, label %375

373:                                              ; preds = %369
  %374 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %377

375:                                              ; preds = %369
  %376 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %377

377:                                              ; preds = %375, %373
  %378 = call i32 (ptr, ...) @printf(ptr noundef @.str.584)
  %379 = load i8, ptr %28, align 1, !tbaa !5, !range !15, !noundef !16
  %380 = trunc i8 %379 to i1
  br i1 %380, label %381, label %383

381:                                              ; preds = %377
  %382 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %385

383:                                              ; preds = %377
  %384 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %385

385:                                              ; preds = %383, %381
  %386 = call i32 (ptr, ...) @printf(ptr noundef @.str.585)
  %387 = load i8, ptr %29, align 1, !tbaa !5, !range !15, !noundef !16
  %388 = trunc i8 %387 to i1
  br i1 %388, label %389, label %391

389:                                              ; preds = %385
  %390 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %393

391:                                              ; preds = %385
  %392 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  br label %393

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

396:                                              ; preds = %393
  %397 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %400

398:                                              ; preds = %393
  %399 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %400

400:                                              ; preds = %398, %396
  %401 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %402

402:                                              ; preds = %400, %355
  %403 = load i8, ptr %30, align 1, !tbaa !5, !range !15, !noundef !16
  %404 = trunc i8 %403 to i1
  %405 = xor i1 %404, true
  %406 = zext i1 %405 to i8
  store i8 %406, ptr %31, align 1, !tbaa !5
  %407 = load ptr, ptr %4, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %407)
  %408 = load i8, ptr %31, align 1, !tbaa !5, !range !15, !noundef !16
  %409 = trunc i8 %408 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, 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 8, 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 8, 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 %409
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef, ptr noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !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}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !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 }

@.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.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.579 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.582 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.583 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.584 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.585 = 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

; 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_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 void @_ZN11alglib_impl23gqgenerategausslegendreElPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z7testgkqbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca double, align 8
  %5 = alloca i64, 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 %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #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) %6, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %6, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, 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 %9, 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 %10, 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 %11, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %14 = getelementptr inbounds i8, ptr %6, i64 56
  %15 = getelementptr inbounds i8, ptr %9, i64 56
  %16 = getelementptr inbounds i8, ptr %8, i64 56
  %17 = getelementptr inbounds i8, ptr %11, i64 56
  %18 = getelementptr inbounds i8, ptr %7, i64 56
  %19 = getelementptr inbounds i8, ptr %10, i64 56
  br label %20

20:                                               ; preds = %2, %._crit_edge
  %.0149 = phi i64 [ 0, %2 ], [ %62, %._crit_edge ]
  %.0117148 = phi i8 [ 0, %2 ], [ %.1118.lcssa, %._crit_edge ]
  %21 = icmp eq i64 %.0149, 0
  %spec.store.select = select i1 %21, i64 15, i64 0
  %22 = icmp eq i64 %.0149, 1
  %spec.store.select4 = select i1 %22, i64 21, i64 %spec.store.select
  %23 = icmp eq i64 %.0149, 2
  %spec.store.select5 = select i1 %23, i64 31, i64 %spec.store.select4
  %24 = icmp eq i64 %.0149, 3
  %spec.store.select6 = select i1 %24, i64 41, i64 %spec.store.select5
  %25 = icmp eq i64 %.0149, 4
  %spec.store.select7 = select i1 %25, i64 51, i64 %spec.store.select6
  %26 = icmp eq i64 %.0149, 5
  %spec.store.select8 = select i1 %26, i64 61, i64 %spec.store.select7
  call void @_ZN11alglib_impl15gkqlegendrecalcElPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %spec.store.select8, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl14gkqlegendretblElPNS_9ae_vectorES1_S1_PdPNS_8ae_stateE(i64 noundef %spec.store.select8, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef nonnull %4, ptr noundef %1)
  %27 = load i64, ptr %5, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 1
  br i1 %28, label %63, label %.preheader144

.preheader144:                                    ; preds = %20
  %.not.not145.not = icmp eq i64 %spec.store.select8, 0
  br i1 %.not.not145.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader144, %.critedge137
  %.1118147 = phi i8 [ %60, %.critedge137 ], [ %.0117148, %.preheader144 ]
  %.0122146 = phi i64 [ %61, %.critedge137 ], [ 0, %.preheader144 ]
  %29 = trunc nuw i8 %.1118147 to i1
  br i1 %29, label %.critedge137, label %30

30:                                               ; preds = %.lr.ph
  %31 = load ptr, ptr %14, align 8, !tbaa !9
  %32 = getelementptr inbounds double, ptr %31, i64 %.0122146
  %33 = load double, ptr %32, align 8, !tbaa !10
  %34 = load ptr, ptr %15, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %34, i64 %.0122146
  %36 = load double, ptr %35, align 8, !tbaa !10
  %37 = fsub double %33, %36
  %38 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %37, ptr noundef %1)
  %39 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %38, double noundef 0x3D95FD7FE1796496)
  br i1 %39, label %.critedge137, label %.critedge

.critedge:                                        ; preds = %30
  %40 = load ptr, ptr %16, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %40, i64 %.0122146
  %42 = load double, ptr %41, align 8, !tbaa !10
  %43 = load ptr, ptr %17, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %43, i64 %.0122146
  %45 = load double, ptr %44, align 8, !tbaa !10
  %46 = fsub double %42, %45
  %47 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %46, ptr noundef %1)
  %48 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %47, double noundef 0x3D95FD7FE1796496)
  br i1 %48, label %.critedge137, label %49

49:                                               ; preds = %.critedge
  %50 = load ptr, ptr %18, align 8, !tbaa !9
  %51 = getelementptr inbounds double, ptr %50, i64 %.0122146
  %52 = load double, ptr %51, align 8, !tbaa !10
  %53 = load ptr, ptr %19, align 8, !tbaa !9
  %54 = getelementptr inbounds double, ptr %53, i64 %.0122146
  %55 = load double, ptr %54, align 8, !tbaa !10
  %56 = fsub double %52, %55
  %57 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %56, ptr noundef %1)
  %58 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %57, double noundef 0x3D95FD7FE1796496)
  br label %.critedge137

.critedge137:                                     ; preds = %30, %.lr.ph, %49, %.critedge
  %59 = phi i1 [ true, %.critedge ], [ %58, %49 ], [ true, %.lr.ph ], [ true, %30 ]
  %60 = zext i1 %59 to i8
  %61 = add nuw nsw i64 %.0122146, 1
  %exitcond.not = icmp eq i64 %61, %spec.store.select8
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.critedge137, %.preheader144
  %.1118.lcssa = phi i8 [ %.0117148, %.preheader144 ], [ %60, %.critedge137 ]
  %62 = add nuw nsw i64 %.0149, 1
  %exitcond171.not = icmp eq i64 %62, 6
  br i1 %exitcond171.not, label %63, label %20, !llvm.loop !14

63:                                               ; preds = %20, %._crit_edge
  %.0117.lcssa = phi i8 [ %.0117148, %20 ], [ %.1118.lcssa, %._crit_edge ]
  br label %65

.preheader142:                                    ; preds = %.thread
  %64 = zext i1 %96 to i8
  br label %98

65:                                               ; preds = %63, %.thread
  %.1153 = phi i1 [ %28, %63 ], [ %96, %.thread ]
  %.0125152 = phi i64 [ 1, %63 ], [ %97, %.thread ]
  %66 = shl nuw nsw i64 %.0125152, 1
  %67 = or disjoint i64 %66, 1
  call void @_ZN11alglib_impl24gkqgenerategausslegendreElPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %67, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl23gqgenerategausslegendreElPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %.0125152, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %68 = load i64, ptr %12, align 8, !tbaa !5
  %69 = icmp sgt i64 %68, 0
  %70 = load i64, ptr %13, align 8
  %71 = icmp sgt i64 %70, 0
  %or.cond = select i1 %69, i1 %71, i1 false
  br i1 %or.cond, label %.preheader143, label %.thread

.preheader143:                                    ; preds = %65, %.preheader143
  %.1123151 = phi i64 [ %92, %.preheader143 ], [ 0, %65 ]
  %.0129150 = phi double [ %91, %.preheader143 ], [ 0.000000e+00, %65 ]
  %72 = load ptr, ptr %14, align 8, !tbaa !9
  %73 = shl nuw nsw i64 %.1123151, 1
  %74 = or disjoint i64 %73, 1
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !10
  %77 = load ptr, ptr %15, align 8, !tbaa !9
  %78 = getelementptr inbounds double, ptr %77, i64 %.1123151
  %79 = load double, ptr %78, align 8, !tbaa !10
  %80 = fsub double %76, %79
  %81 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %80, ptr noundef %1)
  %82 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0129150, double noundef %81, ptr noundef %1)
  %83 = load ptr, ptr %18, align 8, !tbaa !9
  %84 = getelementptr inbounds double, ptr %83, i64 %74
  %85 = load double, ptr %84, align 8, !tbaa !10
  %86 = load ptr, ptr %19, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %86, i64 %.1123151
  %88 = load double, ptr %87, align 8, !tbaa !10
  %89 = fsub double %85, %88
  %90 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %89, ptr noundef %1)
  %91 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %82, double noundef %90, ptr noundef %1)
  %92 = add nuw nsw i64 %.1123151, 1
  %exitcond172.not = icmp eq i64 %92, %.0125152
  br i1 %exitcond172.not, label %93, label %.preheader143, !llvm.loop !15

93:                                               ; preds = %.preheader143
  br i1 %.1153, label %.thread, label %94

94:                                               ; preds = %93
  %95 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %91, double noundef 0x3D95FD7FE1796496)
  br label %.thread

.thread:                                          ; preds = %65, %94, %93
  %96 = phi i1 [ true, %93 ], [ %95, %94 ], [ true, %65 ]
  %97 = add nuw nsw i64 %.0125152, 1
  %exitcond173.not = icmp eq i64 %97, 31
  br i1 %exitcond173.not, label %.preheader142, label %65, !llvm.loop !16

98:                                               ; preds = %.preheader142, %142
  %.3165 = phi i8 [ %64, %.preheader142 ], [ %143, %142 ]
  %.1126164 = phi i64 [ 1, %.preheader142 ], [ %144, %142 ]
  %99 = shl nuw nsw i64 %.1126164, 1
  %100 = or disjoint i64 %99, 1
  br label %.preheader141

.preheader141:                                    ; preds = %98, %135
  %.4163 = phi i8 [ %.3165, %98 ], [ %.6, %135 ]
  %.0119162 = phi i8 [ 0, %98 ], [ %.2121, %135 ]
  %.0128161 = phi i64 [ 0, %98 ], [ %136, %135 ]
  %.2131160 = phi double [ 0.000000e+00, %98 ], [ %.5134, %135 ]
  br label %101

101:                                              ; preds = %.preheader141, %.loopexit
  %.5159 = phi i8 [ %.4163, %.preheader141 ], [ %.6, %.loopexit ]
  %.1120158 = phi i8 [ %.0119162, %.preheader141 ], [ %.2121, %.loopexit ]
  %.0127157 = phi i64 [ 0, %.preheader141 ], [ %134, %.loopexit ]
  %.3132156 = phi double [ %.2131160, %.preheader141 ], [ %.5134, %.loopexit ]
  %102 = call noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef %.0128161, ptr noundef %1)
  %103 = call noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef %.0127157, ptr noundef %1)
  call void @_ZN11alglib_impl22gkqgenerategaussjacobiElddPlPNS_9ae_vectorES2_S2_PNS_8ae_stateE(i64 noundef %100, double noundef %102, double noundef %103, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %7, ptr noundef %1)
  call void @_ZN11alglib_impl21gqgenerategaussjacobiElddPlPNS_9ae_vectorES2_PNS_8ae_stateE(i64 noundef %.1126164, double noundef %102, double noundef %103, ptr noundef nonnull %13, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef %1)
  %104 = load i64, ptr %12, align 8
  %105 = icmp sgt i64 %104, 0
  %106 = load i64, ptr %13, align 8
  %107 = icmp sgt i64 %106, 0
  %or.cond3 = select i1 %105, i1 %107, i1 false
  br i1 %or.cond3, label %.preheader, label %129

.preheader:                                       ; preds = %101, %.preheader
  %.2124155 = phi i64 [ %128, %.preheader ], [ 0, %101 ]
  %.4133154 = phi double [ %127, %.preheader ], [ %.3132156, %101 ]
  %108 = load ptr, ptr %14, align 8, !tbaa !9
  %109 = shl nuw nsw i64 %.2124155, 1
  %110 = or disjoint i64 %109, 1
  %111 = getelementptr inbounds double, ptr %108, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !10
  %113 = load ptr, ptr %15, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %113, i64 %.2124155
  %115 = load double, ptr %114, align 8, !tbaa !10
  %116 = fsub double %112, %115
  %117 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %116, ptr noundef %1)
  %118 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.4133154, double noundef %117, ptr noundef %1)
  %119 = load ptr, ptr %18, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %119, i64 %110
  %121 = load double, ptr %120, align 8, !tbaa !10
  %122 = load ptr, ptr %19, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %122, i64 %.2124155
  %124 = load double, ptr %123, align 8, !tbaa !10
  %125 = fsub double %121, %124
  %126 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %125, ptr noundef %1)
  %127 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %118, double noundef %126, ptr noundef %1)
  %128 = add nuw nsw i64 %.2124155, 1
  %exitcond174.not = icmp eq i64 %128, %.1126164
  br i1 %exitcond174.not, label %.loopexit, label %.preheader, !llvm.loop !17

129:                                              ; preds = %101
  %130 = trunc i8 %.5159 to i1
  %131 = icmp ne i64 %104, -5
  %132 = or i1 %131, %130
  %133 = zext i1 %132 to i8
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %129
  %.5134 = phi double [ %.3132156, %129 ], [ %127, %.preheader ]
  %.2121 = phi i8 [ %.1120158, %129 ], [ 1, %.preheader ]
  %.6 = phi i8 [ %133, %129 ], [ %.5159, %.preheader ]
  %134 = add nuw nsw i64 %.0127157, 1
  %exitcond175.not = icmp eq i64 %134, 10
  br i1 %exitcond175.not, label %135, label %101, !llvm.loop !18

135:                                              ; preds = %.loopexit
  %136 = add nuw nsw i64 %.0128161, 1
  %exitcond176.not = icmp eq i64 %136, 10
  br i1 %exitcond176.not, label %137, label %.preheader141, !llvm.loop !19

137:                                              ; preds = %135
  %138 = trunc i8 %.6 to i1
  br i1 %138, label %142, label %139

139:                                              ; preds = %137
  %140 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.5134, double noundef 0x3D95FD7FE1796496)
  %141 = xor i8 %.2121, 1
  %spec.select = select i1 %140, i8 1, i8 %141
  br label %142

142:                                              ; preds = %139, %137
  %143 = phi i8 [ 1, %137 ], [ %spec.select, %139 ]
  %144 = add nuw nsw i64 %.1126164, 1
  %exitcond177.not = icmp eq i64 %144, 16
  br i1 %exitcond177.not, label %145, label %98, !llvm.loop !20

145:                                              ; preds = %142
  %146 = trunc nuw i8 %.0117.lcssa to i1
  %147 = trunc nuw i8 %143 to i1
  %spec.select138 = select i1 %146, i1 true, i1 %147
  br i1 %0, label %160, label %148

148:                                              ; preds = %145
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.582)
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.579)
  %.str.7..str.6 = select i1 %spec.select138, ptr @.str.7, ptr @.str.6
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7..str.6)
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.583)
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.584)
  %.str.6.sink183 = select i1 %146, ptr @.str.7, ptr @.str.6
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink183)
  %156 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.585)
  %.str.6.sink184 = select i1 %147, ptr @.str.7, ptr @.str.6
  %157 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink184)
  %.str.2.sink = select i1 %spec.select138, ptr @.str.1, ptr @.str.2
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %160

160:                                              ; preds = %148, %145
  %161 = xor i1 %spec.select138, true
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  ret i1 %161
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL19testgkqunit_mapkindlPN11alglib_impl8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


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