; LLVM IR from yangfengzzz/Arche-webgpu :: vox.math/perlin.ll (ZN3vox12perlinNoise3Efffiii)

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

@_ZN3voxL18stb_perlin_randtabE = external hidden global [512 x i8], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN3vox12perlinNoise3Efffiii(float noundef %0, float noundef %1, float noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, 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 float, align 4
  %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 float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  store float %0, ptr %7, align 4, !tbaa !5
  store float %1, ptr %8, align 4, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  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 4, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = sub nsw i32 %48, 1
  %50 = and i32 %49, 255
  store i32 %50, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  %53 = and i32 %52, 255
  store i32 %53, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  %56 = and i32 %55, 255
  store i32 %56, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %57 = load float, ptr %7, align 4, !tbaa !5
  %58 = call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %57)
  store i32 %58, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %59 = load float, ptr %8, align 4, !tbaa !5
  %60 = call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %59)
  store i32 %60, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %61 = load float, ptr %9, align 4, !tbaa !5
  %62 = call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %61)
  store i32 %62, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %63 = load i32, ptr %33, align 4, !tbaa !9
  %64 = load i32, ptr %30, align 4, !tbaa !9
  %65 = and i32 %63, %64
  store i32 %65, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  %66 = load i32, ptr %33, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %30, align 4, !tbaa !9
  %69 = and i32 %67, %68
  store i32 %69, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %70 = load i32, ptr %34, align 4, !tbaa !9
  %71 = load i32, ptr %31, align 4, !tbaa !9
  %72 = and i32 %70, %71
  store i32 %72, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %73 = load i32, ptr %34, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  %75 = load i32, ptr %31, align 4, !tbaa !9
  %76 = and i32 %74, %75
  store i32 %76, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  %77 = load i32, ptr %35, align 4, !tbaa !9
  %78 = load i32, ptr %32, align 4, !tbaa !9
  %79 = and i32 %77, %78
  store i32 %79, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  %80 = load i32, ptr %35, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  %82 = load i32, ptr %32, align 4, !tbaa !9
  %83 = and i32 %81, %82
  store i32 %83, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  %84 = load i32, ptr %33, align 4, !tbaa !9
  %85 = sitofp i32 %84 to float
  %86 = load float, ptr %7, align 4, !tbaa !5
  %87 = fsub float %86, %85
  store float %87, ptr %7, align 4, !tbaa !5
  %88 = load float, ptr %7, align 4, !tbaa !5
  %89 = call float @llvm.fmuladd.f32(float %88, float 6.000000e+00, float -1.500000e+01)
  %90 = load float, ptr %7, align 4, !tbaa !5
  %91 = call float @llvm.fmuladd.f32(float %89, float %90, float 1.000000e+01)
  %92 = load float, ptr %7, align 4, !tbaa !5
  %93 = fmul float %91, %92
  %94 = load float, ptr %7, align 4, !tbaa !5
  %95 = fmul float %93, %94
  %96 = load float, ptr %7, align 4, !tbaa !5
  %97 = fmul float %95, %96
  store float %97, ptr %13, align 4, !tbaa !5
  %98 = load i32, ptr %34, align 4, !tbaa !9
  %99 = sitofp i32 %98 to float
  %100 = load float, ptr %8, align 4, !tbaa !5
  %101 = fsub float %100, %99
  store float %101, ptr %8, align 4, !tbaa !5
  %102 = load float, ptr %8, align 4, !tbaa !5
  %103 = call float @llvm.fmuladd.f32(float %102, float 6.000000e+00, float -1.500000e+01)
  %104 = load float, ptr %8, align 4, !tbaa !5
  %105 = call float @llvm.fmuladd.f32(float %103, float %104, float 1.000000e+01)
  %106 = load float, ptr %8, align 4, !tbaa !5
  %107 = fmul float %105, %106
  %108 = load float, ptr %8, align 4, !tbaa !5
  %109 = fmul float %107, %108
  %110 = load float, ptr %8, align 4, !tbaa !5
  %111 = fmul float %109, %110
  store float %111, ptr %14, align 4, !tbaa !5
  %112 = load i32, ptr %35, align 4, !tbaa !9
  %113 = sitofp i32 %112 to float
  %114 = load float, ptr %9, align 4, !tbaa !5
  %115 = fsub float %114, %113
  store float %115, ptr %9, align 4, !tbaa !5
  %116 = load float, ptr %9, align 4, !tbaa !5
  %117 = call float @llvm.fmuladd.f32(float %116, float 6.000000e+00, float -1.500000e+01)
  %118 = load float, ptr %9, align 4, !tbaa !5
  %119 = call float @llvm.fmuladd.f32(float %117, float %118, float 1.000000e+01)
  %120 = load float, ptr %9, align 4, !tbaa !5
  %121 = fmul float %119, %120
  %122 = load float, ptr %9, align 4, !tbaa !5
  %123 = fmul float %121, %122
  %124 = load float, ptr %9, align 4, !tbaa !5
  %125 = fmul float %123, %124
  store float %125, ptr %15, align 4, !tbaa !5
  %126 = load i32, ptr %36, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !11
  %130 = zext i8 %129 to i32
  store i32 %130, ptr %42, align 4, !tbaa !9
  %131 = load i32, ptr %37, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %132
  %134 = load i8, ptr %133, align 1, !tbaa !11
  %135 = zext i8 %134 to i32
  store i32 %135, ptr %43, align 4, !tbaa !9
  %136 = load i32, ptr %42, align 4, !tbaa !9
  %137 = load i32, ptr %38, align 4, !tbaa !9
  %138 = add nsw i32 %136, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %139
  %141 = load i8, ptr %140, align 1, !tbaa !11
  %142 = zext i8 %141 to i32
  store i32 %142, ptr %44, align 4, !tbaa !9
  %143 = load i32, ptr %42, align 4, !tbaa !9
  %144 = load i32, ptr %39, align 4, !tbaa !9
  %145 = add nsw i32 %143, %144
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %146
  %148 = load i8, ptr %147, align 1, !tbaa !11
  %149 = zext i8 %148 to i32
  store i32 %149, ptr %45, align 4, !tbaa !9
  %150 = load i32, ptr %43, align 4, !tbaa !9
  %151 = load i32, ptr %38, align 4, !tbaa !9
  %152 = add nsw i32 %150, %151
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %153
  %155 = load i8, ptr %154, align 1, !tbaa !11
  %156 = zext i8 %155 to i32
  store i32 %156, ptr %46, align 4, !tbaa !9
  %157 = load i32, ptr %43, align 4, !tbaa !9
  %158 = load i32, ptr %39, align 4, !tbaa !9
  %159 = add nsw i32 %157, %158
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !11
  %163 = zext i8 %162 to i32
  store i32 %163, ptr %47, align 4, !tbaa !9
  %164 = load i32, ptr %44, align 4, !tbaa !9
  %165 = load i32, ptr %40, align 4, !tbaa !9
  %166 = add nsw i32 %164, %165
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %167
  %169 = load i8, ptr %168, align 1, !tbaa !11
  %170 = zext i8 %169 to i32
  %171 = load float, ptr %7, align 4, !tbaa !5
  %172 = load float, ptr %8, align 4, !tbaa !5
  %173 = load float, ptr %9, align 4, !tbaa !5
  %174 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %170, float noundef %171, float noundef %172, float noundef %173)
  store float %174, ptr %16, align 4, !tbaa !5
  %175 = load i32, ptr %44, align 4, !tbaa !9
  %176 = load i32, ptr %41, align 4, !tbaa !9
  %177 = add nsw i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %178
  %180 = load i8, ptr %179, align 1, !tbaa !11
  %181 = zext i8 %180 to i32
  %182 = load float, ptr %7, align 4, !tbaa !5
  %183 = load float, ptr %8, align 4, !tbaa !5
  %184 = load float, ptr %9, align 4, !tbaa !5
  %185 = fsub float %184, 1.000000e+00
  %186 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %181, float noundef %182, float noundef %183, float noundef %185)
  store float %186, ptr %17, align 4, !tbaa !5
  %187 = load i32, ptr %45, align 4, !tbaa !9
  %188 = load i32, ptr %40, align 4, !tbaa !9
  %189 = add nsw i32 %187, %188
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %190
  %192 = load i8, ptr %191, align 1, !tbaa !11
  %193 = zext i8 %192 to i32
  %194 = load float, ptr %7, align 4, !tbaa !5
  %195 = load float, ptr %8, align 4, !tbaa !5
  %196 = fsub float %195, 1.000000e+00
  %197 = load float, ptr %9, align 4, !tbaa !5
  %198 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %193, float noundef %194, float noundef %196, float noundef %197)
  store float %198, ptr %18, align 4, !tbaa !5
  %199 = load i32, ptr %45, align 4, !tbaa !9
  %200 = load i32, ptr %41, align 4, !tbaa !9
  %201 = add nsw i32 %199, %200
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %202
  %204 = load i8, ptr %203, align 1, !tbaa !11
  %205 = zext i8 %204 to i32
  %206 = load float, ptr %7, align 4, !tbaa !5
  %207 = load float, ptr %8, align 4, !tbaa !5
  %208 = fsub float %207, 1.000000e+00
  %209 = load float, ptr %9, align 4, !tbaa !5
  %210 = fsub float %209, 1.000000e+00
  %211 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %205, float noundef %206, float noundef %208, float noundef %210)
  store float %211, ptr %19, align 4, !tbaa !5
  %212 = load i32, ptr %46, align 4, !tbaa !9
  %213 = load i32, ptr %40, align 4, !tbaa !9
  %214 = add nsw i32 %212, %213
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %215
  %217 = load i8, ptr %216, align 1, !tbaa !11
  %218 = zext i8 %217 to i32
  %219 = load float, ptr %7, align 4, !tbaa !5
  %220 = fsub float %219, 1.000000e+00
  %221 = load float, ptr %8, align 4, !tbaa !5
  %222 = load float, ptr %9, align 4, !tbaa !5
  %223 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %218, float noundef %220, float noundef %221, float noundef %222)
  store float %223, ptr %20, align 4, !tbaa !5
  %224 = load i32, ptr %46, align 4, !tbaa !9
  %225 = load i32, ptr %41, align 4, !tbaa !9
  %226 = add nsw i32 %224, %225
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %227
  %229 = load i8, ptr %228, align 1, !tbaa !11
  %230 = zext i8 %229 to i32
  %231 = load float, ptr %7, align 4, !tbaa !5
  %232 = fsub float %231, 1.000000e+00
  %233 = load float, ptr %8, align 4, !tbaa !5
  %234 = load float, ptr %9, align 4, !tbaa !5
  %235 = fsub float %234, 1.000000e+00
  %236 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %230, float noundef %232, float noundef %233, float noundef %235)
  store float %236, ptr %21, align 4, !tbaa !5
  %237 = load i32, ptr %47, align 4, !tbaa !9
  %238 = load i32, ptr %40, align 4, !tbaa !9
  %239 = add nsw i32 %237, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %240
  %242 = load i8, ptr %241, align 1, !tbaa !11
  %243 = zext i8 %242 to i32
  %244 = load float, ptr %7, align 4, !tbaa !5
  %245 = fsub float %244, 1.000000e+00
  %246 = load float, ptr %8, align 4, !tbaa !5
  %247 = fsub float %246, 1.000000e+00
  %248 = load float, ptr %9, align 4, !tbaa !5
  %249 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %243, float noundef %245, float noundef %247, float noundef %248)
  store float %249, ptr %22, align 4, !tbaa !5
  %250 = load i32, ptr %47, align 4, !tbaa !9
  %251 = load i32, ptr %41, align 4, !tbaa !9
  %252 = add nsw i32 %250, %251
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %253
  %255 = load i8, ptr %254, align 1, !tbaa !11
  %256 = zext i8 %255 to i32
  %257 = load float, ptr %7, align 4, !tbaa !5
  %258 = fsub float %257, 1.000000e+00
  %259 = load float, ptr %8, align 4, !tbaa !5
  %260 = fsub float %259, 1.000000e+00
  %261 = load float, ptr %9, align 4, !tbaa !5
  %262 = fsub float %261, 1.000000e+00
  %263 = call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %256, float noundef %258, float noundef %260, float noundef %262)
  store float %263, ptr %23, align 4, !tbaa !5
  %264 = load float, ptr %16, align 4, !tbaa !5
  %265 = load float, ptr %17, align 4, !tbaa !5
  %266 = load float, ptr %15, align 4, !tbaa !5
  %267 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %264, float noundef %265, float noundef %266)
  store float %267, ptr %24, align 4, !tbaa !5
  %268 = load float, ptr %18, align 4, !tbaa !5
  %269 = load float, ptr %19, align 4, !tbaa !5
  %270 = load float, ptr %15, align 4, !tbaa !5
  %271 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %268, float noundef %269, float noundef %270)
  store float %271, ptr %25, align 4, !tbaa !5
  %272 = load float, ptr %20, align 4, !tbaa !5
  %273 = load float, ptr %21, align 4, !tbaa !5
  %274 = load float, ptr %15, align 4, !tbaa !5
  %275 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %272, float noundef %273, float noundef %274)
  store float %275, ptr %26, align 4, !tbaa !5
  %276 = load float, ptr %22, align 4, !tbaa !5
  %277 = load float, ptr %23, align 4, !tbaa !5
  %278 = load float, ptr %15, align 4, !tbaa !5
  %279 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %276, float noundef %277, float noundef %278)
  store float %279, ptr %27, align 4, !tbaa !5
  %280 = load float, ptr %24, align 4, !tbaa !5
  %281 = load float, ptr %25, align 4, !tbaa !5
  %282 = load float, ptr %14, align 4, !tbaa !5
  %283 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %280, float noundef %281, float noundef %282)
  store float %283, ptr %28, align 4, !tbaa !5
  %284 = load float, ptr %26, align 4, !tbaa !5
  %285 = load float, ptr %27, align 4, !tbaa !5
  %286 = load float, ptr %14, align 4, !tbaa !5
  %287 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %284, float noundef %285, float noundef %286)
  store float %287, ptr %29, align 4, !tbaa !5
  %288 = load float, ptr %28, align 4, !tbaa !5
  %289 = load float, ptr %29, align 4, !tbaa !5
  %290 = load float, ptr %13, align 4, !tbaa !5
  %291 = call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %288, float noundef %289, float noundef %290)
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  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 4, 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
  ret float %291
}

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef, float noundef, float noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, 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"

@_ZN3voxL18stb_perlin_randtabE = external hidden local_unnamed_addr global [512 x i8], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef float @_ZN3vox12perlinNoise3Efffiii(float noundef %0, float noundef %1, float noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = add i32 %3, 255
  %8 = and i32 %7, 255
  %9 = add i32 %4, 255
  %10 = and i32 %9, 255
  %11 = add i32 %5, 255
  %12 = and i32 %11, 255
  %13 = tail call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %0)
  %14 = tail call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %1)
  %15 = tail call noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef %2)
  %16 = and i32 %13, %8
  %17 = add nsw i32 %13, 1
  %18 = and i32 %17, %8
  %19 = and i32 %14, %10
  %20 = add nsw i32 %14, 1
  %21 = and i32 %20, %10
  %22 = and i32 %15, %12
  %23 = add nsw i32 %15, 1
  %24 = and i32 %23, %12
  %25 = sitofp i32 %13 to float
  %26 = fsub float %0, %25
  %27 = tail call float @llvm.fmuladd.f32(float %26, float 6.000000e+00, float -1.500000e+01)
  %28 = tail call float @llvm.fmuladd.f32(float %27, float %26, float 1.000000e+01)
  %29 = fmul float %26, %28
  %30 = fmul float %26, %29
  %31 = fmul float %26, %30
  %32 = sitofp i32 %14 to float
  %33 = fsub float %1, %32
  %34 = tail call float @llvm.fmuladd.f32(float %33, float 6.000000e+00, float -1.500000e+01)
  %35 = tail call float @llvm.fmuladd.f32(float %34, float %33, float 1.000000e+01)
  %36 = fmul float %33, %35
  %37 = fmul float %33, %36
  %38 = fmul float %33, %37
  %39 = sitofp i32 %15 to float
  %40 = fsub float %2, %39
  %41 = tail call float @llvm.fmuladd.f32(float %40, float 6.000000e+00, float -1.500000e+01)
  %42 = tail call float @llvm.fmuladd.f32(float %41, float %40, float 1.000000e+01)
  %43 = fmul float %40, %42
  %44 = fmul float %40, %43
  %45 = fmul float %40, %44
  %46 = zext nneg i32 %16 to i64
  %47 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !5
  %49 = zext i8 %48 to i32
  %50 = zext nneg i32 %18 to i64
  %51 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !5
  %53 = zext i8 %52 to i32
  %54 = add nuw nsw i32 %19, %49
  %55 = zext nneg i32 %54 to i64
  %56 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %58 = zext i8 %57 to i32
  %59 = add nuw nsw i32 %21, %49
  %60 = zext nneg i32 %59 to i64
  %61 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !5
  %63 = zext i8 %62 to i32
  %64 = add nuw nsw i32 %19, %53
  %65 = zext nneg i32 %64 to i64
  %66 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %65
  %67 = load i8, ptr %66, align 1, !tbaa !5
  %68 = zext i8 %67 to i32
  %69 = add nuw nsw i32 %21, %53
  %70 = zext nneg i32 %69 to i64
  %71 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !5
  %73 = zext i8 %72 to i32
  %74 = add nuw nsw i32 %22, %58
  %75 = zext nneg i32 %74 to i64
  %76 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !5
  %78 = zext i8 %77 to i32
  %79 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %78, float noundef %26, float noundef %33, float noundef %40)
  %80 = add nuw nsw i32 %24, %58
  %81 = zext nneg i32 %80 to i64
  %82 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %84 = zext i8 %83 to i32
  %85 = fadd float %40, -1.000000e+00
  %86 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %84, float noundef %26, float noundef %33, float noundef %85)
  %87 = add nuw nsw i32 %22, %63
  %88 = zext nneg i32 %87 to i64
  %89 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = zext i8 %90 to i32
  %92 = fadd float %33, -1.000000e+00
  %93 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %91, float noundef %26, float noundef %92, float noundef %40)
  %94 = add nuw nsw i32 %24, %63
  %95 = zext nneg i32 %94 to i64
  %96 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !5
  %98 = zext i8 %97 to i32
  %99 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %98, float noundef %26, float noundef %92, float noundef %85)
  %100 = add nuw nsw i32 %22, %68
  %101 = zext nneg i32 %100 to i64
  %102 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !5
  %104 = zext i8 %103 to i32
  %105 = fadd float %26, -1.000000e+00
  %106 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %104, float noundef %105, float noundef %33, float noundef %40)
  %107 = add nuw nsw i32 %24, %68
  %108 = zext nneg i32 %107 to i64
  %109 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %108
  %110 = load i8, ptr %109, align 1, !tbaa !5
  %111 = zext i8 %110 to i32
  %112 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %111, float noundef %105, float noundef %33, float noundef %85)
  %113 = add nuw nsw i32 %22, %73
  %114 = zext nneg i32 %113 to i64
  %115 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !5
  %117 = zext i8 %116 to i32
  %118 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %117, float noundef %105, float noundef %92, float noundef %40)
  %119 = add nuw nsw i32 %24, %73
  %120 = zext nneg i32 %119 to i64
  %121 = getelementptr inbounds [512 x i8], ptr @_ZN3voxL18stb_perlin_randtabE, i64 0, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !5
  %123 = zext i8 %122 to i32
  %124 = tail call noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef %123, float noundef %105, float noundef %92, float noundef %85)
  %125 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %79, float noundef %86, float noundef %45)
  %126 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %93, float noundef %99, float noundef %45)
  %127 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %106, float noundef %112, float noundef %45)
  %128 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %118, float noundef %124, float noundef %45)
  %129 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %125, float noundef %126, float noundef %38)
  %130 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %127, float noundef %128, float noundef %38)
  %131 = tail call noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef %129, float noundef %130, float noundef %31)
  ret float %131
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN3voxL20stb_perlin_fastfloorEf(float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN3voxL15stb_perlin_gradEifff(i32 noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN3voxL15stb_perlin_lerpEfff(float noundef, float noundef, float noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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