; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Geometry/Geometry.ll (ZN3imp13getUV_cubemapERNS_4Vec3ES1_RfS2_)

; 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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>

@_ZN3imp4Vec31XE = external global %"class.imp::Vec3", align 8
@_ZN3imp4Vec31YE = external global %"class.imp::Vec3", align 8
@_ZN3imp4Vec31ZE = external global %"class.imp::Vec3", align 8

declare i32 @__gxx_personality_v0(...)

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

; 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #2 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 nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp13getUV_cubemapERNS_4Vec3ES1_RfS2_(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [6 x %"class.imp::Vec3"], align 16
  %10 = alloca ptr, align 8
  %11 = alloca %"class.imp::Vec", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.imp::Vec", align 8
  %15 = alloca %"class.imp::Vec", align 8
  %16 = alloca i1, align 1
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 240, ptr %9) #4
  store i1 true, ptr %16, align 1
  store ptr %9, ptr %10, align 8
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31XE) #4
  %24 = getelementptr inbounds %"class.imp::Vec3", ptr %9, i64 1
  store ptr %24, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %11, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31XE)
          to label %25 unwind label %39

25:                                               ; preds = %4
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %24, ptr noundef nonnull align 8 dereferenceable(36) %11, float noundef 1.000000e+00)
          to label %26 unwind label %43

26:                                               ; preds = %25
  %27 = getelementptr inbounds %"class.imp::Vec3", ptr %9, i64 2
  store ptr %27, ptr %10, align 8
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31YE) #4
  %28 = getelementptr inbounds %"class.imp::Vec3", ptr %9, i64 3
  store ptr %28, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31YE)
          to label %29 unwind label %47

29:                                               ; preds = %26
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %28, ptr noundef nonnull align 8 dereferenceable(36) %14, float noundef 1.000000e+00)
          to label %30 unwind label %51

30:                                               ; preds = %29
  %31 = getelementptr inbounds %"class.imp::Vec3", ptr %9, i64 4
  store ptr %31, ptr %10, align 8
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %31, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31ZE) #4
  %32 = getelementptr inbounds %"class.imp::Vec3", ptr %9, i64 5
  store ptr %32, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %15, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31ZE)
          to label %33 unwind label %55

33:                                               ; preds = %30
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %32, ptr noundef nonnull align 8 dereferenceable(36) %15, float noundef 1.000000e+00)
          to label %34 unwind label %59

34:                                               ; preds = %33
  store i1 false, ptr %16, align 1
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store float 0.000000e+00, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !12
  br label %35

35:                                               ; preds = %96, %34
  %36 = load i32, ptr %19, align 4, !tbaa !12
  %37 = icmp slt i32 %36, 6
  br i1 %37, label %78, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %99

39:                                               ; preds = %4
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %12, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %13, align 4
  br label %67

43:                                               ; preds = %25
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %12, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %13, align 4
  br label %66

47:                                               ; preds = %26
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %12, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %13, align 4
  br label %65

51:                                               ; preds = %29
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %12, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %13, align 4
  br label %64

55:                                               ; preds = %30
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %12, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %13, align 4
  br label %63

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #4
  br label %63

63:                                               ; preds = %59, %55
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  br label %64

64:                                               ; preds = %63, %51
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #4
  br label %65

65:                                               ; preds = %64, %47
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  br label %66

66:                                               ; preds = %65, %43
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #4
  br label %67

67:                                               ; preds = %66, %39
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  %68 = load i1, ptr %16, align 1
  br i1 %68, label %69, label %77

69:                                               ; preds = %67
  %70 = load ptr, ptr %10, align 8
  %71 = icmp eq ptr %9, %70
  br i1 %71, label %76, label %72

72:                                               ; preds = %72, %69
  %73 = phi ptr [ %70, %69 ], [ %74, %72 ]
  %74 = getelementptr inbounds %"class.imp::Vec3", ptr %73, i64 -1
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %74) #4
  %75 = icmp eq ptr %74, %9
  br i1 %75, label %76, label %72

76:                                               ; preds = %72, %69
  br label %77

77:                                               ; preds = %76, %67
  br label %241

78:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %79 = load i32, ptr %19, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %9, i64 0, i64 %80
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %81, ptr noundef nonnull align 8 dereferenceable(36) %82)
          to label %84 unwind label %91

84:                                               ; preds = %78
  store float %83, ptr %20, align 4, !tbaa !10
  %85 = load float, ptr %20, align 4, !tbaa !10
  %86 = load float, ptr %18, align 4, !tbaa !10
  %87 = fcmp ogt float %85, %86
  br i1 %87, label %88, label %95

88:                                               ; preds = %84
  %89 = load i32, ptr %19, align 4, !tbaa !12
  store i32 %89, ptr %17, align 4, !tbaa !9
  %90 = load float, ptr %20, align 4, !tbaa !10
  store float %90, ptr %18, align 4, !tbaa !10
  br label %95

91:                                               ; preds = %78
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %12, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %233

95:                                               ; preds = %88, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %19, align 4, !tbaa !12
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %19, align 4, !tbaa !12
  br label %35, !llvm.loop !14

99:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %121

102:                                              ; preds = %99
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %103)
          to label %105 unwind label %117

105:                                              ; preds = %102
  %106 = load float, ptr %104, align 4, !tbaa !10
  %107 = fneg float %106
  store float %107, ptr %21, align 4, !tbaa !10
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %108)
          to label %110 unwind label %117

110:                                              ; preds = %105
  %111 = load float, ptr %109, align 4, !tbaa !10
  %112 = fneg float %111
  store float %112, ptr %22, align 4, !tbaa !10
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %113)
          to label %115 unwind label %117

115:                                              ; preds = %110
  %116 = load float, ptr %114, align 4, !tbaa !10
  store float %116, ptr %23, align 4, !tbaa !10
  br label %121

117:                                              ; preds = %206, %199, %194, %191, %181, %177, %174, %164, %160, %157, %148, %144, %141, %131, %127, %124, %110, %105, %102
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %12, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %233

121:                                              ; preds = %115, %99
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %124, label %138

124:                                              ; preds = %121
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %125)
          to label %127 unwind label %117

127:                                              ; preds = %124
  %128 = load float, ptr %126, align 4, !tbaa !10
  store float %128, ptr %21, align 4, !tbaa !10
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %129)
          to label %131 unwind label %117

131:                                              ; preds = %127
  %132 = load float, ptr %130, align 4, !tbaa !10
  %133 = fneg float %132
  store float %133, ptr %22, align 4, !tbaa !10
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %134)
          to label %136 unwind label %117

136:                                              ; preds = %131
  %137 = load float, ptr %135, align 4, !tbaa !10
  store float %137, ptr %23, align 4, !tbaa !10
  br label %138

138:                                              ; preds = %136, %121
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = icmp eq i32 %139, 2
  br i1 %140, label %141, label %154

141:                                              ; preds = %138
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %142)
          to label %144 unwind label %117

144:                                              ; preds = %141
  %145 = load float, ptr %143, align 4, !tbaa !10
  store float %145, ptr %21, align 4, !tbaa !10
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %146)
          to label %148 unwind label %117

148:                                              ; preds = %144
  %149 = load float, ptr %147, align 4, !tbaa !10
  store float %149, ptr %22, align 4, !tbaa !10
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %150)
          to label %152 unwind label %117

152:                                              ; preds = %148
  %153 = load float, ptr %151, align 4, !tbaa !10
  store float %153, ptr %23, align 4, !tbaa !10
  br label %154

154:                                              ; preds = %152, %138
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = icmp eq i32 %155, 3
  br i1 %156, label %157, label %171

157:                                              ; preds = %154
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %158)
          to label %160 unwind label %117

160:                                              ; preds = %157
  %161 = load float, ptr %159, align 4, !tbaa !10
  store float %161, ptr %21, align 4, !tbaa !10
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %162)
          to label %164 unwind label %117

164:                                              ; preds = %160
  %165 = load float, ptr %163, align 4, !tbaa !10
  %166 = fneg float %165
  store float %166, ptr %22, align 4, !tbaa !10
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %167)
          to label %169 unwind label %117

169:                                              ; preds = %164
  %170 = load float, ptr %168, align 4, !tbaa !10
  store float %170, ptr %23, align 4, !tbaa !10
  br label %171

171:                                              ; preds = %169, %154
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 4
  br i1 %173, label %174, label %188

174:                                              ; preds = %171
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %175)
          to label %177 unwind label %117

177:                                              ; preds = %174
  %178 = load float, ptr %176, align 4, !tbaa !10
  store float %178, ptr %21, align 4, !tbaa !10
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %179)
          to label %181 unwind label %117

181:                                              ; preds = %177
  %182 = load float, ptr %180, align 4, !tbaa !10
  %183 = fneg float %182
  store float %183, ptr %22, align 4, !tbaa !10
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %184)
          to label %186 unwind label %117

186:                                              ; preds = %181
  %187 = load float, ptr %185, align 4, !tbaa !10
  store float %187, ptr %23, align 4, !tbaa !10
  br label %188

188:                                              ; preds = %186, %171
  %189 = load i32, ptr %17, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 5
  br i1 %190, label %191, label %206

191:                                              ; preds = %188
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %192)
          to label %194 unwind label %117

194:                                              ; preds = %191
  %195 = load float, ptr %193, align 4, !tbaa !10
  %196 = fneg float %195
  store float %196, ptr %21, align 4, !tbaa !10
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %197)
          to label %199 unwind label %117

199:                                              ; preds = %194
  %200 = load float, ptr %198, align 4, !tbaa !10
  %201 = fneg float %200
  store float %201, ptr %22, align 4, !tbaa !10
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %202)
          to label %204 unwind label %117

204:                                              ; preds = %199
  %205 = load float, ptr %203, align 4, !tbaa !10
  store float %205, ptr %23, align 4, !tbaa !10
  br label %206

206:                                              ; preds = %204, %188
  %207 = load float, ptr %23, align 4, !tbaa !10
  %208 = invoke noundef float @_ZSt3absf(float noundef %207)
          to label %209 unwind label %117

209:                                              ; preds = %206
  store float %208, ptr %23, align 4, !tbaa !10
  %210 = load float, ptr %21, align 4, !tbaa !10
  %211 = load float, ptr %23, align 4, !tbaa !10
  %212 = fdiv float %210, %211
  %213 = fpext float %212 to double
  %214 = fadd double %213, 1.000000e+00
  %215 = fmul double 5.000000e-01, %214
  %216 = fptrunc double %215 to float
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  store float %216, ptr %217, align 4, !tbaa !10
  %218 = load float, ptr %22, align 4, !tbaa !10
  %219 = load float, ptr %23, align 4, !tbaa !10
  %220 = fdiv float %218, %219
  %221 = fpext float %220 to double
  %222 = fadd double %221, 1.000000e+00
  %223 = fmul double 5.000000e-01, %222
  %224 = fptrunc double %223 to float
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  store float %224, ptr %225, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %226 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %9, i32 0, i32 0
  %227 = getelementptr inbounds %"class.imp::Vec3", ptr %226, i64 6
  br label %228

228:                                              ; preds = %228, %209
  %229 = phi ptr [ %227, %209 ], [ %230, %228 ]
  %230 = getelementptr inbounds %"class.imp::Vec3", ptr %229, i64 -1
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %230) #4
  %231 = icmp eq ptr %230, %226
  br i1 %231, label %232, label %228

232:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 240, ptr %9) #4
  ret void

233:                                              ; preds = %117, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %234 = getelementptr inbounds [6 x %"class.imp::Vec3"], ptr %9, i32 0, i32 0
  %235 = getelementptr inbounds %"class.imp::Vec3", ptr %234, i64 6
  br label %236

236:                                              ; preds = %236, %233
  %237 = phi ptr [ %235, %233 ], [ %238, %236 ]
  %238 = getelementptr inbounds %"class.imp::Vec3", ptr %237, i64 -1
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %238) #4
  %239 = icmp eq ptr %238, %234
  br i1 %239, label %240, label %236

240:                                              ; preds = %236
  br label %241

241:                                              ; preds = %240, %77
  call void @llvm.lifetime.end.p0(i64 240, ptr %9) #4
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %12, align 8
  %244 = load i32, ptr %13, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #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 = { 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 #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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>

@_ZN3imp4Vec31XE = external global %"class.imp::Vec3", align 8
@_ZN3imp4Vec31YE = external global %"class.imp::Vec3", align 8
@_ZN3imp4Vec31ZE = external global %"class.imp::Vec3", align 8

declare i32 @__gxx_personality_v0(...)

; 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 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 noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #2 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 nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp13getUV_cubemapERNS_4Vec3ES1_RfS2_(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca [6 x %"class.imp::Vec3"], align 16
  %6 = alloca %"class.imp::Vec", align 8
  %7 = alloca %"class.imp::Vec", align 8
  %8 = alloca %"class.imp::Vec", align 8
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %5) #4
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31XE) #4
  %9 = getelementptr inbounds i8, ptr %5, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %6, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31XE)
          to label %10 unwind label %32

10:                                               ; preds = %4
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %6, float noundef 1.000000e+00)
          to label %11 unwind label %34

11:                                               ; preds = %10
  %12 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31YE) #4
  %13 = getelementptr inbounds i8, ptr %5, i64 120
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %7, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31YE)
          to label %14 unwind label %36

14:                                               ; preds = %11
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %7, float noundef 1.000000e+00)
          to label %15 unwind label %38

15:                                               ; preds = %14
  %16 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN3imp4Vec3C2ERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31ZE) #4
  %17 = getelementptr inbounds i8, ptr %5, i64 200
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  invoke void @_ZNK3imp3VecILi3EfEngEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) @_ZN3imp4Vec31ZE)
          to label %18 unwind label %40

18:                                               ; preds = %15
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %8, float noundef 1.000000e+00)
          to label %19 unwind label %42

19:                                               ; preds = %18
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  %20 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %21 = fcmp ogt float %20, 0.000000e+00
  %.161 = select i1 %21, float %20, float 0.000000e+00
  %22 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %23 = fcmp ogt float %22, %.161
  %.163.1 = zext i1 %23 to i32
  %.161.1 = select i1 %23, float %22, float %.161
  %24 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %25 = fcmp ogt float %24, %.161.1
  %.163.2 = select i1 %25, i32 2, i32 %.163.1
  %.161.2 = select i1 %25, float %24, float %.161.1
  %26 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %27 = fcmp ogt float %26, %.161.2
  %.163.3 = select i1 %27, i32 3, i32 %.163.2
  %.161.3 = select i1 %27, float %26, float %.161.2
  %28 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %29 = fcmp ogt float %28, %.161.3
  %.163.4 = select i1 %29, i32 4, i32 %.163.3
  %.161.4 = select i1 %29, float %28, float %.161.3
  %30 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %0)
  %31 = fcmp ogt float %30, %.161.4
  %.163.5 = select i1 %31, i32 5, i32 %.163.4
  switch i32 %.163.5, label %default.unreachable [
    i32 0, label %.thread
    i32 1, label %60
    i32 2, label %67
    i32 3, label %73
    i32 4, label %80
    i32 5, label %87
  ]

32:                                               ; preds = %4
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %48

34:                                               ; preds = %10
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %47

36:                                               ; preds = %11
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %46

38:                                               ; preds = %14
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %45

40:                                               ; preds = %15
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %18
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #4
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  br label %45

45:                                               ; preds = %44, %38
  %.pn.pn = phi { ptr, i32 } [ %.pn, %44 ], [ %39, %38 ]
  %.055 = phi ptr [ %17, %44 ], [ %13, %38 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #4
  br label %46

46:                                               ; preds = %45, %36
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %45 ], [ %37, %36 ]
  %.156 = phi ptr [ %.055, %45 ], [ %13, %36 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  br label %47

47:                                               ; preds = %46, %34
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %46 ], [ %35, %34 ]
  %.257 = phi ptr [ %.156, %46 ], [ %9, %34 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #4
  br label %48

48:                                               ; preds = %47, %32
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %47 ], [ %33, %32 ]
  %.358 = phi ptr [ %.257, %47 ], [ %9, %32 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  br label %49

49:                                               ; preds = %48, %49
  %50 = phi ptr [ %51, %49 ], [ %.358, %48 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 -40
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %51) #4
  %52 = icmp eq ptr %51, %5
  br i1 %52, label %111, label %49

.thread:                                          ; preds = %19
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = fneg float %54
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = fneg float %57
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

60:                                               ; preds = %19
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %64 = load float, ptr %63, align 4, !tbaa !5
  %65 = fneg float %64
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

67:                                               ; preds = %19
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

73:                                               ; preds = %19
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = fneg float %77
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

80:                                               ; preds = %19
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %82 = load float, ptr %81, align 4, !tbaa !5
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %84 = load float, ptr %83, align 4, !tbaa !5
  %85 = fneg float %84
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

87:                                               ; preds = %19
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %89 = load float, ptr %88, align 4, !tbaa !5
  %90 = fneg float %89
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fneg float %92
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %1)
  br label %.thread99

default.unreachable:                              ; preds = %19
  unreachable

.thread99:                                        ; preds = %60, %.thread, %67, %73, %80, %87
  %.554 = phi float [ %90, %87 ], [ %82, %80 ], [ %75, %73 ], [ %69, %67 ], [ %55, %.thread ], [ %62, %60 ]
  %.548 = phi float [ %93, %87 ], [ %85, %80 ], [ %78, %73 ], [ %71, %67 ], [ %58, %.thread ], [ %65, %60 ]
  %.5.in = phi ptr [ %94, %87 ], [ %86, %80 ], [ %79, %73 ], [ %72, %67 ], [ %59, %.thread ], [ %66, %60 ]
  %.5 = load float, ptr %.5.in, align 4, !tbaa !5
  %95 = call noundef float @_ZSt3absf(float noundef %.5)
  %96 = fdiv float %.554, %95
  %97 = fpext float %96 to double
  %98 = fadd double %97, 1.000000e+00
  %99 = fmul double %98, 5.000000e-01
  %100 = fptrunc double %99 to float
  store float %100, ptr %2, align 4, !tbaa !5
  %101 = fdiv float %.548, %95
  %102 = fpext float %101 to double
  %103 = fadd double %102, 1.000000e+00
  %104 = fmul double %103, 5.000000e-01
  %105 = fptrunc double %104 to float
  store float %105, ptr %3, align 4, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %5, i64 200
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %106) #4
  %107 = getelementptr inbounds i8, ptr %5, i64 160
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %107) #4
  %108 = getelementptr inbounds i8, ptr %5, i64 120
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %108) #4
  %109 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %109) #4
  %110 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %110) #4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #4
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %5) #4
  ret void

111:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #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 = { 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 #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 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass