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

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

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BarnesHutParticleSystem5resetEv(ptr noundef nonnull align 8 dereferenceable(328) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  %4 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 0
  %5 = getelementptr inbounds %struct.SimulationParameters, ptr %4, i32 0, i32 0
  %6 = load i32, ptr %5, align 8, !tbaa !9
  %7 = icmp eq i32 %6, 2
  br i1 %7, label %8, label %25

8:                                                ; preds = %1
  %9 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 8
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %11 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 9
  %12 = load ptr, ptr %11, align 8, !tbaa !17
  %13 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 10
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  %15 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 11
  %16 = load ptr, ptr %15, align 8, !tbaa !19
  %17 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 12
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 13
  %20 = load ptr, ptr %19, align 8, !tbaa !21
  %21 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 14
  %22 = load ptr, ptr %21, align 8, !tbaa !22
  %23 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %24 = load i32, ptr %23, align 4, !tbaa !23
  call void @_ZN23BarnesHutParticleSystem12plummerModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %3, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, ptr noundef %18, ptr noundef %20, ptr noundef %22, i32 noundef %24)
  br label %65

25:                                               ; preds = %1
  %26 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 0
  %27 = getelementptr inbounds %struct.SimulationParameters, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %47

30:                                               ; preds = %25
  %31 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 8
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 9
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 10
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 11
  %38 = load ptr, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 12
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 13
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 14
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %45 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !23
  call void @_ZN23BarnesHutParticleSystem18collidingDiskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %3, ptr noundef %32, ptr noundef %34, ptr noundef %36, ptr noundef %38, ptr noundef %40, ptr noundef %42, ptr noundef %44, i32 noundef %46)
  br label %64

47:                                               ; preds = %25
  %48 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 8
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 9
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 10
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 11
  %55 = load ptr, ptr %54, align 8, !tbaa !19
  %56 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 12
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 13
  %59 = load ptr, ptr %58, align 8, !tbaa !21
  %60 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 14
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !23
  call void @_ZN23BarnesHutParticleSystem9diskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %3, ptr noundef %49, ptr noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %57, ptr noundef %59, ptr noundef %61, i32 noundef %63)
  br label %64

64:                                               ; preds = %47, %30
  br label %65

65:                                               ; preds = %64, %8
  %66 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 23
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 8
  %69 = load ptr, ptr %68, align 8, !tbaa !16
  %70 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !23
  %72 = mul nsw i32 2, %71
  %73 = sext i32 %72 to i64
  %74 = mul i64 %73, 4
  %75 = call i32 @cudaMemcpy(ptr noundef %67, ptr noundef %69, i64 noundef %74, i32 noundef 1)
  %76 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 24
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 9
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !23
  %82 = mul nsw i32 2, %81
  %83 = sext i32 %82 to i64
  %84 = mul i64 %83, 4
  %85 = call i32 @cudaMemcpy(ptr noundef %77, ptr noundef %79, i64 noundef %84, i32 noundef 1)
  %86 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 25
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 10
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !23
  %92 = mul nsw i32 2, %91
  %93 = sext i32 %92 to i64
  %94 = mul i64 %93, 4
  %95 = call i32 @cudaMemcpy(ptr noundef %87, ptr noundef %89, i64 noundef %94, i32 noundef 1)
  %96 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 26
  %97 = load ptr, ptr %96, align 8, !tbaa !27
  %98 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 11
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !23
  %102 = mul nsw i32 2, %101
  %103 = sext i32 %102 to i64
  %104 = mul i64 %103, 4
  %105 = call i32 @cudaMemcpy(ptr noundef %97, ptr noundef %99, i64 noundef %104, i32 noundef 1)
  %106 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 27
  %107 = load ptr, ptr %106, align 8, !tbaa !28
  %108 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 12
  %109 = load ptr, ptr %108, align 8, !tbaa !20
  %110 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !23
  %112 = mul nsw i32 2, %111
  %113 = sext i32 %112 to i64
  %114 = mul i64 %113, 4
  %115 = call i32 @cudaMemcpy(ptr noundef %107, ptr noundef %109, i64 noundef %114, i32 noundef 1)
  %116 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 28
  %117 = load ptr, ptr %116, align 8, !tbaa !29
  %118 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 13
  %119 = load ptr, ptr %118, align 8, !tbaa !21
  %120 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %121 = load i32, ptr %120, align 4, !tbaa !23
  %122 = mul nsw i32 2, %121
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 4
  %125 = call i32 @cudaMemcpy(ptr noundef %117, ptr noundef %119, i64 noundef %124, i32 noundef 1)
  %126 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 29
  %127 = load ptr, ptr %126, align 8, !tbaa !30
  %128 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 14
  %129 = load ptr, ptr %128, align 8, !tbaa !22
  %130 = getelementptr inbounds %class.BarnesHutParticleSystem, ptr %3, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !23
  %132 = mul nsw i32 2, %131
  %133 = sext i32 %132 to i64
  %134 = mul i64 %133, 4
  %135 = call i32 @cudaMemcpy(ptr noundef %127, ptr noundef %129, i64 noundef %134, i32 noundef 1)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem12plummerModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem18collidingDiskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem9diskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1 align 2

attributes #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 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" }

!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, !12, i64 0}
!10 = !{!"_ZTS23BarnesHutParticleSystem", !11, i64 0, !15, i64 24, !15, i64 28, !15, 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}
!11 = !{!"_ZTS20SimulationParameters", !12, i64 0, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!12 = !{!"_ZTS5Model", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !6, i64 72}
!17 = !{!10, !6, i64 80}
!18 = !{!10, !6, i64 88}
!19 = !{!10, !6, i64 96}
!20 = !{!10, !6, i64 104}
!21 = !{!10, !6, i64 112}
!22 = !{!10, !6, i64 120}
!23 = !{!10, !15, i64 28}
!24 = !{!10, !6, i64 192}
!25 = !{!10, !6, i64 200}
!26 = !{!10, !6, i64 208}
!27 = !{!10, !6, i64 216}
!28 = !{!10, !6, i64 224}
!29 = !{!10, !6, i64 232}
!30 = !{!10, !6, i64 240}


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

declare i32 @cudaMemcpy(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BarnesHutParticleSystem5resetEv(ptr noundef nonnull align 8 dereferenceable(328) %0) local_unnamed_addr #1 align 2 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  %4 = load ptr, ptr %3, align 8, !tbaa !15
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  %6 = load ptr, ptr %5, align 8, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  %8 = load ptr, ptr %7, align 8, !tbaa !17
  %9 = getelementptr inbounds i8, ptr %0, i64 96
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  %11 = getelementptr inbounds i8, ptr %0, i64 104
  %12 = load ptr, ptr %11, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = load ptr, ptr %13, align 8, !tbaa !20
  %15 = getelementptr inbounds i8, ptr %0, i64 120
  %16 = load ptr, ptr %15, align 8, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !22
  switch i32 %2, label %21 [
    i32 2, label %19
    i32 1, label %20
  ]

19:                                               ; preds = %1
  tail call void @_ZN23BarnesHutParticleSystem12plummerModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %4, ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, i32 noundef %18)
  br label %22

20:                                               ; preds = %1
  tail call void @_ZN23BarnesHutParticleSystem18collidingDiskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %4, ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, i32 noundef %18)
  br label %22

21:                                               ; preds = %1
  tail call void @_ZN23BarnesHutParticleSystem9diskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %4, ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14, ptr noundef %16, i32 noundef %18)
  br label %22

22:                                               ; preds = %20, %21, %19
  %23 = getelementptr inbounds i8, ptr %0, i64 192
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  %28 = load i32, ptr %27, align 4, !tbaa !22
  %29 = shl nsw i32 %28, 1
  %30 = sext i32 %29 to i64
  %31 = shl nsw i64 %30, 2
  %32 = tail call i32 @cudaMemcpy(ptr noundef %24, ptr noundef %26, i64 noundef %31, i32 noundef 1)
  %33 = getelementptr inbounds i8, ptr %0, i64 200
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %35 = getelementptr inbounds i8, ptr %0, i64 80
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = load i32, ptr %27, align 4, !tbaa !22
  %38 = shl nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 2
  %41 = tail call i32 @cudaMemcpy(ptr noundef %34, ptr noundef %36, i64 noundef %40, i32 noundef 1)
  %42 = getelementptr inbounds i8, ptr %0, i64 208
  %43 = load ptr, ptr %42, align 8, !tbaa !25
  %44 = getelementptr inbounds i8, ptr %0, i64 88
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  %46 = load i32, ptr %27, align 4, !tbaa !22
  %47 = shl nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 2
  %50 = tail call i32 @cudaMemcpy(ptr noundef %43, ptr noundef %45, i64 noundef %49, i32 noundef 1)
  %51 = getelementptr inbounds i8, ptr %0, i64 216
  %52 = load ptr, ptr %51, align 8, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %0, i64 96
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = load i32, ptr %27, align 4, !tbaa !22
  %56 = shl nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = shl nsw i64 %57, 2
  %59 = tail call i32 @cudaMemcpy(ptr noundef %52, ptr noundef %54, i64 noundef %58, i32 noundef 1)
  %60 = getelementptr inbounds i8, ptr %0, i64 224
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = getelementptr inbounds i8, ptr %0, i64 104
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  %64 = load i32, ptr %27, align 4, !tbaa !22
  %65 = shl nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = shl nsw i64 %66, 2
  %68 = tail call i32 @cudaMemcpy(ptr noundef %61, ptr noundef %63, i64 noundef %67, i32 noundef 1)
  %69 = getelementptr inbounds i8, ptr %0, i64 232
  %70 = load ptr, ptr %69, align 8, !tbaa !28
  %71 = getelementptr inbounds i8, ptr %0, i64 112
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = load i32, ptr %27, align 4, !tbaa !22
  %74 = shl nsw i32 %73, 1
  %75 = sext i32 %74 to i64
  %76 = shl nsw i64 %75, 2
  %77 = tail call i32 @cudaMemcpy(ptr noundef %70, ptr noundef %72, i64 noundef %76, i32 noundef 1)
  %78 = getelementptr inbounds i8, ptr %0, i64 240
  %79 = load ptr, ptr %78, align 8, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %0, i64 120
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = load i32, ptr %27, align 4, !tbaa !22
  %83 = shl nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = shl nsw i64 %84, 2
  %86 = tail call i32 @cudaMemcpy(ptr noundef %79, ptr noundef %81, i64 noundef %85, i32 noundef 1)
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem12plummerModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem18collidingDiskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN23BarnesHutParticleSystem9diskModelEPfS0_S0_S0_S0_S0_S0_i(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

attributes #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 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" }

!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, !8, i64 0}
!6 = !{!"_ZTS23BarnesHutParticleSystem", !7, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320}
!7 = !{!"_ZTS20SimulationParameters", !8, i64 0, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!8 = !{!"_ZTS5Model", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!6, !14, i64 72}
!16 = !{!6, !14, i64 80}
!17 = !{!6, !14, i64 88}
!18 = !{!6, !14, i64 96}
!19 = !{!6, !14, i64 104}
!20 = !{!6, !14, i64 112}
!21 = !{!6, !14, i64 120}
!22 = !{!6, !13, i64 28}
!23 = !{!6, !14, i64 192}
!24 = !{!6, !14, i64 200}
!25 = !{!6, !14, i64 208}
!26 = !{!6, !14, i64 216}
!27 = !{!6, !14, i64 224}
!28 = !{!6, !14, i64 232}
!29 = !{!6, !14, i64 240}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass