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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

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

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

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.SimulationParameters = type { i32, i8, i8, i8, i8, float, float, float, float }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BarnesHutParticleSystemC2E20SimulationParametersi(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr nocapture noundef readonly byval(%struct.SimulationParameters) align 8 %1, i32 noundef %2) unnamed_addr #0 align 2 {
  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
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %4, align 8, !tbaa !14
  %5 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %2, ptr %5, align 4, !tbaa !19
  %6 = shl nsw i32 %2, 1
  %7 = add nsw i32 %6, 12000
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %7, ptr %8, align 8, !tbaa !20
  %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 !21
  %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 !22
  %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 !23
  %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 !24
  %17 = zext nneg i32 %7 to i64
  %18 = icmp slt i32 %2, -6000
  %19 = shl nuw 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 !25
  %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 !26
  %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 !27
  %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 !28
  %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 !29
  %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 !30
  %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 !31
  %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 !32
  %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 !33
  %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 !34
  %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 !35
  %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 !36
  %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 54, 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 55, 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 56, 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 57, i1 noundef zeroext true)
  %61 = load ptr, ptr %53, align 8, !tbaa !37
  %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 58, i1 noundef zeroext true)
  %63 = load ptr, ptr %55, align 8, !tbaa !38
  %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 59, i1 noundef zeroext true)
  %65 = load ptr, ptr %57, align 8, !tbaa !39
  %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 60, i1 noundef zeroext true)
  %67 = load ptr, ptr %59, align 8, !tbaa !40
  %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 61, i1 noundef zeroext true)
  %69 = getelementptr inbounds i8, ptr %0, i64 192
  %70 = load i32, ptr %8, align 8, !tbaa !20
  %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 63, i1 noundef zeroext true)
  %74 = getelementptr inbounds i8, ptr %0, i64 200
  %75 = load i32, ptr %8, align 8, !tbaa !20
  %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 64, i1 noundef zeroext true)
  %79 = getelementptr inbounds i8, ptr %0, i64 208
  %80 = load i32, ptr %8, align 8, !tbaa !20
  %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 65, i1 noundef zeroext true)
  %84 = getelementptr inbounds i8, ptr %0, i64 216
  %85 = load i32, ptr %8, align 8, !tbaa !20
  %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 66, i1 noundef zeroext true)
  %89 = getelementptr inbounds i8, ptr %0, i64 224
  %90 = load i32, ptr %8, align 8, !tbaa !20
  %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 67, i1 noundef zeroext true)
  %94 = getelementptr inbounds i8, ptr %0, i64 232
  %95 = load i32, ptr %8, align 8, !tbaa !20
  %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 68, i1 noundef zeroext true)
  %99 = getelementptr inbounds i8, ptr %0, i64 240
  %100 = load i32, ptr %8, align 8, !tbaa !20
  %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 69, 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 71, i1 noundef zeroext true)
  %106 = getelementptr inbounds i8, ptr %0, i64 256
  %107 = load i32, ptr %8, align 8, !tbaa !20
  %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 72, i1 noundef zeroext true)
  %112 = getelementptr inbounds i8, ptr %0, i64 264
  %113 = load i32, ptr %8, align 8, !tbaa !20
  %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 73, i1 noundef zeroext true)
  %117 = getelementptr inbounds i8, ptr %0, i64 272
  %118 = load i32, ptr %8, align 8, !tbaa !20
  %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 74, i1 noundef zeroext true)
  %122 = getelementptr inbounds i8, ptr %0, i64 280
  %123 = load i32, ptr %8, align 8, !tbaa !20
  %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 75, 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 76, i1 noundef zeroext true)
  %129 = load ptr, ptr %112, align 8, !tbaa !41
  %130 = load i32, ptr %8, align 8, !tbaa !20
  %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 78, i1 noundef zeroext true)
  %134 = load ptr, ptr %117, align 8, !tbaa !42
  %135 = load i32, ptr %8, align 8, !tbaa !20
  %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 79, i1 noundef zeroext true)
  %139 = getelementptr inbounds i8, ptr %0, i64 320
  %140 = load i32, ptr %8, align 8, !tbaa !20
  %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 83, i1 noundef zeroext true)
  ret void
}

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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, !17, i64 24}
!15 = !{!"_ZTS23BarnesHutParticleSystem", !16, i64 0, !17, i64 24, !17, i64 28, !17, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !18, i64 128, !18, i64 136, !18, i64 144, !18, i64 152, !18, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !18, i64 224, !18, i64 232, !18, i64 240, !18, i64 248, !18, i64 256, !18, i64 264, !18, i64 272, !18, i64 280, !18, i64 288, !18, i64 296, !18, i64 304, !18, i64 312, !18, i64 320}
!16 = !{!"_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}
!17 = !{!"int", !8, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!15, !17, i64 28}
!20 = !{!15, !17, i64 32}
!21 = !{!15, !18, i64 40}
!22 = !{!15, !18, i64 48}
!23 = !{!15, !18, i64 56}
!24 = !{!15, !18, i64 64}
!25 = !{!15, !18, i64 72}
!26 = !{!15, !18, i64 80}
!27 = !{!15, !18, i64 88}
!28 = !{!15, !18, i64 96}
!29 = !{!15, !18, i64 104}
!30 = !{!15, !18, i64 112}
!31 = !{!15, !18, i64 120}
!32 = !{!15, !18, i64 128}
!33 = !{!15, !18, i64 136}
!34 = !{!15, !18, i64 144}
!35 = !{!15, !18, i64 152}
!36 = !{!15, !18, i64 312}
!37 = !{!15, !18, i64 160}
!38 = !{!15, !18, i64 168}
!39 = !{!15, !18, i64 176}
!40 = !{!15, !18, i64 184}
!41 = !{!15, !18, i64 264}
!42 = !{!15, !18, i64 272}


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