; LLVM IR from phisko/kengine :: kengine/render/polyvox/libs/polyvox/examples/Paging/Perlin.ll (ZN6Perlin6noise2EPf)

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

%class.Perlin = type <{ i32, float, float, i32, [2050 x i32], [2050 x [3 x float]], [2050 x [2 x float]], [2050 x float], i8, [3 x i8] }>

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Perlin4initEv(ptr noundef nonnull align 4 dereferenceable(57417)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN6Perlin6noise2EPf(ptr noundef nonnull align 4 dereferenceable(57417) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca ptr, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %28 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 8
  %29 = load i8, ptr %28, align 4, !tbaa !9, !range !14, !noundef !15
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %35

31:                                               ; preds = %2
  %32 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !16
  call void @srand(i32 noundef %33) #4
  %34 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 8
  store i8 0, ptr %34, align 4, !tbaa !9
  call void @_ZN6Perlin4initEv(ptr noundef nonnull align 4 dereferenceable(57417) %27)
  br label %35

35:                                               ; preds = %31, %2
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 0
  %38 = load float, ptr %37, align 4, !tbaa !17
  %39 = fadd float %38, 4.096000e+03
  store float %39, ptr %22, align 4, !tbaa !17
  %40 = load float, ptr %22, align 4, !tbaa !17
  %41 = fptosi float %40 to i32
  %42 = and i32 %41, 1023
  store i32 %42, ptr %5, align 4, !tbaa !18
  %43 = load i32, ptr %5, align 4, !tbaa !18
  %44 = add nsw i32 %43, 1
  %45 = and i32 %44, 1023
  store i32 %45, ptr %6, align 4, !tbaa !18
  %46 = load float, ptr %22, align 4, !tbaa !17
  %47 = load float, ptr %22, align 4, !tbaa !17
  %48 = fptosi float %47 to i32
  %49 = sitofp i32 %48 to float
  %50 = fsub float %46, %49
  store float %50, ptr %13, align 4, !tbaa !17
  %51 = load float, ptr %13, align 4, !tbaa !17
  %52 = fsub float %51, 1.000000e+00
  store float %52, ptr %14, align 4, !tbaa !17
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 1
  %55 = load float, ptr %54, align 4, !tbaa !17
  %56 = fadd float %55, 4.096000e+03
  store float %56, ptr %22, align 4, !tbaa !17
  %57 = load float, ptr %22, align 4, !tbaa !17
  %58 = fptosi float %57 to i32
  %59 = and i32 %58, 1023
  store i32 %59, ptr %7, align 4, !tbaa !18
  %60 = load i32, ptr %7, align 4, !tbaa !18
  %61 = add nsw i32 %60, 1
  %62 = and i32 %61, 1023
  store i32 %62, ptr %8, align 4, !tbaa !18
  %63 = load float, ptr %22, align 4, !tbaa !17
  %64 = load float, ptr %22, align 4, !tbaa !17
  %65 = fptosi float %64 to i32
  %66 = sitofp i32 %65 to float
  %67 = fsub float %63, %66
  store float %67, ptr %15, align 4, !tbaa !17
  %68 = load float, ptr %15, align 4, !tbaa !17
  %69 = fsub float %68, 1.000000e+00
  store float %69, ptr %16, align 4, !tbaa !17
  %70 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %71 = load i32, ptr %5, align 4, !tbaa !18
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2050 x i32], ptr %70, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !18
  store i32 %74, ptr %25, align 4, !tbaa !18
  %75 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %76 = load i32, ptr %6, align 4, !tbaa !18
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [2050 x i32], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !18
  store i32 %79, ptr %26, align 4, !tbaa !18
  %80 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %81 = load i32, ptr %25, align 4, !tbaa !18
  %82 = load i32, ptr %7, align 4, !tbaa !18
  %83 = add nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [2050 x i32], ptr %80, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !18
  store i32 %86, ptr %9, align 4, !tbaa !18
  %87 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %88 = load i32, ptr %26, align 4, !tbaa !18
  %89 = load i32, ptr %7, align 4, !tbaa !18
  %90 = add nsw i32 %88, %89
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [2050 x i32], ptr %87, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !18
  store i32 %93, ptr %10, align 4, !tbaa !18
  %94 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %95 = load i32, ptr %25, align 4, !tbaa !18
  %96 = load i32, ptr %8, align 4, !tbaa !18
  %97 = add nsw i32 %95, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [2050 x i32], ptr %94, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !18
  store i32 %100, ptr %11, align 4, !tbaa !18
  %101 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 4
  %102 = load i32, ptr %26, align 4, !tbaa !18
  %103 = load i32, ptr %8, align 4, !tbaa !18
  %104 = add nsw i32 %102, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [2050 x i32], ptr %101, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !18
  store i32 %107, ptr %12, align 4, !tbaa !18
  %108 = load float, ptr %13, align 4, !tbaa !17
  %109 = load float, ptr %13, align 4, !tbaa !17
  %110 = fmul float %108, %109
  %111 = load float, ptr %13, align 4, !tbaa !17
  %112 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %111, float 3.000000e+00)
  %113 = fmul float %110, %112
  store float %113, ptr %18, align 4, !tbaa !17
  %114 = load float, ptr %15, align 4, !tbaa !17
  %115 = load float, ptr %15, align 4, !tbaa !17
  %116 = fmul float %114, %115
  %117 = load float, ptr %15, align 4, !tbaa !17
  %118 = call float @llvm.fmuladd.f32(float -2.000000e+00, float %117, float 3.000000e+00)
  %119 = fmul float %116, %118
  store float %119, ptr %19, align 4, !tbaa !17
  %120 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 6
  %121 = load i32, ptr %9, align 4, !tbaa !18
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [2050 x [2 x float]], ptr %120, i64 0, i64 %122
  %124 = getelementptr inbounds [2 x float], ptr %123, i64 0, i64 0
  store ptr %124, ptr %17, align 8, !tbaa !5
  %125 = load float, ptr %13, align 4, !tbaa !17
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = getelementptr inbounds float, ptr %126, i64 0
  %128 = load float, ptr %127, align 4, !tbaa !17
  %129 = load float, ptr %15, align 4, !tbaa !17
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds float, ptr %130, i64 1
  %132 = load float, ptr %131, align 4, !tbaa !17
  %133 = fmul float %129, %132
  %134 = call float @llvm.fmuladd.f32(float %125, float %128, float %133)
  store float %134, ptr %23, align 4, !tbaa !17
  %135 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 6
  %136 = load i32, ptr %10, align 4, !tbaa !18
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2050 x [2 x float]], ptr %135, i64 0, i64 %137
  %139 = getelementptr inbounds [2 x float], ptr %138, i64 0, i64 0
  store ptr %139, ptr %17, align 8, !tbaa !5
  %140 = load float, ptr %14, align 4, !tbaa !17
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds float, ptr %141, i64 0
  %143 = load float, ptr %142, align 4, !tbaa !17
  %144 = load float, ptr %15, align 4, !tbaa !17
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = getelementptr inbounds float, ptr %145, i64 1
  %147 = load float, ptr %146, align 4, !tbaa !17
  %148 = fmul float %144, %147
  %149 = call float @llvm.fmuladd.f32(float %140, float %143, float %148)
  store float %149, ptr %24, align 4, !tbaa !17
  %150 = load float, ptr %23, align 4, !tbaa !17
  %151 = load float, ptr %18, align 4, !tbaa !17
  %152 = load float, ptr %24, align 4, !tbaa !17
  %153 = load float, ptr %23, align 4, !tbaa !17
  %154 = fsub float %152, %153
  %155 = call float @llvm.fmuladd.f32(float %151, float %154, float %150)
  store float %155, ptr %20, align 4, !tbaa !17
  %156 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 6
  %157 = load i32, ptr %11, align 4, !tbaa !18
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2050 x [2 x float]], ptr %156, i64 0, i64 %158
  %160 = getelementptr inbounds [2 x float], ptr %159, i64 0, i64 0
  store ptr %160, ptr %17, align 8, !tbaa !5
  %161 = load float, ptr %13, align 4, !tbaa !17
  %162 = load ptr, ptr %17, align 8, !tbaa !5
  %163 = getelementptr inbounds float, ptr %162, i64 0
  %164 = load float, ptr %163, align 4, !tbaa !17
  %165 = load float, ptr %16, align 4, !tbaa !17
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = getelementptr inbounds float, ptr %166, i64 1
  %168 = load float, ptr %167, align 4, !tbaa !17
  %169 = fmul float %165, %168
  %170 = call float @llvm.fmuladd.f32(float %161, float %164, float %169)
  store float %170, ptr %23, align 4, !tbaa !17
  %171 = getelementptr inbounds %class.Perlin, ptr %27, i32 0, i32 6
  %172 = load i32, ptr %12, align 4, !tbaa !18
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [2050 x [2 x float]], ptr %171, i64 0, i64 %173
  %175 = getelementptr inbounds [2 x float], ptr %174, i64 0, i64 0
  store ptr %175, ptr %17, align 8, !tbaa !5
  %176 = load float, ptr %14, align 4, !tbaa !17
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = getelementptr inbounds float, ptr %177, i64 0
  %179 = load float, ptr %178, align 4, !tbaa !17
  %180 = load float, ptr %16, align 4, !tbaa !17
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = getelementptr inbounds float, ptr %181, i64 1
  %183 = load float, ptr %182, align 4, !tbaa !17
  %184 = fmul float %180, %183
  %185 = call float @llvm.fmuladd.f32(float %176, float %179, float %184)
  store float %185, ptr %24, align 4, !tbaa !17
  %186 = load float, ptr %23, align 4, !tbaa !17
  %187 = load float, ptr %18, align 4, !tbaa !17
  %188 = load float, ptr %24, align 4, !tbaa !17
  %189 = load float, ptr %23, align 4, !tbaa !17
  %190 = fsub float %188, %189
  %191 = call float @llvm.fmuladd.f32(float %187, float %190, float %186)
  store float %191, ptr %21, align 4, !tbaa !17
  %192 = load float, ptr %20, align 4, !tbaa !17
  %193 = load float, ptr %19, align 4, !tbaa !17
  %194 = load float, ptr %21, align 4, !tbaa !17
  %195 = load float, ptr %20, align 4, !tbaa !17
  %196 = fsub float %194, %195
  %197 = call float @llvm.fmuladd.f32(float %193, float %196, float %192)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret float %197
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 57416}
!10 = !{!"_ZTS6Perlin", !11, i64 0, !12, i64 4, !12, i64 8, !11, i64 12, !7, i64 16, !7, i64 8216, !7, i64 32816, !7, i64 49216, !13, i64 57416}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !11, i64 12}
!17 = !{!12, !12, i64 0}
!18 = !{!11, !11, i64 0}


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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Perlin4initEv(ptr noundef nonnull align 4 dereferenceable(57417)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN6Perlin6noise2EPf(ptr noundef nonnull align 4 dereferenceable(57417) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 57416
  %4 = load i8, ptr %3, align 4, !tbaa !5, !range !12, !noundef !13
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %6, label %9

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 12
  %8 = load i32, ptr %7, align 4, !tbaa !14
  tail call void @srand(i32 noundef %8) #4
  store i8 0, ptr %3, align 4, !tbaa !5
  tail call void @_ZN6Perlin4initEv(ptr noundef nonnull align 4 dereferenceable(57417) %0)
  br label %9

9:                                                ; preds = %6, %2
  %10 = load float, ptr %1, align 4, !tbaa !15
  %11 = fadd float %10, 4.096000e+03
  %12 = fptosi float %11 to i32
  %13 = and i32 %12, 1023
  %14 = add i32 %12, 1
  %15 = and i32 %14, 1023
  %16 = sitofp i32 %12 to float
  %17 = fsub float %11, %16
  %18 = fadd float %17, -1.000000e+00
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  %20 = load float, ptr %19, align 4, !tbaa !15
  %21 = fadd float %20, 4.096000e+03
  %22 = fptosi float %21 to i32
  %23 = and i32 %22, 1023
  %24 = add i32 %22, 1
  %25 = and i32 %24, 1023
  %26 = sitofp i32 %22 to float
  %27 = fsub float %21, %26
  %28 = fadd float %27, -1.000000e+00
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = zext nneg i32 %13 to i64
  %31 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = zext nneg i32 %15 to i64
  %34 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = add nsw i32 %23, %32
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = add nsw i32 %23, %35
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = add nsw i32 %25, %32
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !16
  %48 = add nsw i32 %25, %35
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2050 x i32], ptr %29, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = fmul float %17, %17
  %53 = tail call float @llvm.fmuladd.f32(float %17, float -2.000000e+00, float 3.000000e+00)
  %54 = fmul float %52, %53
  %55 = fmul float %27, %27
  %56 = tail call float @llvm.fmuladd.f32(float %27, float -2.000000e+00, float 3.000000e+00)
  %57 = fmul float %55, %56
  %58 = getelementptr inbounds i8, ptr %0, i64 32816
  %59 = sext i32 %39 to i64
  %60 = getelementptr inbounds [2050 x [2 x float]], ptr %58, i64 0, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %60, i64 4
  %63 = load float, ptr %62, align 4, !tbaa !15
  %64 = sext i32 %43 to i64
  %65 = getelementptr inbounds [2050 x [2 x float]], ptr %58, i64 0, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !15
  %67 = getelementptr inbounds i8, ptr %65, i64 4
  %68 = load float, ptr %67, align 4, !tbaa !15
  %69 = sext i32 %47 to i64
  %70 = getelementptr inbounds [2050 x [2 x float]], ptr %58, i64 0, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !15
  %72 = getelementptr inbounds i8, ptr %70, i64 4
  %73 = load float, ptr %72, align 4, !tbaa !15
  %74 = sext i32 %51 to i64
  %75 = getelementptr inbounds [2050 x [2 x float]], ptr %58, i64 0, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !15
  %77 = getelementptr inbounds i8, ptr %75, i64 4
  %78 = load float, ptr %77, align 4, !tbaa !15
  %79 = insertelement <2 x float> poison, float %28, i64 0
  %80 = insertelement <2 x float> %79, float %27, i64 1
  %81 = insertelement <2 x float> poison, float %73, i64 0
  %82 = insertelement <2 x float> %81, float %63, i64 1
  %83 = fmul <2 x float> %80, %82
  %84 = insertelement <2 x float> poison, float %17, i64 0
  %85 = shufflevector <2 x float> %84, <2 x float> poison, <2 x i32> zeroinitializer
  %86 = insertelement <2 x float> poison, float %71, i64 0
  %87 = insertelement <2 x float> %86, float %61, i64 1
  %88 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %85, <2 x float> %87, <2 x float> %83)
  %89 = insertelement <2 x float> poison, float %78, i64 0
  %90 = insertelement <2 x float> %89, float %68, i64 1
  %91 = fmul <2 x float> %80, %90
  %92 = insertelement <2 x float> poison, float %18, i64 0
  %93 = shufflevector <2 x float> %92, <2 x float> poison, <2 x i32> zeroinitializer
  %94 = insertelement <2 x float> poison, float %76, i64 0
  %95 = insertelement <2 x float> %94, float %66, i64 1
  %96 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %93, <2 x float> %95, <2 x float> %91)
  %97 = fsub <2 x float> %96, %88
  %98 = insertelement <2 x float> poison, float %54, i64 0
  %99 = shufflevector <2 x float> %98, <2 x float> poison, <2 x i32> zeroinitializer
  %100 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %99, <2 x float> %97, <2 x float> %88)
  %101 = extractelement <2 x float> %100, i64 0
  %102 = extractelement <2 x float> %100, i64 1
  %103 = fsub float %101, %102
  %104 = tail call float @llvm.fmuladd.f32(float %57, float %103, float %102)
  ret float %104
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !11, i64 57416}
!6 = !{!"_ZTS6Perlin", !7, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !8, i64 16, !8, i64 8216, !8, i64 32816, !8, i64 49216, !11, i64 57416}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 12}
!15 = !{!10, !10, i64 0}
!16 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass