; LLVM IR from FSmallenburg/EDMD :: Grow (mdgrow)

; 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.sparticle = type { double, double, double, double, double, double, double, double, double, double, [24 x ptr], i8, double, double, double, double, i8, i8, i8, i8, i32, i32, i32, ptr, i32, ptr, ptr, i32, i8 }

@particles = external dso_local global [100000 x %struct.sparticle], align 16
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @randommovement() #4 {
  %1 = alloca ptr, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %66, %0
  %11 = load i32, ptr %7, align 4, !tbaa !9
  %12 = icmp slt i32 %11, 100000
  br i1 %12, label %13, label %69

13:                                               ; preds = %10
  %14 = load i32, ptr %7, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds %struct.sparticle, ptr @particles, i64 %15
  store ptr %16, ptr %1, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %17 = load ptr, ptr %1, align 8, !tbaa !11
  %18 = getelementptr inbounds %struct.sparticle, ptr %17, i32 0, i32 15
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = call double @sqrt(double noundef %19) #5
  %21 = fdiv double 1.000000e+00, %20
  store double %21, ptr %8, align 8, !tbaa !5
  %22 = load double, ptr %8, align 8, !tbaa !5
  %23 = call double @random_gaussian()
  %24 = fmul double %22, %23
  %25 = load ptr, ptr %1, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.sparticle, ptr %25, i32 0, i32 3
  store double %24, ptr %26, align 8, !tbaa !15
  %27 = load double, ptr %8, align 8, !tbaa !5
  %28 = call double @random_gaussian()
  %29 = fmul double %27, %28
  %30 = load ptr, ptr %1, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.sparticle, ptr %30, i32 0, i32 4
  store double %29, ptr %31, align 8, !tbaa !16
  %32 = load double, ptr %8, align 8, !tbaa !5
  %33 = call double @random_gaussian()
  %34 = fmul double %32, %33
  %35 = load ptr, ptr %1, align 8, !tbaa !11
  %36 = getelementptr inbounds %struct.sparticle, ptr %35, i32 0, i32 5
  store double %34, ptr %36, align 8, !tbaa !17
  %37 = load ptr, ptr %1, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.sparticle, ptr %37, i32 0, i32 15
  %39 = load double, ptr %38, align 8, !tbaa !13
  %40 = load ptr, ptr %1, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.sparticle, ptr %40, i32 0, i32 3
  %42 = load double, ptr %41, align 8, !tbaa !15
  %43 = load double, ptr %3, align 8, !tbaa !5
  %44 = call double @llvm.fmuladd.f64(double %39, double %42, double %43)
  store double %44, ptr %3, align 8, !tbaa !5
  %45 = load ptr, ptr %1, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct.sparticle, ptr %45, i32 0, i32 15
  %47 = load double, ptr %46, align 8, !tbaa !13
  %48 = load ptr, ptr %1, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.sparticle, ptr %48, i32 0, i32 4
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = load double, ptr %4, align 8, !tbaa !5
  %52 = call double @llvm.fmuladd.f64(double %47, double %50, double %51)
  store double %52, ptr %4, align 8, !tbaa !5
  %53 = load ptr, ptr %1, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.sparticle, ptr %53, i32 0, i32 15
  %55 = load double, ptr %54, align 8, !tbaa !13
  %56 = load ptr, ptr %1, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.sparticle, ptr %56, i32 0, i32 5
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = load double, ptr %5, align 8, !tbaa !5
  %60 = call double @llvm.fmuladd.f64(double %55, double %58, double %59)
  store double %60, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %1, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.sparticle, ptr %61, i32 0, i32 15
  %63 = load double, ptr %62, align 8, !tbaa !13
  %64 = load double, ptr %6, align 8, !tbaa !5
  %65 = fadd double %64, %63
  store double %65, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %66

66:                                               ; preds = %13
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %7, align 4, !tbaa !9
  br label %10, !llvm.loop !18

69:                                               ; preds = %10
  %70 = load double, ptr %6, align 8, !tbaa !5
  %71 = load double, ptr %3, align 8, !tbaa !5
  %72 = fdiv double %71, %70
  store double %72, ptr %3, align 8, !tbaa !5
  %73 = load double, ptr %6, align 8, !tbaa !5
  %74 = load double, ptr %4, align 8, !tbaa !5
  %75 = fdiv double %74, %73
  store double %75, ptr %4, align 8, !tbaa !5
  %76 = load double, ptr %6, align 8, !tbaa !5
  %77 = load double, ptr %5, align 8, !tbaa !5
  %78 = fdiv double %77, %76
  store double %78, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %127, %69
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = icmp slt i32 %80, 100000
  br i1 %81, label %82, label %130

82:                                               ; preds = %79
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100000 x %struct.sparticle], ptr @particles, i64 0, i64 %84
  store ptr %85, ptr %1, align 8, !tbaa !11
  %86 = load double, ptr %3, align 8, !tbaa !5
  %87 = load ptr, ptr %1, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct.sparticle, ptr %87, i32 0, i32 3
  %89 = load double, ptr %88, align 8, !tbaa !15
  %90 = fsub double %89, %86
  store double %90, ptr %88, align 8, !tbaa !15
  %91 = load double, ptr %4, align 8, !tbaa !5
  %92 = load ptr, ptr %1, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.sparticle, ptr %92, i32 0, i32 4
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = fsub double %94, %91
  store double %95, ptr %93, align 8, !tbaa !16
  %96 = load double, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %1, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.sparticle, ptr %97, i32 0, i32 5
  %99 = load double, ptr %98, align 8, !tbaa !17
  %100 = fsub double %99, %96
  store double %100, ptr %98, align 8, !tbaa !17
  %101 = load ptr, ptr %1, align 8, !tbaa !11
  %102 = getelementptr inbounds %struct.sparticle, ptr %101, i32 0, i32 15
  %103 = load double, ptr %102, align 8, !tbaa !13
  %104 = load ptr, ptr %1, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.sparticle, ptr %104, i32 0, i32 3
  %106 = load double, ptr %105, align 8, !tbaa !15
  %107 = load ptr, ptr %1, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.sparticle, ptr %107, i32 0, i32 3
  %109 = load double, ptr %108, align 8, !tbaa !15
  %110 = load ptr, ptr %1, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.sparticle, ptr %110, i32 0, i32 4
  %112 = load double, ptr %111, align 8, !tbaa !16
  %113 = load ptr, ptr %1, align 8, !tbaa !11
  %114 = getelementptr inbounds %struct.sparticle, ptr %113, i32 0, i32 4
  %115 = load double, ptr %114, align 8, !tbaa !16
  %116 = fmul double %112, %115
  %117 = call double @llvm.fmuladd.f64(double %106, double %109, double %116)
  %118 = load ptr, ptr %1, align 8, !tbaa !11
  %119 = getelementptr inbounds %struct.sparticle, ptr %118, i32 0, i32 5
  %120 = load double, ptr %119, align 8, !tbaa !17
  %121 = load ptr, ptr %1, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct.sparticle, ptr %121, i32 0, i32 5
  %123 = load double, ptr %122, align 8, !tbaa !17
  %124 = call double @llvm.fmuladd.f64(double %120, double %123, double %117)
  %125 = load double, ptr %2, align 8, !tbaa !5
  %126 = call double @llvm.fmuladd.f64(double %103, double %124, double %125)
  store double %126, ptr %2, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %82
  %128 = load i32, ptr %7, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %7, align 4, !tbaa !9
  br label %79, !llvm.loop !20

130:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %131 = load double, ptr %2, align 8, !tbaa !5
  %132 = fdiv double %131, 1.000000e+05
  %133 = fdiv double 3.000000e+00, %132
  %134 = call double @sqrt(double noundef %133) #5
  store double %134, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %207, %130
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = icmp slt i32 %136, 100000
  br i1 %137, label %138, label %210

138:                                              ; preds = %135
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100000 x %struct.sparticle], ptr @particles, i64 0, i64 %140
  store ptr %141, ptr %1, align 8, !tbaa !11
  %142 = load double, ptr %9, align 8, !tbaa !5
  %143 = load ptr, ptr %1, align 8, !tbaa !11
  %144 = getelementptr inbounds %struct.sparticle, ptr %143, i32 0, i32 3
  %145 = load double, ptr %144, align 8, !tbaa !15
  %146 = fmul double %145, %142
  store double %146, ptr %144, align 8, !tbaa !15
  %147 = load double, ptr %9, align 8, !tbaa !5
  %148 = load ptr, ptr %1, align 8, !tbaa !11
  %149 = getelementptr inbounds %struct.sparticle, ptr %148, i32 0, i32 4
  %150 = load double, ptr %149, align 8, !tbaa !16
  %151 = fmul double %150, %147
  store double %151, ptr %149, align 8, !tbaa !16
  %152 = load double, ptr %9, align 8, !tbaa !5
  %153 = load ptr, ptr %1, align 8, !tbaa !11
  %154 = getelementptr inbounds %struct.sparticle, ptr %153, i32 0, i32 5
  %155 = load double, ptr %154, align 8, !tbaa !17
  %156 = fmul double %155, %152
  store double %156, ptr %154, align 8, !tbaa !17
  %157 = load ptr, ptr %1, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.sparticle, ptr %157, i32 0, i32 15
  %159 = load double, ptr %158, align 8, !tbaa !13
  %160 = load ptr, ptr %1, align 8, !tbaa !11
  %161 = getelementptr inbounds %struct.sparticle, ptr %160, i32 0, i32 3
  %162 = load double, ptr %161, align 8, !tbaa !15
  %163 = load ptr, ptr %1, align 8, !tbaa !11
  %164 = getelementptr inbounds %struct.sparticle, ptr %163, i32 0, i32 3
  %165 = load double, ptr %164, align 8, !tbaa !15
  %166 = load ptr, ptr %1, align 8, !tbaa !11
  %167 = getelementptr inbounds %struct.sparticle, ptr %166, i32 0, i32 4
  %168 = load double, ptr %167, align 8, !tbaa !16
  %169 = load ptr, ptr %1, align 8, !tbaa !11
  %170 = getelementptr inbounds %struct.sparticle, ptr %169, i32 0, i32 4
  %171 = load double, ptr %170, align 8, !tbaa !16
  %172 = fmul double %168, %171
  %173 = call double @llvm.fmuladd.f64(double %162, double %165, double %172)
  %174 = load ptr, ptr %1, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.sparticle, ptr %174, i32 0, i32 5
  %176 = load double, ptr %175, align 8, !tbaa !17
  %177 = load ptr, ptr %1, align 8, !tbaa !11
  %178 = getelementptr inbounds %struct.sparticle, ptr %177, i32 0, i32 5
  %179 = load double, ptr %178, align 8, !tbaa !17
  %180 = call double @llvm.fmuladd.f64(double %176, double %179, double %173)
  %181 = load double, ptr %2, align 8, !tbaa !5
  %182 = call double @llvm.fmuladd.f64(double %159, double %180, double %181)
  store double %182, ptr %2, align 8, !tbaa !5
  %183 = load ptr, ptr %1, align 8, !tbaa !11
  %184 = getelementptr inbounds %struct.sparticle, ptr %183, i32 0, i32 15
  %185 = load double, ptr %184, align 8, !tbaa !13
  %186 = load ptr, ptr %1, align 8, !tbaa !11
  %187 = getelementptr inbounds %struct.sparticle, ptr %186, i32 0, i32 3
  %188 = load double, ptr %187, align 8, !tbaa !15
  %189 = load double, ptr %3, align 8, !tbaa !5
  %190 = call double @llvm.fmuladd.f64(double %185, double %188, double %189)
  store double %190, ptr %3, align 8, !tbaa !5
  %191 = load ptr, ptr %1, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct.sparticle, ptr %191, i32 0, i32 15
  %193 = load double, ptr %192, align 8, !tbaa !13
  %194 = load ptr, ptr %1, align 8, !tbaa !11
  %195 = getelementptr inbounds %struct.sparticle, ptr %194, i32 0, i32 4
  %196 = load double, ptr %195, align 8, !tbaa !16
  %197 = load double, ptr %4, align 8, !tbaa !5
  %198 = call double @llvm.fmuladd.f64(double %193, double %196, double %197)
  store double %198, ptr %4, align 8, !tbaa !5
  %199 = load ptr, ptr %1, align 8, !tbaa !11
  %200 = getelementptr inbounds %struct.sparticle, ptr %199, i32 0, i32 15
  %201 = load double, ptr %200, align 8, !tbaa !13
  %202 = load ptr, ptr %1, align 8, !tbaa !11
  %203 = getelementptr inbounds %struct.sparticle, ptr %202, i32 0, i32 5
  %204 = load double, ptr %203, align 8, !tbaa !17
  %205 = load double, ptr %5, align 8, !tbaa !5
  %206 = call double @llvm.fmuladd.f64(double %201, double %204, double %205)
  store double %206, ptr %5, align 8, !tbaa !5
  br label %207

207:                                              ; preds = %138
  %208 = load i32, ptr %7, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %7, align 4, !tbaa !9
  br label %135, !llvm.loop !21

210:                                              ; preds = %135
  %211 = load double, ptr %2, align 8, !tbaa !5
  %212 = fdiv double %211, 1.000000e+05
  %213 = load double, ptr %3, align 8, !tbaa !5
  %214 = fdiv double %213, 1.000000e+05
  %215 = load double, ptr %4, align 8, !tbaa !5
  %216 = fdiv double %215, 1.000000e+05
  %217 = load double, ptr %5, align 8, !tbaa !5
  %218 = fdiv double %217, 1.000000e+05
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %212, double noundef %214, double noundef %216, double noundef %218)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local double @random_gaussian() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 304}
!14 = !{!"sparticle", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !7, i64 312, !7, i64 313, !7, i64 314, !7, i64 315, !10, i64 316, !10, i64 320, !10, i64 324, !12, i64 328, !10, i64 336, !12, i64 344, !12, i64 352, !10, i64 360, !7, i64 364}
!15 = !{!14, !6, i64 24}
!16 = !{!14, !6, i64 32}
!17 = !{!14, !6, i64 40}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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.sparticle = type { double, double, double, double, double, double, double, double, double, double, [24 x ptr], i8, double, double, double, double, i8, i8, i8, i8, i32, i32, i32, ptr, i32, ptr, ptr, i32, i8 }

@particles = external dso_local local_unnamed_addr global [100000 x %struct.sparticle], align 16
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @randommovement() local_unnamed_addr #3 {
  br label %1

1:                                                ; preds = %0, %1
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %1 ]
  %.07686 = phi double [ 0.000000e+00, %0 ], [ %26, %1 ]
  %.07785 = phi double [ 0.000000e+00, %0 ], [ %25, %1 ]
  %2 = phi <2 x double> [ zeroinitializer, %0 ], [ %24, %1 ]
  %3 = getelementptr inbounds %struct.sparticle, ptr @particles, i64 %indvars.iv
  %4 = getelementptr inbounds i8, ptr %3, i64 304
  %5 = load double, ptr %4, align 16, !tbaa !5
  %6 = tail call double @sqrt(double noundef %5) #5
  %7 = fdiv double 1.000000e+00, %6
  %8 = tail call double @random_gaussian()
  %9 = fmul double %7, %8
  %10 = getelementptr inbounds i8, ptr %3, i64 24
  store double %9, ptr %10, align 8, !tbaa !12
  %11 = tail call double @random_gaussian()
  %12 = fmul double %7, %11
  %13 = getelementptr inbounds i8, ptr %3, i64 32
  store double %12, ptr %13, align 16, !tbaa !13
  %14 = tail call double @random_gaussian()
  %15 = fmul double %7, %14
  %16 = getelementptr inbounds i8, ptr %3, i64 40
  store double %15, ptr %16, align 8, !tbaa !14
  %17 = load double, ptr %4, align 16, !tbaa !5
  %18 = load double, ptr %10, align 8, !tbaa !12
  %19 = load double, ptr %13, align 16, !tbaa !13
  %20 = insertelement <2 x double> poison, double %18, i64 0
  %21 = insertelement <2 x double> %20, double %17, i64 1
  %22 = insertelement <2 x double> poison, double %17, i64 0
  %23 = insertelement <2 x double> %22, double %19, i64 1
  %24 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %21, <2 x double> %23, <2 x double> %2)
  %25 = tail call double @llvm.fmuladd.f64(double %17, double %15, double %.07785)
  %26 = fadd double %.07686, %17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100000
  br i1 %exitcond.not, label %27, label %1, !llvm.loop !15

27:                                               ; preds = %1
  %28 = insertelement <2 x double> poison, double %26, i64 0
  %29 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
  %30 = fdiv <2 x double> %24, %29
  %31 = fdiv double %25, %26
  br label %32

32:                                               ; preds = %27, %32
  %indvars.iv104 = phi i64 [ 0, %27 ], [ %indvars.iv.next105, %32 ]
  %.089 = phi double [ 0.000000e+00, %27 ], [ %47, %32 ]
  %33 = getelementptr inbounds [100000 x %struct.sparticle], ptr @particles, i64 0, i64 %indvars.iv104
  %34 = getelementptr inbounds i8, ptr %33, i64 24
  %35 = load <2 x double>, ptr %34, align 8, !tbaa !17
  %36 = fsub <2 x double> %35, %30
  store <2 x double> %36, ptr %34, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %33, i64 40
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fsub double %38, %31
  store double %39, ptr %37, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %33, i64 304
  %41 = load double, ptr %40, align 16, !tbaa !5
  %42 = fmul <2 x double> %36, %36
  %43 = extractelement <2 x double> %42, i64 1
  %44 = extractelement <2 x double> %36, i64 0
  %45 = tail call double @llvm.fmuladd.f64(double %44, double %44, double %43)
  %46 = tail call double @llvm.fmuladd.f64(double %39, double %39, double %45)
  %47 = tail call double @llvm.fmuladd.f64(double %41, double %46, double %.089)
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next105, 100000
  br i1 %exitcond107.not, label %48, label %32, !llvm.loop !18

48:                                               ; preds = %32
  %49 = fdiv double %47, 1.000000e+05
  %50 = fdiv double 3.000000e+00, %49
  %51 = tail call double @sqrt(double noundef %50) #5
  %52 = insertelement <2 x double> poison, double %51, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  br label %54

54:                                               ; preds = %48, %54
  %indvars.iv108 = phi i64 [ 0, %48 ], [ %indvars.iv.next109, %54 ]
  %55 = phi <4 x double> [ zeroinitializer, %48 ], [ %75, %54 ]
  %56 = getelementptr inbounds [100000 x %struct.sparticle], ptr @particles, i64 0, i64 %indvars.iv108
  %57 = getelementptr inbounds i8, ptr %56, i64 24
  %58 = load <2 x double>, ptr %57, align 8, !tbaa !17
  %59 = fmul <2 x double> %53, %58
  store <2 x double> %59, ptr %57, align 8, !tbaa !17
  %60 = getelementptr inbounds i8, ptr %56, i64 40
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = fmul double %51, %61
  store double %62, ptr %60, align 8, !tbaa !14
  %63 = getelementptr inbounds i8, ptr %56, i64 304
  %64 = load double, ptr %63, align 16, !tbaa !5
  %65 = fmul <2 x double> %59, %59
  %66 = extractelement <2 x double> %65, i64 1
  %67 = extractelement <2 x double> %59, i64 0
  %68 = tail call double @llvm.fmuladd.f64(double %67, double %67, double %66)
  %69 = tail call double @llvm.fmuladd.f64(double %62, double %62, double %68)
  %70 = insertelement <4 x double> poison, double %64, i64 0
  %71 = shufflevector <4 x double> %70, <4 x double> poison, <4 x i32> zeroinitializer
  %72 = shufflevector <2 x double> %59, <2 x double> poison, <4 x i32> <i32 poison, i32 poison, i32 1, i32 0>
  %73 = insertelement <4 x double> %72, double %69, i64 0
  %74 = insertelement <4 x double> %73, double %62, i64 1
  %75 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %71, <4 x double> %74, <4 x double> %55)
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next109, 100000
  br i1 %exitcond111.not, label %76, label %54, !llvm.loop !19

76:                                               ; preds = %54
  %77 = extractelement <4 x double> %75, i64 0
  %78 = fdiv double %77, 1.000000e+05
  %79 = extractelement <4 x double> %75, i64 3
  %80 = fdiv double %79, 1.000000e+05
  %81 = extractelement <4 x double> %75, i64 2
  %82 = fdiv double %81, 1.000000e+05
  %83 = extractelement <4 x double> %75, i64 1
  %84 = fdiv double %83, 1.000000e+05
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %78, double noundef %80, double noundef %82, double noundef %84)
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local double @random_gaussian() local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 304}
!6 = !{!"sparticle", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !8, i64 80, !8, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !8, i64 312, !8, i64 313, !8, i64 314, !8, i64 315, !10, i64 316, !10, i64 320, !10, i64 324, !11, i64 328, !10, i64 336, !11, i64 344, !11, i64 352, !10, i64 360, !8, i64 364}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 32}
!14 = !{!6, !7, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass