; LLVM IR from introlab/odas :: src/system (particle2particle)

; 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.particle2particle_obj = type { i32, float, [3 x float], [3 x float], [3 x float], [3 x float], [3 x float], float, float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, float }

; Function Attrs: nounwind uwtable
define dso_local ptr @particle2particle_construct(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, double noundef %11, float noundef %12, float noundef %13) #0 {
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca double, align 8
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  store i32 %0, ptr %15, align 4, !tbaa !5
  store float %1, ptr %16, align 4, !tbaa !9
  store float %2, ptr %17, align 4, !tbaa !9
  store float %3, ptr %18, align 4, !tbaa !9
  store float %4, ptr %19, align 4, !tbaa !9
  store float %5, ptr %20, align 4, !tbaa !9
  store float %6, ptr %21, align 4, !tbaa !9
  store float %7, ptr %22, align 4, !tbaa !9
  store float %8, ptr %23, align 4, !tbaa !9
  store float %9, ptr %24, align 4, !tbaa !9
  store float %10, ptr %25, align 4, !tbaa !9
  store double %11, ptr %26, align 8, !tbaa !11
  store float %12, ptr %27, align 4, !tbaa !9
  store float %13, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %31 = call noalias ptr @malloc(i64 noundef 176) #7
  store ptr %31, ptr %29, align 8, !tbaa !13
  %32 = load i32, ptr %15, align 4, !tbaa !5
  %33 = load ptr, ptr %29, align 8, !tbaa !13
  %34 = getelementptr inbounds %struct.particle2particle_obj, ptr %33, i32 0, i32 0
  store i32 %32, ptr %34, align 8, !tbaa !15
  %35 = load float, ptr %16, align 4, !tbaa !9
  %36 = load ptr, ptr %29, align 8, !tbaa !13
  %37 = getelementptr inbounds %struct.particle2particle_obj, ptr %36, i32 0, i32 1
  store float %35, ptr %37, align 4, !tbaa !17
  %38 = load float, ptr %17, align 4, !tbaa !9
  %39 = load ptr, ptr %29, align 8, !tbaa !13
  %40 = getelementptr inbounds %struct.particle2particle_obj, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds [3 x float], ptr %40, i64 0, i64 0
  store float %38, ptr %41, align 8, !tbaa !9
  %42 = load float, ptr %20, align 4, !tbaa !9
  %43 = load ptr, ptr %29, align 8, !tbaa !13
  %44 = getelementptr inbounds %struct.particle2particle_obj, ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds [3 x float], ptr %44, i64 0, i64 1
  store float %42, ptr %45, align 4, !tbaa !9
  %46 = load float, ptr %23, align 4, !tbaa !9
  %47 = load ptr, ptr %29, align 8, !tbaa !13
  %48 = getelementptr inbounds %struct.particle2particle_obj, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds [3 x float], ptr %48, i64 0, i64 2
  store float %46, ptr %49, align 8, !tbaa !9
  %50 = load float, ptr %18, align 4, !tbaa !9
  %51 = load ptr, ptr %29, align 8, !tbaa !13
  %52 = getelementptr inbounds %struct.particle2particle_obj, ptr %51, i32 0, i32 3
  %53 = getelementptr inbounds [3 x float], ptr %52, i64 0, i64 0
  store float %50, ptr %53, align 4, !tbaa !9
  %54 = load float, ptr %21, align 4, !tbaa !9
  %55 = load ptr, ptr %29, align 8, !tbaa !13
  %56 = getelementptr inbounds %struct.particle2particle_obj, ptr %55, i32 0, i32 3
  %57 = getelementptr inbounds [3 x float], ptr %56, i64 0, i64 1
  store float %54, ptr %57, align 4, !tbaa !9
  %58 = load float, ptr %24, align 4, !tbaa !9
  %59 = load ptr, ptr %29, align 8, !tbaa !13
  %60 = getelementptr inbounds %struct.particle2particle_obj, ptr %59, i32 0, i32 3
  %61 = getelementptr inbounds [3 x float], ptr %60, i64 0, i64 2
  store float %58, ptr %61, align 4, !tbaa !9
  %62 = load float, ptr %19, align 4, !tbaa !9
  %63 = load ptr, ptr %29, align 8, !tbaa !13
  %64 = getelementptr inbounds %struct.particle2particle_obj, ptr %63, i32 0, i32 6
  %65 = getelementptr inbounds [3 x float], ptr %64, i64 0, i64 0
  store float %62, ptr %65, align 8, !tbaa !9
  %66 = load float, ptr %22, align 4, !tbaa !9
  %67 = load ptr, ptr %29, align 8, !tbaa !13
  %68 = getelementptr inbounds %struct.particle2particle_obj, ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds [3 x float], ptr %68, i64 0, i64 1
  store float %66, ptr %69, align 4, !tbaa !9
  %70 = load float, ptr %25, align 4, !tbaa !9
  %71 = load ptr, ptr %29, align 8, !tbaa !13
  %72 = getelementptr inbounds %struct.particle2particle_obj, ptr %71, i32 0, i32 6
  %73 = getelementptr inbounds [3 x float], ptr %72, i64 0, i64 2
  store float %70, ptr %73, align 8, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %120, %14
  %75 = load i32, ptr %30, align 4, !tbaa !5
  %76 = icmp ult i32 %75, 3
  br i1 %76, label %77, label %123

77:                                               ; preds = %74
  %78 = load ptr, ptr %29, align 8, !tbaa !13
  %79 = getelementptr inbounds %struct.particle2particle_obj, ptr %78, i32 0, i32 2
  %80 = load i32, ptr %30, align 4, !tbaa !5
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [3 x float], ptr %79, i64 0, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !9
  %84 = fmul float -1.000000e+00, %83
  %85 = load float, ptr %16, align 4, !tbaa !9
  %86 = fmul float %84, %85
  %87 = call float @expf(float noundef %86) #6, !tbaa !5
  %88 = load ptr, ptr %29, align 8, !tbaa !13
  %89 = getelementptr inbounds %struct.particle2particle_obj, ptr %88, i32 0, i32 4
  %90 = load i32, ptr %30, align 4, !tbaa !5
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [3 x float], ptr %89, i64 0, i64 %91
  store float %87, ptr %92, align 4, !tbaa !9
  %93 = load ptr, ptr %29, align 8, !tbaa !13
  %94 = getelementptr inbounds %struct.particle2particle_obj, ptr %93, i32 0, i32 3
  %95 = load i32, ptr %30, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [3 x float], ptr %94, i64 0, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = load ptr, ptr %29, align 8, !tbaa !13
  %100 = getelementptr inbounds %struct.particle2particle_obj, ptr %99, i32 0, i32 4
  %101 = load i32, ptr %30, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [3 x float], ptr %100, i64 0, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %29, align 8, !tbaa !13
  %106 = getelementptr inbounds %struct.particle2particle_obj, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %30, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [3 x float], ptr %106, i64 0, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !9
  %111 = fneg float %104
  %112 = call float @llvm.fmuladd.f32(float %111, float %110, float 1.000000e+00)
  %113 = call float @sqrtf(float noundef %112) #6
  %114 = fmul float %98, %113
  %115 = load ptr, ptr %29, align 8, !tbaa !13
  %116 = getelementptr inbounds %struct.particle2particle_obj, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %30, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [3 x float], ptr %116, i64 0, i64 %118
  store float %114, ptr %119, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %77
  %121 = load i32, ptr %30, align 4, !tbaa !5
  %122 = add i32 %121, 1
  store i32 %122, ptr %30, align 4, !tbaa !5
  br label %74, !llvm.loop !18

123:                                              ; preds = %74
  %124 = call ptr @random_construct_zero(i32 noundef 3)
  %125 = load ptr, ptr %29, align 8, !tbaa !13
  %126 = getelementptr inbounds %struct.particle2particle_obj, ptr %125, i32 0, i32 12
  store ptr %124, ptr %126, align 8, !tbaa !20
  %127 = load ptr, ptr %29, align 8, !tbaa !13
  %128 = getelementptr inbounds %struct.particle2particle_obj, ptr %127, i32 0, i32 12
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = load ptr, ptr %29, align 8, !tbaa !13
  %131 = getelementptr inbounds %struct.particle2particle_obj, ptr %130, i32 0, i32 6
  %132 = getelementptr inbounds [3 x float], ptr %131, i64 0, i64 0
  call void @random_pdf(ptr noundef %129, ptr noundef %132)
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = zext i32 %133 to i64
  %135 = mul i64 4, %134
  %136 = call noalias ptr @malloc(i64 noundef %135) #7
  %137 = load ptr, ptr %29, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.particle2particle_obj, ptr %137, i32 0, i32 11
  store ptr %136, ptr %138, align 8, !tbaa !21
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = zext i32 %139 to i64
  %141 = mul i64 4, %140
  %142 = call noalias ptr @malloc(i64 noundef %141) #7
  %143 = load ptr, ptr %29, align 8, !tbaa !13
  %144 = getelementptr inbounds %struct.particle2particle_obj, ptr %143, i32 0, i32 13
  store ptr %142, ptr %144, align 8, !tbaa !22
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = zext i32 %145 to i64
  %147 = mul i64 4, %146
  %148 = call noalias ptr @malloc(i64 noundef %147) #7
  %149 = load ptr, ptr %29, align 8, !tbaa !13
  %150 = getelementptr inbounds %struct.particle2particle_obj, ptr %149, i32 0, i32 14
  store ptr %148, ptr %150, align 8, !tbaa !23
  %151 = load i32, ptr %15, align 4, !tbaa !5
  %152 = call ptr @random_construct_zero(i32 noundef %151)
  %153 = load ptr, ptr %29, align 8, !tbaa !13
  %154 = getelementptr inbounds %struct.particle2particle_obj, ptr %153, i32 0, i32 15
  store ptr %152, ptr %154, align 8, !tbaa !24
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = mul i64 4, %156
  %158 = mul i64 %157, 3
  %159 = call noalias ptr @malloc(i64 noundef %158) #7
  %160 = load ptr, ptr %29, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.particle2particle_obj, ptr %160, i32 0, i32 16
  store ptr %159, ptr %161, align 8, !tbaa !25
  %162 = load double, ptr %26, align 8, !tbaa !11
  %163 = call ptr @normaloff_construct_rnd(double noundef %162, i32 noundef 10000)
  %164 = load ptr, ptr %29, align 8, !tbaa !13
  %165 = getelementptr inbounds %struct.particle2particle_obj, ptr %164, i32 0, i32 18
  store ptr %163, ptr %165, align 8, !tbaa !26
  %166 = load double, ptr %26, align 8, !tbaa !11
  %167 = load ptr, ptr %29, align 8, !tbaa !13
  %168 = getelementptr inbounds %struct.particle2particle_obj, ptr %167, i32 0, i32 17
  store double %166, ptr %168, align 8, !tbaa !27
  %169 = load float, ptr %28, align 4, !tbaa !9
  %170 = load ptr, ptr %29, align 8, !tbaa !13
  %171 = getelementptr inbounds %struct.particle2particle_obj, ptr %170, i32 0, i32 21
  store float %169, ptr %171, align 8, !tbaa !28
  %172 = load float, ptr %27, align 4, !tbaa !9
  %173 = load ptr, ptr %29, align 8, !tbaa !13
  %174 = getelementptr inbounds %struct.particle2particle_obj, ptr %173, i32 0, i32 7
  store float %172, ptr %174, align 4, !tbaa !29
  %175 = load float, ptr %27, align 4, !tbaa !9
  %176 = load float, ptr %27, align 4, !tbaa !9
  %177 = fmul float %175, %176
  %178 = load float, ptr %27, align 4, !tbaa !9
  %179 = fmul float %177, %178
  %180 = call float @powf(float noundef 0x401921FB60000000, float noundef 1.500000e+00) #6
  %181 = fmul float %179, %180
  %182 = fdiv float 1.000000e+00, %181
  %183 = load ptr, ptr %29, align 8, !tbaa !13
  %184 = getelementptr inbounds %struct.particle2particle_obj, ptr %183, i32 0, i32 8
  store float %182, ptr %184, align 8, !tbaa !30
  %185 = load ptr, ptr %29, align 8, !tbaa !13
  %186 = getelementptr inbounds %struct.particle2particle_obj, ptr %185, i32 0, i32 7
  %187 = load float, ptr %186, align 4, !tbaa !29
  %188 = fmul float 2.000000e+00, %187
  %189 = load ptr, ptr %29, align 8, !tbaa !13
  %190 = getelementptr inbounds %struct.particle2particle_obj, ptr %189, i32 0, i32 7
  %191 = load float, ptr %190, align 4, !tbaa !29
  %192 = fmul float %188, %191
  %193 = fdiv float -1.000000e+00, %192
  %194 = load ptr, ptr %29, align 8, !tbaa !13
  %195 = getelementptr inbounds %struct.particle2particle_obj, ptr %194, i32 0, i32 9
  store float %193, ptr %195, align 4, !tbaa !31
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = zext i32 %196 to i64
  %198 = mul i64 4, %197
  %199 = call noalias ptr @malloc(i64 noundef %198) #7
  %200 = load ptr, ptr %29, align 8, !tbaa !13
  %201 = getelementptr inbounds %struct.particle2particle_obj, ptr %200, i32 0, i32 19
  store ptr %199, ptr %201, align 8, !tbaa !32
  %202 = load i32, ptr %15, align 4, !tbaa !5
  %203 = call ptr @particles_construct_zero(i32 noundef %202)
  %204 = load ptr, ptr %29, align 8, !tbaa !13
  %205 = getelementptr inbounds %struct.particle2particle_obj, ptr %204, i32 0, i32 20
  store ptr %203, ptr %205, align 8, !tbaa !33
  %206 = load ptr, ptr %29, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  ret ptr %206
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind
declare float @expf(float noundef) #3

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare ptr @random_construct_zero(i32 noundef) #5

declare void @random_pdf(ptr noundef, ptr noundef) #5

declare ptr @normaloff_construct_rnd(double noundef, i32 noundef) #5

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #3

declare ptr @particles_construct_zero(i32 noundef) #5

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }
attributes #7 = { nounwind 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 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"particle2particle_obj", !6, i64 0, !10, i64 4, !7, i64 8, !7, i64 20, !7, i64 32, !7, i64 44, !7, i64 56, !10, i64 68, !10, i64 72, !10, i64 76, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !12, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !10, i64 168}
!17 = !{!16, !10, i64 4}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !14, i64 96}
!21 = !{!16, !14, i64 88}
!22 = !{!16, !14, i64 104}
!23 = !{!16, !14, i64 112}
!24 = !{!16, !14, i64 120}
!25 = !{!16, !14, i64 128}
!26 = !{!16, !14, i64 144}
!27 = !{!16, !12, i64 136}
!28 = !{!16, !10, i64 168}
!29 = !{!16, !10, i64 68}
!30 = !{!16, !10, i64 72}
!31 = !{!16, !10, i64 76}
!32 = !{!16, !14, i64 152}
!33 = !{!16, !14, i64 160}


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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @particle2particle_construct(i32 noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, double noundef %11, float noundef %12, float noundef %13) local_unnamed_addr #0 {
  %15 = tail call noalias dereferenceable_or_null(176) ptr @malloc(i64 noundef 176) #5
  store i32 %0, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  store float %1, ptr %16, align 4, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  store float %2, ptr %17, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %15, i64 12
  store float %5, ptr %18, align 4, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %15, i64 16
  store float %8, ptr %19, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %15, i64 20
  store float %3, ptr %20, align 4, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %15, i64 24
  store float %6, ptr %21, align 4, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %15, i64 28
  store float %9, ptr %22, align 4, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %15, i64 56
  store float %4, ptr %23, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %15, i64 60
  store float %7, ptr %24, align 4, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %15, i64 64
  store float %10, ptr %25, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %15, i64 32
  %27 = getelementptr inbounds i8, ptr %15, i64 44
  %28 = fneg float %2
  %29 = fmul float %28, %1
  %30 = tail call float @expf(float noundef %29) #6, !tbaa !15
  store float %30, ptr %26, align 4, !tbaa !14
  %31 = fneg float %30
  %32 = tail call float @llvm.fmuladd.f32(float %31, float %30, float 1.000000e+00)
  %33 = tail call float @sqrtf(float noundef %32) #6
  %34 = fmul float %33, %3
  store float %34, ptr %27, align 4, !tbaa !14
  %35 = fneg float %5
  %36 = fmul float %35, %1
  %37 = tail call float @expf(float noundef %36) #6, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %15, i64 36
  store float %37, ptr %38, align 4, !tbaa !14
  %39 = fneg float %37
  %40 = tail call float @llvm.fmuladd.f32(float %39, float %37, float 1.000000e+00)
  %41 = tail call float @sqrtf(float noundef %40) #6
  %42 = fmul float %41, %6
  %43 = getelementptr inbounds i8, ptr %15, i64 48
  store float %42, ptr %43, align 4, !tbaa !14
  %44 = fneg float %8
  %45 = fmul float %44, %1
  %46 = tail call float @expf(float noundef %45) #6, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %15, i64 40
  store float %46, ptr %47, align 4, !tbaa !14
  %48 = fneg float %46
  %49 = tail call float @llvm.fmuladd.f32(float %48, float %46, float 1.000000e+00)
  %50 = tail call float @sqrtf(float noundef %49) #6
  %51 = fmul float %50, %9
  %52 = getelementptr inbounds i8, ptr %15, i64 52
  store float %51, ptr %52, align 4, !tbaa !14
  %53 = tail call ptr @random_construct_zero(i32 noundef 3) #6
  %54 = getelementptr inbounds i8, ptr %15, i64 96
  store ptr %53, ptr %54, align 8, !tbaa !16
  tail call void @random_pdf(ptr noundef %53, ptr noundef nonnull %23) #6
  %55 = zext i32 %0 to i64
  %56 = shl nuw nsw i64 %55, 2
  %57 = tail call noalias ptr @malloc(i64 noundef %56) #5
  %58 = getelementptr inbounds i8, ptr %15, i64 88
  store ptr %57, ptr %58, align 8, !tbaa !17
  %59 = tail call noalias ptr @malloc(i64 noundef %56) #5
  %60 = getelementptr inbounds i8, ptr %15, i64 104
  store ptr %59, ptr %60, align 8, !tbaa !18
  %61 = tail call noalias ptr @malloc(i64 noundef %56) #5
  %62 = getelementptr inbounds i8, ptr %15, i64 112
  store ptr %61, ptr %62, align 8, !tbaa !19
  %63 = tail call ptr @random_construct_zero(i32 noundef %0) #6
  %64 = getelementptr inbounds i8, ptr %15, i64 120
  store ptr %63, ptr %64, align 8, !tbaa !20
  %65 = mul nuw nsw i64 %55, 12
  %66 = tail call noalias ptr @malloc(i64 noundef %65) #5
  %67 = getelementptr inbounds i8, ptr %15, i64 128
  store ptr %66, ptr %67, align 8, !tbaa !21
  %68 = tail call ptr @normaloff_construct_rnd(double noundef %11, i32 noundef 10000) #6
  %69 = getelementptr inbounds i8, ptr %15, i64 144
  store ptr %68, ptr %69, align 8, !tbaa !22
  %70 = getelementptr inbounds i8, ptr %15, i64 136
  store double %11, ptr %70, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %15, i64 168
  store float %13, ptr %71, align 8, !tbaa !24
  %72 = getelementptr inbounds i8, ptr %15, i64 68
  store float %12, ptr %72, align 4, !tbaa !25
  %73 = fmul float %12, %12
  %74 = getelementptr inbounds i8, ptr %15, i64 72
  %75 = insertelement <2 x float> poison, float %12, i64 0
  %76 = shufflevector <2 x float> %75, <2 x float> poison, <2 x i32> zeroinitializer
  %77 = insertelement <2 x float> <float poison, float 2.000000e+00>, float %73, i64 0
  %78 = fmul <2 x float> %76, %77
  %79 = insertelement <2 x float> <float 0x402F7FCD00000000, float poison>, float %12, i64 1
  %80 = fmul <2 x float> %78, %79
  %81 = fdiv <2 x float> <float 1.000000e+00, float -1.000000e+00>, %80
  store <2 x float> %81, ptr %74, align 8, !tbaa !14
  %82 = tail call noalias ptr @malloc(i64 noundef %56) #5
  %83 = getelementptr inbounds i8, ptr %15, i64 152
  store ptr %82, ptr %83, align 8, !tbaa !26
  %84 = tail call ptr @particles_construct_zero(i32 noundef %0) #6
  %85 = getelementptr inbounds i8, ptr %15, i64 160
  store ptr %84, ptr %85, align 8, !tbaa !27
  ret ptr %15
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

declare ptr @random_construct_zero(i32 noundef) local_unnamed_addr #4

declare void @random_pdf(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @normaloff_construct_rnd(double noundef, i32 noundef) local_unnamed_addr #4

declare ptr @particles_construct_zero(i32 noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind allocsize(0) }
attributes #6 = { 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 0}
!6 = !{!"particle2particle_obj", !7, i64 0, !10, i64 4, !8, i64 8, !8, i64 20, !8, i64 32, !8, i64 44, !8, i64 56, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !12, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !10, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!6, !10, i64 4}
!14 = !{!10, !10, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !11, i64 96}
!17 = !{!6, !11, i64 88}
!18 = !{!6, !11, i64 104}
!19 = !{!6, !11, i64 112}
!20 = !{!6, !11, i64 120}
!21 = !{!6, !11, i64 128}
!22 = !{!6, !11, i64 144}
!23 = !{!6, !12, i64 136}
!24 = !{!6, !10, i64 168}
!25 = !{!6, !10, i64 68}
!26 = !{!6, !11, i64 152}
!27 = !{!6, !11, i64 160}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass