; LLVM IR from idmillington/cyclone-physics :: src/contacts.ll (ZN7cyclone7Contact19applyPositionChangeEPNS_7Vector3ES2_d)

; 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.cyclone::Vector3" = type { double, double, double, double }
%"class.cyclone::Matrix3" = type { [9 x double] }
%"class.cyclone::Quaternion" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { double, double, double, double }
%"class.cyclone::Contact" = type { [2 x ptr], double, double, %"class.cyclone::Vector3", %"class.cyclone::Vector3", double, %"class.cyclone::Matrix3", %"class.cyclone::Vector3", double, [2 x %"class.cyclone::Vector3"] }

; 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 noundef zeroext i1 @_ZNK7cyclone9RigidBody8getAwakeEv(ptr noundef nonnull align 8 dereferenceable(536)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), double noundef) #2 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) #3

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

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

declare void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

declare noundef double @_ZNK7cyclone9RigidBody14getInverseMassEv(ptr noundef nonnull align 8 dereferenceable(536)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cyclone7Contact19applyPositionChangeEPNS_7Vector3ES2_d(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef %1, ptr noundef %2, double noundef %3) #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca [2 x double], align 16
  %11 = alloca [2 x double], align 16
  %12 = alloca double, align 8
  %13 = alloca [2 x double], align 16
  %14 = alloca [2 x double], align 16
  %15 = alloca i32, align 4
  %16 = alloca %"class.cyclone::Matrix3", align 8
  %17 = alloca %"class.cyclone::Vector3", align 8
  %18 = alloca %"class.cyclone::Vector3", align 8
  %19 = alloca %"class.cyclone::Vector3", align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca %"class.cyclone::Vector3", align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.cyclone::Vector3", align 8
  %27 = alloca %"class.cyclone::Matrix3", align 8
  %28 = alloca %"class.cyclone::Vector3", align 8
  %29 = alloca %"class.cyclone::Vector3", align 8
  %30 = alloca %"class.cyclone::Vector3", align 8
  %31 = alloca %"class.cyclone::Vector3", align 8
  %32 = alloca %"class.cyclone::Quaternion", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  %33 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 0x3FC99999A0000000, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %86, %4
  %35 = load i32, ptr %15, align 4, !tbaa !11
  %36 = icmp ult i32 %35, 2
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %89

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %40 = load i32, ptr %15, align 4, !tbaa !11
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [2 x ptr], ptr %39, i64 0, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %85

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16)
  %46 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %47 = load i32, ptr %15, align 4, !tbaa !11
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds [2 x ptr], ptr %46, i64 0, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %50, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  %51 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 9
  %52 = load i32, ptr %15, align 4, !tbaa !11
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds [2 x %"class.cyclone::Vector3"], ptr %51, i64 0, i64 %53
  %55 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull align 8 dereferenceable(32) %55)
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  %56 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 9
  %57 = load i32, ptr %15, align 4, !tbaa !11
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds [2 x %"class.cyclone::Vector3"], ptr %56, i64 0, i64 %58
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %59)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %19, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  %60 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  %61 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %60)
  %62 = load i32, ptr %15, align 4, !tbaa !11
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [2 x double], ptr %14, i64 0, i64 %63
  store double %61, ptr %64, align 8, !tbaa !9
  %65 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %66 = load i32, ptr %15, align 4, !tbaa !11
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [2 x ptr], ptr %65, i64 0, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = call noundef double @_ZNK7cyclone9RigidBody14getInverseMassEv(ptr noundef nonnull align 8 dereferenceable(536) %69)
  %71 = load i32, ptr %15, align 4, !tbaa !11
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 %72
  store double %70, ptr %73, align 8, !tbaa !9
  %74 = load i32, ptr %15, align 4, !tbaa !11
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !11
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [2 x double], ptr %14, i64 0, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fadd double %77, %81
  %83 = load double, ptr %12, align 8, !tbaa !9
  %84 = fadd double %83, %82
  store double %84, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #5
  br label %85

85:                                               ; preds = %45, %38
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %15, align 4, !tbaa !11
  %88 = add i32 %87, 1
  store i32 %88, ptr %15, align 4, !tbaa !11
  br label %34, !llvm.loop !14

89:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %90

90:                                               ; preds = %297, %89
  %91 = load i32, ptr %20, align 4, !tbaa !11
  %92 = icmp ult i32 %91, 2
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %300

94:                                               ; preds = %90
  %95 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %96 = load i32, ptr %20, align 4, !tbaa !11
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [2 x ptr], ptr %95, i64 0, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %296

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %102 = load i32, ptr %20, align 4, !tbaa !11
  %103 = icmp eq i32 %102, 0
  %104 = zext i1 %103 to i64
  %105 = select i1 %103, i32 1, i32 -1
  %106 = sitofp i32 %105 to double
  store double %106, ptr %21, align 8, !tbaa !9
  %107 = load double, ptr %21, align 8, !tbaa !9
  %108 = load double, ptr %8, align 8, !tbaa !9
  %109 = fmul double %107, %108
  %110 = load i32, ptr %20, align 4, !tbaa !11
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds [2 x double], ptr %14, i64 0, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = load double, ptr %12, align 8, !tbaa !9
  %115 = fdiv double %113, %114
  %116 = fmul double %109, %115
  %117 = load i32, ptr %20, align 4, !tbaa !11
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %118
  store double %116, ptr %119, align 8, !tbaa !9
  %120 = load double, ptr %21, align 8, !tbaa !9
  %121 = load double, ptr %8, align 8, !tbaa !9
  %122 = fmul double %120, %121
  %123 = load i32, ptr %20, align 4, !tbaa !11
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds [2 x double], ptr %13, i64 0, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load double, ptr %12, align 8, !tbaa !9
  %128 = fdiv double %126, %127
  %129 = fmul double %122, %128
  %130 = load i32, ptr %20, align 4, !tbaa !11
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %131
  store double %129, ptr %132, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %133 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 9
  %134 = load i32, ptr %20, align 4, !tbaa !11
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds [2 x %"class.cyclone::Vector3"], ptr %133, i64 0, i64 %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %136, i64 32, i1 false), !tbaa.struct !13
  %137 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  %138 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 9
  %139 = load i32, ptr %20, align 4, !tbaa !11
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds [2 x %"class.cyclone::Vector3"], ptr %138, i64 0, i64 %140
  %142 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  %143 = call noundef double @_ZNK7cyclone7Vector313scalarProductERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %141, ptr noundef nonnull align 8 dereferenceable(32) %142)
  %144 = fneg double %143
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %137, double noundef %144)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %145 = call noundef double @_ZNK7cyclone7Vector39magnitudeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %146 = fmul double 0x3FC99999A0000000, %145
  store double %146, ptr %23, align 8, !tbaa !9
  %147 = load i32, ptr %20, align 4, !tbaa !11
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = load double, ptr %23, align 8, !tbaa !9
  %152 = fneg double %151
  %153 = fcmp olt double %150, %152
  br i1 %153, label %154, label %178

154:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %155 = load i32, ptr %20, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = load i32, ptr %20, align 4, !tbaa !11
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = fadd double %158, %162
  store double %163, ptr %24, align 8, !tbaa !9
  %164 = load double, ptr %23, align 8, !tbaa !9
  %165 = fneg double %164
  %166 = load i32, ptr %20, align 4, !tbaa !11
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %167
  store double %165, ptr %168, align 8, !tbaa !9
  %169 = load double, ptr %24, align 8, !tbaa !9
  %170 = load i32, ptr %20, align 4, !tbaa !11
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = fsub double %169, %173
  %175 = load i32, ptr %20, align 4, !tbaa !11
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %176
  store double %174, ptr %177, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %209

178:                                              ; preds = %101
  %179 = load i32, ptr %20, align 4, !tbaa !11
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = load double, ptr %23, align 8, !tbaa !9
  %184 = fcmp ogt double %182, %183
  br i1 %184, label %185, label %208

185:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %186 = load i32, ptr %20, align 4, !tbaa !11
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !9
  %190 = load i32, ptr %20, align 4, !tbaa !11
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = fadd double %189, %193
  store double %194, ptr %25, align 8, !tbaa !9
  %195 = load double, ptr %23, align 8, !tbaa !9
  %196 = load i32, ptr %20, align 4, !tbaa !11
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %197
  store double %195, ptr %198, align 8, !tbaa !9
  %199 = load double, ptr %25, align 8, !tbaa !9
  %200 = load i32, ptr %20, align 4, !tbaa !11
  %201 = zext i32 %200 to i64
  %202 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !9
  %204 = fsub double %199, %203
  %205 = load i32, ptr %20, align 4, !tbaa !11
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %206
  store double %204, ptr %207, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %208

208:                                              ; preds = %185, %178
  br label %209

209:                                              ; preds = %208, %154
  %210 = load i32, ptr %20, align 4, !tbaa !11
  %211 = zext i32 %210 to i64
  %212 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !9
  %214 = fcmp oeq double %213, 0.000000e+00
  br i1 %214, label %215, label %220

215:                                              ; preds = %209
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load i32, ptr %20, align 4, !tbaa !11
  %218 = zext i32 %217 to i64
  %219 = getelementptr inbounds %"class.cyclone::Vector3", ptr %216, i64 %218
  call void @_ZN7cyclone7Vector35clearEv(ptr noundef nonnull align 8 dereferenceable(32) %219)
  br label %244

220:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  %221 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 9
  %222 = load i32, ptr %20, align 4, !tbaa !11
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds [2 x %"class.cyclone::Vector3"], ptr %221, i64 0, i64 %223
  %225 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  call void @_ZNK7cyclone7Vector313vectorProductERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %224, ptr noundef nonnull align 8 dereferenceable(32) %225)
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %27)
  %226 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %227 = load i32, ptr %20, align 4, !tbaa !11
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds [2 x ptr], ptr %226, i64 0, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %230, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %29, ptr noundef nonnull align 8 dereferenceable(72) %27, ptr noundef nonnull align 8 dereferenceable(32) %26)
  %231 = load i32, ptr %20, align 4, !tbaa !11
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !9
  %235 = load i32, ptr %20, align 4, !tbaa !11
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds [2 x double], ptr %14, i64 0, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !9
  %239 = fdiv double %234, %238
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %28, ptr noundef nonnull align 8 dereferenceable(32) %29, double noundef %239)
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = load i32, ptr %20, align 4, !tbaa !11
  %242 = zext i32 %241 to i64
  %243 = getelementptr inbounds %"class.cyclone::Vector3", ptr %240, i64 %242
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %243, ptr align 8 %28, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br label %244

244:                                              ; preds = %220, %215
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #5
  %245 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  %246 = load i32, ptr %20, align 4, !tbaa !11
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !9
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %245, double noundef %249)
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %20, align 4, !tbaa !11
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds %"class.cyclone::Vector3", ptr %250, i64 %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %253, ptr align 8 %30, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #5
  call void @_ZN7cyclone7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31)
  %254 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %255 = load i32, ptr %20, align 4, !tbaa !11
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds [2 x ptr], ptr %254, i64 0, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody11getPositionEPNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %258, ptr noundef %31)
  %259 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 4
  %260 = load i32, ptr %20, align 4, !tbaa !11
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %259, double noundef %263)
  %264 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %265 = load i32, ptr %20, align 4, !tbaa !11
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds [2 x ptr], ptr %264, i64 0, i64 %266
  %268 = load ptr, ptr %267, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody11setPositionERKNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %268, ptr noundef nonnull align 8 dereferenceable(32) %31)
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #5
  call void @_ZN7cyclone10QuaternionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32)
  %269 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %270 = load i32, ptr %20, align 4, !tbaa !11
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds [2 x ptr], ptr %269, i64 0, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody14getOrientationEPNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %273, ptr noundef %32)
  %274 = load ptr, ptr %7, align 8, !tbaa !5
  %275 = load i32, ptr %20, align 4, !tbaa !11
  %276 = zext i32 %275 to i64
  %277 = getelementptr inbounds %"class.cyclone::Vector3", ptr %274, i64 %276
  call void @_ZN7cyclone10Quaternion15addScaledVectorERKNS_7Vector3Ed(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %277, double noundef 1.000000e+00)
  %278 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %279 = load i32, ptr %20, align 4, !tbaa !11
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds [2 x ptr], ptr %278, i64 0, i64 %280
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody14setOrientationERKNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %282, ptr noundef nonnull align 8 dereferenceable(32) %32)
  %283 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %284 = load i32, ptr %20, align 4, !tbaa !11
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds [2 x ptr], ptr %283, i64 0, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = call noundef zeroext i1 @_ZNK7cyclone9RigidBody8getAwakeEv(ptr noundef nonnull align 8 dereferenceable(536) %287)
  br i1 %288, label %295, label %289

289:                                              ; preds = %244
  %290 = getelementptr inbounds %"class.cyclone::Contact", ptr %33, i32 0, i32 0
  %291 = load i32, ptr %20, align 4, !tbaa !11
  %292 = zext i32 %291 to i64
  %293 = getelementptr inbounds [2 x ptr], ptr %290, i64 0, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody20calculateDerivedDataEv(ptr noundef nonnull align 8 dereferenceable(536) %294)
  br label %295

295:                                              ; preds = %289, %244
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %296

296:                                              ; preds = %295, %94
  br label %297

297:                                              ; preds = %296
  %298 = load i32, ptr %20, align 4, !tbaa !11
  %299 = add i32 %298, 1
  store i32 %299, ptr %20, align 4, !tbaa !11
  br label %90, !llvm.loop !16

300:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector39magnitudeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector313vectorProductERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

declare void @_ZNK7cyclone9RigidBody11getPositionEPNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) #4

declare void @_ZN7cyclone9RigidBody11setPositionERKNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

declare void @_ZNK7cyclone9RigidBody14getOrientationEPNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cyclone10Quaternion15addScaledVectorERKNS_7Vector3Ed(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef) #2 align 2

declare void @_ZN7cyclone9RigidBody14setOrientationERKNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare void @_ZN7cyclone9RigidBody20calculateDerivedDataEv(ptr noundef nonnull align 8 dereferenceable(536)) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.cyclone::Vector3" = type { double, double, double, double }
%"class.cyclone::Matrix3" = type { [9 x double] }
%"class.cyclone::Quaternion" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { double, double, double, double }

; 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 noundef zeroext i1 @_ZNK7cyclone9RigidBody8getAwakeEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), double noundef) local_unnamed_addr #2 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) #3

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

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

declare void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7cyclone7Vector35clearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

declare noundef double @_ZNK7cyclone9RigidBody14getInverseMassEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7cyclone7Contact19applyPositionChangeEPNS_7Vector3ES2_d(ptr noundef nonnull align 8 dereferenceable(280) %0, ptr nocapture noundef writeonly %1, ptr noundef %2, double noundef %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.cyclone::Matrix3", align 8
  %6 = alloca %"class.cyclone::Vector3", align 8
  %7 = alloca %"class.cyclone::Vector3", align 8
  %8 = alloca %"class.cyclone::Vector3", align 8
  %9 = alloca %"class.cyclone::Vector3", align 8
  %10 = alloca %"class.cyclone::Vector3", align 8
  %11 = alloca %"class.cyclone::Matrix3", align 8
  %12 = alloca %"class.cyclone::Vector3", align 8
  %13 = alloca %"class.cyclone::Vector3", align 8
  %14 = alloca %"class.cyclone::Vector3", align 8
  %15 = alloca %"class.cyclone::Vector3", align 8
  %16 = alloca %"class.cyclone::Quaternion", align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %.not73 = icmp eq ptr %19, null
  br i1 %.not73, label %29, label %20

20:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5)
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %21, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %17)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  %22 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %18)
  %23 = load ptr, ptr %0, align 8, !tbaa !5
  %24 = call noundef double @_ZNK7cyclone9RigidBody14getInverseMassEv(ptr noundef nonnull align 8 dereferenceable(536) %23)
  %25 = fadd double %22, %24
  %26 = fadd double %25, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  %27 = insertelement <2 x double> poison, double %24, i64 0
  %28 = insertelement <2 x double> %27, double %22, i64 1
  br label %29

29:                                               ; preds = %4, %20
  %.1 = phi double [ 0.000000e+00, %4 ], [ %26, %20 ]
  %30 = phi <2 x double> [ undef, %4 ], [ %28, %20 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %.not73.1 = icmp eq ptr %32, null
  br i1 %.not73.1, label %.preheader, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5)
  %34 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %34, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %35 = getelementptr inbounds i8, ptr %0, i64 248
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %6, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %35)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  %36 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %18)
  %37 = load ptr, ptr %31, align 8, !tbaa !5
  %38 = call noundef double @_ZNK7cyclone9RigidBody14getInverseMassEv(ptr noundef nonnull align 8 dereferenceable(536) %37)
  %39 = fadd double %36, %38
  %40 = fadd double %.1, %39
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #5
  %41 = insertelement <2 x double> poison, double %38, i64 0
  %42 = insertelement <2 x double> %41, double %36, i64 1
  br label %.preheader

.preheader:                                       ; preds = %33, %29
  %.1.1 = phi double [ %.1, %29 ], [ %40, %33 ]
  %43 = phi <2 x double> [ undef, %29 ], [ %42, %33 ]
  %44 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %92, label %45

45:                                               ; preds = %.preheader
  %46 = insertelement <2 x double> poison, double %.1.1, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = fdiv <2 x double> %30, %47
  %49 = insertelement <2 x double> poison, double %3, i64 0
  %50 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
  %51 = fmul <2 x double> %48, %50
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !9
  %52 = call noundef double @_ZNK7cyclone7Vector313scalarProductERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
  %53 = fneg double %52
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %53)
  %54 = call noundef double @_ZNK7cyclone7Vector39magnitudeEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %55 = fmul double %54, 0x3FC99999A0000000
  %56 = fneg double %55
  %57 = extractelement <2 x double> %51, i64 1
  %58 = fcmp olt double %57, %56
  br i1 %58, label %59, label %65

59:                                               ; preds = %45
  %60 = extractelement <2 x double> %51, i64 0
  %61 = fadd double %57, %60
  %62 = fadd double %61, %55
  %63 = insertelement <2 x double> poison, double %62, i64 0
  %64 = insertelement <2 x double> %63, double %56, i64 1
  br label %thread-pre-split

65:                                               ; preds = %45
  %66 = fcmp ogt double %57, %55
  br i1 %66, label %67, label %thread-pre-split

67:                                               ; preds = %65
  %68 = extractelement <2 x double> %51, i64 0
  %69 = fadd double %57, %68
  %70 = fsub double %69, %55
  %71 = insertelement <2 x double> poison, double %70, i64 0
  %72 = insertelement <2 x double> %71, double %55, i64 1
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %65, %67, %59
  %73 = phi <2 x double> [ %64, %59 ], [ %72, %67 ], [ %51, %65 ]
  %74 = extractelement <2 x double> %73, i64 1
  %75 = fcmp oeq double %74, 0.000000e+00
  br i1 %75, label %76, label %77

76:                                               ; preds = %thread-pre-split
  call void @_ZN7cyclone7Vector35clearEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  br label %81

77:                                               ; preds = %thread-pre-split
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZNK7cyclone7Vector313vectorProductERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11)
  %78 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %78, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(32) %10)
  %79 = extractelement <2 x double> %30, i64 1
  %80 = fdiv double %74, %79
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, double noundef %80)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 8 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %81

81:                                               ; preds = %77, %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %82 = extractelement <2 x double> %73, i64 0
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %82)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %14, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @_ZN7cyclone7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15)
  %83 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody11getPositionEPNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %83, ptr noundef nonnull %15)
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %82)
  %84 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody11setPositionERKNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %84, ptr noundef nonnull align 8 dereferenceable(32) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  call void @_ZN7cyclone10QuaternionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16)
  %85 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody14getOrientationEPNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %85, ptr noundef nonnull %16)
  call void @_ZN7cyclone10Quaternion15addScaledVectorERKNS_7Vector3Ed(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %2, double noundef 1.000000e+00)
  %86 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody14setOrientationERKNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %86, ptr noundef nonnull align 8 dereferenceable(32) %16)
  %87 = load ptr, ptr %0, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZNK7cyclone9RigidBody8getAwakeEv(ptr noundef nonnull align 8 dereferenceable(536) %87)
  br i1 %88, label %91, label %89

89:                                               ; preds = %81
  %90 = load ptr, ptr %0, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody20calculateDerivedDataEv(ptr noundef nonnull align 8 dereferenceable(536) %90)
  br label %91

91:                                               ; preds = %89, %81
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %92

92:                                               ; preds = %.preheader, %91
  %93 = load ptr, ptr %31, align 8, !tbaa !5
  %.not.1 = icmp eq ptr %93, null
  br i1 %.not.1, label %147, label %94

94:                                               ; preds = %92
  %95 = fneg double %3
  %96 = insertelement <2 x double> poison, double %.1.1, i64 0
  %97 = shufflevector <2 x double> %96, <2 x double> poison, <2 x i32> zeroinitializer
  %98 = fdiv <2 x double> %43, %97
  %99 = insertelement <2 x double> poison, double %95, i64 0
  %100 = shufflevector <2 x double> %99, <2 x double> poison, <2 x i32> zeroinitializer
  %101 = fmul <2 x double> %98, %100
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %102 = getelementptr inbounds i8, ptr %0, i64 248
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %102, i64 32, i1 false), !tbaa.struct !9
  %103 = call noundef double @_ZNK7cyclone7Vector313scalarProductERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %102, ptr noundef nonnull align 8 dereferenceable(32) %18)
  %104 = fneg double %103
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %104)
  %105 = call noundef double @_ZNK7cyclone7Vector39magnitudeEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %106 = fmul double %105, 0x3FC99999A0000000
  %107 = fneg double %106
  %108 = extractelement <2 x double> %101, i64 1
  %109 = fcmp olt double %108, %107
  br i1 %109, label %118, label %110

110:                                              ; preds = %94
  %111 = fcmp ogt double %108, %106
  br i1 %111, label %112, label %thread-pre-split.1

112:                                              ; preds = %110
  %113 = extractelement <2 x double> %101, i64 0
  %114 = fadd double %108, %113
  %115 = fsub double %114, %106
  %116 = insertelement <2 x double> poison, double %115, i64 0
  %117 = insertelement <2 x double> %116, double %106, i64 1
  br label %thread-pre-split.1

118:                                              ; preds = %94
  %119 = extractelement <2 x double> %101, i64 0
  %120 = fadd double %108, %119
  %121 = fadd double %120, %106
  %122 = insertelement <2 x double> poison, double %121, i64 0
  %123 = insertelement <2 x double> %122, double %107, i64 1
  br label %thread-pre-split.1

thread-pre-split.1:                               ; preds = %110, %118, %112
  %124 = phi <2 x double> [ %123, %118 ], [ %117, %112 ], [ %101, %110 ]
  %125 = extractelement <2 x double> %124, i64 1
  %126 = fcmp oeq double %125, 0.000000e+00
  br i1 %126, label %132, label %127

127:                                              ; preds = %thread-pre-split.1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  call void @_ZNK7cyclone7Vector313vectorProductERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %102, ptr noundef nonnull align 8 dereferenceable(32) %18)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #5
  call void @_ZN7cyclone7Matrix3C2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11)
  %128 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody28getInverseInertiaTensorWorldEPNS_7Matrix3E(ptr noundef nonnull align 8 dereferenceable(536) %128, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #5
  call void @_ZNK7cyclone7Matrix39transformERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(32) %10)
  %129 = extractelement <2 x double> %43, i64 1
  %130 = fdiv double %125, %129
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %13, double noundef %130)
  %131 = getelementptr inbounds i8, ptr %2, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %131, ptr noundef nonnull align 8 dereferenceable(32) %12, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  br label %134

132:                                              ; preds = %thread-pre-split.1
  %133 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZN7cyclone7Vector35clearEv(ptr noundef nonnull align 8 dereferenceable(32) %133)
  br label %134

134:                                              ; preds = %132, %127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #5
  %135 = extractelement <2 x double> %124, i64 0
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %135)
  %136 = getelementptr inbounds i8, ptr %1, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %136, ptr noundef nonnull align 8 dereferenceable(32) %14, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #5
  call void @_ZN7cyclone7Vector3C2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15)
  %137 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody11getPositionEPNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %137, ptr noundef nonnull %15)
  call void @_ZN7cyclone7Vector315addScaledVectorERKS0_d(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %18, double noundef %135)
  %138 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody11setPositionERKNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536) %138, ptr noundef nonnull align 8 dereferenceable(32) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #5
  call void @_ZN7cyclone10QuaternionC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16)
  %139 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZNK7cyclone9RigidBody14getOrientationEPNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %139, ptr noundef nonnull %16)
  %140 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZN7cyclone10Quaternion15addScaledVectorERKNS_7Vector3Ed(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %140, double noundef 1.000000e+00)
  %141 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody14setOrientationERKNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536) %141, ptr noundef nonnull align 8 dereferenceable(32) %16)
  %142 = load ptr, ptr %31, align 8, !tbaa !5
  %143 = call noundef zeroext i1 @_ZNK7cyclone9RigidBody8getAwakeEv(ptr noundef nonnull align 8 dereferenceable(536) %142)
  br i1 %143, label %146, label %144

144:                                              ; preds = %134
  %145 = load ptr, ptr %31, align 8, !tbaa !5
  call void @_ZN7cyclone9RigidBody20calculateDerivedDataEv(ptr noundef nonnull align 8 dereferenceable(536) %145)
  br label %146

146:                                              ; preds = %144, %134
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %147

147:                                              ; preds = %146, %92
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector39magnitudeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector313vectorProductERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare void @_ZNK7cyclone9RigidBody11getPositionEPNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) local_unnamed_addr #4

declare void @_ZN7cyclone9RigidBody11setPositionERKNS_7Vector3E(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

declare void @_ZNK7cyclone9RigidBody14getOrientationEPNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7cyclone10Quaternion15addScaledVectorERKNS_7Vector3Ed(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef) local_unnamed_addr #2 align 2

declare void @_ZN7cyclone9RigidBody14setOrientationERKNS_10QuaternionE(ptr noundef nonnull align 8 dereferenceable(536), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare void @_ZN7cyclone9RigidBody20calculateDerivedDataEv(ptr noundef nonnull align 8 dereferenceable(536)) local_unnamed_addr #4

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 = !{i64 0, i64 8, !10, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass