; LLVM IR from ThePhysicsGuys/Physics3D :: graphics/meshRegistry.ll (ZN3P3D8Graphics12MeshRegistry14createCylinderEidd)

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

%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.4", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.3", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.3" = type { ptr }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x float] }
%"struct.P3D::Triangle" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { i32, i32, i32 }
%"struct.P3D::Vector.13" = type { %union.anon.14 }
%union.anon.14 = type { [3 x double] }
%"struct.P3D::Vector.7" = type { %union.anon.8 }
%union.anon.8 = type { [2 x float] }
%struct.anon = type { float, float, float }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@_ZTISt11logic_error = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12MeshRegistry14createCylinderEidd(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, i32 noundef %1, double noundef %2, double noundef %3) #6 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.P3D::Vector", align 4
  %18 = alloca %"struct.P3D::Vector", align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.P3D::Triangle", align 4
  %25 = alloca %"struct.P3D::Triangle", align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.P3D::Triangle", align 4
  %29 = alloca %"struct.P3D::Triangle", align 4
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %"struct.P3D::Vector", align 4
  %33 = alloca %"struct.P3D::Vector", align 4
  %34 = alloca %"struct.P3D::Vector.13", align 8
  %35 = alloca %"struct.P3D::Vector.13", align 8
  %36 = alloca { <2 x float>, float }, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"struct.P3D::Vector", align 4
  %39 = alloca %"struct.P3D::Vector", align 4
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca %"struct.P3D::Vector.7", align 4
  %46 = alloca i1, align 1
  %47 = alloca %"class.std::shared_ptr", align 8
  %48 = alloca %"class.std::shared_ptr.4", align 8
  store ptr %0, ptr %5, align 8
  store i32 %1, ptr %6, align 4, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !9
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 2
  br i1 %50, label %51, label %58

51:                                               ; preds = %4
  %52 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef @.str)
          to label %53 unwind label %54

53:                                               ; preds = %51
  call void @__cxa_throw(ptr %52, ptr @_ZTISt11logic_error, ptr @_ZNSt11logic_errorD1Ev) #11
  unreachable

54:                                               ; preds = %51
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %9, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %10, align 4
  call void @__cxa_free_exception(ptr %52) #10
  br label %497

58:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = mul nsw i32 %59, 4
  store i32 %60, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %62, i64 12)
  %64 = extractvalue { i64, i1 } %63, 1
  %65 = extractvalue { i64, i1 } %63, 0
  %66 = select i1 %64, i64 -1, i64 %65
  %67 = call noalias noundef nonnull ptr @_Znam(i64 noundef %66) #12
  %68 = icmp eq i64 %62, 0
  br i1 %68, label %75, label %69

69:                                               ; preds = %58
  %70 = getelementptr inbounds %"struct.P3D::Vector", ptr %67, i64 %62
  br label %71

71:                                               ; preds = %71, %69
  %72 = phi ptr [ %67, %69 ], [ %73, %71 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %72) #10
  %73 = getelementptr inbounds %"struct.P3D::Vector", ptr %72, i64 1
  %74 = icmp eq ptr %73, %70
  br i1 %74, label %75, label %71

75:                                               ; preds = %71, %58
  store ptr %67, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %76 = load double, ptr %7, align 8, !tbaa !9
  %77 = fptrunc double %76 to float
  store float %77, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  %78 = load double, ptr %8, align 8, !tbaa !9
  %79 = fptrunc double %78 to float
  store float %79, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %143, %75
  %81 = load i32, ptr %15, align 4, !tbaa !5
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %146

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = sitofp i32 %86 to float
  %88 = call noundef float @_ZN3P3D2piIfEET_v()
  %89 = fmul float %87, %88
  %90 = fmul float %89, 2.000000e+00
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = sitofp i32 %91 to float
  %93 = fdiv float %90, %92
  store float %93, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #10
  %94 = load float, ptr %16, align 4, !tbaa !13
  %95 = call noundef float @_ZSt3cosf(float noundef %94)
  %96 = load float, ptr %13, align 4, !tbaa !13
  %97 = fmul float %95, %96
  %98 = load float, ptr %16, align 4, !tbaa !13
  %99 = call noundef float @_ZSt3sinf(float noundef %98)
  %100 = load float, ptr %13, align 4, !tbaa !13
  %101 = fmul float %99, %100
  %102 = load float, ptr %14, align 4, !tbaa !13
  %103 = fdiv float %102, 2.000000e+00
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %97, float noundef %101, float noundef %103) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #10
  %104 = load float, ptr %16, align 4, !tbaa !13
  %105 = call noundef float @_ZSt3cosf(float noundef %104)
  %106 = load float, ptr %13, align 4, !tbaa !13
  %107 = fmul float %105, %106
  %108 = load float, ptr %16, align 4, !tbaa !13
  %109 = call noundef float @_ZSt3sinf(float noundef %108)
  %110 = load float, ptr %13, align 4, !tbaa !13
  %111 = fmul float %109, %110
  %112 = load float, ptr %14, align 4, !tbaa !13
  %113 = fneg float %112
  %114 = fdiv float %113, 2.000000e+00
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %107, float noundef %111, float noundef %114) #10
  %115 = load ptr, ptr %12, align 8, !tbaa !11
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = mul nsw i32 %116, 2
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %"struct.P3D::Vector", ptr %115, i64 %118
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %119, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !15
  %120 = load ptr, ptr %12, align 8, !tbaa !11
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = mul nsw i32 %121, 2
  %123 = add nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %"struct.P3D::Vector", ptr %120, i64 %124
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %125, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !15
  %126 = load ptr, ptr %12, align 8, !tbaa !11
  %127 = load i32, ptr %15, align 4, !tbaa !5
  %128 = mul nsw i32 %127, 2
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = mul nsw i32 %129, 2
  %131 = add nsw i32 %128, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %"struct.P3D::Vector", ptr %126, i64 %132
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !15
  %134 = load ptr, ptr %12, align 8, !tbaa !11
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = mul nsw i32 %135, 2
  %137 = add nsw i32 %136, 1
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = mul nsw i32 %138, 2
  %140 = add nsw i32 %137, %139
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %"struct.P3D::Vector", ptr %134, i64 %141
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %142, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %143

143:                                              ; preds = %85
  %144 = load i32, ptr %15, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %15, align 4, !tbaa !5
  br label %80, !llvm.loop !17

146:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = mul nsw i32 %147, 2
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = sub nsw i32 %149, 2
  %151 = mul nsw i32 %150, 2
  %152 = add nsw i32 %148, %151
  store i32 %152, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %154, i64 12)
  %156 = extractvalue { i64, i1 } %155, 1
  %157 = extractvalue { i64, i1 } %155, 0
  %158 = select i1 %156, i64 -1, i64 %157
  %159 = call noalias noundef nonnull ptr @_Znam(i64 noundef %158) #12
  store ptr %159, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %201, %146
  %161 = load i32, ptr %21, align 4, !tbaa !5
  %162 = load i32, ptr %6, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %204

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  %166 = load i32, ptr %21, align 4, !tbaa !5
  %167 = mul nsw i32 %166, 2
  store i32 %167, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %168 = load i32, ptr %21, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = load i32, ptr %6, align 4, !tbaa !5
  %171 = srem i32 %169, %170
  %172 = mul nsw i32 %171, 2
  store i32 %172, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #10
  %173 = getelementptr inbounds %"struct.P3D::Triangle", ptr %24, i32 0, i32 0
  %174 = getelementptr inbounds %struct.anon.11, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %175, ptr %174, align 4, !tbaa !19
  %176 = getelementptr inbounds %struct.anon.11, ptr %173, i32 0, i32 1
  %177 = load i32, ptr %22, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %176, align 4, !tbaa !21
  %179 = getelementptr inbounds %struct.anon.11, ptr %173, i32 0, i32 2
  %180 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %180, ptr %179, align 4, !tbaa !22
  %181 = load ptr, ptr %20, align 8, !tbaa !11
  %182 = load i32, ptr %21, align 4, !tbaa !5
  %183 = mul nsw i32 %182, 2
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %"struct.P3D::Triangle", ptr %181, i64 %184
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %185, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #10
  %186 = getelementptr inbounds %"struct.P3D::Triangle", ptr %25, i32 0, i32 0
  %187 = getelementptr inbounds %struct.anon.11, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %23, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %187, align 4, !tbaa !19
  %190 = getelementptr inbounds %struct.anon.11, ptr %186, i32 0, i32 1
  %191 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %191, ptr %190, align 4, !tbaa !21
  %192 = getelementptr inbounds %struct.anon.11, ptr %186, i32 0, i32 2
  %193 = load i32, ptr %22, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %192, align 4, !tbaa !22
  %195 = load ptr, ptr %20, align 8, !tbaa !11
  %196 = load i32, ptr %21, align 4, !tbaa !5
  %197 = mul nsw i32 %196, 2
  %198 = add nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %"struct.P3D::Triangle", ptr %195, i64 %199
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %200, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %201

201:                                              ; preds = %165
  %202 = load i32, ptr %21, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %21, align 4, !tbaa !5
  br label %160, !llvm.loop !23

204:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %205 = load ptr, ptr %20, align 8, !tbaa !11
  %206 = load i32, ptr %6, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = mul i64 %207, 2
  %209 = getelementptr inbounds %"struct.P3D::Triangle", ptr %205, i64 %208
  store ptr %209, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %268, %204
  %211 = load i32, ptr %27, align 4, !tbaa !5
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = sub nsw i32 %212, 2
  %214 = icmp slt i32 %211, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %271

216:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #10
  %217 = getelementptr inbounds %"struct.P3D::Triangle", ptr %28, i32 0, i32 0
  %218 = getelementptr inbounds %struct.anon.11, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %6, align 4, !tbaa !5
  %220 = mul nsw i32 %219, 2
  %221 = add nsw i32 %220, 0
  store i32 %221, ptr %218, align 4, !tbaa !19
  %222 = getelementptr inbounds %struct.anon.11, ptr %217, i32 0, i32 1
  %223 = load i32, ptr %6, align 4, !tbaa !5
  %224 = mul nsw i32 %223, 2
  %225 = load i32, ptr %27, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  %227 = mul nsw i32 %226, 2
  %228 = add nsw i32 %224, %227
  store i32 %228, ptr %222, align 4, !tbaa !21
  %229 = getelementptr inbounds %struct.anon.11, ptr %217, i32 0, i32 2
  %230 = load i32, ptr %6, align 4, !tbaa !5
  %231 = mul nsw i32 %230, 2
  %232 = load i32, ptr %27, align 4, !tbaa !5
  %233 = add nsw i32 %232, 2
  %234 = mul nsw i32 %233, 2
  %235 = add nsw i32 %231, %234
  store i32 %235, ptr %229, align 4, !tbaa !22
  %236 = load ptr, ptr %26, align 8, !tbaa !11
  %237 = load i32, ptr %27, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds %"struct.P3D::Triangle", ptr %236, i64 %238
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %239, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #10
  %240 = getelementptr inbounds %"struct.P3D::Triangle", ptr %29, i32 0, i32 0
  %241 = getelementptr inbounds %struct.anon.11, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %6, align 4, !tbaa !5
  %243 = mul nsw i32 %242, 2
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %241, align 4, !tbaa !19
  %245 = getelementptr inbounds %struct.anon.11, ptr %240, i32 0, i32 1
  %246 = load i32, ptr %6, align 4, !tbaa !5
  %247 = mul nsw i32 %246, 2
  %248 = load i32, ptr %27, align 4, !tbaa !5
  %249 = add nsw i32 %248, 2
  %250 = mul nsw i32 %249, 2
  %251 = add nsw i32 %247, %250
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %245, align 4, !tbaa !21
  %253 = getelementptr inbounds %struct.anon.11, ptr %240, i32 0, i32 2
  %254 = load i32, ptr %6, align 4, !tbaa !5
  %255 = mul nsw i32 %254, 2
  %256 = load i32, ptr %27, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  %258 = mul nsw i32 %257, 2
  %259 = add nsw i32 %255, %258
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %253, align 4, !tbaa !22
  %261 = load ptr, ptr %26, align 8, !tbaa !11
  %262 = load i32, ptr %27, align 4, !tbaa !5
  %263 = load i32, ptr %6, align 4, !tbaa !5
  %264 = sub nsw i32 %263, 2
  %265 = add nsw i32 %262, %264
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds %"struct.P3D::Triangle", ptr %261, i64 %266
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %267, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #10
  br label %268

268:                                              ; preds = %216
  %269 = load i32, ptr %27, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %27, align 4, !tbaa !5
  br label %210, !llvm.loop !24

271:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %272 = load i32, ptr %11, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %273, i64 12)
  %275 = extractvalue { i64, i1 } %274, 1
  %276 = extractvalue { i64, i1 } %274, 0
  %277 = select i1 %275, i64 -1, i64 %276
  %278 = call noalias noundef nonnull ptr @_Znam(i64 noundef %277) #12
  %279 = icmp eq i64 %273, 0
  br i1 %279, label %286, label %280

280:                                              ; preds = %271
  %281 = getelementptr inbounds %"struct.P3D::Vector", ptr %278, i64 %273
  br label %282

282:                                              ; preds = %282, %280
  %283 = phi ptr [ %278, %280 ], [ %284, %282 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %283) #10
  %284 = getelementptr inbounds %"struct.P3D::Vector", ptr %283, i64 1
  %285 = icmp eq ptr %284, %281
  br i1 %285, label %286, label %282

286:                                              ; preds = %282, %271
  store ptr %278, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %287

287:                                              ; preds = %313, %286
  %288 = load i32, ptr %31, align 4, !tbaa !5
  %289 = load i32, ptr %6, align 4, !tbaa !5
  %290 = mul nsw i32 %289, 2
  %291 = icmp slt i32 %288, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %316

293:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #10
  %294 = load ptr, ptr %12, align 8, !tbaa !11
  %295 = load i32, ptr %31, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds %"struct.P3D::Vector", ptr %294, i64 %296
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %297, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #10
  %298 = getelementptr inbounds %"struct.P3D::Vector", ptr %32, i32 0, i32 0
  %299 = getelementptr inbounds %struct.anon, ptr %298, i32 0, i32 0
  %300 = load float, ptr %299, align 4, !tbaa !16
  %301 = fpext float %300 to double
  %302 = getelementptr inbounds %"struct.P3D::Vector", ptr %32, i32 0, i32 0
  %303 = getelementptr inbounds %struct.anon, ptr %302, i32 0, i32 1
  %304 = load float, ptr %303, align 4, !tbaa !16
  %305 = fpext float %304 to double
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %35, double noundef %301, double noundef %305, double noundef 0.000000e+00) #10
  call void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector.13") align 8 %34, ptr noundef nonnull align 8 dereferenceable(24) %35) #10
  %306 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #10
  %307 = getelementptr inbounds %"struct.P3D::Vector", ptr %33, i32 0, i32 0
  %308 = getelementptr inbounds %union.anon, ptr %307, i32 0, i32 0
  store { <2 x float>, float } %306, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %308, ptr align 8 %36, i64 12, i1 false)
  %309 = load ptr, ptr %30, align 8, !tbaa !11
  %310 = load i32, ptr %31, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds %"struct.P3D::Vector", ptr %309, i64 %311
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %312, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #10
  br label %313

313:                                              ; preds = %293
  %314 = load i32, ptr %31, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %31, align 4, !tbaa !5
  br label %287, !llvm.loop !25

316:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %317

317:                                              ; preds = %340, %316
  %318 = load i32, ptr %37, align 4, !tbaa !5
  %319 = load i32, ptr %6, align 4, !tbaa !5
  %320 = icmp slt i32 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %343

322:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %38, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00) #10
  %323 = load ptr, ptr %30, align 8, !tbaa !11
  %324 = load i32, ptr %37, align 4, !tbaa !5
  %325 = mul nsw i32 %324, 2
  %326 = load i32, ptr %6, align 4, !tbaa !5
  %327 = mul nsw i32 %326, 2
  %328 = add nsw i32 %325, %327
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds %"struct.P3D::Vector", ptr %323, i64 %329
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %330, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #10
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %39, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+00) #10
  %331 = load ptr, ptr %30, align 8, !tbaa !11
  %332 = load i32, ptr %37, align 4, !tbaa !5
  %333 = mul nsw i32 %332, 2
  %334 = load i32, ptr %6, align 4, !tbaa !5
  %335 = mul nsw i32 %334, 2
  %336 = add nsw i32 %333, %335
  %337 = add nsw i32 %336, 1
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %"struct.P3D::Vector", ptr %331, i64 %338
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %339, ptr align 4 %39, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #10
  br label %340

340:                                              ; preds = %322
  %341 = load i32, ptr %37, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %37, align 4, !tbaa !5
  br label %317, !llvm.loop !26

343:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  %344 = load i32, ptr %11, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %345, i64 8)
  %347 = extractvalue { i64, i1 } %346, 1
  %348 = extractvalue { i64, i1 } %346, 0
  %349 = select i1 %347, i64 -1, i64 %348
  %350 = call noalias noundef nonnull ptr @_Znam(i64 noundef %349) #12
  %351 = icmp eq i64 %345, 0
  br i1 %351, label %358, label %352

352:                                              ; preds = %343
  %353 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %350, i64 %345
  br label %354

354:                                              ; preds = %354, %352
  %355 = phi ptr [ %350, %352 ], [ %356, %354 ]
  call void @_ZN3P3D6VectorIfLm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %355) #10
  %356 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %355, i64 1
  %357 = icmp eq ptr %356, %353
  br i1 %357, label %358, label %354

358:                                              ; preds = %354, %343
  store ptr %350, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %359

359:                                              ; preds = %461, %358
  %360 = load i32, ptr %41, align 4, !tbaa !5
  %361 = load i32, ptr %11, align 4, !tbaa !5
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %464

364:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %365 = load ptr, ptr %12, align 8, !tbaa !11
  %366 = load i32, ptr %41, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds %"struct.P3D::Vector", ptr %365, i64 %367
  store ptr %368, ptr %42, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  %369 = load ptr, ptr %42, align 8, !tbaa !11
  %370 = getelementptr inbounds %"struct.P3D::Vector", ptr %369, i32 0, i32 0
  %371 = getelementptr inbounds %struct.anon, ptr %370, i32 0, i32 1
  %372 = load float, ptr %371, align 4, !tbaa !16
  %373 = load float, ptr %14, align 4, !tbaa !13
  %374 = fdiv float %372, %373
  store float %374, ptr %44, align 4, !tbaa !13
  %375 = load ptr, ptr %42, align 8, !tbaa !11
  %376 = getelementptr inbounds %"struct.P3D::Vector", ptr %375, i32 0, i32 0
  %377 = getelementptr inbounds %struct.anon, ptr %376, i32 0, i32 0
  %378 = load float, ptr %377, align 4, !tbaa !16
  %379 = fcmp oge float %378, 0.000000e+00
  br i1 %379, label %380, label %423

380:                                              ; preds = %364
  %381 = load ptr, ptr %42, align 8, !tbaa !11
  %382 = getelementptr inbounds %"struct.P3D::Vector", ptr %381, i32 0, i32 0
  %383 = getelementptr inbounds %struct.anon, ptr %382, i32 0, i32 0
  %384 = load float, ptr %383, align 4, !tbaa !16
  %385 = fcmp oeq float %384, 0.000000e+00
  br i1 %385, label %386, label %412

386:                                              ; preds = %380
  %387 = load ptr, ptr %42, align 8, !tbaa !11
  %388 = getelementptr inbounds %"struct.P3D::Vector", ptr %387, i32 0, i32 0
  %389 = getelementptr inbounds %struct.anon, ptr %388, i32 0, i32 1
  %390 = load float, ptr %389, align 4, !tbaa !16
  %391 = load ptr, ptr %42, align 8, !tbaa !11
  %392 = getelementptr inbounds %"struct.P3D::Vector", ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds %struct.anon, ptr %392, i32 0, i32 0
  %394 = load float, ptr %393, align 4, !tbaa !16
  %395 = load ptr, ptr %42, align 8, !tbaa !11
  %396 = getelementptr inbounds %"struct.P3D::Vector", ptr %395, i32 0, i32 0
  %397 = getelementptr inbounds %struct.anon, ptr %396, i32 0, i32 0
  %398 = load float, ptr %397, align 4, !tbaa !16
  %399 = load ptr, ptr %42, align 8, !tbaa !11
  %400 = getelementptr inbounds %"struct.P3D::Vector", ptr %399, i32 0, i32 0
  %401 = getelementptr inbounds %struct.anon, ptr %400, i32 0, i32 1
  %402 = load float, ptr %401, align 4, !tbaa !16
  %403 = load ptr, ptr %42, align 8, !tbaa !11
  %404 = getelementptr inbounds %"struct.P3D::Vector", ptr %403, i32 0, i32 0
  %405 = getelementptr inbounds %struct.anon, ptr %404, i32 0, i32 1
  %406 = load float, ptr %405, align 4, !tbaa !16
  %407 = fmul float %402, %406
  %408 = call float @llvm.fmuladd.f32(float %394, float %398, float %407)
  %409 = call noundef float @_ZSt4sqrtf(float noundef %408)
  %410 = fdiv float %390, %409
  %411 = call noundef float @_ZSt4asinf(float noundef %410)
  store float %411, ptr %43, align 4, !tbaa !13
  br label %422

412:                                              ; preds = %380
  %413 = load ptr, ptr %42, align 8, !tbaa !11
  %414 = getelementptr inbounds %"struct.P3D::Vector", ptr %413, i32 0, i32 0
  %415 = getelementptr inbounds %struct.anon, ptr %414, i32 0, i32 1
  %416 = load float, ptr %415, align 4, !tbaa !16
  %417 = load ptr, ptr %42, align 8, !tbaa !11
  %418 = getelementptr inbounds %"struct.P3D::Vector", ptr %417, i32 0, i32 0
  %419 = getelementptr inbounds %struct.anon, ptr %418, i32 0, i32 0
  %420 = load float, ptr %419, align 4, !tbaa !16
  %421 = call noundef float @_ZSt5atan2ff(float noundef %416, float noundef %420)
  store float %421, ptr %43, align 4, !tbaa !13
  br label %422

422:                                              ; preds = %412, %386
  br label %454

423:                                              ; preds = %364
  %424 = load ptr, ptr %42, align 8, !tbaa !11
  %425 = getelementptr inbounds %"struct.P3D::Vector", ptr %424, i32 0, i32 0
  %426 = getelementptr inbounds %struct.anon, ptr %425, i32 0, i32 1
  %427 = load float, ptr %426, align 4, !tbaa !16
  %428 = load ptr, ptr %42, align 8, !tbaa !11
  %429 = getelementptr inbounds %"struct.P3D::Vector", ptr %428, i32 0, i32 0
  %430 = getelementptr inbounds %struct.anon, ptr %429, i32 0, i32 0
  %431 = load float, ptr %430, align 4, !tbaa !16
  %432 = load ptr, ptr %42, align 8, !tbaa !11
  %433 = getelementptr inbounds %"struct.P3D::Vector", ptr %432, i32 0, i32 0
  %434 = getelementptr inbounds %struct.anon, ptr %433, i32 0, i32 0
  %435 = load float, ptr %434, align 4, !tbaa !16
  %436 = load ptr, ptr %42, align 8, !tbaa !11
  %437 = getelementptr inbounds %"struct.P3D::Vector", ptr %436, i32 0, i32 0
  %438 = getelementptr inbounds %struct.anon, ptr %437, i32 0, i32 1
  %439 = load float, ptr %438, align 4, !tbaa !16
  %440 = load ptr, ptr %42, align 8, !tbaa !11
  %441 = getelementptr inbounds %"struct.P3D::Vector", ptr %440, i32 0, i32 0
  %442 = getelementptr inbounds %struct.anon, ptr %441, i32 0, i32 1
  %443 = load float, ptr %442, align 4, !tbaa !16
  %444 = fmul float %439, %443
  %445 = call float @llvm.fmuladd.f32(float %431, float %435, float %444)
  %446 = call noundef float @_ZSt4sqrtf(float noundef %445)
  %447 = fdiv float %427, %446
  %448 = call noundef float @_ZSt4asinf(float noundef %447)
  %449 = fneg float %448
  %450 = fpext float %449 to double
  %451 = call noundef double @_ZN3P3D2piIdEET_v()
  %452 = fadd double %450, %451
  %453 = fptrunc double %452 to float
  store float %453, ptr %43, align 4, !tbaa !13
  br label %454

454:                                              ; preds = %423, %422
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  %455 = load float, ptr %43, align 4, !tbaa !13
  %456 = load float, ptr %44, align 4, !tbaa !13
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %45, float noundef %455, float noundef %456) #10
  %457 = load ptr, ptr %40, align 8, !tbaa !11
  %458 = load i32, ptr %41, align 4, !tbaa !5
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %457, i64 %459
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %460, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  br label %461

461:                                              ; preds = %454
  %462 = load i32, ptr %41, align 4, !tbaa !5
  %463 = add nsw i32 %462, 1
  store i32 %463, ptr %41, align 4, !tbaa !5
  br label %359, !llvm.loop !28

464:                                              ; preds = %363
  store i1 false, ptr %46, align 1
  %465 = load ptr, ptr %12, align 8, !tbaa !11
  %466 = load i32, ptr %11, align 4, !tbaa !5
  %467 = load ptr, ptr %20, align 8, !tbaa !11
  %468 = load i32, ptr %19, align 4, !tbaa !5
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %465, i32 noundef %466, ptr noundef %467, i32 noundef %468)
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #10
  %469 = load ptr, ptr %30, align 8, !tbaa !11
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef %469)
          to label %470 unwind label %476

470:                                              ; preds = %464
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %471 unwind label %480

471:                                              ; preds = %470
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #10
  %472 = load ptr, ptr %40, align 8, !tbaa !11
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef %472)
          to label %473 unwind label %485

473:                                              ; preds = %471
  invoke void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %474 unwind label %489

474:                                              ; preds = %473
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #10
  store i1 true, ptr %46, align 1
  %475 = load i1, ptr %46, align 1
  br i1 %475, label %495, label %494

476:                                              ; preds = %464
  %477 = landingpad { ptr, i32 }
          cleanup
  %478 = extractvalue { ptr, i32 } %477, 0
  store ptr %478, ptr %9, align 8
  %479 = extractvalue { ptr, i32 } %477, 1
  store i32 %479, ptr %10, align 4
  br label %484

480:                                              ; preds = %470
  %481 = landingpad { ptr, i32 }
          cleanup
  %482 = extractvalue { ptr, i32 } %481, 0
  store ptr %482, ptr %9, align 8
  %483 = extractvalue { ptr, i32 } %481, 1
  store i32 %483, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #10
  br label %484

484:                                              ; preds = %480, %476
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  br label %496

485:                                              ; preds = %471
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %9, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %10, align 4
  br label %493

489:                                              ; preds = %473
  %490 = landingpad { ptr, i32 }
          cleanup
  %491 = extractvalue { ptr, i32 } %490, 0
  store ptr %491, ptr %9, align 8
  %492 = extractvalue { ptr, i32 } %490, 1
  store i32 %492, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #10
  br label %493

493:                                              ; preds = %489, %485
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #10
  br label %496

494:                                              ; preds = %474
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #10
  br label %495

495:                                              ; preds = %494, %474
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  ret void

496:                                              ; preds = %493, %484
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %497

497:                                              ; preds = %496, %54
  %498 = load ptr, ptr %9, align 8
  %499 = load i32, ptr %10, align 4
  %500 = insertvalue { ptr, i32 } poison, ptr %498, 0
  %501 = insertvalue { ptr, i32 } %500, i32 %499, 1
  resume { ptr, i32 } %501
}

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3D2piIdEET_v() #1

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { "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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn }
attributes #12 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 12, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSN3P3D8TriangleUt_Ut_E", !6, i64 0, !6, i64 4, !6, i64 8}
!21 = !{!20, !6, i64 4}
!22 = !{!20, !6, i64 8}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = !{i64 0, i64 8, !16}
!28 = distinct !{!28, !18}


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

%"struct.P3D::Graphics::ExtendedTriangleMesh" = type { %"class.P3D::TriangleMesh", %"class.std::shared_ptr", %"class.std::shared_ptr.4", %"class.std::shared_ptr", %"class.std::shared_ptr" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.3", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.3" = type { ptr }
%"class.std::shared_ptr.4" = type { %"class.std::__shared_ptr.5" }
%"class.std::__shared_ptr.5" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x float] }
%"struct.P3D::Vector.13" = type { %union.anon.14 }
%union.anon.14 = type { [3 x double] }
%"struct.P3D::Vector.7" = type { %union.anon.8 }
%union.anon.8 = type { [2 x float] }
%"struct.P3D::Triangle" = type { %union.anon.10 }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@_ZTISt11logic_error = external constant ptr

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, i32 noundef, ptr noundef, i32 noundef) unnamed_addr #4 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3P3D8Graphics12MeshRegistry14createCylinderEidd(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Graphics::ExtendedTriangleMesh") align 8 %0, i32 noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.P3D::Vector", align 4
  %6 = alloca %"struct.P3D::Vector", align 4
  %7 = alloca %"struct.P3D::Vector.13", align 8
  %8 = alloca %"struct.P3D::Vector.13", align 8
  %9 = alloca %"struct.P3D::Vector", align 4
  %10 = alloca %"struct.P3D::Vector", align 4
  %11 = alloca %"struct.P3D::Vector.7", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.std::shared_ptr.4", align 8
  %14 = icmp slt i32 %1, 2
  br i1 %14, label %15, label %20

15:                                               ; preds = %4
  %16 = tail call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull @.str)
          to label %17 unwind label %18

17:                                               ; preds = %15
  tail call void @__cxa_throw(ptr nonnull %16, ptr nonnull @_ZTISt11logic_error, ptr nonnull @_ZNSt11logic_errorD1Ev) #12
  unreachable

18:                                               ; preds = %15
  %19 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %16) #11
  br label %149

20:                                               ; preds = %4
  %21 = shl nsw i32 %1, 2
  %22 = zext nneg i32 %21 to i64
  %23 = mul nuw nsw i64 %22, 12
  %24 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #13
  %25 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %22
  br label %26

26:                                               ; preds = %26, %20
  %27 = phi ptr [ %24, %20 ], [ %28, %26 ]
  tail call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #11
  %28 = getelementptr inbounds i8, ptr %27, i64 12
  %29 = icmp eq ptr %28, %25
  br i1 %29, label %.lr.ph, label %26

.lr.ph:                                           ; preds = %26
  %30 = fptrunc double %2 to float
  %31 = fptrunc double %3 to float
  %32 = uitofp nneg i32 %1 to float
  %33 = fmul float %31, 5.000000e-01
  %34 = fmul float %31, -5.000000e-01
  %35 = shl nuw i32 %1, 1
  %36 = zext i32 %35 to i64
  %wide.trip.count = zext nneg i32 %1 to i64
  %invariant.gep = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %36
  %invariant.gep199 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %36
  br label %43

.lr.ph157.preheader:                              ; preds = %43
  %37 = add nsw i32 %1, -2
  %38 = add i32 %37, %1
  %39 = shl nuw i32 %38, 1
  %40 = zext nneg i32 %39 to i64
  %41 = mul nuw nsw i64 %40, 12
  %42 = call noalias noundef nonnull ptr @_Znam(i64 noundef %41) #13
  %smax = call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count174 = zext nneg i32 %smax to i64
  br label %.lr.ph157

43:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %44 = trunc nuw nsw i64 %indvars.iv to i32
  %45 = uitofp nneg i32 %44 to float
  %46 = call noundef float @_ZN3P3D2piIfEET_v()
  %47 = fmul float %46, %45
  %48 = fmul float %47, 2.000000e+00
  %49 = fdiv float %48, %32
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #11
  %50 = call noundef float @_ZSt3cosf(float noundef %49)
  %51 = fmul float %50, %30
  %52 = call noundef float @_ZSt3sinf(float noundef %49)
  %53 = fmul float %52, %30
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %51, float noundef %53, float noundef %33) #11
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #11
  %54 = call noundef float @_ZSt3cosf(float noundef %49)
  %55 = fmul float %54, %30
  %56 = call noundef float @_ZSt3sinf(float noundef %49)
  %57 = fmul float %56, %30
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %55, float noundef %57, float noundef %34) #11
  %58 = shl nuw nsw i64 %indvars.iv, 1
  %59 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  %60 = or disjoint i64 %58, 1
  %61 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %60
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %gep = getelementptr inbounds %"struct.P3D::Vector", ptr %invariant.gep, i64 %58
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %gep, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  %gep200 = getelementptr inbounds %"struct.P3D::Vector", ptr %invariant.gep199, i64 %60
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %gep200, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.lr.ph157.preheader, label %43, !llvm.loop !9

._crit_edge158:                                   ; preds = %.lr.ph157
  %62 = zext i32 %35 to i64
  %63 = getelementptr inbounds %"struct.P3D::Triangle", ptr %42, i64 %62
  %.not = icmp eq i32 %1, 2
  br i1 %.not, label %._crit_edge162, label %.lr.ph161

.lr.ph161:                                        ; preds = %._crit_edge158
  %64 = add i32 %35, 4
  %65 = or disjoint i32 %35, 1
  %66 = sext i32 %37 to i64
  %smax179 = call i32 @llvm.smax.i32(i32 %37, i32 1)
  %wide.trip.count180 = zext nneg i32 %smax179 to i64
  %invariant.gep201 = getelementptr %"struct.P3D::Triangle", ptr %63, i64 %66
  br label %79

.lr.ph157:                                        ; preds = %.lr.ph157.preheader, %.lr.ph157
  %indvars.iv171 = phi i64 [ 0, %.lr.ph157.preheader ], [ %indvars.iv.next172, %.lr.ph157 ]
  %67 = shl nuw nsw i64 %indvars.iv171, 1
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %68 = trunc nuw nsw i64 %indvars.iv.next172 to i32
  %69 = urem i32 %68, %1
  %70 = shl nuw nsw i32 %69, 1
  %71 = or disjoint i64 %67, 1
  %72 = getelementptr inbounds %"struct.P3D::Triangle", ptr %42, i64 %67
  %73 = trunc nuw nsw i64 %67 to i32
  store i32 %73, ptr %72, align 4
  %.sroa.458.0..sroa_idx = getelementptr inbounds i8, ptr %72, i64 4
  %74 = trunc nuw nsw i64 %71 to i32
  store i32 %74, ptr %.sroa.458.0..sroa_idx, align 4
  %.sroa.559.0..sroa_idx = getelementptr inbounds i8, ptr %72, i64 8
  store i32 %70, ptr %.sroa.559.0..sroa_idx, align 4, !tbaa !6
  %75 = or disjoint i32 %70, 1
  %76 = getelementptr inbounds %"struct.P3D::Triangle", ptr %42, i64 %71
  store i32 %75, ptr %76, align 4
  %.sroa.455.0..sroa_idx = getelementptr inbounds i8, ptr %76, i64 4
  store i32 %70, ptr %.sroa.455.0..sroa_idx, align 4
  %.sroa.556.0..sroa_idx = getelementptr inbounds i8, ptr %76, i64 8
  store i32 %74, ptr %.sroa.556.0..sroa_idx, align 4, !tbaa !6
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge158, label %.lr.ph157, !llvm.loop !11

._crit_edge162:                                   ; preds = %79, %._crit_edge158
  %77 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #13
  %78 = getelementptr inbounds %"struct.P3D::Vector", ptr %77, i64 %22
  br label %88

79:                                               ; preds = %.lr.ph161, %79
  %indvars.iv176 = phi i64 [ 0, %.lr.ph161 ], [ %indvars.iv.next177, %79 ]
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %80 = trunc i64 %indvars.iv.next177 to i32
  %81 = add i32 %80, %1
  %82 = shl i32 %81, 1
  %indvars.iv176.tr = trunc i64 %indvars.iv176 to i32
  %83 = shl i32 %indvars.iv176.tr, 1
  %84 = add i32 %64, %83
  %85 = getelementptr inbounds %"struct.P3D::Triangle", ptr %63, i64 %indvars.iv176
  store i32 %35, ptr %85, align 4
  %.sroa.442.0..sroa_idx = getelementptr inbounds i8, ptr %85, i64 4
  store i32 %82, ptr %.sroa.442.0..sroa_idx, align 4
  %.sroa.543.0..sroa_idx = getelementptr inbounds i8, ptr %85, i64 8
  store i32 %84, ptr %.sroa.543.0..sroa_idx, align 4, !tbaa !6
  %86 = or disjoint i32 %84, 1
  %87 = or disjoint i32 %82, 1
  %gep202 = getelementptr %"struct.P3D::Triangle", ptr %invariant.gep201, i64 %indvars.iv176
  store i32 %65, ptr %gep202, align 4
  %.sroa.439.0..sroa_idx = getelementptr inbounds i8, ptr %gep202, i64 4
  store i32 %86, ptr %.sroa.439.0..sroa_idx, align 4
  %.sroa.540.0..sroa_idx = getelementptr inbounds i8, ptr %gep202, i64 8
  store i32 %87, ptr %.sroa.540.0..sroa_idx, align 4, !tbaa !6
  %exitcond181.not = icmp eq i64 %indvars.iv.next177, %wide.trip.count180
  br i1 %exitcond181.not, label %._crit_edge162, label %79, !llvm.loop !12

88:                                               ; preds = %88, %._crit_edge162
  %89 = phi ptr [ %77, %._crit_edge162 ], [ %90, %88 ]
  call void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %89) #11
  %90 = getelementptr inbounds i8, ptr %89, i64 12
  %91 = icmp eq ptr %90, %78
  br i1 %91, label %.preheader153.preheader, label %88

.preheader153.preheader:                          ; preds = %88
  %umax = call i32 @llvm.umax.i32(i32 %35, i32 1)
  %wide.trip.count185 = zext i32 %umax to i64
  br label %.preheader153

.lr.ph165.preheader:                              ; preds = %.preheader153
  %smax190 = call i32 @llvm.smax.i32(i32 %1, i32 1)
  %wide.trip.count191 = zext nneg i32 %smax190 to i64
  br label %.lr.ph165

.preheader153:                                    ; preds = %.preheader153.preheader, %.preheader153
  %indvars.iv182 = phi i64 [ 0, %.preheader153.preheader ], [ %indvars.iv.next183, %.preheader153 ]
  %92 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %indvars.iv182
  %.sroa.028.0.copyload = load float, ptr %92, align 4
  %.sroa.429.0..sroa_idx = getelementptr inbounds i8, ptr %92, i64 4
  %.sroa.429.0.copyload = load float, ptr %.sroa.429.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #11
  %93 = fpext float %.sroa.028.0.copyload to double
  %94 = fpext float %.sroa.429.0.copyload to double
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef %93, double noundef %94, double noundef 0.000000e+00) #11
  call void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector.13") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8) #11
  %95 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  %.fca.0.extract = extractvalue { <2 x float>, float } %95, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %95, 1
  %96 = getelementptr inbounds %"struct.P3D::Vector", ptr %77, i64 %indvars.iv182
  store <2 x float> %.fca.0.extract, ptr %96, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %96, i64 8
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #11
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %exitcond186.not = icmp eq i64 %indvars.iv.next183, %wide.trip.count185
  br i1 %exitcond186.not, label %.lr.ph165.preheader, label %.preheader153, !llvm.loop !13

._crit_edge166:                                   ; preds = %.lr.ph165
  %97 = shl nuw nsw i64 %22, 3
  %98 = call noalias noundef nonnull ptr @_Znam(i64 noundef %97) #13
  %99 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %98, i64 %22
  br label %108

.lr.ph165:                                        ; preds = %.lr.ph165.preheader, %.lr.ph165
  %indvars.iv187 = phi i64 [ 0, %.lr.ph165.preheader ], [ %indvars.iv.next188, %.lr.ph165 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #11
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00) #11
  %100 = trunc i64 %indvars.iv187 to i32
  %101 = add i32 %100, %1
  %102 = shl i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %"struct.P3D::Vector", ptr %77, i64 %103
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %104, ptr noundef nonnull align 4 dereferenceable(12) %9, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #11
  call void @_ZN3P3D6VectorIfLm3EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+00) #11
  %105 = or disjoint i32 %102, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %"struct.P3D::Vector", ptr %77, i64 %106
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %107, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #11
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next188, %wide.trip.count191
  br i1 %exitcond192.not, label %._crit_edge166, label %.lr.ph165, !llvm.loop !14

108:                                              ; preds = %108, %._crit_edge166
  %109 = phi ptr [ %98, %._crit_edge166 ], [ %110, %108 ]
  call void @_ZN3P3D6VectorIfLm2EEC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %109) #11
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = icmp eq ptr %110, %99
  br i1 %111, label %.lr.ph168.preheader, label %108

.lr.ph168.preheader:                              ; preds = %108
  %smax196 = call i32 @llvm.smax.i32(i32 %21, i32 1)
  %wide.trip.count197 = zext nneg i32 %smax196 to i64
  br label %.lr.ph168

._crit_edge169:                                   ; preds = %139
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshC2EPKNS_6VectorIfLm3EEEiPKNS_8TriangleEi(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %24, i32 noundef %21, ptr noundef nonnull %42, i32 noundef %39)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #11
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm3EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %77)
          to label %142 unwind label %144

.lr.ph168:                                        ; preds = %.lr.ph168.preheader, %139
  %indvars.iv193 = phi i64 [ 0, %.lr.ph168.preheader ], [ %indvars.iv.next194, %139 ]
  %112 = getelementptr inbounds %"struct.P3D::Vector", ptr %24, i64 %indvars.iv193
  %113 = getelementptr inbounds i8, ptr %112, i64 4
  %114 = load float, ptr %113, align 4, !tbaa !6
  %115 = fdiv float %114, %31
  %116 = load float, ptr %112, align 4, !tbaa !6
  %117 = fcmp ult float %116, 0.000000e+00
  br i1 %117, label %128, label %118

118:                                              ; preds = %.lr.ph168
  %119 = fcmp oeq float %116, 0.000000e+00
  br i1 %119, label %120, label %126

120:                                              ; preds = %118
  %121 = fmul float %114, %114
  %122 = call float @llvm.fmuladd.f32(float %116, float %116, float %121)
  %123 = call noundef float @_ZSt4sqrtf(float noundef %122)
  %124 = fdiv float %114, %123
  %125 = call noundef float @_ZSt4asinf(float noundef %124)
  br label %139

126:                                              ; preds = %118
  %127 = call noundef float @_ZSt5atan2ff(float noundef %114, float noundef %116)
  br label %139

128:                                              ; preds = %.lr.ph168
  %129 = fmul float %114, %114
  %130 = call float @llvm.fmuladd.f32(float %116, float %116, float %129)
  %131 = call noundef float @_ZSt4sqrtf(float noundef %130)
  %132 = fdiv float %114, %131
  %133 = call noundef float @_ZSt4asinf(float noundef %132)
  %134 = fneg float %133
  %135 = fpext float %134 to double
  %136 = call noundef double @_ZN3P3D2piIdEET_v()
  %137 = fadd double %136, %135
  %138 = fptrunc double %137 to float
  br label %139

139:                                              ; preds = %120, %126, %128
  %.0135 = phi float [ %125, %120 ], [ %127, %126 ], [ %138, %128 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #11
  call void @_ZN3P3D6VectorIfLm2EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %.0135, float noundef %115) #11
  %140 = getelementptr inbounds %"struct.P3D::Vector.7", ptr %98, i64 %indvars.iv193
  %141 = load i64, ptr %11, align 8, !tbaa !6
  store i64 %141, ptr %140, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #11
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count197
  br i1 %exitcond198.not, label %._crit_edge169, label %.lr.ph168, !llvm.loop !15

142:                                              ; preds = %._crit_edge169
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh15setNormalBufferERKSt10shared_ptrIA_KNS_6VectorIfLm3EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm3EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #11
  invoke void @_ZNSt10shared_ptrIA_KN3P3D6VectorIfLm2EEEEC2IS2_vEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %98)
          to label %143 unwind label %146

143:                                              ; preds = %142
  call void @_ZN3P3D8Graphics20ExtendedTriangleMesh11setUVBufferERKSt10shared_ptrIA_KNS_6VectorIfLm2EEEE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @_ZNSt12__shared_ptrIA_KN3P3D6VectorIfLm2EEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  ret void

144:                                              ; preds = %._crit_edge169
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #11
  br label %148

146:                                              ; preds = %142
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  br label %148

148:                                              ; preds = %146, %144
  %.pn = phi { ptr, i32 } [ %147, %146 ], [ %145, %144 ]
  call void @_ZN3P3D8Graphics20ExtendedTriangleMeshD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %0) #11
  br label %149

149:                                              ; preds = %148, %18
  %.pn150 = phi { ptr, i32 } [ %19, %18 ], [ %.pn, %148 ]
  resume { ptr, i32 } %.pn150
}

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt11logic_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIfLm3EEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D9normalizeIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector.13") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5atan2ff(float noundef, float noundef) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #10

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #10

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { "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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { noreturn }
attributes #13 = { builtin allocsize(0) }

!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 = !{i64 0, i64 12, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass