; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Graphics (ImageOperation)

; 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.imp::Vec.8" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec4" = type { %"class.imp::Vec.7" }
%"class.imp::Vec.7" = type { %"class.imp::Object", [4 x float] }
%"class.imp::ImageSampler" = type <{ %"class.imp::Sampler.base", [2 x i8], %"class.std::shared_ptr", i32, [4 x i8], %"class.imp::Vec2", i8, [7 x i8] }>
%"class.imp::Sampler.base" = type <{ %"class.imp::Object", i32, i8, i8 }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec2" = type { %"class.imp::Vec" }
%"class.imp::Vec" = type { %"class.imp::Object", [2 x float] }
%"class.imp::Vec3" = type { %"class.imp::Vec.base.9", [4 x i8] }
%"class.imp::Vec.base.9" = type <{ %"class.imp::Object", [3 x float] }>
%"struct.imp::VoronoiOperation" = type <{ %"struct.imp::ImageOperation", %"class.std::shared_ptr", float, [4 x i8] }>
%"struct.imp::ImageOperation" = type { %"class.imp::Object" }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

declare void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef, i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp4fracIfEET_S1_(float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec43setEffff(ptr noundef nonnull align 8 dereferenceable(40), float noundef, float noundef, float noundef, float noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3imp5floorIfEET_S1_(float noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

declare void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp16VoronoiOperation5applyERKNS_4Vec2ERNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.imp::ImageSampler", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.imp::Vec3", align 8
  %12 = alloca %"class.imp::Vec3", align 8
  %13 = alloca %"class.imp::Vec3", align 8
  %14 = alloca %"class.imp::Vec3", align 8
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.imp::Vec3", align 8
  %20 = alloca %"class.imp::Vec3", align 8
  %21 = alloca %"class.imp::Vec.8", align 8
  %22 = alloca %"class.imp::Vec.8", align 8
  %23 = alloca %"class.imp::Vec3", align 8
  %24 = alloca %"class.imp::Vec4", align 8
  %25 = alloca %"class.imp::Vec2", align 8
  %26 = alloca %"class.imp::Vec.8", align 8
  %27 = alloca %"class.imp::Vec.8", align 8
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.imp::Vec3", align 8
  %32 = alloca %"class.imp::Vec.8", align 8
  %33 = alloca %"class.imp::Vec3", align 8
  %34 = alloca %"class.imp::Vec3", align 8
  %35 = alloca %"class.imp::Vec.8", align 8
  %36 = alloca %"class.imp::Vec.8", align 8
  %37 = alloca %"class.imp::Vec3", align 8
  %38 = alloca %"class.imp::Vec4", align 8
  %39 = alloca %"class.imp::Vec2", align 8
  %40 = alloca %"class.imp::Vec.8", align 8
  %41 = alloca %"class.imp::Vec.8", align 8
  %42 = alloca %"class.imp::Vec3", align 8
  %43 = alloca %"class.imp::Vec.8", align 8
  %44 = alloca %"class.imp::Vec3", align 8
  %45 = alloca %"class.imp::Vec.8", align 8
  %46 = alloca %"class.imp::Vec.8", align 8
  %47 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 96, ptr %7) #5
  %49 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %49) #5
  invoke void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89) %7, ptr noundef %8, i32 noundef 2)
          to label %50 unwind label %91

50:                                               ; preds = %3
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %51, i32 noundef 0)
          to label %53 unwind label %95

53:                                               ; preds = %50
  %54 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %55 = load float, ptr %54, align 8, !tbaa !9
  %56 = fmul float %52, %55
  %57 = invoke noundef float @_ZN3imp5floorIfEET_S1_(float noundef %56)
          to label %58 unwind label %95

58:                                               ; preds = %53
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %59, i32 noundef 1)
          to label %61 unwind label %95

61:                                               ; preds = %58
  %62 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %63 = load float, ptr %62, align 8, !tbaa !9
  %64 = fmul float %60, %63
  %65 = invoke noundef float @_ZN3imp5floorIfEET_S1_(float noundef %64)
          to label %66 unwind label %95

66:                                               ; preds = %61
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef %57, float noundef %65, float noundef 0.000000e+00)
          to label %67 unwind label %95

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %68, i32 noundef 0)
          to label %70 unwind label %99

70:                                               ; preds = %67
  %71 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %72 = load float, ptr %71, align 8, !tbaa !9
  %73 = fmul float %69, %72
  %74 = invoke noundef float @_ZN3imp4fracIfEET_S1_(float noundef %73)
          to label %75 unwind label %99

75:                                               ; preds = %70
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = invoke noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %76, i32 noundef 1)
          to label %78 unwind label %99

78:                                               ; preds = %75
  %79 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %80 = load float, ptr %79, align 8, !tbaa !9
  %81 = fmul float %77, %80
  %82 = invoke noundef float @_ZN3imp4fracIfEET_S1_(float noundef %81)
          to label %83 unwind label %99

83:                                               ; preds = %78
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %12, float noundef %74, float noundef %82, float noundef 0.000000e+00)
          to label %84 unwind label %99

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  invoke void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %85 unwind label %103

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #5
  invoke void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %86 unwind label %107

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float 8.000000e+00, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 -1, ptr %16, align 4, !tbaa !20
  br label %87

87:                                               ; preds = %205, %86
  %88 = load i32, ptr %16, align 4, !tbaa !20
  %89 = icmp sle i32 %88, 1
  br i1 %89, label %111, label %90

90:                                               ; preds = %87
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %208

91:                                               ; preds = %3
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %369

95:                                               ; preds = %66, %61, %58, %53, %50
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %368

99:                                               ; preds = %83, %78, %75, %70, %67
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  br label %367

103:                                              ; preds = %84
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  br label %366

107:                                              ; preds = %85
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  br label %365

111:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 -1, ptr %18, align 4, !tbaa !20
  br label %112

112:                                              ; preds = %198, %111
  %113 = load i32, ptr %18, align 4, !tbaa !20
  %114 = icmp sle i32 %113, 1
  br i1 %114, label %116, label %115

115:                                              ; preds = %112
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %204

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #5
  %117 = load i32, ptr %16, align 4, !tbaa !20
  %118 = sitofp i32 %117 to float
  %119 = load i32, ptr %18, align 4, !tbaa !20
  %120 = sitofp i32 %119 to float
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %19, float noundef %118, float noundef %120, float noundef 0.000000e+00)
          to label %121 unwind label %146

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %27, ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %19)
          to label %122 unwind label %150

122:                                              ; preds = %121
  %123 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %124 = load float, ptr %123, align 8, !tbaa !9
  invoke void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %26, ptr noundef nonnull align 8 dereferenceable(36) %27, float noundef %124)
          to label %125 unwind label %154

125:                                              ; preds = %122
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(36) %26, float noundef 1.000000e+00)
          to label %126 unwind label %158

126:                                              ; preds = %125
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8 %24, ptr noundef nonnull align 8 dereferenceable(89) %7, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %127 unwind label %162

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %24, i32 noundef 0)
          to label %129 unwind label %166

129:                                              ; preds = %127
  %130 = load float, ptr %128, align 4, !tbaa !19
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %23, float noundef %130)
          to label %131 unwind label %166

131:                                              ; preds = %129
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %22, ptr noundef nonnull align 8 dereferenceable(36) %19, ptr noundef nonnull align 8 dereferenceable(36) %23)
          to label %132 unwind label %170

132:                                              ; preds = %131
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %21, ptr noundef nonnull align 8 dereferenceable(36) %22, ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %133 unwind label %174

133:                                              ; preds = %132
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 8 dereferenceable(36) %21, float noundef 1.000000e+00)
          to label %134 unwind label %178

134:                                              ; preds = %133
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %20, i32 noundef 2)
          to label %136 unwind label %189

136:                                              ; preds = %134
  store float 0.000000e+00, ptr %135, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %137 = invoke noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20)
          to label %138 unwind label %193

138:                                              ; preds = %136
  store float %137, ptr %28, align 4, !tbaa !19
  %139 = load float, ptr %28, align 4, !tbaa !19
  %140 = load float, ptr %15, align 4, !tbaa !19
  %141 = fcmp olt float %139, %140
  br i1 %141, label %142, label %197

142:                                              ; preds = %138
  %143 = load float, ptr %28, align 4, !tbaa !19
  store float %143, ptr %15, align 4, !tbaa !19
  %144 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %20) #5
  %145 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  br label %197

146:                                              ; preds = %116
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  br label %203

150:                                              ; preds = %121
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  br label %188

154:                                              ; preds = %122
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %9, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %10, align 4
  br label %187

158:                                              ; preds = %125
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %9, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %10, align 4
  br label %186

162:                                              ; preds = %126
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %9, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %10, align 4
  br label %185

166:                                              ; preds = %129, %127
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %9, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %10, align 4
  br label %184

170:                                              ; preds = %131
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %9, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %10, align 4
  br label %183

174:                                              ; preds = %132
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %9, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %10, align 4
  br label %182

178:                                              ; preds = %133
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %9, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #5
  br label %182

182:                                              ; preds = %178, %174
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  br label %183

183:                                              ; preds = %182, %170
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  br label %184

184:                                              ; preds = %183, %166
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #5
  br label %185

185:                                              ; preds = %184, %162
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #5
  br label %186

186:                                              ; preds = %185, %158
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  br label %187

187:                                              ; preds = %186, %154
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #5
  br label %188

188:                                              ; preds = %187, %150
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  br label %202

189:                                              ; preds = %134
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  br label %201

193:                                              ; preds = %136
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %201

197:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #5
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %18, align 4, !tbaa !20
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %18, align 4, !tbaa !20
  br label %112, !llvm.loop !22

201:                                              ; preds = %193, %189
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #5
  br label %202

202:                                              ; preds = %201, %188
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  br label %203

203:                                              ; preds = %202, %146
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %364

204:                                              ; preds = %115
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %16, align 4, !tbaa !20
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %16, align 4, !tbaa !20
  br label %87, !llvm.loop !24

208:                                              ; preds = %90
  store float 8.000000e+00, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 -2, ptr %29, align 4, !tbaa !20
  br label %209

209:                                              ; preds = %351, %208
  %210 = load i32, ptr %29, align 4, !tbaa !20
  %211 = icmp sle i32 %210, 2
  br i1 %211, label %213, label %212

212:                                              ; preds = %209
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %354

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 -2, ptr %30, align 4, !tbaa !20
  br label %214

214:                                              ; preds = %253, %213
  %215 = load i32, ptr %30, align 4, !tbaa !20
  %216 = icmp sle i32 %215, 2
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %350

218:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 40, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %33) #5
  %219 = load i32, ptr %29, align 4, !tbaa !20
  %220 = sitofp i32 %219 to float
  %221 = load i32, ptr %30, align 4, !tbaa !20
  %222 = sitofp i32 %221 to float
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %33, float noundef %220, float noundef %222, float noundef 0.000000e+00)
          to label %223 unwind label %256

223:                                              ; preds = %218
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %32, ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %33)
          to label %224 unwind label %260

224:                                              ; preds = %223
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %32, float noundef 1.000000e+00)
          to label %225 unwind label %264

225:                                              ; preds = %224
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %41) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %41, ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %31)
          to label %226 unwind label %270

226:                                              ; preds = %225
  %227 = getelementptr inbounds %"struct.imp::VoronoiOperation", ptr %48, i32 0, i32 2
  %228 = load float, ptr %227, align 8, !tbaa !9
  invoke void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %40, ptr noundef nonnull align 8 dereferenceable(36) %41, float noundef %228)
          to label %229 unwind label %274

229:                                              ; preds = %226
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(36) %40, float noundef 1.000000e+00)
          to label %230 unwind label %278

230:                                              ; preds = %229
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8 %38, ptr noundef nonnull align 8 dereferenceable(89) %7, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %231 unwind label %282

231:                                              ; preds = %230
  %232 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %38, i32 noundef 0)
          to label %233 unwind label %286

233:                                              ; preds = %231
  %234 = load float, ptr %232, align 4, !tbaa !19
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %37, float noundef %234)
          to label %235 unwind label %286

235:                                              ; preds = %233
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %36, ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %37)
          to label %236 unwind label %290

236:                                              ; preds = %235
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %35, ptr noundef nonnull align 8 dereferenceable(36) %36, ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %237 unwind label %294

237:                                              ; preds = %236
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %35, float noundef 1.000000e+00)
          to label %238 unwind label %298

238:                                              ; preds = %237
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %36) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %37) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %41) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #5
  %239 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %34, i32 noundef 2)
          to label %240 unwind label %309

240:                                              ; preds = %238
  store float 0.000000e+00, ptr %239, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 40, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %43) #5
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %43, ptr noundef nonnull align 8 dereferenceable(36) %34, ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %241 unwind label %313

241:                                              ; preds = %240
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %42, ptr noundef nonnull align 8 dereferenceable(36) %43, float noundef 1.000000e+00)
          to label %242 unwind label %317

242:                                              ; preds = %241
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %43) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %43) #5
  %243 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %42)
          to label %244 unwind label %322

244:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 40, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %46) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %46, ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %34)
          to label %245 unwind label %326

245:                                              ; preds = %244
  invoke void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind writable sret(%"class.imp::Vec.8") align 8 %45, ptr noundef nonnull align 8 dereferenceable(36) %46, float noundef 5.000000e-01)
          to label %246 unwind label %330

246:                                              ; preds = %245
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %44, ptr noundef nonnull align 8 dereferenceable(36) %45, float noundef 1.000000e+00)
          to label %247 unwind label %334

247:                                              ; preds = %246
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %45) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %46) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %45) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  %248 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %44, ptr noundef nonnull align 8 dereferenceable(36) %42)
          to label %249 unwind label %340

249:                                              ; preds = %247
  store float %248, ptr %47, align 4, !tbaa !19
  %250 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %251 unwind label %340

251:                                              ; preds = %249
  %252 = load float, ptr %250, align 4, !tbaa !19
  store float %252, ptr %15, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %44) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %44) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %42) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #5
  br label %253

253:                                              ; preds = %251
  %254 = load i32, ptr %30, align 4, !tbaa !20
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %30, align 4, !tbaa !20
  br label %214, !llvm.loop !25

256:                                              ; preds = %218
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %9, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %10, align 4
  br label %269

260:                                              ; preds = %223
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %9, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %10, align 4
  br label %268

264:                                              ; preds = %224
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %9, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #5
  br label %268

268:                                              ; preds = %264, %260
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #5
  br label %269

269:                                              ; preds = %268, %256
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #5
  br label %349

270:                                              ; preds = %225
  %271 = landingpad { ptr, i32 }
          cleanup
  %272 = extractvalue { ptr, i32 } %271, 0
  store ptr %272, ptr %9, align 8
  %273 = extractvalue { ptr, i32 } %271, 1
  store i32 %273, ptr %10, align 4
  br label %308

274:                                              ; preds = %226
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %9, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %10, align 4
  br label %307

278:                                              ; preds = %229
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %9, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %10, align 4
  br label %306

282:                                              ; preds = %230
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %9, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %10, align 4
  br label %305

286:                                              ; preds = %233, %231
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %9, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %10, align 4
  br label %304

290:                                              ; preds = %235
  %291 = landingpad { ptr, i32 }
          cleanup
  %292 = extractvalue { ptr, i32 } %291, 0
  store ptr %292, ptr %9, align 8
  %293 = extractvalue { ptr, i32 } %291, 1
  store i32 %293, ptr %10, align 4
  br label %303

294:                                              ; preds = %236
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %9, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %10, align 4
  br label %302

298:                                              ; preds = %237
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %9, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #5
  br label %302

302:                                              ; preds = %298, %294
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %36) #5
  br label %303

303:                                              ; preds = %302, %290
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %37) #5
  br label %304

304:                                              ; preds = %303, %286
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #5
  br label %305

305:                                              ; preds = %304, %282
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #5
  br label %306

306:                                              ; preds = %305, %278
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %40) #5
  br label %307

307:                                              ; preds = %306, %274
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %41) #5
  br label %308

308:                                              ; preds = %307, %270
  call void @llvm.lifetime.end.p0(i64 40, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %35) #5
  br label %348

309:                                              ; preds = %238
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %9, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %10, align 4
  br label %347

313:                                              ; preds = %240
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %9, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %10, align 4
  br label %321

317:                                              ; preds = %241
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %9, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %43) #5
  br label %321

321:                                              ; preds = %317, %313
  call void @llvm.lifetime.end.p0(i64 40, ptr %43) #5
  br label %346

322:                                              ; preds = %242
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %9, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %10, align 4
  br label %345

326:                                              ; preds = %244
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %9, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %10, align 4
  br label %339

330:                                              ; preds = %245
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %9, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %10, align 4
  br label %338

334:                                              ; preds = %246
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %9, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %10, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %45) #5
  br label %338

338:                                              ; preds = %334, %330
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %46) #5
  br label %339

339:                                              ; preds = %338, %326
  call void @llvm.lifetime.end.p0(i64 40, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %45) #5
  br label %344

340:                                              ; preds = %249, %247
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %9, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %44) #5
  br label %344

344:                                              ; preds = %340, %339
  call void @llvm.lifetime.end.p0(i64 40, ptr %44) #5
  br label %345

345:                                              ; preds = %344, %322
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %42) #5
  br label %346

346:                                              ; preds = %345, %321
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #5
  br label %347

347:                                              ; preds = %346, %309
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #5
  br label %348

348:                                              ; preds = %347, %308
  call void @llvm.lifetime.end.p0(i64 40, ptr %34) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  br label %349

349:                                              ; preds = %348, %269
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %364

350:                                              ; preds = %217
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %29, align 4, !tbaa !20
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %29, align 4, !tbaa !20
  br label %209, !llvm.loop !26

354:                                              ; preds = %212
  %355 = load ptr, ptr %6, align 8, !tbaa !5
  %356 = load float, ptr %15, align 4, !tbaa !19
  %357 = load float, ptr %15, align 4, !tbaa !19
  %358 = load float, ptr %15, align 4, !tbaa !19
  invoke void @_ZN3imp4Vec43setEffff(ptr noundef nonnull align 8 dereferenceable(40) %355, float noundef %356, float noundef %357, float noundef %358, float noundef 1.000000e+00)
          to label %359 unwind label %360

359:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %7) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %7) #5
  ret void

360:                                              ; preds = %354
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %9, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %10, align 4
  br label %364

364:                                              ; preds = %360, %349, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  br label %365

365:                                              ; preds = %364, %107
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  br label %366

366:                                              ; preds = %365, %103
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  br label %367

367:                                              ; preds = %366, %99
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %368

368:                                              ; preds = %367, %95
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %7) #5
  br label %369

369:                                              ; preds = %368, %91
  call void @llvm.lifetime.end.p0(i64 96, ptr %7) #5
  br label %370

370:                                              ; preds = %369
  %371 = load ptr, ptr %9, align 8
  %372 = load i32, ptr %10, align 4
  %373 = insertvalue { ptr, i32 } poison, ptr %371, 0
  %374 = insertvalue { ptr, i32 } %373, i32 %372, 1
  resume { ptr, i32 } %374
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !18, i64 40}
!10 = !{!"_ZTSN3imp16VoronoiOperationE", !11, i64 0, !16, i64 24, !18, i64 40}
!11 = !{!"_ZTSN3imp14ImageOperationE", !12, i64 0}
!12 = !{!"_ZTSN3imp6ObjectE", !13, i64 8}
!13 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!16 = !{!"_ZTSSt10shared_ptrIN3imp5ImageEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !15, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!18, !18, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}


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

%"class.imp::Vec.8" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr.0" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec4" = type { %"class.imp::Vec.7" }
%"class.imp::Vec.7" = type { %"class.imp::Object", [4 x float] }
%"class.imp::ImageSampler" = type <{ %"class.imp::Sampler.base", [2 x i8], %"class.std::shared_ptr", i32, [4 x i8], %"class.imp::Vec2", i8, [7 x i8] }>
%"class.imp::Sampler.base" = type <{ %"class.imp::Object", i32, i8, i8 }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.imp::Vec2" = type { %"class.imp::Vec" }
%"class.imp::Vec" = type { %"class.imp::Object", [2 x float] }
%"class.imp::Vec3" = type { %"class.imp::Vec.base.9", [4 x i8] }
%"class.imp::Vec.base.9" = type <{ %"class.imp::Object", [3 x float] }>

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

declare void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89), ptr noundef, i32 noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp4fracIfEET_S1_(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec43setEffff(ptr noundef nonnull align 8 dereferenceable(40), float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3imp5floorIfEET_S1_(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

declare void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind writable sret(%"class.imp::Vec4") align 8, ptr noundef nonnull align 8 dereferenceable(89), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp16VoronoiOperation5applyERKNS_4Vec2ERNS_4Vec4E(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(40) %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.imp::ImageSampler", align 8
  %5 = alloca %"class.std::shared_ptr", align 8
  %6 = alloca %"class.imp::Vec3", align 8
  %7 = alloca %"class.imp::Vec3", align 8
  %8 = alloca %"class.imp::Vec3", align 8
  %9 = alloca %"class.imp::Vec3", align 8
  %10 = alloca float, align 4
  %11 = alloca %"class.imp::Vec3", align 8
  %12 = alloca %"class.imp::Vec3", align 8
  %13 = alloca %"class.imp::Vec.8", align 8
  %14 = alloca %"class.imp::Vec.8", align 8
  %15 = alloca %"class.imp::Vec3", align 8
  %16 = alloca %"class.imp::Vec4", align 8
  %17 = alloca %"class.imp::Vec2", align 8
  %18 = alloca %"class.imp::Vec.8", align 8
  %19 = alloca %"class.imp::Vec.8", align 8
  %20 = alloca %"class.imp::Vec3", align 8
  %21 = alloca %"class.imp::Vec.8", align 8
  %22 = alloca %"class.imp::Vec3", align 8
  %23 = alloca %"class.imp::Vec3", align 8
  %24 = alloca %"class.imp::Vec.8", align 8
  %25 = alloca %"class.imp::Vec.8", align 8
  %26 = alloca %"class.imp::Vec3", align 8
  %27 = alloca %"class.imp::Vec4", align 8
  %28 = alloca %"class.imp::Vec2", align 8
  %29 = alloca %"class.imp::Vec.8", align 8
  %30 = alloca %"class.imp::Vec.8", align 8
  %31 = alloca %"class.imp::Vec3", align 8
  %32 = alloca %"class.imp::Vec.8", align 8
  %33 = alloca %"class.imp::Vec3", align 8
  %34 = alloca %"class.imp::Vec.8", align 8
  %35 = alloca %"class.imp::Vec.8", align 8
  %36 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #5
  %37 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt10shared_ptrIN3imp5ImageEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %37) #5
  invoke void @_ZN3imp12ImageSamplerC1ESt10shared_ptrINS_5ImageEENS_7SamplerINS_4Vec2ENS_4Vec4EE8WrappingE(ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull %5, i32 noundef 2)
          to label %38 unwind label %64

38:                                               ; preds = %3
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  %39 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load float, ptr %40, align 8, !tbaa !5
  %42 = fmul float %39, %41
  %43 = call noundef float @_ZN3imp5floorIfEET_S1_(float noundef %42)
  %44 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 1)
  %45 = load float, ptr %40, align 8, !tbaa !5
  %46 = fmul float %44, %45
  %47 = call noundef float @_ZN3imp5floorIfEET_S1_(float noundef %46)
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %6, float noundef %43, float noundef %47, float noundef 0.000000e+00)
          to label %48 unwind label %66

48:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  %49 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 0)
  %50 = load float, ptr %40, align 8, !tbaa !5
  %51 = fmul float %49, %50
  %52 = invoke noundef float @_ZN3imp4fracIfEET_S1_(float noundef %51)
          to label %53 unwind label %68

53:                                               ; preds = %48
  %54 = call noundef float @_ZNK3imp3VecILi2EfEixEj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 1)
  %55 = load float, ptr %40, align 8, !tbaa !5
  %56 = fmul float %54, %55
  %57 = invoke noundef float @_ZN3imp4fracIfEET_S1_(float noundef %56)
          to label %58 unwind label %68

58:                                               ; preds = %53
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %7, float noundef %52, float noundef %57, float noundef 0.000000e+00)
          to label %59 unwind label %68

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  invoke void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8)
          to label %60 unwind label %70

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  invoke void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %61 unwind label %72

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store float 8.000000e+00, ptr %10, align 4, !tbaa !18
  br label %.preheader92

.preheader92:                                     ; preds = %61, %157
  %.02494 = phi i32 [ -1, %61 ], [ %158, %157 ]
  %62 = sitofp i32 %.02494 to float
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef %62, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %74 unwind label %93

63:                                               ; preds = %157
  store float 8.000000e+00, ptr %10, align 4, !tbaa !18
  br label %.preheader

64:                                               ; preds = %3
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %252

66:                                               ; preds = %38
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %251

68:                                               ; preds = %58, %53, %48
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %250

70:                                               ; preds = %59
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %249

72:                                               ; preds = %60
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %248

74:                                               ; preds = %.preheader92
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %19, ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %11)
          to label %75 unwind label %95

75:                                               ; preds = %74
  %76 = load float, ptr %40, align 8, !tbaa !5
  call void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %18, ptr noundef nonnull align 8 dereferenceable(36) %19, float noundef %76)
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(36) %18, float noundef 1.000000e+00)
          to label %77 unwind label %97

77:                                               ; preds = %75
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %16, ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %78 unwind label %99

78:                                               ; preds = %77
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %80 = load float, ptr %79, align 4, !tbaa !18
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %15, float noundef %80)
          to label %81 unwind label %101

81:                                               ; preds = %78
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %15)
          to label %82 unwind label %103

82:                                               ; preds = %81
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %83 unwind label %105

83:                                               ; preds = %82
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %13, float noundef 1.000000e+00)
          to label %84 unwind label %107

84:                                               ; preds = %83
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %12, i32 noundef 2)
  store float 0.000000e+00, ptr %85, align 4, !tbaa !18
  %86 = invoke noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %87 unwind label %115

87:                                               ; preds = %84
  %88 = load float, ptr %10, align 4, !tbaa !18
  %89 = fcmp olt float %86, %88
  br i1 %89, label %90, label %117

90:                                               ; preds = %87
  store float %86, ptr %10, align 4, !tbaa !18
  %91 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  %92 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %117

93:                                               ; preds = %137, %117, %.preheader92
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %160

95:                                               ; preds = %138, %118, %74
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %114

97:                                               ; preds = %139, %119, %75
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %113

99:                                               ; preds = %141, %121, %77
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %112

101:                                              ; preds = %142, %122, %78
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %111

103:                                              ; preds = %145, %125, %81
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %110

105:                                              ; preds = %146, %126, %82
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %109

107:                                              ; preds = %147, %127, %83
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  br label %109

109:                                              ; preds = %107, %105
  %.pn76 = phi { ptr, i32 } [ %108, %107 ], [ %106, %105 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  br label %110

110:                                              ; preds = %109, %103
  %.pn76.pn = phi { ptr, i32 } [ %.pn76, %109 ], [ %104, %103 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #5
  br label %111

111:                                              ; preds = %110, %101
  %.pn76.pn.pn = phi { ptr, i32 } [ %.pn76.pn, %110 ], [ %102, %101 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %112

112:                                              ; preds = %111, %99
  %.pn76.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn, %111 ], [ %100, %99 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %113

113:                                              ; preds = %112, %97
  %.pn76.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn.pn, %112 ], [ %98, %97 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  br label %114

114:                                              ; preds = %113, %95
  %.pn76.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn76.pn.pn.pn.pn, %113 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  br label %159

115:                                              ; preds = %148, %128, %84
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  br label %159

117:                                              ; preds = %90, %87
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef %62, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %118 unwind label %93

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %19, ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %11)
          to label %119 unwind label %95

119:                                              ; preds = %118
  %120 = load float, ptr %40, align 8, !tbaa !5
  call void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %18, ptr noundef nonnull align 8 dereferenceable(36) %19, float noundef %120)
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(36) %18, float noundef 1.000000e+00)
          to label %121 unwind label %97

121:                                              ; preds = %119
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %16, ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %122 unwind label %99

122:                                              ; preds = %121
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %124 = load float, ptr %123, align 4, !tbaa !18
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %15, float noundef %124)
          to label %125 unwind label %101

125:                                              ; preds = %122
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %15)
          to label %126 unwind label %103

126:                                              ; preds = %125
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %127 unwind label %105

127:                                              ; preds = %126
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %13, float noundef 1.000000e+00)
          to label %128 unwind label %107

128:                                              ; preds = %127
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %12, i32 noundef 2)
  store float 0.000000e+00, ptr %129, align 4, !tbaa !18
  %130 = invoke noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %131 unwind label %115

131:                                              ; preds = %128
  %132 = load float, ptr %10, align 4, !tbaa !18
  %133 = fcmp olt float %130, %132
  br i1 %133, label %134, label %137

134:                                              ; preds = %131
  store float %130, ptr %10, align 4, !tbaa !18
  %135 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  %136 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %137

137:                                              ; preds = %134, %131
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef %62, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %138 unwind label %93

138:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %19, ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %11)
          to label %139 unwind label %95

139:                                              ; preds = %138
  %140 = load float, ptr %40, align 8, !tbaa !5
  call void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %18, ptr noundef nonnull align 8 dereferenceable(36) %19, float noundef %140)
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(36) %18, float noundef 1.000000e+00)
          to label %141 unwind label %97

141:                                              ; preds = %139
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %16, ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %142 unwind label %99

142:                                              ; preds = %141
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %16, i32 noundef 0)
  %144 = load float, ptr %143, align 4, !tbaa !18
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %15, float noundef %144)
          to label %145 unwind label %101

145:                                              ; preds = %142
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %15)
          to label %146 unwind label %103

146:                                              ; preds = %145
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %147 unwind label %105

147:                                              ; preds = %146
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %13, float noundef 1.000000e+00)
          to label %148 unwind label %107

148:                                              ; preds = %147
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %12, i32 noundef 2)
  store float 0.000000e+00, ptr %149, align 4, !tbaa !18
  %150 = invoke noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %151 unwind label %115

151:                                              ; preds = %148
  %152 = load float, ptr %10, align 4, !tbaa !18
  %153 = fcmp olt float %150, %152
  br i1 %153, label %154, label %157

154:                                              ; preds = %151
  store float %150, ptr %10, align 4, !tbaa !18
  %155 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  %156 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %157

157:                                              ; preds = %154, %151
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  %158 = add nsw i32 %.02494, 1
  %exitcond.not = icmp eq i32 %158, 2
  br i1 %exitcond.not, label %63, label %.preheader92, !llvm.loop !19

159:                                              ; preds = %115, %114
  %.pn83 = phi { ptr, i32 } [ %116, %115 ], [ %.pn76.pn.pn.pn.pn.pn, %114 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %160

160:                                              ; preds = %159, %93
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %159 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %247

.preheader:                                       ; preds = %63, %164
  %.02196 = phi i32 [ -2, %63 ], [ %165, %164 ]
  %161 = sitofp i32 %.02196 to float
  br label %166

162:                                              ; preds = %164
  %163 = load float, ptr %10, align 4, !tbaa !18
  invoke void @_ZN3imp4Vec43setEffff(ptr noundef nonnull align 8 dereferenceable(40) %2, float noundef %163, float noundef %163, float noundef %163, float noundef 1.000000e+00)
          to label %244 unwind label %245

164:                                              ; preds = %190
  %165 = add nsw i32 %.02196, 1
  %exitcond98.not = icmp eq i32 %165, 3
  br i1 %exitcond98.not, label %162, label %.preheader, !llvm.loop !21

166:                                              ; preds = %.preheader, %190
  %.095 = phi i32 [ -2, %.preheader ], [ %193, %190 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %22) #5
  %167 = sitofp i32 %.095 to float
  invoke void @_ZN3imp4Vec3C2Efff(ptr noundef nonnull align 8 dereferenceable(36) %22, float noundef %161, float noundef %167, float noundef 0.000000e+00)
          to label %168 unwind label %194

168:                                              ; preds = %166
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %21, ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %22)
          to label %169 unwind label %196

169:                                              ; preds = %168
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 8 dereferenceable(36) %21, float noundef 1.000000e+00)
          to label %170 unwind label %198

170:                                              ; preds = %169
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %24) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %30) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %30, ptr noundef nonnull align 8 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %20)
          to label %171 unwind label %202

171:                                              ; preds = %170
  %172 = load float, ptr %40, align 8, !tbaa !5
  call void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %29, ptr noundef nonnull align 8 dereferenceable(36) %30, float noundef %172)
  invoke void @_ZN3imp4Vec2C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(36) %29, float noundef 1.000000e+00)
          to label %173 unwind label %204

173:                                              ; preds = %171
  invoke void @_ZN3imp12ImageSamplerclERKNS_4Vec2E(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec4") align 8 %27, ptr noundef nonnull align 8 dereferenceable(89) %4, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %174 unwind label %206

174:                                              ; preds = %173
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi4EfEixEj(ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 0)
  %176 = load float, ptr %175, align 4, !tbaa !18
  invoke void @_ZN3imp4Vec3C2Ef(ptr noundef nonnull align 8 dereferenceable(36) %26, float noundef %176)
          to label %177 unwind label %208

177:                                              ; preds = %174
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %25, ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 8 dereferenceable(36) %26)
          to label %178 unwind label %210

178:                                              ; preds = %177
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %24, ptr noundef nonnull align 8 dereferenceable(36) %25, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %179 unwind label %212

179:                                              ; preds = %178
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %24, float noundef 1.000000e+00)
          to label %180 unwind label %214

180:                                              ; preds = %179
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #5
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp3VecILi3EfEixEj(ptr noundef nonnull align 8 dereferenceable(36) %23, i32 noundef 2)
  store float 0.000000e+00, ptr %181, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %31) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %32) #5
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %32, ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %182 unwind label %222

182:                                              ; preds = %180
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) %32, float noundef 1.000000e+00)
          to label %183 unwind label %224

183:                                              ; preds = %182
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %32) #5
  %184 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %31)
          to label %185 unwind label %227

185:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %33) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %35) #5
  invoke void @_ZNK3imp3VecILi3EfEplERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %35, ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %23)
          to label %186 unwind label %229

186:                                              ; preds = %185
  invoke void @_ZNK3imp3VecILi3EfEmlEf(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.8") align 8 %34, ptr noundef nonnull align 8 dereferenceable(36) %35, float noundef 5.000000e-01)
          to label %187 unwind label %231

187:                                              ; preds = %186
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %33, ptr noundef nonnull align 8 dereferenceable(36) %34, float noundef 1.000000e+00)
          to label %188 unwind label %233

188:                                              ; preds = %187
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #5
  %189 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %33, ptr noundef nonnull align 8 dereferenceable(36) %31)
          to label %190 unwind label %237

190:                                              ; preds = %188
  store float %189, ptr %36, align 4, !tbaa !18
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %192 = load float, ptr %191, align 4, !tbaa !18
  store float %192, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %33) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %31) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #5
  %193 = add nsw i32 %.095, 1
  %exitcond97.not = icmp eq i32 %193, 3
  br i1 %exitcond97.not, label %164, label %166, !llvm.loop !22

194:                                              ; preds = %166
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %201

196:                                              ; preds = %168
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %200

198:                                              ; preds = %169
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %21) #5
  br label %200

200:                                              ; preds = %198, %196
  %.pn = phi { ptr, i32 } [ %199, %198 ], [ %197, %196 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  br label %201

201:                                              ; preds = %200, %194
  %.pn.pn = phi { ptr, i32 } [ %.pn, %200 ], [ %195, %194 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #5
  br label %243

202:                                              ; preds = %170
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %221

204:                                              ; preds = %171
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %220

206:                                              ; preds = %173
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %219

208:                                              ; preds = %174
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %218

210:                                              ; preds = %177
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %217

212:                                              ; preds = %178
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %216

214:                                              ; preds = %179
  %215 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %24) #5
  br label %216

216:                                              ; preds = %214, %212
  %.pn58 = phi { ptr, i32 } [ %215, %214 ], [ %213, %212 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %25) #5
  br label %217

217:                                              ; preds = %216, %210
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %216 ], [ %211, %210 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  br label %218

218:                                              ; preds = %217, %208
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %217 ], [ %209, %208 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #5
  br label %219

219:                                              ; preds = %218, %206
  %.pn58.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn, %218 ], [ %207, %206 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #5
  br label %220

220:                                              ; preds = %219, %204
  %.pn58.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn, %219 ], [ %205, %204 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %30) #5
  br label %221

221:                                              ; preds = %220, %202
  %.pn58.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn58.pn.pn.pn.pn, %220 ], [ %203, %202 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #5
  br label %242

222:                                              ; preds = %180
  %223 = landingpad { ptr, i32 }
          cleanup
  br label %226

224:                                              ; preds = %182
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %32) #5
  br label %226

226:                                              ; preds = %224, %222
  %.pn65 = phi { ptr, i32 } [ %225, %224 ], [ %223, %222 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %32) #5
  br label %241

227:                                              ; preds = %183
  %228 = landingpad { ptr, i32 }
          cleanup
  br label %240

229:                                              ; preds = %185
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %236

231:                                              ; preds = %186
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %235

233:                                              ; preds = %187
  %234 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %34) #5
  br label %235

235:                                              ; preds = %233, %231
  %.pn67 = phi { ptr, i32 } [ %234, %233 ], [ %232, %231 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %35) #5
  br label %236

236:                                              ; preds = %235, %229
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %235 ], [ %230, %229 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %34) #5
  br label %239

237:                                              ; preds = %188
  %238 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %33) #5
  br label %239

239:                                              ; preds = %237, %236
  %.pn70 = phi { ptr, i32 } [ %238, %237 ], [ %.pn67.pn, %236 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %33) #5
  br label %240

240:                                              ; preds = %239, %227
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %239 ], [ %228, %227 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  br label %241

241:                                              ; preds = %240, %226
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %240 ], [ %.pn65, %226 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %31) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  br label %242

242:                                              ; preds = %241, %221
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %241 ], [ %.pn58.pn.pn.pn.pn.pn, %221 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %20) #5
  br label %243

243:                                              ; preds = %242, %201
  %.pn70.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn.pn, %242 ], [ %.pn.pn, %201 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #5
  br label %247

244:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  ret void

245:                                              ; preds = %162
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %247

247:                                              ; preds = %245, %243, %160
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %160 ], [ %.pn70.pn.pn.pn.pn, %243 ], [ %246, %245 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #5
  br label %248

248:                                              ; preds = %247, %72
  %.pn83.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn, %247 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #5
  br label %249

249:                                              ; preds = %248, %70
  %.pn83.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn, %248 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  br label %250

250:                                              ; preds = %249, %68
  %.pn83.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn.pn, %249 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #5
  br label %251

251:                                              ; preds = %250, %66
  %.pn83.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn.pn.pn, %250 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @_ZN3imp12ImageSamplerD2Ev(ptr noundef nonnull align 8 dereferenceable(89) %4) #5
  br label %252

252:                                              ; preds = %251, %64
  %.pn83.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn.pn.pn.pn.pn, %251 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn83.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEdvEf(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.8") align 8, ptr noundef nonnull align 8 dereferenceable(36), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE7length2Ev(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !17, i64 40}
!6 = !{!"_ZTSN3imp16VoronoiOperationE", !7, i64 0, !15, i64 24, !17, i64 40}
!7 = !{!"_ZTSN3imp14ImageOperationE", !8, i64 0}
!8 = !{!"_ZTSN3imp6ObjectE", !9, i64 8}
!9 = !{!"_ZTSSt10shared_ptrIN3imp6ObjectEE", !10, i64 0}
!10 = !{!"_ZTSSt12__shared_ptrIN3imp6ObjectELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !14, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0}
!15 = !{!"_ZTSSt10shared_ptrIN3imp5ImageEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN3imp5ImageELN9__gnu_cxx12_Lock_policyE2EE", !11, i64 0, !14, i64 8}
!17 = !{!"float", !12, i64 0}
!18 = !{!17, !17, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass