; LLVM IR from pentilm/StellarSolver :: BarnesHutParticleSystem.ll (ZN23BarnesHutParticleSystemC2ERKS_)

; 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.BarnesHutParticleSystem = type { %struct.SimulationParameters, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.SimulationParameters = type { i32, i8, i8, i8, i8, float, float, float, float }

@.str = external hidden unnamed_addr constant [83 x i8], align 1

; 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) #0

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef, ptr noundef, i32 noundef, i1 noundef zeroext) #3

declare i32 @cudaMalloc(ptr noundef, i64 noundef) #4

declare i32 @cudaMemset(ptr noundef, i32 noundef, i64 noundef) #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BarnesHutParticleSystemC2ERKS_(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(328) %1) unnamed_addr #6 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 0
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %8, i32 0, i32 0
  %10 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %9, i64 24, i1 false), !tbaa.struct !9
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 1
  store i32 %13, ptr %14, align 8, !tbaa !16
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 4, !tbaa !20
  %18 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 2
  store i32 %17, ptr %18, align 4, !tbaa !20
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %22 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  store i32 %21, ptr %22, align 8, !tbaa !21
  %23 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #7
  %24 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 4
  store ptr %23, ptr %24, align 8, !tbaa !22
  %25 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #7
  %26 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 5
  store ptr %25, ptr %26, align 8, !tbaa !23
  %27 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #7
  %28 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 6
  store ptr %27, ptr %28, align 8, !tbaa !24
  %29 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #7
  %30 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 7
  store ptr %29, ptr %30, align 8, !tbaa !25
  %31 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %32 = load i32, ptr %31, align 8, !tbaa !21
  %33 = sext i32 %32 to i64
  %34 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %33, i64 4)
  %35 = extractvalue { i64, i1 } %34, 1
  %36 = extractvalue { i64, i1 } %34, 0
  %37 = select i1 %35, i64 -1, i64 %36
  %38 = call noalias noundef nonnull ptr @_Znam(i64 noundef %37) #7
  %39 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 8
  store ptr %38, ptr %39, align 8, !tbaa !26
  %40 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !21
  %42 = sext i32 %41 to i64
  %43 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %42, i64 4)
  %44 = extractvalue { i64, i1 } %43, 1
  %45 = extractvalue { i64, i1 } %43, 0
  %46 = select i1 %44, i64 -1, i64 %45
  %47 = call noalias noundef nonnull ptr @_Znam(i64 noundef %46) #7
  %48 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 9
  store ptr %47, ptr %48, align 8, !tbaa !27
  %49 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !21
  %51 = sext i32 %50 to i64
  %52 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %51, i64 4)
  %53 = extractvalue { i64, i1 } %52, 1
  %54 = extractvalue { i64, i1 } %52, 0
  %55 = select i1 %53, i64 -1, i64 %54
  %56 = call noalias noundef nonnull ptr @_Znam(i64 noundef %55) #7
  %57 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 10
  store ptr %56, ptr %57, align 8, !tbaa !28
  %58 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %59 = load i32, ptr %58, align 8, !tbaa !21
  %60 = sext i32 %59 to i64
  %61 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 4)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = select i1 %62, i64 -1, i64 %63
  %65 = call noalias noundef nonnull ptr @_Znam(i64 noundef %64) #7
  %66 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 11
  store ptr %65, ptr %66, align 8, !tbaa !29
  %67 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %68 = load i32, ptr %67, align 8, !tbaa !21
  %69 = sext i32 %68 to i64
  %70 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %69, i64 4)
  %71 = extractvalue { i64, i1 } %70, 1
  %72 = extractvalue { i64, i1 } %70, 0
  %73 = select i1 %71, i64 -1, i64 %72
  %74 = call noalias noundef nonnull ptr @_Znam(i64 noundef %73) #7
  %75 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 12
  store ptr %74, ptr %75, align 8, !tbaa !30
  %76 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %77 = load i32, ptr %76, align 8, !tbaa !21
  %78 = sext i32 %77 to i64
  %79 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %78, i64 4)
  %80 = extractvalue { i64, i1 } %79, 1
  %81 = extractvalue { i64, i1 } %79, 0
  %82 = select i1 %80, i64 -1, i64 %81
  %83 = call noalias noundef nonnull ptr @_Znam(i64 noundef %82) #7
  %84 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 13
  store ptr %83, ptr %84, align 8, !tbaa !31
  %85 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %86 = load i32, ptr %85, align 8, !tbaa !21
  %87 = sext i32 %86 to i64
  %88 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %87, i64 4)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  %91 = select i1 %89, i64 -1, i64 %90
  %92 = call noalias noundef nonnull ptr @_Znam(i64 noundef %91) #7
  %93 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 14
  store ptr %92, ptr %93, align 8, !tbaa !32
  %94 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = mul nsw i32 4, %95
  %97 = sext i32 %96 to i64
  %98 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %97, i64 4)
  %99 = extractvalue { i64, i1 } %98, 1
  %100 = extractvalue { i64, i1 } %98, 0
  %101 = select i1 %99, i64 -1, i64 %100
  %102 = call noalias noundef nonnull ptr @_Znam(i64 noundef %101) #7
  %103 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 15
  store ptr %102, ptr %103, align 8, !tbaa !33
  %104 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %105 = load i32, ptr %104, align 8, !tbaa !21
  %106 = sext i32 %105 to i64
  %107 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %106, i64 4)
  %108 = extractvalue { i64, i1 } %107, 1
  %109 = extractvalue { i64, i1 } %107, 0
  %110 = select i1 %108, i64 -1, i64 %109
  %111 = call noalias noundef nonnull ptr @_Znam(i64 noundef %110) #7
  %112 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 16
  store ptr %111, ptr %112, align 8, !tbaa !34
  %113 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %114 = load i32, ptr %113, align 8, !tbaa !21
  %115 = sext i32 %114 to i64
  %116 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %115, i64 4)
  %117 = extractvalue { i64, i1 } %116, 1
  %118 = extractvalue { i64, i1 } %116, 0
  %119 = select i1 %117, i64 -1, i64 %118
  %120 = call noalias noundef nonnull ptr @_Znam(i64 noundef %119) #7
  %121 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 17
  store ptr %120, ptr %121, align 8, !tbaa !35
  %122 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %123 = load i32, ptr %122, align 8, !tbaa !21
  %124 = sext i32 %123 to i64
  %125 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %124, i64 4)
  %126 = extractvalue { i64, i1 } %125, 1
  %127 = extractvalue { i64, i1 } %125, 0
  %128 = select i1 %126, i64 -1, i64 %127
  %129 = call noalias noundef nonnull ptr @_Znam(i64 noundef %128) #7
  %130 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 18
  store ptr %129, ptr %130, align 8, !tbaa !36
  %131 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %132 = load i32, ptr %131, align 8, !tbaa !21
  %133 = mul nsw i32 2, %132
  %134 = sext i32 %133 to i64
  %135 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %134, i64 4)
  %136 = extractvalue { i64, i1 } %135, 1
  %137 = extractvalue { i64, i1 } %135, 0
  %138 = select i1 %136, i64 -1, i64 %137
  %139 = call noalias noundef nonnull ptr @_Znam(i64 noundef %138) #7
  %140 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 38
  store ptr %139, ptr %140, align 8, !tbaa !37
  %141 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 19
  %142 = call i32 @cudaMalloc(ptr noundef %141, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %142, ptr noundef @.str, i32 noundef 113, i1 noundef zeroext true)
  %143 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 20
  %144 = call i32 @cudaMalloc(ptr noundef %143, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %144, ptr noundef @.str, i32 noundef 114, i1 noundef zeroext true)
  %145 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 21
  %146 = call i32 @cudaMalloc(ptr noundef %145, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %146, ptr noundef @.str, i32 noundef 115, i1 noundef zeroext true)
  %147 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 22
  %148 = call i32 @cudaMalloc(ptr noundef %147, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %148, ptr noundef @.str, i32 noundef 116, i1 noundef zeroext true)
  %149 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 19
  %150 = load ptr, ptr %149, align 8, !tbaa !38
  %151 = call i32 @cudaMemset(ptr noundef %150, i32 noundef 0, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %151, ptr noundef @.str, i32 noundef 117, i1 noundef zeroext true)
  %152 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 20
  %153 = load ptr, ptr %152, align 8, !tbaa !39
  %154 = call i32 @cudaMemset(ptr noundef %153, i32 noundef 0, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %154, ptr noundef @.str, i32 noundef 118, i1 noundef zeroext true)
  %155 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 21
  %156 = load ptr, ptr %155, align 8, !tbaa !40
  %157 = call i32 @cudaMemset(ptr noundef %156, i32 noundef 0, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %157, ptr noundef @.str, i32 noundef 119, i1 noundef zeroext true)
  %158 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 22
  %159 = load ptr, ptr %158, align 8, !tbaa !41
  %160 = call i32 @cudaMemset(ptr noundef %159, i32 noundef 0, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %160, ptr noundef @.str, i32 noundef 120, i1 noundef zeroext true)
  %161 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 23
  %162 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %163 = load i32, ptr %162, align 8, !tbaa !21
  %164 = sext i32 %163 to i64
  %165 = mul i64 %164, 4
  %166 = call i32 @cudaMalloc(ptr noundef %161, i64 noundef %165)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %166, ptr noundef @.str, i32 noundef 122, i1 noundef zeroext true)
  %167 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 24
  %168 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %169 = load i32, ptr %168, align 8, !tbaa !21
  %170 = sext i32 %169 to i64
  %171 = mul i64 %170, 4
  %172 = call i32 @cudaMalloc(ptr noundef %167, i64 noundef %171)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %172, ptr noundef @.str, i32 noundef 123, i1 noundef zeroext true)
  %173 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 25
  %174 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %175 = load i32, ptr %174, align 8, !tbaa !21
  %176 = sext i32 %175 to i64
  %177 = mul i64 %176, 4
  %178 = call i32 @cudaMalloc(ptr noundef %173, i64 noundef %177)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %178, ptr noundef @.str, i32 noundef 124, i1 noundef zeroext true)
  %179 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 26
  %180 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %181 = load i32, ptr %180, align 8, !tbaa !21
  %182 = sext i32 %181 to i64
  %183 = mul i64 %182, 4
  %184 = call i32 @cudaMalloc(ptr noundef %179, i64 noundef %183)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %184, ptr noundef @.str, i32 noundef 125, i1 noundef zeroext true)
  %185 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 27
  %186 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %187 = load i32, ptr %186, align 8, !tbaa !21
  %188 = sext i32 %187 to i64
  %189 = mul i64 %188, 4
  %190 = call i32 @cudaMalloc(ptr noundef %185, i64 noundef %189)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %190, ptr noundef @.str, i32 noundef 126, i1 noundef zeroext true)
  %191 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 28
  %192 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %193 = load i32, ptr %192, align 8, !tbaa !21
  %194 = sext i32 %193 to i64
  %195 = mul i64 %194, 4
  %196 = call i32 @cudaMalloc(ptr noundef %191, i64 noundef %195)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %196, ptr noundef @.str, i32 noundef 127, i1 noundef zeroext true)
  %197 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 29
  %198 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %199 = load i32, ptr %198, align 8, !tbaa !21
  %200 = sext i32 %199 to i64
  %201 = mul i64 %200, 4
  %202 = call i32 @cudaMalloc(ptr noundef %197, i64 noundef %201)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %202, ptr noundef @.str, i32 noundef 128, i1 noundef zeroext true)
  %203 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 30
  %204 = call i32 @cudaMalloc(ptr noundef %203, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %204, ptr noundef @.str, i32 noundef 130, i1 noundef zeroext true)
  %205 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 31
  %206 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %207 = load i32, ptr %206, align 8, !tbaa !21
  %208 = mul nsw i32 4, %207
  %209 = sext i32 %208 to i64
  %210 = mul i64 %209, 4
  %211 = call i32 @cudaMalloc(ptr noundef %205, i64 noundef %210)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %211, ptr noundef @.str, i32 noundef 131, i1 noundef zeroext true)
  %212 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 32
  %213 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %214 = load i32, ptr %213, align 8, !tbaa !21
  %215 = sext i32 %214 to i64
  %216 = mul i64 %215, 4
  %217 = call i32 @cudaMalloc(ptr noundef %212, i64 noundef %216)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %217, ptr noundef @.str, i32 noundef 132, i1 noundef zeroext true)
  %218 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 33
  %219 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %220 = load i32, ptr %219, align 8, !tbaa !21
  %221 = sext i32 %220 to i64
  %222 = mul i64 %221, 4
  %223 = call i32 @cudaMalloc(ptr noundef %218, i64 noundef %222)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %223, ptr noundef @.str, i32 noundef 133, i1 noundef zeroext true)
  %224 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 34
  %225 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %226 = load i32, ptr %225, align 8, !tbaa !21
  %227 = sext i32 %226 to i64
  %228 = mul i64 %227, 4
  %229 = call i32 @cudaMalloc(ptr noundef %224, i64 noundef %228)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %229, ptr noundef @.str, i32 noundef 134, i1 noundef zeroext true)
  %230 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 35
  %231 = call i32 @cudaMalloc(ptr noundef %230, i64 noundef 4)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %231, ptr noundef @.str, i32 noundef 135, i1 noundef zeroext true)
  %232 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 32
  %233 = load ptr, ptr %232, align 8, !tbaa !42
  %234 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %235 = load i32, ptr %234, align 8, !tbaa !21
  %236 = sext i32 %235 to i64
  %237 = mul i64 %236, 4
  %238 = call i32 @cudaMemset(ptr noundef %233, i32 noundef -1, i64 noundef %237)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %238, ptr noundef @.str, i32 noundef 137, i1 noundef zeroext true)
  %239 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 33
  %240 = load ptr, ptr %239, align 8, !tbaa !43
  %241 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %242 = load i32, ptr %241, align 8, !tbaa !21
  %243 = sext i32 %242 to i64
  %244 = mul i64 %243, 4
  %245 = call i32 @cudaMemset(ptr noundef %240, i32 noundef 0, i64 noundef %244)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %245, ptr noundef @.str, i32 noundef 138, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %246 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 2
  %247 = load i32, ptr %246, align 4, !tbaa !20
  %248 = sext i32 %247 to i64
  %249 = mul i64 8, %248
  %250 = trunc i64 %249 to i32
  store i32 %250, ptr %5, align 4, !tbaa !44
  %251 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 39
  %252 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %6, i32 0, i32 3
  %253 = load i32, ptr %252, align 8, !tbaa !21
  %254 = mul nsw i32 2, %253
  %255 = sext i32 %254 to i64
  %256 = mul i64 %255, 4
  %257 = call i32 @cudaMalloc(ptr noundef %251, i64 noundef %256)
  call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %257, ptr noundef @.str, i32 noundef 142, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  ret void
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { 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 4, !10, i64 4, i64 1, !12, i64 5, i64 1, !12, i64 6, i64 1, !12, i64 7, i64 1, !12, i64 8, i64 4, !14, i64 12, i64 4, !14, i64 16, i64 4, !14, i64 20, i64 4, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTS5Model", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !19, i64 24}
!17 = !{!"_ZTS23BarnesHutParticleSystem", !18, i64 0, !19, i64 24, !19, i64 28, !19, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!18 = !{!"_ZTS20SimulationParameters", !11, i64 0, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!19 = !{!"int", !7, i64 0}
!20 = !{!17, !19, i64 28}
!21 = !{!17, !19, i64 32}
!22 = !{!17, !6, i64 40}
!23 = !{!17, !6, i64 48}
!24 = !{!17, !6, i64 56}
!25 = !{!17, !6, i64 64}
!26 = !{!17, !6, i64 72}
!27 = !{!17, !6, i64 80}
!28 = !{!17, !6, i64 88}
!29 = !{!17, !6, i64 96}
!30 = !{!17, !6, i64 104}
!31 = !{!17, !6, i64 112}
!32 = !{!17, !6, i64 120}
!33 = !{!17, !6, i64 128}
!34 = !{!17, !6, i64 136}
!35 = !{!17, !6, i64 144}
!36 = !{!17, !6, i64 152}
!37 = !{!17, !6, i64 312}
!38 = !{!17, !6, i64 160}
!39 = !{!17, !6, i64 168}
!40 = !{!17, !6, i64 176}
!41 = !{!17, !6, i64 184}
!42 = !{!17, !6, i64 264}
!43 = !{!17, !6, i64 272}
!44 = !{!19, !19, 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"

@.str = external hidden unnamed_addr constant [83 x i8], align 1

; 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) #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef, ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

declare i32 @cudaMalloc(ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @cudaMemset(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BarnesHutParticleSystemC2ERKS_(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(328) %1) unnamed_addr #4 align 2 {
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false), !tbaa.struct !5
  %3 = getelementptr inbounds i8, ptr %1, i64 24
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load <2 x i32>, ptr %3, align 8, !tbaa !14
  store <2 x i32> %5, ptr %4, align 8, !tbaa !14
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  %7 = load i32, ptr %6, align 8, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %7, ptr %8, align 8, !tbaa !16
  %9 = tail call noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %9, ptr %10, align 8, !tbaa !20
  %11 = tail call noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %11, ptr %12, align 8, !tbaa !21
  %13 = tail call noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %13, ptr %14, align 8, !tbaa !22
  %15 = tail call noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %15, ptr %16, align 8, !tbaa !23
  %17 = sext i32 %7 to i64
  %18 = icmp slt i32 %7, 0
  %19 = shl nsw i64 %17, 2
  %20 = select i1 %18, i64 -1, i64 %19
  %21 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %22 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %21, ptr %22, align 8, !tbaa !24
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %23, ptr %24, align 8, !tbaa !25
  %25 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %25, ptr %26, align 8, !tbaa !26
  %27 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %28 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %27, ptr %28, align 8, !tbaa !27
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %29, ptr %30, align 8, !tbaa !28
  %31 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %32 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %31, ptr %32, align 8, !tbaa !29
  %33 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %34 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %33, ptr %34, align 8, !tbaa !30
  %35 = shl nsw i32 %7, 2
  %36 = sext i32 %35 to i64
  %37 = shl nsw i64 %36, 2
  %38 = select i1 %18, i64 -1, i64 %37
  %39 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %38) #5
  %40 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %39, ptr %40, align 8, !tbaa !31
  %41 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %42 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %41, ptr %42, align 8, !tbaa !32
  %43 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %44 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr %43, ptr %44, align 8, !tbaa !33
  %45 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #5
  %46 = getelementptr inbounds i8, ptr %0, i64 152
  store ptr %45, ptr %46, align 8, !tbaa !34
  %47 = shl nsw i32 %7, 1
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 2
  %50 = select i1 %18, i64 -1, i64 %49
  %51 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #5
  %52 = getelementptr inbounds i8, ptr %0, i64 312
  store ptr %51, ptr %52, align 8, !tbaa !35
  %53 = getelementptr inbounds i8, ptr %0, i64 160
  %54 = tail call i32 @cudaMalloc(ptr noundef nonnull %53, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %54, ptr noundef nonnull @.str, i32 noundef 113, i1 noundef zeroext true)
  %55 = getelementptr inbounds i8, ptr %0, i64 168
  %56 = tail call i32 @cudaMalloc(ptr noundef nonnull %55, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %56, ptr noundef nonnull @.str, i32 noundef 114, i1 noundef zeroext true)
  %57 = getelementptr inbounds i8, ptr %0, i64 176
  %58 = tail call i32 @cudaMalloc(ptr noundef nonnull %57, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %58, ptr noundef nonnull @.str, i32 noundef 115, i1 noundef zeroext true)
  %59 = getelementptr inbounds i8, ptr %0, i64 184
  %60 = tail call i32 @cudaMalloc(ptr noundef nonnull %59, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %60, ptr noundef nonnull @.str, i32 noundef 116, i1 noundef zeroext true)
  %61 = load ptr, ptr %53, align 8, !tbaa !36
  %62 = tail call i32 @cudaMemset(ptr noundef %61, i32 noundef 0, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %62, ptr noundef nonnull @.str, i32 noundef 117, i1 noundef zeroext true)
  %63 = load ptr, ptr %55, align 8, !tbaa !37
  %64 = tail call i32 @cudaMemset(ptr noundef %63, i32 noundef 0, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %64, ptr noundef nonnull @.str, i32 noundef 118, i1 noundef zeroext true)
  %65 = load ptr, ptr %57, align 8, !tbaa !38
  %66 = tail call i32 @cudaMemset(ptr noundef %65, i32 noundef 0, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %66, ptr noundef nonnull @.str, i32 noundef 119, i1 noundef zeroext true)
  %67 = load ptr, ptr %59, align 8, !tbaa !39
  %68 = tail call i32 @cudaMemset(ptr noundef %67, i32 noundef 0, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %68, ptr noundef nonnull @.str, i32 noundef 120, i1 noundef zeroext true)
  %69 = getelementptr inbounds i8, ptr %0, i64 192
  %70 = load i32, ptr %8, align 8, !tbaa !16
  %71 = sext i32 %70 to i64
  %72 = shl nsw i64 %71, 2
  %73 = tail call i32 @cudaMalloc(ptr noundef nonnull %69, i64 noundef %72)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %73, ptr noundef nonnull @.str, i32 noundef 122, i1 noundef zeroext true)
  %74 = getelementptr inbounds i8, ptr %0, i64 200
  %75 = load i32, ptr %8, align 8, !tbaa !16
  %76 = sext i32 %75 to i64
  %77 = shl nsw i64 %76, 2
  %78 = tail call i32 @cudaMalloc(ptr noundef nonnull %74, i64 noundef %77)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %78, ptr noundef nonnull @.str, i32 noundef 123, i1 noundef zeroext true)
  %79 = getelementptr inbounds i8, ptr %0, i64 208
  %80 = load i32, ptr %8, align 8, !tbaa !16
  %81 = sext i32 %80 to i64
  %82 = shl nsw i64 %81, 2
  %83 = tail call i32 @cudaMalloc(ptr noundef nonnull %79, i64 noundef %82)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %83, ptr noundef nonnull @.str, i32 noundef 124, i1 noundef zeroext true)
  %84 = getelementptr inbounds i8, ptr %0, i64 216
  %85 = load i32, ptr %8, align 8, !tbaa !16
  %86 = sext i32 %85 to i64
  %87 = shl nsw i64 %86, 2
  %88 = tail call i32 @cudaMalloc(ptr noundef nonnull %84, i64 noundef %87)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %88, ptr noundef nonnull @.str, i32 noundef 125, i1 noundef zeroext true)
  %89 = getelementptr inbounds i8, ptr %0, i64 224
  %90 = load i32, ptr %8, align 8, !tbaa !16
  %91 = sext i32 %90 to i64
  %92 = shl nsw i64 %91, 2
  %93 = tail call i32 @cudaMalloc(ptr noundef nonnull %89, i64 noundef %92)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %93, ptr noundef nonnull @.str, i32 noundef 126, i1 noundef zeroext true)
  %94 = getelementptr inbounds i8, ptr %0, i64 232
  %95 = load i32, ptr %8, align 8, !tbaa !16
  %96 = sext i32 %95 to i64
  %97 = shl nsw i64 %96, 2
  %98 = tail call i32 @cudaMalloc(ptr noundef nonnull %94, i64 noundef %97)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %98, ptr noundef nonnull @.str, i32 noundef 127, i1 noundef zeroext true)
  %99 = getelementptr inbounds i8, ptr %0, i64 240
  %100 = load i32, ptr %8, align 8, !tbaa !16
  %101 = sext i32 %100 to i64
  %102 = shl nsw i64 %101, 2
  %103 = tail call i32 @cudaMalloc(ptr noundef nonnull %99, i64 noundef %102)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %103, ptr noundef nonnull @.str, i32 noundef 128, i1 noundef zeroext true)
  %104 = getelementptr inbounds i8, ptr %0, i64 248
  %105 = tail call i32 @cudaMalloc(ptr noundef nonnull %104, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %105, ptr noundef nonnull @.str, i32 noundef 130, i1 noundef zeroext true)
  %106 = getelementptr inbounds i8, ptr %0, i64 256
  %107 = load i32, ptr %8, align 8, !tbaa !16
  %108 = shl nsw i32 %107, 2
  %109 = sext i32 %108 to i64
  %110 = shl nsw i64 %109, 2
  %111 = tail call i32 @cudaMalloc(ptr noundef nonnull %106, i64 noundef %110)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %111, ptr noundef nonnull @.str, i32 noundef 131, i1 noundef zeroext true)
  %112 = getelementptr inbounds i8, ptr %0, i64 264
  %113 = load i32, ptr %8, align 8, !tbaa !16
  %114 = sext i32 %113 to i64
  %115 = shl nsw i64 %114, 2
  %116 = tail call i32 @cudaMalloc(ptr noundef nonnull %112, i64 noundef %115)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %116, ptr noundef nonnull @.str, i32 noundef 132, i1 noundef zeroext true)
  %117 = getelementptr inbounds i8, ptr %0, i64 272
  %118 = load i32, ptr %8, align 8, !tbaa !16
  %119 = sext i32 %118 to i64
  %120 = shl nsw i64 %119, 2
  %121 = tail call i32 @cudaMalloc(ptr noundef nonnull %117, i64 noundef %120)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %121, ptr noundef nonnull @.str, i32 noundef 133, i1 noundef zeroext true)
  %122 = getelementptr inbounds i8, ptr %0, i64 280
  %123 = load i32, ptr %8, align 8, !tbaa !16
  %124 = sext i32 %123 to i64
  %125 = shl nsw i64 %124, 2
  %126 = tail call i32 @cudaMalloc(ptr noundef nonnull %122, i64 noundef %125)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %126, ptr noundef nonnull @.str, i32 noundef 134, i1 noundef zeroext true)
  %127 = getelementptr inbounds i8, ptr %0, i64 288
  %128 = tail call i32 @cudaMalloc(ptr noundef nonnull %127, i64 noundef 4)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %128, ptr noundef nonnull @.str, i32 noundef 135, i1 noundef zeroext true)
  %129 = load ptr, ptr %112, align 8, !tbaa !40
  %130 = load i32, ptr %8, align 8, !tbaa !16
  %131 = sext i32 %130 to i64
  %132 = shl nsw i64 %131, 2
  %133 = tail call i32 @cudaMemset(ptr noundef %129, i32 noundef -1, i64 noundef %132)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %133, ptr noundef nonnull @.str, i32 noundef 137, i1 noundef zeroext true)
  %134 = load ptr, ptr %117, align 8, !tbaa !41
  %135 = load i32, ptr %8, align 8, !tbaa !16
  %136 = sext i32 %135 to i64
  %137 = shl nsw i64 %136, 2
  %138 = tail call i32 @cudaMemset(ptr noundef %134, i32 noundef 0, i64 noundef %137)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %138, ptr noundef nonnull @.str, i32 noundef 138, i1 noundef zeroext true)
  %139 = getelementptr inbounds i8, ptr %0, i64 320
  %140 = load i32, ptr %8, align 8, !tbaa !16
  %141 = shl nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = shl nsw i64 %142, 2
  %144 = tail call i32 @cudaMalloc(ptr noundef nonnull %139, i64 noundef %143)
  tail call void @_Z9gpuAssert9cudaErrorPKcib(i32 noundef %144, ptr noundef nonnull @.str, i32 noundef 142, i1 noundef zeroext true)
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 4, !6, i64 4, i64 1, !10, i64 5, i64 1, !10, i64 6, i64 1, !10, i64 7, i64 1, !10, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 20, i64 4, !12}
!6 = !{!7, !7, i64 0}
!7 = !{!"_ZTS5Model", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !15, i64 32}
!17 = !{!"_ZTS23BarnesHutParticleSystem", !18, i64 0, !15, i64 24, !15, i64 28, !15, i64 32, !19, i64 40, !19, i64 48, !19, i64 56, !19, i64 64, !19, i64 72, !19, i64 80, !19, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !19, i64 136, !19, i64 144, !19, i64 152, !19, i64 160, !19, i64 168, !19, i64 176, !19, i64 184, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224, !19, i64 232, !19, i64 240, !19, i64 248, !19, i64 256, !19, i64 264, !19, i64 272, !19, i64 280, !19, i64 288, !19, i64 296, !19, i64 304, !19, i64 312, !19, i64 320}
!18 = !{!"_ZTS20SimulationParameters", !7, i64 0, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!19 = !{!"any pointer", !8, i64 0}
!20 = !{!17, !19, i64 40}
!21 = !{!17, !19, i64 48}
!22 = !{!17, !19, i64 56}
!23 = !{!17, !19, i64 64}
!24 = !{!17, !19, i64 72}
!25 = !{!17, !19, i64 80}
!26 = !{!17, !19, i64 88}
!27 = !{!17, !19, i64 96}
!28 = !{!17, !19, i64 104}
!29 = !{!17, !19, i64 112}
!30 = !{!17, !19, i64 120}
!31 = !{!17, !19, i64 128}
!32 = !{!17, !19, i64 136}
!33 = !{!17, !19, i64 144}
!34 = !{!17, !19, i64 152}
!35 = !{!17, !19, i64 312}
!36 = !{!17, !19, i64 160}
!37 = !{!17, !19, i64 168}
!38 = !{!17, !19, i64 176}
!39 = !{!17, !19, i64 184}
!40 = !{!17, !19, i64 264}
!41 = !{!17, !19, i64 272}


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