; LLVM IR from csabahruska/bullet :: cbits (Bullet)

; 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.btVector3 = type { [4 x float] }
%class.btMatrix3x3 = type { [3 x %class.btVector3] }
%class.btTransform = type { %class.btMatrix3x3, %class.btVector3 }

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @btIDebugDraw_drawBox1(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %class.btVector3, align 4
  %13 = alloca %class.btVector3, align 4
  %14 = alloca %class.btMatrix3x3, align 4
  %15 = alloca %class.btVector3, align 4
  %16 = alloca %class.btTransform, align 4
  %17 = alloca %class.btVector3, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %18, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds float, ptr %19, i64 0
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds float, ptr %21, i64 1
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds float, ptr %23, i64 2
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds float, ptr %25, i64 0
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds float, ptr %27, i64 1
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds float, ptr %29, i64 2
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %30)
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #4
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds float, ptr %31, i64 0
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds float, ptr %33, i64 1
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds float, ptr %35, i64 2
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds float, ptr %37, i64 3
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds float, ptr %39, i64 4
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds float, ptr %41, i64 5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds float, ptr %43, i64 6
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %45, i64 7
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds float, ptr %47, i64 8
  call void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %48)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %49, i64 9
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds float, ptr %51, i64 10
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 11
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %54)
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds float, ptr %55, i64 0
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds float, ptr %57, i64 1
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds float, ptr %59, i64 2
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = getelementptr inbounds ptr, ptr %62, i64 18
  %64 = load ptr, ptr %63, align 8
  call void %64(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(64) %16, ptr noundef nonnull align 4 dereferenceable(16) %17)
  %65 = getelementptr inbounds %class.btVector3, ptr %12, i32 0, i32 0
  %66 = getelementptr inbounds [4 x float], ptr %65, i64 0, i64 0
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds float, ptr %68, i64 0
  store float %67, ptr %69, align 4, !tbaa !11
  %70 = getelementptr inbounds %class.btVector3, ptr %12, i32 0, i32 0
  %71 = getelementptr inbounds [4 x float], ptr %70, i64 0, i64 1
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds float, ptr %73, i64 1
  store float %72, ptr %74, align 4, !tbaa !11
  %75 = getelementptr inbounds %class.btVector3, ptr %12, i32 0, i32 0
  %76 = getelementptr inbounds [4 x float], ptr %75, i64 0, i64 2
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds float, ptr %78, i64 2
  store float %77, ptr %79, align 4, !tbaa !11
  %80 = getelementptr inbounds %class.btVector3, ptr %13, i32 0, i32 0
  %81 = getelementptr inbounds [4 x float], ptr %80, i64 0, i64 0
  %82 = load float, ptr %81, align 4, !tbaa !11
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 0
  store float %82, ptr %84, align 4, !tbaa !11
  %85 = getelementptr inbounds %class.btVector3, ptr %13, i32 0, i32 0
  %86 = getelementptr inbounds [4 x float], ptr %85, i64 0, i64 1
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds float, ptr %88, i64 1
  store float %87, ptr %89, align 4, !tbaa !11
  %90 = getelementptr inbounds %class.btVector3, ptr %13, i32 0, i32 0
  %91 = getelementptr inbounds [4 x float], ptr %90, i64 0, i64 2
  %92 = load float, ptr %91, align 4, !tbaa !11
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds float, ptr %93, i64 2
  store float %92, ptr %94, align 4, !tbaa !11
  %95 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %96 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %95, i32 noundef 0)
  %97 = getelementptr inbounds %class.btVector3, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds [4 x float], ptr %97, i64 0, i64 0
  %99 = load float, ptr %98, align 4, !tbaa !11
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds float, ptr %100, i64 0
  store float %99, ptr %101, align 4, !tbaa !11
  %102 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %103 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %102, i32 noundef 0)
  %104 = getelementptr inbounds %class.btVector3, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds [4 x float], ptr %104, i64 0, i64 1
  %106 = load float, ptr %105, align 4, !tbaa !11
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds float, ptr %107, i64 1
  store float %106, ptr %108, align 4, !tbaa !11
  %109 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %110 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %109, i32 noundef 0)
  %111 = getelementptr inbounds %class.btVector3, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [4 x float], ptr %111, i64 0, i64 2
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds float, ptr %114, i64 2
  store float %113, ptr %115, align 4, !tbaa !11
  %116 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %117 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %116, i32 noundef 1)
  %118 = getelementptr inbounds %class.btVector3, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds [4 x float], ptr %118, i64 0, i64 0
  %120 = load float, ptr %119, align 4, !tbaa !11
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds float, ptr %121, i64 3
  store float %120, ptr %122, align 4, !tbaa !11
  %123 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %124 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %123, i32 noundef 1)
  %125 = getelementptr inbounds %class.btVector3, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds [4 x float], ptr %125, i64 0, i64 1
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds float, ptr %128, i64 4
  store float %127, ptr %129, align 4, !tbaa !11
  %130 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %131 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %130, i32 noundef 1)
  %132 = getelementptr inbounds %class.btVector3, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds [4 x float], ptr %132, i64 0, i64 2
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds float, ptr %135, i64 5
  store float %134, ptr %136, align 4, !tbaa !11
  %137 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %138 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %137, i32 noundef 2)
  %139 = getelementptr inbounds %class.btVector3, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds [4 x float], ptr %139, i64 0, i64 0
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  %143 = getelementptr inbounds float, ptr %142, i64 6
  store float %141, ptr %143, align 4, !tbaa !11
  %144 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %145 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %144, i32 noundef 2)
  %146 = getelementptr inbounds %class.btVector3, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds [4 x float], ptr %146, i64 0, i64 1
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = getelementptr inbounds float, ptr %149, i64 7
  store float %148, ptr %150, align 4, !tbaa !11
  %151 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %152 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %151, i32 noundef 2)
  %153 = getelementptr inbounds %class.btVector3, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds [4 x float], ptr %153, i64 0, i64 2
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds float, ptr %156, i64 8
  store float %155, ptr %157, align 4, !tbaa !11
  %158 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %159 = getelementptr inbounds %class.btVector3, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds [4 x float], ptr %159, i64 0, i64 0
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = getelementptr inbounds float, ptr %162, i64 9
  store float %161, ptr %163, align 4, !tbaa !11
  %164 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %165 = getelementptr inbounds %class.btVector3, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds [4 x float], ptr %165, i64 0, i64 1
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds float, ptr %168, i64 10
  store float %167, ptr %169, align 4, !tbaa !11
  %170 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %16)
  %171 = getelementptr inbounds %class.btVector3, ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds [4 x float], ptr %171, i64 0, i64 2
  %173 = load float, ptr %172, align 4, !tbaa !11
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds float, ptr %174, i64 11
  store float %173, ptr %175, align 4, !tbaa !11
  %176 = getelementptr inbounds %class.btVector3, ptr %17, i32 0, i32 0
  %177 = getelementptr inbounds [4 x float], ptr %176, i64 0, i64 0
  %178 = load float, ptr %177, align 4, !tbaa !11
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds float, ptr %179, i64 0
  store float %178, ptr %180, align 4, !tbaa !11
  %181 = getelementptr inbounds %class.btVector3, ptr %17, i32 0, i32 0
  %182 = getelementptr inbounds [4 x float], ptr %181, i64 0, i64 1
  %183 = load float, ptr %182, align 4, !tbaa !11
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds float, ptr %184, i64 1
  store float %183, ptr %185, align 4, !tbaa !11
  %186 = getelementptr inbounds %class.btVector3, ptr %17, i32 0, i32 0
  %187 = getelementptr inbounds [4 x float], ptr %186, i64 0, i64 2
  %188 = load float, ptr %187, align 4, !tbaa !11
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds float, ptr %189, i64 2
  store float %188, ptr %190, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

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

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

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


; 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.btVector3 = type { [4 x float] }
%class.btMatrix3x3 = type { [3 x %class.btVector3] }
%class.btTransform = type { %class.btMatrix3x3, %class.btVector3 }

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @btIDebugDraw_drawBox1(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca %class.btVector3, align 8
  %7 = alloca %class.btVector3, align 8
  %8 = alloca %class.btMatrix3x3, align 4
  %9 = alloca %class.btVector3, align 4
  %10 = alloca %class.btTransform, align 4
  %11 = alloca %class.btVector3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %14 = getelementptr inbounds i8, ptr %2, i64 4
  %15 = getelementptr inbounds i8, ptr %2, i64 8
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #4
  %16 = getelementptr inbounds i8, ptr %3, i64 4
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = getelementptr inbounds i8, ptr %3, i64 12
  %19 = getelementptr inbounds i8, ptr %3, i64 16
  %20 = getelementptr inbounds i8, ptr %3, i64 20
  %21 = getelementptr inbounds i8, ptr %3, i64 24
  %22 = getelementptr inbounds i8, ptr %3, i64 28
  %23 = getelementptr inbounds i8, ptr %3, i64 32
  call void @_ZN11btMatrix3x3C2ERKfS1_S1_S1_S1_S1_S1_S1_S1_(ptr noundef nonnull align 4 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %24 = getelementptr inbounds i8, ptr %3, i64 36
  %25 = getelementptr inbounds i8, ptr %3, i64 40
  %26 = getelementptr inbounds i8, ptr %3, i64 44
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @_ZN11btTransformC2ERK11btMatrix3x3RK9btVector3(ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(48) %8, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %27 = getelementptr inbounds i8, ptr %4, i64 4
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN9btVector3C2ERKfS1_S1_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %29 = load ptr, ptr %0, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 144
  %31 = load ptr, ptr %30, align 8
  call void %31(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(64) %10, ptr noundef nonnull align 4 dereferenceable(16) %11)
  %32 = load <2 x float>, ptr %6, align 8, !tbaa !8
  store <2 x float> %32, ptr %1, align 4, !tbaa !8
  %33 = getelementptr inbounds i8, ptr %6, i64 8
  %34 = load float, ptr %33, align 8, !tbaa !8
  store float %34, ptr %13, align 4, !tbaa !8
  %35 = load <2 x float>, ptr %7, align 8, !tbaa !8
  store <2 x float> %35, ptr %2, align 4, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %7, i64 8
  %37 = load float, ptr %36, align 8, !tbaa !8
  store float %37, ptr %15, align 4, !tbaa !8
  %38 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %39 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %38, i32 noundef 0)
  %40 = load float, ptr %39, align 4, !tbaa !8
  store float %40, ptr %3, align 4, !tbaa !8
  %41 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %41, i32 noundef 0)
  %43 = getelementptr inbounds i8, ptr %42, i64 4
  %44 = load float, ptr %43, align 4, !tbaa !8
  store float %44, ptr %16, align 4, !tbaa !8
  %45 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %46 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %45, i32 noundef 0)
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load float, ptr %47, align 4, !tbaa !8
  store float %48, ptr %17, align 4, !tbaa !8
  %49 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %50 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %49, i32 noundef 1)
  %51 = load float, ptr %50, align 4, !tbaa !8
  store float %51, ptr %18, align 4, !tbaa !8
  %52 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %52, i32 noundef 1)
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load float, ptr %54, align 4, !tbaa !8
  store float %55, ptr %19, align 4, !tbaa !8
  %56 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %57 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %56, i32 noundef 1)
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load float, ptr %58, align 4, !tbaa !8
  store float %59, ptr %20, align 4, !tbaa !8
  %60 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %61 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %60, i32 noundef 2)
  %62 = load float, ptr %61, align 4, !tbaa !8
  store float %62, ptr %21, align 4, !tbaa !8
  %63 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %63, i32 noundef 2)
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load float, ptr %65, align 4, !tbaa !8
  store float %66, ptr %22, align 4, !tbaa !8
  %67 = call noundef nonnull align 4 dereferenceable(48) ptr @_ZN11btTransform8getBasisEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %68 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK11btMatrix3x36getRowEi(ptr noundef nonnull align 4 dereferenceable(48) %67, i32 noundef 2)
  %69 = getelementptr inbounds i8, ptr %68, i64 8
  %70 = load float, ptr %69, align 4, !tbaa !8
  store float %70, ptr %23, align 4, !tbaa !8
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %72 = load float, ptr %71, align 4, !tbaa !8
  store float %72, ptr %24, align 4, !tbaa !8
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = load float, ptr %74, align 4, !tbaa !8
  store float %75, ptr %25, align 4, !tbaa !8
  %76 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN11btTransform9getOriginEv(ptr noundef nonnull align 4 dereferenceable(64) %10)
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  %78 = load float, ptr %77, align 4, !tbaa !8
  store float %78, ptr %26, align 4, !tbaa !8
  %79 = load <2 x float>, ptr %11, align 8, !tbaa !8
  store <2 x float> %79, ptr %4, align 4, !tbaa !8
  %80 = getelementptr inbounds i8, ptr %11, i64 8
  %81 = load float, ptr %80, align 8, !tbaa !8
  store float %81, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  ret void
}

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass