; LLVM IR from FSmallenburg/EDMD :: Cell (mdCell)

; 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, i8, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i8 }

@packfrac = external dso_local global double, align 8
@N = external dso_local global i32, align 4
@particles = external dso_local global ptr, align 8
@xsize = external dso_local global double, align 8
@ysize = external dso_local global double, align 8
@zsize = external dso_local global double, align 8
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @initparticles(i32 noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @fcc() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %8 = load i32, ptr @N, align 4, !tbaa !5
  %9 = sdiv i32 %8, 4
  %10 = sitofp i32 %9 to double
  %11 = call double @cbrt(double noundef %10) #6
  %12 = fadd double %11, 1.000000e-04
  %13 = fptosi double %12 to i32
  store i32 %13, ptr %5, align 4, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = mul nsw i32 %14, %15
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = mul nsw i32 %16, %17
  %19 = mul nsw i32 %18, 4
  %20 = load i32, ptr @N, align 4, !tbaa !5
  %21 = icmp ne i32 %19, %20
  br i1 %21, label %22, label %30

22:                                               ; preds = %0
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = mul nsw i32 %23, %24
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = mul nsw i32 %25, %26
  %28 = mul nsw i32 %27, 4
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %28)
  call void @exit(i32 noundef 3) #7
  unreachable

30:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %31 = load i32, ptr @N, align 4, !tbaa !5
  %32 = sitofp i32 %31 to double
  %33 = load double, ptr @packfrac, align 8, !tbaa !9
  %34 = fmul double 0x3FFE8EC8A4AEACC4, %33
  %35 = fdiv double %32, %34
  store double %35, ptr %6, align 8, !tbaa !9
  %36 = load double, ptr %6, align 8, !tbaa !9
  %37 = call double @cbrt(double noundef %36) #6
  store double %37, ptr @xsize, align 8, !tbaa !9
  %38 = load double, ptr @xsize, align 8, !tbaa !9
  store double %38, ptr @ysize, align 8, !tbaa !9
  %39 = load double, ptr @xsize, align 8, !tbaa !9
  store double %39, ptr @zsize, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %40 = load double, ptr @xsize, align 8, !tbaa !9
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = sitofp i32 %41 to double
  %43 = fdiv double %40, %42
  store double %43, ptr %7, align 8, !tbaa !9
  %44 = load double, ptr %7, align 8, !tbaa !9
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %44)
  %46 = load i32, ptr @N, align 4, !tbaa !5
  call void @initparticles(i32 noundef %46)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %48 = load ptr, ptr @particles, align 8, !tbaa !11
  store ptr %48, ptr %4, align 8, !tbaa !11
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %164, %30
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %53, label %167

53:                                               ; preds = %49
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %160, %53
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %163

58:                                               ; preds = %54
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %156, %58
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %159

63:                                               ; preds = %59
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = sitofp i32 %64 to double
  %66 = fadd double %65, 2.500000e-01
  %67 = load double, ptr %7, align 8, !tbaa !9
  %68 = fmul double %66, %67
  %69 = load ptr, ptr %4, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct.sparticle, ptr %69, i32 0, i32 0
  store double %68, ptr %70, align 8, !tbaa !13
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = sitofp i32 %71 to double
  %73 = fadd double %72, 2.500000e-01
  %74 = load double, ptr %7, align 8, !tbaa !9
  %75 = fmul double %73, %74
  %76 = load ptr, ptr %4, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.sparticle, ptr %76, i32 0, i32 1
  store double %75, ptr %77, align 8, !tbaa !15
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = sitofp i32 %78 to double
  %80 = fadd double %79, 2.500000e-01
  %81 = load double, ptr %7, align 8, !tbaa !9
  %82 = fmul double %80, %81
  %83 = load ptr, ptr %4, align 8, !tbaa !11
  %84 = getelementptr inbounds %struct.sparticle, ptr %83, i32 0, i32 2
  store double %82, ptr %84, align 8, !tbaa !16
  %85 = load ptr, ptr %4, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.sparticle, ptr %85, i32 1
  store ptr %86, ptr %4, align 8, !tbaa !11
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = sitofp i32 %87 to double
  %89 = fadd double %88, 7.500000e-01
  %90 = load double, ptr %7, align 8, !tbaa !9
  %91 = fmul double %89, %90
  %92 = load ptr, ptr %4, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.sparticle, ptr %92, i32 0, i32 0
  store double %91, ptr %93, align 8, !tbaa !13
  %94 = load i32, ptr %2, align 4, !tbaa !5
  %95 = sitofp i32 %94 to double
  %96 = fadd double %95, 7.500000e-01
  %97 = load double, ptr %7, align 8, !tbaa !9
  %98 = fmul double %96, %97
  %99 = load ptr, ptr %4, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.sparticle, ptr %99, i32 0, i32 1
  store double %98, ptr %100, align 8, !tbaa !15
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = sitofp i32 %101 to double
  %103 = fadd double %102, 2.500000e-01
  %104 = load double, ptr %7, align 8, !tbaa !9
  %105 = fmul double %103, %104
  %106 = load ptr, ptr %4, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct.sparticle, ptr %106, i32 0, i32 2
  store double %105, ptr %107, align 8, !tbaa !16
  %108 = load ptr, ptr %4, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.sparticle, ptr %108, i32 1
  store ptr %109, ptr %4, align 8, !tbaa !11
  %110 = load i32, ptr %1, align 4, !tbaa !5
  %111 = sitofp i32 %110 to double
  %112 = fadd double %111, 7.500000e-01
  %113 = load double, ptr %7, align 8, !tbaa !9
  %114 = fmul double %112, %113
  %115 = load ptr, ptr %4, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.sparticle, ptr %115, i32 0, i32 0
  store double %114, ptr %116, align 8, !tbaa !13
  %117 = load i32, ptr %2, align 4, !tbaa !5
  %118 = sitofp i32 %117 to double
  %119 = fadd double %118, 2.500000e-01
  %120 = load double, ptr %7, align 8, !tbaa !9
  %121 = fmul double %119, %120
  %122 = load ptr, ptr %4, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.sparticle, ptr %122, i32 0, i32 1
  store double %121, ptr %123, align 8, !tbaa !15
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = sitofp i32 %124 to double
  %126 = fadd double %125, 7.500000e-01
  %127 = load double, ptr %7, align 8, !tbaa !9
  %128 = fmul double %126, %127
  %129 = load ptr, ptr %4, align 8, !tbaa !11
  %130 = getelementptr inbounds %struct.sparticle, ptr %129, i32 0, i32 2
  store double %128, ptr %130, align 8, !tbaa !16
  %131 = load ptr, ptr %4, align 8, !tbaa !11
  %132 = getelementptr inbounds %struct.sparticle, ptr %131, i32 1
  store ptr %132, ptr %4, align 8, !tbaa !11
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = sitofp i32 %133 to double
  %135 = fadd double %134, 2.500000e-01
  %136 = load double, ptr %7, align 8, !tbaa !9
  %137 = fmul double %135, %136
  %138 = load ptr, ptr %4, align 8, !tbaa !11
  %139 = getelementptr inbounds %struct.sparticle, ptr %138, i32 0, i32 0
  store double %137, ptr %139, align 8, !tbaa !13
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = sitofp i32 %140 to double
  %142 = fadd double %141, 7.500000e-01
  %143 = load double, ptr %7, align 8, !tbaa !9
  %144 = fmul double %142, %143
  %145 = load ptr, ptr %4, align 8, !tbaa !11
  %146 = getelementptr inbounds %struct.sparticle, ptr %145, i32 0, i32 1
  store double %144, ptr %146, align 8, !tbaa !15
  %147 = load i32, ptr %3, align 4, !tbaa !5
  %148 = sitofp i32 %147 to double
  %149 = fadd double %148, 7.500000e-01
  %150 = load double, ptr %7, align 8, !tbaa !9
  %151 = fmul double %149, %150
  %152 = load ptr, ptr %4, align 8, !tbaa !11
  %153 = getelementptr inbounds %struct.sparticle, ptr %152, i32 0, i32 2
  store double %151, ptr %153, align 8, !tbaa !16
  %154 = load ptr, ptr %4, align 8, !tbaa !11
  %155 = getelementptr inbounds %struct.sparticle, ptr %154, i32 1
  store ptr %155, ptr %4, align 8, !tbaa !11
  br label %156

156:                                              ; preds = %63
  %157 = load i32, ptr %3, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %3, align 4, !tbaa !5
  br label %59, !llvm.loop !17

159:                                              ; preds = %59
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %2, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %2, align 4, !tbaa !5
  br label %54, !llvm.loop !19

163:                                              ; preds = %54
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %1, align 4, !tbaa !5
  br label %49, !llvm.loop !20

167:                                              ; preds = %49
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %168

168:                                              ; preds = %183, %167
  %169 = load i32, ptr %1, align 4, !tbaa !5
  %170 = load i32, ptr @N, align 4, !tbaa !5
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %172, label %186

172:                                              ; preds = %168
  %173 = load ptr, ptr @particles, align 8, !tbaa !11
  %174 = load i32, ptr %1, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %struct.sparticle, ptr %173, i64 %175
  store ptr %176, ptr %4, align 8, !tbaa !11
  %177 = load ptr, ptr %4, align 8, !tbaa !11
  %178 = getelementptr inbounds %struct.sparticle, ptr %177, i32 0, i32 7
  store double 5.000000e-01, ptr %178, align 8, !tbaa !21
  %179 = load ptr, ptr %4, align 8, !tbaa !11
  %180 = getelementptr inbounds %struct.sparticle, ptr %179, i32 0, i32 19
  store i8 0, ptr %180, align 8, !tbaa !22
  %181 = load ptr, ptr %4, align 8, !tbaa !11
  %182 = getelementptr inbounds %struct.sparticle, ptr %181, i32 0, i32 8
  store double 1.000000e+00, ptr %182, align 8, !tbaa !23
  br label %183

183:                                              ; preds = %172
  %184 = load i32, ptr %1, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %1, align 4, !tbaa !5
  br label %168, !llvm.loop !24

186:                                              ; preds = %168
  %187 = load double, ptr @xsize, align 8, !tbaa !9
  %188 = fmul double 6.000000e+00, %187
  %189 = load double, ptr @ysize, align 8, !tbaa !9
  %190 = fmul double %188, %189
  %191 = load double, ptr @zsize, align 8, !tbaa !9
  %192 = fmul double %190, %191
  %193 = fdiv double 0x400921FB54442D18, %192
  %194 = load i32, ptr @N, align 4, !tbaa !5
  %195 = sitofp i32 %194 to double
  %196 = fmul double %193, %195
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %196)
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

; Function Attrs: nounwind willreturn memory(none)
declare double @cbrt(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { noreturn 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 willreturn memory(none) "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 }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"sparticle", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !7, i64 128}
!15 = !{!14, !10, i64 8}
!16 = !{!14, !10, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{!14, !10, i64 56}
!22 = !{!14, !7, i64 128}
!23 = !{!14, !10, i64 64}
!24 = distinct !{!24, !18}


; 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, i8, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i8 }

@packfrac = external dso_local local_unnamed_addr global double, align 8
@N = external dso_local local_unnamed_addr global i32, align 4
@particles = external dso_local local_unnamed_addr global ptr, align 8
@xsize = external dso_local local_unnamed_addr global double, align 8
@ysize = external dso_local local_unnamed_addr global double, align 8
@zsize = external dso_local local_unnamed_addr global double, align 8
@.str.9 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @initparticles(i32 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @fcc() local_unnamed_addr #1 {
  %1 = load i32, ptr @N, align 4, !tbaa !5
  %2 = sdiv i32 %1, 4
  %3 = sitofp i32 %2 to double
  %4 = tail call double @cbrt(double noundef %3) #4
  %5 = fadd double %4, 1.000000e-04
  %6 = fptosi double %5 to i32
  %7 = shl i32 %6, 2
  %8 = mul i32 %7, %6
  %9 = mul i32 %8, %6
  %.not = icmp eq i32 %9, %1
  br i1 %.not, label %12, label %10

10:                                               ; preds = %0
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %9)
  tail call void @exit(i32 noundef 3) #5
  unreachable

12:                                               ; preds = %0
  %13 = sitofp i32 %1 to double
  %14 = load double, ptr @packfrac, align 8, !tbaa !9
  %15 = fmul double %14, 0x3FFE8EC8A4AEACC4
  %16 = fdiv double %13, %15
  %17 = tail call double @cbrt(double noundef %16) #4
  store double %17, ptr @xsize, align 8, !tbaa !9
  store double %17, ptr @ysize, align 8, !tbaa !9
  store double %17, ptr @zsize, align 8, !tbaa !9
  %18 = sitofp i32 %6 to double
  %19 = fdiv double %17, %18
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %19)
  %21 = load i32, ptr @N, align 4, !tbaa !5
  tail call void @initparticles(i32 noundef %21)
  %22 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %23 = load ptr, ptr @particles, align 8, !tbaa !11
  %24 = icmp sgt i32 %6, 0
  br i1 %24, label %.preheader72.us, label %.preheader

.preheader72.us:                                  ; preds = %12, %._crit_edge77.split.us.us
  %.080.us = phi i32 [ %55, %._crit_edge77.split.us.us ], [ 0, %12 ]
  %.06579.us = phi ptr [ %52, %._crit_edge77.split.us.us ], [ %23, %12 ]
  %25 = uitofp nneg i32 %.080.us to double
  %26 = fadd double %25, 2.500000e-01
  %27 = fmul double %19, %26
  %28 = fadd double %25, 7.500000e-01
  %29 = fmul double %19, %28
  br label %.preheader71.us.us

.preheader71.us.us:                               ; preds = %._crit_edge.us.us, %.preheader72.us
  %.06376.us.us = phi i32 [ 0, %.preheader72.us ], [ %54, %._crit_edge.us.us ]
  %.16675.us.us = phi ptr [ %.06579.us, %.preheader72.us ], [ %52, %._crit_edge.us.us ]
  %30 = uitofp nneg i32 %.06376.us.us to double
  %31 = fadd double %30, 2.500000e-01
  %32 = fmul double %19, %31
  %33 = fadd double %30, 7.500000e-01
  %34 = fmul double %19, %33
  br label %35

35:                                               ; preds = %35, %.preheader71.us.us
  %.06474.us.us = phi i32 [ 0, %.preheader71.us.us ], [ %53, %35 ]
  %.273.us.us = phi ptr [ %.16675.us.us, %.preheader71.us.us ], [ %52, %35 ]
  store double %27, ptr %.273.us.us, align 8, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %.273.us.us, i64 8
  store double %32, ptr %36, align 8, !tbaa !15
  %37 = uitofp nneg i32 %.06474.us.us to double
  %38 = fadd double %37, 2.500000e-01
  %39 = fmul double %19, %38
  %40 = getelementptr inbounds i8, ptr %.273.us.us, i64 16
  store double %39, ptr %40, align 8, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %.273.us.us, i64 136
  store double %29, ptr %41, align 8, !tbaa !13
  %42 = getelementptr inbounds i8, ptr %.273.us.us, i64 144
  store double %34, ptr %42, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %.273.us.us, i64 152
  store double %39, ptr %43, align 8, !tbaa !16
  %44 = getelementptr inbounds i8, ptr %.273.us.us, i64 272
  store double %29, ptr %44, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %.273.us.us, i64 280
  store double %32, ptr %45, align 8, !tbaa !15
  %46 = fadd double %37, 7.500000e-01
  %47 = fmul double %19, %46
  %48 = getelementptr inbounds i8, ptr %.273.us.us, i64 288
  store double %47, ptr %48, align 8, !tbaa !16
  %49 = getelementptr inbounds i8, ptr %.273.us.us, i64 408
  store double %27, ptr %49, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %.273.us.us, i64 416
  store double %34, ptr %50, align 8, !tbaa !15
  %51 = getelementptr inbounds i8, ptr %.273.us.us, i64 424
  store double %47, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %.273.us.us, i64 544
  %53 = add nuw nsw i32 %.06474.us.us, 1
  %exitcond.not = icmp eq i32 %53, %6
  br i1 %exitcond.not, label %._crit_edge.us.us, label %35, !llvm.loop !17

._crit_edge.us.us:                                ; preds = %35
  %54 = add nuw nsw i32 %.06376.us.us, 1
  %exitcond82.not = icmp eq i32 %54, %6
  br i1 %exitcond82.not, label %._crit_edge77.split.us.us, label %.preheader71.us.us, !llvm.loop !19

._crit_edge77.split.us.us:                        ; preds = %._crit_edge.us.us
  %55 = add nuw nsw i32 %.080.us, 1
  %exitcond83.not = icmp eq i32 %55, %6
  br i1 %exitcond83.not, label %.preheader, label %.preheader72.us, !llvm.loop !20

.preheader:                                       ; preds = %._crit_edge77.split.us.us, %12
  %56 = load i32, ptr @N, align 4, !tbaa !5
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %56 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %58 = icmp ult i32 %56, 4
  br i1 %58, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %59 = getelementptr inbounds %struct.sparticle, ptr %23, i64 %indvars.iv
  %60 = getelementptr inbounds i8, ptr %59, i64 56
  %61 = getelementptr inbounds i8, ptr %59, i64 128
  store i8 0, ptr %61, align 8, !tbaa !21
  store <2 x double> <double 5.000000e-01, double 1.000000e+00>, ptr %60, align 8, !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %62 = getelementptr inbounds %struct.sparticle, ptr %23, i64 %indvars.iv.next
  %63 = getelementptr inbounds i8, ptr %62, i64 56
  %64 = getelementptr inbounds i8, ptr %62, i64 128
  store i8 0, ptr %64, align 8, !tbaa !21
  store <2 x double> <double 5.000000e-01, double 1.000000e+00>, ptr %63, align 8, !tbaa !9
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %65 = getelementptr inbounds %struct.sparticle, ptr %23, i64 %indvars.iv.next.1
  %66 = getelementptr inbounds i8, ptr %65, i64 56
  %67 = getelementptr inbounds i8, ptr %65, i64 128
  store i8 0, ptr %67, align 8, !tbaa !21
  store <2 x double> <double 5.000000e-01, double 1.000000e+00>, ptr %66, align 8, !tbaa !9
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %68 = getelementptr inbounds %struct.sparticle, ptr %23, i64 %indvars.iv.next.2
  %69 = getelementptr inbounds i8, ptr %68, i64 56
  %70 = getelementptr inbounds i8, ptr %68, i64 128
  store i8 0, ptr %70, align 8, !tbaa !21
  store <2 x double> <double 5.000000e-01, double 1.000000e+00>, ptr %69, align 8, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !22

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %71 = getelementptr inbounds %struct.sparticle, ptr %23, i64 %indvars.iv.epil
  %72 = getelementptr inbounds i8, ptr %71, i64 56
  %73 = getelementptr inbounds i8, ptr %71, i64 128
  store i8 0, ptr %73, align 8, !tbaa !21
  store <2 x double> <double 5.000000e-01, double 1.000000e+00>, ptr %72, align 8, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %.preheader
  %74 = load double, ptr @xsize, align 8, !tbaa !9
  %75 = fmul double %74, 6.000000e+00
  %76 = load double, ptr @ysize, align 8, !tbaa !9
  %77 = fmul double %75, %76
  %78 = load double, ptr @zsize, align 8, !tbaa !9
  %79 = fmul double %77, %78
  %80 = fdiv double 0x400921FB54442D18, %79
  %81 = sitofp i32 %56 to double
  %82 = fmul double %80, %81
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %82)
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  ret void
}

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare double @cbrt(double noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #2 = { noreturn 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 #3 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 willreturn memory(none) }
attributes #5 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"sparticle", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !7, i64 128}
!15 = !{!14, !10, i64 8}
!16 = !{!14, !10, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{!14, !7, i64 128}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass