; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl (homkermap)

; 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._VlHomogeneousKernelMap = type { i32, double, i32, i64, double, i64, double, i64, i64, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new = external hidden unnamed_addr constant [136 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1

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

32:                                               ; preds = %5
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %339

33:                                               ; preds = %5
  %34 = load double, ptr %8, align 8, !tbaa !9
  %35 = fcmp ogt double %34, 0.000000e+00
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  br label %38

37:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 336, ptr noundef @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #8
  unreachable

38:                                               ; preds = %36
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %47, label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %48

47:                                               ; preds = %44, %41, %38
  br label %49

48:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 340, ptr noundef @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #8
  unreachable

49:                                               ; preds = %47
  %50 = load i32, ptr %11, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %56

55:                                               ; preds = %52, %49
  br label %57

56:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 343, ptr noundef @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #8
  unreachable

57:                                               ; preds = %55
  %58 = load double, ptr %10, align 8, !tbaa !9
  %59 = fcmp olt double %58, 0.000000e+00
  br i1 %59, label %60, label %112

60:                                               ; preds = %57
  %61 = load i32, ptr %11, align 4, !tbaa !5
  switch i32 %61, label %104 [
    i32 0, label %62
    i32 1, label %83
  ]

62:                                               ; preds = %60
  %63 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %63, label %82 [
    i32 1, label %64
    i32 2, label %70
    i32 0, label %76
  ]

64:                                               ; preds = %62
  %65 = load i64, ptr %9, align 8, !tbaa !11
  %66 = add i64 %65, 0
  %67 = uitofp i64 %66 to double
  %68 = call double @sqrt(double noundef %67) #7
  %69 = call double @llvm.fmuladd.f64(double 5.860000e+00, double %68, double 3.650000e+00)
  store double %69, ptr %10, align 8, !tbaa !9
  br label %82

70:                                               ; preds = %62
  %71 = load i64, ptr %9, align 8, !tbaa !11
  %72 = add i64 %71, 0
  %73 = uitofp i64 %72 to double
  %74 = call double @sqrt(double noundef %73) #7
  %75 = call double @llvm.fmuladd.f64(double 6.640000e+00, double %74, double 7.240000e+00)
  store double %75, ptr %10, align 8, !tbaa !9
  br label %82

76:                                               ; preds = %62
  %77 = load i64, ptr %9, align 8, !tbaa !11
  %78 = uitofp i64 %77 to double
  %79 = fadd double %78, 8.000000e-01
  %80 = call double @log(double noundef %79) #7
  %81 = call double @llvm.fmuladd.f64(double 2.380000e+00, double %80, double 5.600000e+00)
  store double %81, ptr %10, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %76, %70, %64, %62
  br label %104

83:                                               ; preds = %60
  %84 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %84, label %103 [
    i32 1, label %85
    i32 2, label %91
    i32 0, label %97
  ]

85:                                               ; preds = %83
  %86 = load i64, ptr %9, align 8, !tbaa !11
  %87 = uitofp i64 %86 to double
  %88 = fadd double %87, 4.440000e+00
  %89 = call double @sqrt(double noundef %88) #7
  %90 = call double @llvm.fmuladd.f64(double 8.800000e+00, double %89, double -1.260000e+01)
  store double %90, ptr %10, align 8, !tbaa !9
  br label %103

91:                                               ; preds = %83
  %92 = load i64, ptr %9, align 8, !tbaa !11
  %93 = uitofp i64 %92 to double
  %94 = fadd double %93, 1.000000e+00
  %95 = call double @sqrt(double noundef %94) #7
  %96 = call double @llvm.fmuladd.f64(double 9.630000e+00, double %95, double -2.930000e+00)
  store double %96, ptr %10, align 8, !tbaa !9
  br label %103

97:                                               ; preds = %83
  %98 = load i64, ptr %9, align 8, !tbaa !11
  %99 = uitofp i64 %98 to double
  %100 = fadd double %99, 0x3FEFAE147AE147AE
  %101 = call double @log(double noundef %100) #7
  %102 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %101, double 3.520000e+00)
  store double %102, ptr %10, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %97, %91, %85, %83
  br label %104

104:                                              ; preds = %103, %82, %60
  %105 = load double, ptr %10, align 8, !tbaa !9
  %106 = fcmp ogt double %105, 1.000000e+00
  br i1 %106, label %107, label %109

107:                                              ; preds = %104
  %108 = load double, ptr %10, align 8, !tbaa !9
  br label %110

109:                                              ; preds = %104
  br label %110

110:                                              ; preds = %109, %107
  %111 = phi double [ %108, %107 ], [ 1.000000e+00, %109 ]
  store double %111, ptr %10, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %110, %57
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = load ptr, ptr %14, align 8, !tbaa !13
  %115 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %114, i32 0, i32 0
  store i32 %113, ptr %115, align 8, !tbaa !15
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = load ptr, ptr %14, align 8, !tbaa !13
  %118 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %117, i32 0, i32 2
  store i32 %116, ptr %118, align 8, !tbaa !17
  %119 = load double, ptr %8, align 8, !tbaa !9
  %120 = load ptr, ptr %14, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %120, i32 0, i32 1
  store double %119, ptr %121, align 8, !tbaa !18
  %122 = load i64, ptr %9, align 8, !tbaa !11
  %123 = load ptr, ptr %14, align 8, !tbaa !13
  %124 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %123, i32 0, i32 3
  store i64 %122, ptr %124, align 8, !tbaa !19
  %125 = load double, ptr %10, align 8, !tbaa !9
  %126 = load ptr, ptr %14, align 8, !tbaa !13
  %127 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %126, i32 0, i32 4
  store double %125, ptr %127, align 8, !tbaa !20
  %128 = load i64, ptr %9, align 8, !tbaa !11
  %129 = mul i64 8, %128
  %130 = add i64 8, %129
  %131 = load ptr, ptr %14, align 8, !tbaa !13
  %132 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %131, i32 0, i32 5
  store i64 %130, ptr %132, align 8, !tbaa !21
  %133 = load ptr, ptr %14, align 8, !tbaa !13
  %134 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %133, i32 0, i32 5
  %135 = load i64, ptr %134, align 8, !tbaa !21
  %136 = uitofp i64 %135 to double
  %137 = fdiv double 1.000000e+00, %136
  %138 = load ptr, ptr %14, align 8, !tbaa !13
  %139 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %138, i32 0, i32 6
  store double %137, ptr %139, align 8, !tbaa !22
  %140 = load ptr, ptr %14, align 8, !tbaa !13
  %141 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %140, i32 0, i32 7
  store i64 -20, ptr %141, align 8, !tbaa !23
  %142 = load ptr, ptr %14, align 8, !tbaa !13
  %143 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %142, i32 0, i32 8
  store i64 8, ptr %143, align 8, !tbaa !24
  %144 = load ptr, ptr %14, align 8, !tbaa !13
  %145 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %144, i32 0, i32 3
  %146 = load i64, ptr %145, align 8, !tbaa !19
  %147 = mul i64 2, %146
  %148 = add i64 %147, 1
  %149 = trunc i64 %148 to i32
  store i32 %149, ptr %13, align 4, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !13
  %151 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %150, i32 0, i32 5
  %152 = load i64, ptr %151, align 8, !tbaa !21
  %153 = load ptr, ptr %14, align 8, !tbaa !13
  %154 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %153, i32 0, i32 8
  %155 = load i64, ptr %154, align 8, !tbaa !24
  %156 = load ptr, ptr %14, align 8, !tbaa !13
  %157 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %156, i32 0, i32 7
  %158 = load i64, ptr %157, align 8, !tbaa !23
  %159 = sub nsw i64 %155, %158
  %160 = add nsw i64 %159, 1
  %161 = mul i64 %152, %160
  %162 = trunc i64 %161 to i32
  store i32 %162, ptr %12, align 4, !tbaa !5
  %163 = load i32, ptr %13, align 4, !tbaa !5
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = mul nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = load ptr, ptr %14, align 8, !tbaa !13
  %168 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %167, i32 0, i32 3
  %169 = load i64, ptr %168, align 8, !tbaa !19
  %170 = add i64 1, %169
  %171 = mul i64 2, %170
  %172 = add i64 %166, %171
  %173 = mul i64 8, %172
  %174 = call ptr @vl_malloc(i64 noundef %173)
  %175 = load ptr, ptr %14, align 8, !tbaa !13
  %176 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %175, i32 0, i32 9
  store ptr %174, ptr %176, align 8, !tbaa !25
  %177 = load ptr, ptr %14, align 8, !tbaa !13
  %178 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %177, i32 0, i32 9
  %179 = load ptr, ptr %178, align 8, !tbaa !25
  %180 = icmp ne ptr %179, null
  br i1 %180, label %183, label %181

181:                                              ; preds = %112
  %182 = load ptr, ptr %14, align 8, !tbaa !13
  call void @vl_free(ptr noundef %182)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %339

183:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %184 = load ptr, ptr %14, align 8, !tbaa !13
  %185 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %184, i32 0, i32 9
  %186 = load ptr, ptr %185, align 8, !tbaa !25
  store ptr %186, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %187 = load ptr, ptr %14, align 8, !tbaa !13
  %188 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %187, i32 0, i32 9
  %189 = load ptr, ptr %188, align 8, !tbaa !25
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = load i32, ptr %12, align 4, !tbaa !5
  %192 = mul nsw i32 %190, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds double, ptr %189, i64 %193
  store ptr %194, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %195 = load ptr, ptr %20, align 8, !tbaa !13
  %196 = load ptr, ptr %14, align 8, !tbaa !13
  %197 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %196, i32 0, i32 3
  %198 = load i64, ptr %197, align 8, !tbaa !19
  %199 = add i64 1, %198
  %200 = getelementptr inbounds double, ptr %195, i64 %199
  store ptr %200, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %201 = load ptr, ptr %14, align 8, !tbaa !13
  %202 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %201, i32 0, i32 4
  %203 = load double, ptr %202, align 8, !tbaa !20
  %204 = fdiv double 0x401921FB54442D18, %203
  store double %204, ptr %22, align 8, !tbaa !9
  store i64 0, ptr %18, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %241, %183
  %206 = load i64, ptr %17, align 8, !tbaa !11
  %207 = load ptr, ptr %14, align 8, !tbaa !13
  %208 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %207, i32 0, i32 3
  %209 = load i64, ptr %208, align 8, !tbaa !19
  %210 = icmp ule i64 %206, %209
  br i1 %210, label %211, label %242

211:                                              ; preds = %205
  %212 = load i64, ptr %18, align 8, !tbaa !11
  %213 = uitofp i64 %212 to double
  %214 = load ptr, ptr %21, align 8, !tbaa !13
  %215 = load i64, ptr %17, align 8, !tbaa !11
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  store double %213, ptr %216, align 8, !tbaa !9
  %217 = load ptr, ptr %14, align 8, !tbaa !13
  %218 = load i64, ptr %18, align 8, !tbaa !11
  %219 = uitofp i64 %218 to double
  %220 = load double, ptr %22, align 8, !tbaa !9
  %221 = fmul double %219, %220
  %222 = call double @vl_homogeneouskernelmap_get_smooth_spectrum(ptr noundef %217, double noundef %221)
  %223 = load ptr, ptr %20, align 8, !tbaa !13
  %224 = load i64, ptr %17, align 8, !tbaa !11
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %222, ptr %225, align 8, !tbaa !9
  %226 = load i64, ptr %18, align 8, !tbaa !11
  %227 = add i64 %226, 1
  store i64 %227, ptr %18, align 8, !tbaa !11
  %228 = load ptr, ptr %20, align 8, !tbaa !13
  %229 = load i64, ptr %17, align 8, !tbaa !11
  %230 = getelementptr inbounds double, ptr %228, i64 %229
  %231 = load double, ptr %230, align 8, !tbaa !9
  %232 = fcmp ogt double %231, 0.000000e+00
  br i1 %232, label %238, label %233

233:                                              ; preds = %211
  %234 = load i64, ptr %18, align 8, !tbaa !11
  %235 = load i64, ptr %17, align 8, !tbaa !11
  %236 = mul i64 3, %235
  %237 = icmp uge i64 %234, %236
  br i1 %237, label %238, label %241

238:                                              ; preds = %233, %211
  %239 = load i64, ptr %17, align 8, !tbaa !11
  %240 = add i64 %239, 1
  store i64 %240, ptr %17, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %238, %233
  br label %205, !llvm.loop !26

242:                                              ; preds = %205
  %243 = load ptr, ptr %14, align 8, !tbaa !13
  %244 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %243, i32 0, i32 7
  %245 = load i64, ptr %244, align 8, !tbaa !23
  store i64 %245, ptr %16, align 8, !tbaa !11
  br label %246

246:                                              ; preds = %334, %242
  %247 = load i64, ptr %16, align 8, !tbaa !11
  %248 = load ptr, ptr %14, align 8, !tbaa !13
  %249 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %248, i32 0, i32 8
  %250 = load i64, ptr %249, align 8, !tbaa !24
  %251 = icmp sle i64 %247, %250
  br i1 %251, label %252, label %337

252:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 1.000000e+00, ptr %28, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %325, %252
  %254 = load i64, ptr %17, align 8, !tbaa !11
  %255 = load ptr, ptr %14, align 8, !tbaa !13
  %256 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %255, i32 0, i32 5
  %257 = load i64, ptr %256, align 8, !tbaa !21
  %258 = icmp ult i64 %254, %257
  br i1 %258, label %259, label %333

259:                                              ; preds = %253
  %260 = load double, ptr %28, align 8, !tbaa !9
  %261 = load i64, ptr %16, align 8, !tbaa !11
  %262 = trunc i64 %261 to i32
  %263 = call double @ldexp(double noundef %260, i32 noundef %262) #7
  store double %263, ptr %23, align 8, !tbaa !9
  %264 = load double, ptr %23, align 8, !tbaa !9
  %265 = load ptr, ptr %14, align 8, !tbaa !13
  %266 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %265, i32 0, i32 1
  %267 = load double, ptr %266, align 8, !tbaa !18
  %268 = call double @pow(double noundef %264, double noundef %267) #7
  store double %268, ptr %26, align 8, !tbaa !9
  %269 = load double, ptr %22, align 8, !tbaa !9
  %270 = load double, ptr %26, align 8, !tbaa !9
  %271 = fmul double %269, %270
  store double %271, ptr %24, align 8, !tbaa !9
  %272 = load double, ptr %22, align 8, !tbaa !9
  %273 = load double, ptr %23, align 8, !tbaa !9
  %274 = call double @log(double noundef %273) #7
  %275 = fmul double %272, %274
  store double %275, ptr %25, align 8, !tbaa !9
  %276 = load double, ptr %24, align 8, !tbaa !9
  %277 = load ptr, ptr %20, align 8, !tbaa !13
  %278 = getelementptr inbounds double, ptr %277, i64 0
  %279 = load double, ptr %278, align 8, !tbaa !9
  %280 = fmul double %276, %279
  %281 = call double @sqrt(double noundef %280) #7
  %282 = load ptr, ptr %19, align 8, !tbaa !13
  %283 = getelementptr inbounds double, ptr %282, i32 1
  store ptr %283, ptr %19, align 8, !tbaa !13
  store double %281, ptr %282, align 8, !tbaa !9
  store i64 1, ptr %18, align 8, !tbaa !11
  br label %284

284:                                              ; preds = %321, %259
  %285 = load i64, ptr %18, align 8, !tbaa !11
  %286 = load ptr, ptr %14, align 8, !tbaa !13
  %287 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %286, i32 0, i32 3
  %288 = load i64, ptr %287, align 8, !tbaa !19
  %289 = icmp ule i64 %285, %288
  br i1 %289, label %290, label %324

290:                                              ; preds = %284
  %291 = load double, ptr %24, align 8, !tbaa !9
  %292 = fmul double 2.000000e+00, %291
  %293 = load ptr, ptr %20, align 8, !tbaa !13
  %294 = load i64, ptr %18, align 8, !tbaa !11
  %295 = getelementptr inbounds double, ptr %293, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !9
  %297 = fmul double %292, %296
  %298 = call double @sqrt(double noundef %297) #7
  store double %298, ptr %27, align 8, !tbaa !9
  %299 = load double, ptr %27, align 8, !tbaa !9
  %300 = load ptr, ptr %21, align 8, !tbaa !13
  %301 = load i64, ptr %18, align 8, !tbaa !11
  %302 = getelementptr inbounds double, ptr %300, i64 %301
  %303 = load double, ptr %302, align 8, !tbaa !9
  %304 = load double, ptr %25, align 8, !tbaa !9
  %305 = fmul double %303, %304
  %306 = call double @cos(double noundef %305) #7
  %307 = fmul double %299, %306
  %308 = load ptr, ptr %19, align 8, !tbaa !13
  %309 = getelementptr inbounds double, ptr %308, i32 1
  store ptr %309, ptr %19, align 8, !tbaa !13
  store double %307, ptr %308, align 8, !tbaa !9
  %310 = load double, ptr %27, align 8, !tbaa !9
  %311 = load ptr, ptr %21, align 8, !tbaa !13
  %312 = load i64, ptr %18, align 8, !tbaa !11
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !9
  %315 = load double, ptr %25, align 8, !tbaa !9
  %316 = fmul double %314, %315
  %317 = call double @sin(double noundef %316) #7
  %318 = fmul double %310, %317
  %319 = load ptr, ptr %19, align 8, !tbaa !13
  %320 = getelementptr inbounds double, ptr %319, i32 1
  store ptr %320, ptr %19, align 8, !tbaa !13
  store double %318, ptr %319, align 8, !tbaa !9
  br label %321

321:                                              ; preds = %290
  %322 = load i64, ptr %18, align 8, !tbaa !11
  %323 = add i64 %322, 1
  store i64 %323, ptr %18, align 8, !tbaa !11
  br label %284, !llvm.loop !28

324:                                              ; preds = %284
  br label %325

325:                                              ; preds = %324
  %326 = load i64, ptr %17, align 8, !tbaa !11
  %327 = add i64 %326, 1
  store i64 %327, ptr %17, align 8, !tbaa !11
  %328 = load ptr, ptr %14, align 8, !tbaa !13
  %329 = getelementptr inbounds %struct._VlHomogeneousKernelMap, ptr %328, i32 0, i32 6
  %330 = load double, ptr %329, align 8, !tbaa !22
  %331 = load double, ptr %28, align 8, !tbaa !9
  %332 = fadd double %331, %330
  store double %332, ptr %28, align 8, !tbaa !9
  br label %253, !llvm.loop !29

333:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %334

334:                                              ; preds = %333
  %335 = load i64, ptr %16, align 8, !tbaa !11
  %336 = add nsw i64 %335, 1
  store i64 %336, ptr %16, align 8, !tbaa !11
  br label %246, !llvm.loop !30

337:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %338 = load ptr, ptr %14, align 8, !tbaa !13
  store ptr %338, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %339

339:                                              ; preds = %337, %181, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %340 = load ptr, ptr %6, align 8
  ret ptr %340
}

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

declare ptr @vl_malloc(i64 noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

; Function Attrs: nounwind
declare double @log(double noundef) #4

declare void @vl_free(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_homogeneouskernelmap_get_smooth_spectrum(ptr noundef, double noundef) #6

; Function Attrs: nounwind
declare double @ldexp(double noundef, i32 noundef) #4

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

; Function Attrs: nounwind
declare double @cos(double noundef) #4

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_VlHomogeneousKernelMap", !6, i64 0, !10, i64 8, !6, i64 16, !12, i64 24, !10, i64 32, !12, i64 40, !10, i64 48, !12, i64 56, !12, i64 64, !14, i64 72}
!17 = !{!16, !6, i64 16}
!18 = !{!16, !10, i64 8}
!19 = !{!16, !12, i64 24}
!20 = !{!16, !10, i64 32}
!21 = !{!16, !12, i64 40}
!22 = !{!16, !10, i64 48}
!23 = !{!16, !12, i64 56}
!24 = !{!16, !12, i64 64}
!25 = !{!16, !14, i64 72}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !27}


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

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new = external hidden unnamed_addr constant [136 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [107 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @vl_homogeneouskernelmap_new(i32 noundef %0, double noundef %1, i64 noundef %2, double noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = tail call ptr @vl_malloc(i64 noundef 80) #8
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = fcmp ogt double %1, 0.000000e+00
  br i1 %8, label %10, label %9

9:                                                ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 336, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #9
  unreachable

10:                                               ; preds = %7
  %or.cond3 = icmp ult i32 %0, 3
  br i1 %or.cond3, label %12, label %11

11:                                               ; preds = %10
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 340, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #9
  unreachable

12:                                               ; preds = %10
  %or.cond5 = icmp ult i32 %4, 2
  br i1 %or.cond5, label %14, label %13

13:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 343, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_homogeneouskernelmap_new) #9
  unreachable

14:                                               ; preds = %12
  %15 = fcmp olt double %3, 0.000000e+00
  br i1 %15, label %16, label %41

16:                                               ; preds = %14
  %trunc = trunc nuw i32 %4 to i1
  %17 = uitofp i64 %2 to double
  br i1 %trunc, label %27, label %18

18:                                               ; preds = %16
  switch i32 %0, label %default.unreachable [
    i32 1, label %19
    i32 2, label %21
    i32 0, label %23
  ]

19:                                               ; preds = %18
  %sqrt = tail call double @llvm.sqrt.f64(double %17)
  %20 = tail call double @llvm.fmuladd.f64(double %sqrt, double 5.860000e+00, double 3.650000e+00)
  br label %38

21:                                               ; preds = %18
  %sqrt133 = tail call double @llvm.sqrt.f64(double %17)
  %22 = tail call double @llvm.fmuladd.f64(double %sqrt133, double 6.640000e+00, double 7.240000e+00)
  br label %38

23:                                               ; preds = %18
  %24 = fadd double %17, 8.000000e-01
  %25 = tail call double @log(double noundef %24) #8
  %26 = tail call double @llvm.fmuladd.f64(double %25, double 2.380000e+00, double 5.600000e+00)
  br label %38

27:                                               ; preds = %16
  switch i32 %0, label %default.unreachable131 [
    i32 1, label %28
    i32 2, label %31
    i32 0, label %34
  ]

28:                                               ; preds = %27
  %29 = fadd double %17, 4.440000e+00
  %sqrt134 = tail call double @llvm.sqrt.f64(double %29)
  %30 = tail call double @llvm.fmuladd.f64(double %sqrt134, double 8.800000e+00, double -1.260000e+01)
  br label %38

31:                                               ; preds = %27
  %32 = fadd double %17, 1.000000e+00
  %sqrt135 = tail call double @llvm.sqrt.f64(double %32)
  %33 = tail call double @llvm.fmuladd.f64(double %sqrt135, double 9.630000e+00, double -2.930000e+00)
  br label %38

34:                                               ; preds = %27
  %35 = fadd double %17, 0x3FEFAE147AE147AE
  %36 = tail call double @log(double noundef %35) #8
  %37 = tail call double @llvm.fmuladd.f64(double %36, double 2.000000e+00, double 3.520000e+00)
  br label %38

default.unreachable:                              ; preds = %18
  unreachable

default.unreachable131:                           ; preds = %27
  unreachable

38:                                               ; preds = %28, %31, %34, %19, %21, %23
  %.0111 = phi double [ %37, %34 ], [ %33, %31 ], [ %30, %28 ], [ %26, %23 ], [ %22, %21 ], [ %20, %19 ]
  %39 = fcmp ogt double %.0111, 1.000000e+00
  %40 = select i1 %39, double %.0111, double 1.000000e+00
  br label %41

41:                                               ; preds = %38, %14
  %.1 = phi double [ %40, %38 ], [ %3, %14 ]
  store i32 %0, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 %4, ptr %42, align 8, !tbaa !13
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  store double %1, ptr %43, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %6, i64 24
  store i64 %2, ptr %44, align 8, !tbaa !15
  %45 = getelementptr inbounds i8, ptr %6, i64 32
  store double %.1, ptr %45, align 8, !tbaa !16
  %46 = shl i64 %2, 3
  %47 = add i64 %46, 8
  %48 = getelementptr inbounds i8, ptr %6, i64 40
  store i64 %47, ptr %48, align 8, !tbaa !17
  %49 = uitofp i64 %47 to double
  %50 = fdiv double 1.000000e+00, %49
  %51 = getelementptr inbounds i8, ptr %6, i64 48
  store double %50, ptr %51, align 8, !tbaa !18
  %52 = getelementptr inbounds i8, ptr %6, i64 56
  store i64 -20, ptr %52, align 8, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %6, i64 64
  store i64 8, ptr %53, align 8, !tbaa !20
  %.tr = trunc i64 %2 to i32
  %54 = shl i32 %.tr, 1
  %55 = or disjoint i32 %54, 1
  %56 = trunc i64 %47 to i32
  %57 = mul i32 %56, 29
  %58 = mul nsw i32 %57, %55
  %59 = sext i32 %58 to i64
  %60 = shl i64 %2, 1
  %61 = add i64 %60, 2
  %62 = add i64 %61, %59
  %63 = shl i64 %62, 3
  %64 = tail call ptr @vl_malloc(i64 noundef %63) #8
  %65 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %64, ptr %65, align 8, !tbaa !21
  %.not125 = icmp eq ptr %64, null
  br i1 %.not125, label %66, label %67

66:                                               ; preds = %41
  tail call void @vl_free(ptr noundef nonnull %6) #8
  br label %.loopexit

67:                                               ; preds = %41
  %68 = getelementptr inbounds double, ptr %64, i64 %59
  %69 = load i64, ptr %44, align 8, !tbaa !15
  %70 = getelementptr double, ptr %68, i64 %69
  %71 = getelementptr i8, ptr %70, i64 8
  %72 = load double, ptr %45, align 8, !tbaa !16
  %73 = fdiv double 0x401921FB54442D18, %72
  br label %74

74:                                               ; preds = %67, %74
  %.0113137 = phi i64 [ 0, %67 ], [ %.1114, %74 ]
  %.0115136 = phi i64 [ 0, %67 ], [ %80, %74 ]
  %75 = uitofp i64 %.0115136 to double
  %76 = getelementptr inbounds double, ptr %71, i64 %.0113137
  store double %75, ptr %76, align 8, !tbaa !22
  %77 = fmul double %73, %75
  %78 = tail call double @vl_homogeneouskernelmap_get_smooth_spectrum(ptr noundef nonnull %6, double noundef %77)
  %79 = getelementptr inbounds double, ptr %68, i64 %.0113137
  store double %78, ptr %79, align 8, !tbaa !22
  %80 = add i64 %.0115136, 1
  %81 = fcmp ogt double %78, 0.000000e+00
  %82 = mul i64 %.0113137, 3
  %.not129 = icmp uge i64 %80, %82
  %or.cond.not = or i1 %81, %.not129
  %83 = zext i1 %or.cond.not to i64
  %.1114 = add i64 %.0113137, %83
  %84 = load i64, ptr %44, align 8, !tbaa !15
  %.not126 = icmp ugt i64 %.1114, %84
  br i1 %.not126, label %85, label %74, !llvm.loop !23

85:                                               ; preds = %74
  %86 = load i64, ptr %52, align 8, !tbaa !19
  %87 = load i64, ptr %53, align 8, !tbaa !20
  %.not127147 = icmp sgt i64 %86, %87
  br i1 %.not127147, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %85
  %88 = load i64, ptr %48, align 8, !tbaa !17
  %.not150 = icmp eq i64 %88, 0
  br i1 %.not150, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge145
  %89 = phi i64 [ %128, %._crit_edge145 ], [ %87, %.preheader.lr.ph ]
  %90 = phi i64 [ %129, %._crit_edge145 ], [ 1, %.preheader.lr.ph ]
  %.0112149 = phi i64 [ %130, %._crit_edge145 ], [ %86, %.preheader.lr.ph ]
  %.0117148 = phi ptr [ %.1118.lcssa, %._crit_edge145 ], [ %64, %.preheader.lr.ph ]
  %.not151 = icmp eq i64 %90, 0
  br i1 %.not151, label %._crit_edge145, label %.lr.ph144

.lr.ph144:                                        ; preds = %.preheader
  %91 = trunc i64 %.0112149 to i32
  br label %92

92:                                               ; preds = %.lr.ph144, %._crit_edge
  %.0143 = phi double [ 1.000000e+00, %.lr.ph144 ], [ %125, %._crit_edge ]
  %.2142 = phi i64 [ 0, %.lr.ph144 ], [ %123, %._crit_edge ]
  %.1118141 = phi ptr [ %.0117148, %.lr.ph144 ], [ %.2119.lcssa, %._crit_edge ]
  %93 = tail call double @ldexp(double noundef %.0143, i32 noundef %91) #8
  %94 = load double, ptr %43, align 8, !tbaa !14
  %95 = tail call double @pow(double noundef %93, double noundef %94) #8
  %96 = fmul double %73, %95
  %97 = tail call double @log(double noundef %93) #8
  %98 = fmul double %73, %97
  %99 = load double, ptr %68, align 8, !tbaa !22
  %100 = fmul double %96, %99
  %101 = tail call double @sqrt(double noundef %100) #8
  %102 = getelementptr inbounds i8, ptr %.1118141, i64 8
  store double %101, ptr %.1118141, align 8, !tbaa !22
  %103 = load i64, ptr %44, align 8, !tbaa !15
  %.not128138 = icmp eq i64 %103, 0
  br i1 %.not128138, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %92
  %104 = fmul double %96, 2.000000e+00
  br label %105

105:                                              ; preds = %.lr.ph, %105
  %.1116140 = phi i64 [ 1, %.lr.ph ], [ %121, %105 ]
  %.2119139 = phi ptr [ %102, %.lr.ph ], [ %120, %105 ]
  %106 = getelementptr inbounds double, ptr %68, i64 %.1116140
  %107 = load double, ptr %106, align 8, !tbaa !22
  %108 = fmul double %104, %107
  %109 = tail call double @sqrt(double noundef %108) #8
  %110 = getelementptr inbounds double, ptr %71, i64 %.1116140
  %111 = load double, ptr %110, align 8, !tbaa !22
  %112 = fmul double %98, %111
  %113 = tail call double @cos(double noundef %112) #8
  %114 = fmul double %109, %113
  %115 = getelementptr inbounds i8, ptr %.2119139, i64 8
  store double %114, ptr %.2119139, align 8, !tbaa !22
  %116 = load double, ptr %110, align 8, !tbaa !22
  %117 = fmul double %98, %116
  %118 = tail call double @sin(double noundef %117) #8
  %119 = fmul double %109, %118
  %120 = getelementptr inbounds i8, ptr %.2119139, i64 16
  store double %119, ptr %115, align 8, !tbaa !22
  %121 = add i64 %.1116140, 1
  %122 = load i64, ptr %44, align 8, !tbaa !15
  %.not128 = icmp ugt i64 %121, %122
  br i1 %.not128, label %._crit_edge, label %105, !llvm.loop !25

._crit_edge:                                      ; preds = %105, %92
  %.2119.lcssa = phi ptr [ %102, %92 ], [ %120, %105 ]
  %123 = add nuw i64 %.2142, 1
  %124 = load double, ptr %51, align 8, !tbaa !18
  %125 = fadd double %.0143, %124
  %126 = load i64, ptr %48, align 8, !tbaa !17
  %127 = icmp ult i64 %123, %126
  br i1 %127, label %92, label %._crit_edge145.loopexit, !llvm.loop !26

._crit_edge145.loopexit:                          ; preds = %._crit_edge
  %.pre = load i64, ptr %53, align 8, !tbaa !20
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.loopexit, %.preheader
  %128 = phi i64 [ %89, %.preheader ], [ %.pre, %._crit_edge145.loopexit ]
  %129 = phi i64 [ 0, %.preheader ], [ %126, %._crit_edge145.loopexit ]
  %.1118.lcssa = phi ptr [ %.0117148, %.preheader ], [ %.2119.lcssa, %._crit_edge145.loopexit ]
  %130 = add nsw i64 %.0112149, 1
  %.not127.not = icmp slt i64 %.0112149, %128
  br i1 %.not127.not, label %.preheader, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %._crit_edge145, %.preheader.lr.ph, %85, %5, %66
  %.0110 = phi ptr [ null, %66 ], [ null, %5 ], [ %6, %85 ], [ %6, %.preheader.lr.ph ], [ %6, %._crit_edge145 ]
  ret ptr %.0110
}

declare ptr @vl_malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #3

declare void @vl_free(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_homogeneouskernelmap_get_smooth_spectrum(ptr noundef, double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare double @ldexp(double noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #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 = { noreturn 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 #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { inlinehint 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 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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, !7, i64 0}
!6 = !{!"_VlHomogeneousKernelMap", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !10, i64 32, !11, i64 40, !10, i64 48, !11, i64 56, !11, i64 64, !12, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !11, i64 24}
!16 = !{!6, !10, i64 32}
!17 = !{!6, !11, i64 40}
!18 = !{!6, !10, i64 48}
!19 = !{!6, !11, i64 56}
!20 = !{!6, !11, i64 64}
!21 = !{!6, !12, i64 72}
!22 = !{!10, !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24, !28}
!28 = !{!"llvm.loop.unswitch.partial.disable"}


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