; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Geometry (Polyhedron)

; 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] }>
%"class.imp::Edge" = type { %"class.imp::Object", %"class.imp::Vec3", %"class.imp::Vec3" }

; 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 float @_ZN3imp6signOfEf(float noundef) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3imp10Polyhedron8iSegFaceERKNS_4EdgeERKNS_4PathERNS_4Vec3Eb(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, i1 noundef zeroext %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca %"class.imp::Vec3", align 8
  %11 = alloca float, align 4
  %12 = alloca %"class.imp::Vec", align 8
  %13 = alloca %"class.imp::Vec3", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca %"class.imp::Vec", align 8
  %18 = alloca %"class.imp::Vec3", align 8
  %19 = alloca i8, align 1
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %"class.imp::Vec3", align 8
  %23 = alloca %"class.imp::Vec3", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.imp::Vec3", align 8
  %27 = alloca %"class.imp::Vec3", align 8
  %28 = alloca %"class.imp::Vec3", align 8
  %29 = alloca %"class.imp::Vec", align 8
  %30 = alloca float, align 4
  %31 = alloca %"class.imp::Vec", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %32 = zext i1 %3 to i8
  store i8 %32, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(48) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.imp::Edge", ptr %34, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %36, i32 noundef 0)
          to label %37 unwind label %85

37:                                               ; preds = %4
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %12, ptr noundef nonnull align 8 dereferenceable(36) %35, ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %38 unwind label %89

38:                                               ; preds = %37
  %39 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %40 unwind label %93

40:                                               ; preds = %38
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #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 @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  store float %39, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.imp::Edge", ptr %41, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %43, i32 noundef 0)
          to label %44 unwind label %99

44:                                               ; preds = %40
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %17, ptr noundef nonnull align 8 dereferenceable(36) %42, ptr noundef nonnull align 8 dereferenceable(36) %18)
          to label %45 unwind label %103

45:                                               ; preds = %44
  %46 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %17)
          to label %47 unwind label %107

47:                                               ; preds = %45
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  store float %46, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %48 = load float, ptr %11, align 4, !tbaa !11
  %49 = call noundef float @_ZN3imp6signOfEf(float noundef %48)
  %50 = load float, ptr %16, align 4, !tbaa !11
  %51 = call noundef float @_ZN3imp6signOfEf(float noundef %50)
  %52 = fcmp une float %49, %51
  br i1 %52, label %53, label %63

53:                                               ; preds = %47
  %54 = load float, ptr %11, align 4, !tbaa !11
  %55 = fpext float %54 to double
  %56 = fcmp une double %55, 0.000000e+00
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  %58 = load float, ptr %16, align 4, !tbaa !11
  %59 = fpext float %58 to double
  %60 = fcmp une double %59, 0.000000e+00
  br label %61

61:                                               ; preds = %57, %53
  %62 = phi i1 [ false, %53 ], [ %60, %57 ]
  br label %63

63:                                               ; preds = %61, %47
  %64 = phi i1 [ false, %47 ], [ %62, %61 ]
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %19, align 1, !tbaa !9
  %66 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %113, label %68

68:                                               ; preds = %63
  %69 = load float, ptr %11, align 4, !tbaa !11
  %70 = fpext float %69 to double
  %71 = fcmp oeq double %70, 0.000000e+00
  br i1 %71, label %82, label %72

72:                                               ; preds = %68
  %73 = load float, ptr %16, align 4, !tbaa !11
  %74 = fpext float %73 to double
  %75 = fcmp oeq double %74, 0.000000e+00
  br i1 %75, label %82, label %76

76:                                               ; preds = %72
  %77 = load float, ptr %11, align 4, !tbaa !11
  %78 = call noundef float @_ZN3imp6signOfEf(float noundef %77)
  %79 = load float, ptr %16, align 4, !tbaa !11
  %80 = call noundef float @_ZN3imp6signOfEf(float noundef %79)
  %81 = fcmp une float %78, %80
  br label %82

82:                                               ; preds = %76, %72, %68
  %83 = phi i1 [ true, %72 ], [ true, %68 ], [ %81, %76 ]
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %19, align 1, !tbaa !9
  br label %113

85:                                               ; preds = %4
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %14, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %15, align 4
  br label %98

89:                                               ; preds = %37
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %14, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %15, align 4
  br label %97

93:                                               ; preds = %38
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %14, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  br label %97

97:                                               ; preds = %93, %89
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  br label %98

98:                                               ; preds = %97, %85
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #5
  br label %245

99:                                               ; preds = %40
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %14, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %15, align 4
  br label %112

103:                                              ; preds = %44
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %14, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %15, align 4
  br label %111

107:                                              ; preds = %45
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %14, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %17) #5
  br label %111

111:                                              ; preds = %107, %103
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %18) #5
  br label %112

112:                                              ; preds = %111, %99
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #5
  br label %244

113:                                              ; preds = %82, %63
  %114 = load i8, ptr %19, align 1, !tbaa !9, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  br i1 %115, label %116, label %241

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %117 = load float, ptr %11, align 4, !tbaa !11
  %118 = invoke noundef float @_ZSt3absf(float noundef %117)
          to label %119 unwind label %155

119:                                              ; preds = %116
  %120 = load float, ptr %16, align 4, !tbaa !11
  %121 = invoke noundef float @_ZSt3absf(float noundef %120)
          to label %122 unwind label %155

122:                                              ; preds = %119
  %123 = fadd float %118, %121
  store float %123, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %124 = load float, ptr %20, align 4, !tbaa !11
  %125 = fpext float %124 to double
  %126 = fcmp ogt double %125, 0.000000e+00
  br i1 %126, label %127, label %134

127:                                              ; preds = %122
  %128 = load float, ptr %11, align 4, !tbaa !11
  %129 = invoke noundef float @_ZSt3absf(float noundef %128)
          to label %130 unwind label %159

130:                                              ; preds = %127
  %131 = load float, ptr %20, align 4, !tbaa !11
  %132 = fdiv float %129, %131
  %133 = fpext float %132 to double
  br label %135

134:                                              ; preds = %122
  br label %135

135:                                              ; preds = %134, %130
  %136 = phi double [ %133, %130 ], [ 0.000000e+00, %134 ]
  %137 = fptrunc double %136 to float
  store float %137, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #5
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.imp::Edge", ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.imp::Edge", ptr %140, i32 0, i32 2
  %142 = load float, ptr %21, align 4, !tbaa !11
  invoke void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %22, ptr noundef nonnull align 8 dereferenceable(36) %139, ptr noundef nonnull align 8 dereferenceable(36) %141, float noundef %142)
          to label %143 unwind label %163

143:                                              ; preds = %135
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSEOS0_(ptr noundef nonnull align 8 dereferenceable(36) %144, ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %22) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #5
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %146, i32 noundef -1)
          to label %147 unwind label %167

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !15
  br label %148

148:                                              ; preds = %228, %147
  %149 = load i32, ptr %24, align 4, !tbaa !15
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %150)
          to label %152 unwind label %171

152:                                              ; preds = %148
  %153 = icmp slt i32 %149, %151
  br i1 %153, label %175, label %154

154:                                              ; preds = %152
  store i32 2, ptr %25, align 4
  br label %233

155:                                              ; preds = %119, %116
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %14, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %15, align 4
  br label %240

159:                                              ; preds = %127
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %14, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %15, align 4
  br label %239

163:                                              ; preds = %135
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %14, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #5
  br label %239

167:                                              ; preds = %143
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %14, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %15, align 4
  br label %238

171:                                              ; preds = %148
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %14, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %15, align 4
  br label %235

175:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 40, ptr %26) #5
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load i32, ptr %24, align 4, !tbaa !15
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %26, ptr noundef nonnull align 8 dereferenceable(48) %176, i32 noundef %177)
          to label %178 unwind label %196

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #5
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %29, ptr noundef nonnull align 8 dereferenceable(36) %26, ptr noundef nonnull align 8 dereferenceable(36) %23)
          to label %179 unwind label %200

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

180:                                              ; preds = %179
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %27, ptr noundef nonnull align 8 dereferenceable(36) %10, ptr noundef nonnull align 8 dereferenceable(36) %28)
          to label %181 unwind label %208

181:                                              ; preds = %180
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %28) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %31) #5
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec") align 8 %31, ptr noundef nonnull align 8 dereferenceable(36) %182, ptr noundef nonnull align 8 dereferenceable(36) %23)
          to label %183 unwind label %214

183:                                              ; preds = %181
  %184 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef nonnull align 8 dereferenceable(36) %31)
          to label %185 unwind label %218

185:                                              ; preds = %183
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #5
  store float %184, ptr %30, align 4, !tbaa !11
  %186 = load float, ptr %30, align 4, !tbaa !11
  %187 = fcmp olt float %186, 0.000000e+00
  br i1 %187, label %195, label %188

188:                                              ; preds = %185
  %189 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %223

191:                                              ; preds = %188
  %192 = load float, ptr %30, align 4, !tbaa !11
  %193 = fpext float %192 to double
  %194 = fcmp oeq double %193, 0.000000e+00
  br i1 %194, label %195, label %223

195:                                              ; preds = %191, %185
  store i1 false, ptr %5, align 1
  store i32 1, ptr %25, align 4
  br label %225

196:                                              ; preds = %175
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %14, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %15, align 4
  br label %232

200:                                              ; preds = %178
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %14, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %15, align 4
  br label %213

204:                                              ; preds = %179
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %14, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %15, align 4
  br label %212

208:                                              ; preds = %180
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %14, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %28) #5
  br label %212

212:                                              ; preds = %208, %204
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %29) #5
  br label %213

213:                                              ; preds = %212, %200
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #5
  br label %231

214:                                              ; preds = %181
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %14, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %15, align 4
  br label %222

218:                                              ; preds = %183
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %14, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %15, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %31) #5
  br label %222

222:                                              ; preds = %218, %214
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %27) #5
  br label %231

223:                                              ; preds = %191, %188
  %224 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %23, ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  store i32 0, ptr %25, align 4
  br label %225

225:                                              ; preds = %223, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #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 @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  %226 = load i32, ptr %25, align 4
  switch i32 %226, label %233 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %24, align 4, !tbaa !15
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %24, align 4, !tbaa !15
  br label %148, !llvm.loop !17

231:                                              ; preds = %222, %213
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %26) #5
  br label %232

232:                                              ; preds = %231, %196
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #5
  br label %235

233:                                              ; preds = %225, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %234 = load i32, ptr %25, align 4
  switch i32 %234, label %237 [
    i32 2, label %236
  ]

235:                                              ; preds = %232, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  br label %238

236:                                              ; preds = %233
  store i1 true, ptr %5, align 1
  store i32 1, ptr %25, align 4
  br label %237

237:                                              ; preds = %236, %233
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %23) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %242

238:                                              ; preds = %235, %167
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #5
  br label %239

239:                                              ; preds = %238, %163, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %240

240:                                              ; preds = %239, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %244

241:                                              ; preds = %113
  store i1 false, ptr %5, align 1
  store i32 1, ptr %25, align 4
  br label %242

242:                                              ; preds = %241, %237
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  %243 = load i1, ptr %5, align 1
  ret i1 %243

244:                                              ; preds = %240, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %245

245:                                              ; preds = %244, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #5
  br label %246

246:                                              ; preds = %245
  %247 = load ptr, ptr %14, align 8
  %248 = load i32, ptr %15, align 4
  %249 = insertvalue { ptr, i32 } poison, ptr %247, 0
  %250 = insertvalue { ptr, i32 } %249, i32 %248, 1
  resume { ptr, i32 } %250
}

declare void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #3

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

declare void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #4

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

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

declare noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #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 #2 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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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] }>

; 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 float @_ZN3imp6signOfEf(float noundef) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3imp10Polyhedron8iSegFaceERKNS_4EdgeERKNS_4PathERNS_4Vec3Eb(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, i1 noundef zeroext %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.imp::Vec3", align 8
  %6 = alloca %"class.imp::Vec", align 8
  %7 = alloca %"class.imp::Vec3", align 8
  %8 = alloca %"class.imp::Vec", align 8
  %9 = alloca %"class.imp::Vec3", align 8
  %10 = alloca %"class.imp::Vec3", align 8
  %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 %"class.imp::Vec", align 8
  %16 = alloca %"class.imp::Vec", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(48) %1)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0)
          to label %18 unwind label %34

18:                                               ; preds = %4
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %6, ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %7)
  %19 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %6)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #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 @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0)
          to label %21 unwind label %36

21:                                               ; preds = %18
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) %20, ptr noundef nonnull align 8 dereferenceable(36) %9)
  %22 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %8)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #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 @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  %23 = call noundef float @_ZN3imp6signOfEf(float noundef %19)
  %24 = call noundef float @_ZN3imp6signOfEf(float noundef %22)
  %25 = fcmp une float %23, %24
  br i1 %25, label %26, label %.thread

26:                                               ; preds = %21
  br i1 %3, label %38, label %27

.thread:                                          ; preds = %21
  br i1 %3, label %.thread79, label %27

27:                                               ; preds = %.thread, %26
  %28 = fcmp oeq float %19, 0.000000e+00
  %29 = fcmp oeq float %22, 0.000000e+00
  %or.cond = or i1 %28, %29
  br i1 %or.cond, label %.critedge, label %30

30:                                               ; preds = %27
  %31 = call noundef float @_ZN3imp6signOfEf(float noundef %19)
  %32 = call noundef float @_ZN3imp6signOfEf(float noundef %22)
  %33 = fcmp une float %31, %32
  br i1 %33, label %.critedge, label %.thread79

34:                                               ; preds = %4
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #5
  br label %81

36:                                               ; preds = %18
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #5
  br label %81

38:                                               ; preds = %26
  %39 = fcmp une float %19, 0.000000e+00
  %40 = fcmp une float %22, 0.000000e+00
  %41 = and i1 %39, %40
  br i1 %41, label %.critedge, label %.thread79

.critedge:                                        ; preds = %30, %27, %38
  %42 = call noundef float @_ZSt3absf(float noundef %19)
  %43 = call noundef float @_ZSt3absf(float noundef %22)
  %44 = fadd float %42, %43
  %45 = fcmp ogt float %44, 0.000000e+00
  br i1 %45, label %46, label %49

46:                                               ; preds = %.critedge
  %47 = call noundef float @_ZSt3absf(float noundef %19)
  %48 = fdiv float %47, %44
  br label %49

49:                                               ; preds = %.critedge, %46
  %50 = phi float [ %48, %46 ], [ 0.000000e+00, %.critedge ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #5
  invoke void @_ZN3imp3mixINS_4Vec3EEET_RKS2_S4_f(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(36) %17, ptr noundef nonnull align 8 dereferenceable(36) %20, float noundef %50)
          to label %51 unwind label %55

51:                                               ; preds = %49
  %52 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSEOS0_(ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef -1)
          to label %.preheader unwind label %57

.preheader:                                       ; preds = %51, %.critedge65
  %.041 = phi i32 [ %76, %.critedge65 ], [ 0, %51 ]
  %53 = invoke noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %54 unwind label %59

54:                                               ; preds = %.preheader
  %.not.not = icmp sge i32 %.041, %53
  br i1 %.not.not, label %.critedge67, label %61

55:                                               ; preds = %49
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #5
  br label %81

57:                                               ; preds = %51
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %80

59:                                               ; preds = %.preheader
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %79

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #5
  invoke void @_ZNK3imp4PathixEi(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %.041)
          to label %62 unwind label %68

62:                                               ; preds = %61
  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 @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %15, ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 8 dereferenceable(36) %11)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %15, float noundef 1.000000e+00)
          to label %63 unwind label %70

63:                                               ; preds = %62
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %64 unwind label %72

64:                                               ; preds = %63
  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 @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.start.p0(i64 40, ptr nonnull %16) #5
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec") align 8 %16, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %11)
  %65 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %16)
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %16) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #5
  %66 = fcmp olt float %65, 0.000000e+00
  %67 = fcmp oeq float %65, 0.000000e+00
  %or.cond63 = and i1 %67, %3
  %or.cond68 = or i1 %66, %or.cond63
  br i1 %or.cond68, label %77, label %.critedge65

68:                                               ; preds = %61
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %78

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

72:                                               ; preds = %63
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #5
  br label %74

74:                                               ; preds = %72, %70
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %15) #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
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  br label %78

.critedge65:                                      ; preds = %64
  %75 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZN3imp4Vec3aSERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %11, ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #5
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  %76 = add nuw nsw i32 %.041, 1
  br label %.preheader, !llvm.loop !5

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

78:                                               ; preds = %74, %68
  %.pn.pn = phi { ptr, i32 } [ %.pn, %74 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #5
  br label %79

79:                                               ; preds = %78, %59
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %78 ], [ %60, %59 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  br label %80

.critedge67:                                      ; preds = %54, %77
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %11) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %.thread79

80:                                               ; preds = %79, %57
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %79 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #5
  br label %81

.thread79:                                        ; preds = %.thread, %30, %38, %.critedge67
  %.4 = phi i1 [ %.not.not, %.critedge67 ], [ false, %38 ], [ false, %30 ], [ false, %.thread ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  ret i1 %.4

81:                                               ; preds = %36, %80, %55, %34
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %37, %36 ], [ %.pn.pn.pn.pn, %80 ], [ %56, %55 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZNK3imp4Path6normalEv(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

declare void @_ZNK3imp4PathixEi(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #4

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

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

declare noundef i32 @_ZNK3imp4Path5countEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_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 #2 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

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass