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

@inputfilename = external dso_local global [100 x i8], align 16
@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.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 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 uwtable
declare dso_local void @initparticles(i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mygetline(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @loadparticles() #3 {
  %1 = alloca i8, align 1
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca [255 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 255, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %9 = call noalias ptr @fopen(ptr noundef @inputfilename, ptr noundef @.str.14)
  store ptr %9, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %14, label %12

12:                                               ; preds = %0
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @exit(i32 noundef 3) #7
  unreachable

14:                                               ; preds = %0
  %15 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call i32 @mygetline(ptr noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %18 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %19 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %18, ptr noundef @.str.16, ptr noundef %3) #6
  store i32 %19, ptr %7, align 4, !tbaa !9
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = icmp ne i32 %20, 1
  br i1 %21, label %22, label %24

22:                                               ; preds = %14
  %23 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @exit(i32 noundef 3) #7
  unreachable

24:                                               ; preds = %14
  %25 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call i32 @mygetline(ptr noundef %25, ptr noundef %26)
  %28 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %29 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %28, ptr noundef @.str.18, ptr noundef @xsize, ptr noundef @ysize, ptr noundef @zsize) #6
  store i32 %29, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 3
  br i1 %31, label %32, label %34

32:                                               ; preds = %24
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @exit(i32 noundef 3) #7
  unreachable

34:                                               ; preds = %24
  %35 = load i32, ptr %3, align 4, !tbaa !9
  call void @initparticles(i32 noundef %35)
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %90, %34
  %38 = load i32, ptr %2, align 4, !tbaa !9
  %39 = load i32, ptr @N, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %93

41:                                               ; preds = %37
  %42 = load ptr, ptr @particles, align 8, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds %struct.sparticle, ptr %42, i64 %44
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call i32 @mygetline(ptr noundef %46, ptr noundef %47)
  %49 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.sparticle, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.sparticle, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.sparticle, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.sparticle, ptr %56, i32 0, i32 7
  %58 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %49, ptr noundef @.str.19, ptr noundef %1, ptr noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %57) #6
  store i32 %58, ptr %7, align 4, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @backinbox(ptr noundef %59)
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 5
  br i1 %61, label %62, label %66

62:                                               ; preds = %41
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %63, ptr noundef %64)
  call void @exit(i32 noundef 3) #7
  unreachable

66:                                               ; preds = %41
  %67 = load i8, ptr %1, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  %69 = sub nsw i32 %68, 97
  %70 = trunc i32 %69 to i8
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.sparticle, ptr %71, i32 0, i32 19
  store i8 %70, ptr %72, align 8, !tbaa !14
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.sparticle, ptr %73, i32 0, i32 8
  store double 1.000000e+00, ptr %74, align 8, !tbaa !16
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.sparticle, ptr %75, i32 0, i32 7
  %77 = load double, ptr %76, align 8, !tbaa !17
  %78 = fmul double 8.000000e+00, %77
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.sparticle, ptr %79, i32 0, i32 7
  %81 = load double, ptr %80, align 8, !tbaa !17
  %82 = fmul double %78, %81
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.sparticle, ptr %83, i32 0, i32 7
  %85 = load double, ptr %84, align 8, !tbaa !17
  %86 = load double, ptr %8, align 8, !tbaa !11
  %87 = call double @llvm.fmuladd.f64(double %82, double %85, double %86)
  store double %87, ptr %8, align 8, !tbaa !11
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.sparticle, ptr %88, i32 0, i32 16
  store ptr null, ptr %89, align 8, !tbaa !18
  br label %90

90:                                               ; preds = %66
  %91 = load i32, ptr %2, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %2, align 4, !tbaa !9
  br label %37, !llvm.loop !19

93:                                               ; preds = %37
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = call i32 @fclose(ptr noundef %94)
  %96 = load double, ptr @xsize, align 8, !tbaa !11
  %97 = fmul double 6.000000e+00, %96
  %98 = load double, ptr @ysize, align 8, !tbaa !11
  %99 = fmul double %97, %98
  %100 = load double, ptr @zsize, align 8, !tbaa !11
  %101 = fmul double %99, %100
  %102 = fdiv double 0x400921FB54442D18, %101
  %103 = load double, ptr %8, align 8, !tbaa !11
  %104 = fmul double %102, %103
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %104)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 255, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %1) #6
  ret void
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
declare dso_local void @backinbox(ptr noundef) #3

declare i32 @fclose(ptr noundef) #2

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 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 = { 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 #5 = { 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 #6 = { nounwind }
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 = !{!"any pointer", !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 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 128}
!15 = !{!"sparticle", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !7, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !7, i64 128}
!16 = !{!15, !12, i64 64}
!17 = !{!15, !12, i64 56}
!18 = !{!15, !6, i64 104}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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

@inputfilename = external dso_local global [100 x i8], align 16
@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 global double, align 8
@ysize = external dso_local global double, align 8
@zsize = external dso_local global double, align 8
@.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.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mygetline(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @loadparticles() local_unnamed_addr #3 {
  %1 = alloca i8, align 1
  %2 = alloca i32, align 4
  %3 = alloca [255 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 255, ptr nonnull %3) #5
  %4 = tail call noalias ptr @fopen(ptr noundef nonnull @inputfilename, ptr noundef nonnull @.str.14)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %7

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

7:                                                ; preds = %0
  %8 = call i32 @mygetline(ptr noundef nonnull %3, ptr noundef nonnull %4)
  %9 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.16, ptr noundef nonnull %2) #5
  %.not27 = icmp eq i32 %9, 1
  br i1 %.not27, label %12, label %10

10:                                               ; preds = %7
  %11 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @exit(i32 noundef 3) #6
  unreachable

12:                                               ; preds = %7
  %13 = call i32 @mygetline(ptr noundef nonnull %3, ptr noundef nonnull %4)
  %14 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.18, ptr noundef nonnull @xsize, ptr noundef nonnull @ysize, ptr noundef nonnull @zsize) #5
  %.not28 = icmp eq i32 %14, 3
  br i1 %.not28, label %17, label %15

15:                                               ; preds = %12
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  call void @exit(i32 noundef 3) #6
  unreachable

17:                                               ; preds = %12
  %18 = load i32, ptr %2, align 4, !tbaa !5
  call void @initparticles(i32 noundef %18)
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %20 = load i32, ptr @N, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17, %31
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %17 ]
  %.032 = phi double [ %39, %31 ], [ 0.000000e+00, %17 ]
  %22 = load ptr, ptr @particles, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.sparticle, ptr %22, i64 %indvars.iv
  %24 = call i32 @mygetline(ptr noundef nonnull %3, ptr noundef nonnull %4)
  %25 = getelementptr inbounds i8, ptr %23, i64 8
  %26 = getelementptr inbounds i8, ptr %23, i64 16
  %27 = getelementptr inbounds i8, ptr %23, i64 56
  %28 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.19, ptr noundef nonnull %1, ptr noundef %23, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27) #5
  call void @backinbox(ptr noundef %23)
  %.not29 = icmp eq i32 %28, 5
  br i1 %.not29, label %31, label %29

29:                                               ; preds = %.lr.ph
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %28, ptr noundef nonnull %3)
  call void @exit(i32 noundef 3) #6
  unreachable

31:                                               ; preds = %.lr.ph
  %32 = load i8, ptr %1, align 1, !tbaa !11
  %33 = add i8 %32, -97
  %34 = getelementptr inbounds i8, ptr %23, i64 128
  store i8 %33, ptr %34, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %23, i64 64
  store double 1.000000e+00, ptr %35, align 8, !tbaa !15
  %36 = load double, ptr %27, align 8, !tbaa !16
  %37 = fmul double %36, 8.000000e+00
  %38 = fmul double %36, %37
  %39 = call double @llvm.fmuladd.f64(double %38, double %36, double %.032)
  %40 = getelementptr inbounds i8, ptr %23, i64 104
  store ptr null, ptr %40, align 8, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr @N, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %31, %17
  %.0.lcssa = phi double [ 0.000000e+00, %17 ], [ %39, %31 ]
  %44 = call i32 @fclose(ptr noundef nonnull %4)
  %45 = load double, ptr @xsize, align 8, !tbaa !20
  %46 = fmul double %45, 6.000000e+00
  %47 = load double, ptr @ysize, align 8, !tbaa !20
  %48 = fmul double %46, %47
  %49 = load double, ptr @zsize, align 8, !tbaa !20
  %50 = fmul double %48, %49
  %51 = fdiv double 0x400921FB54442D18, %50
  %52 = fmul double %.0.lcssa, %51
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %52)
  call void @llvm.lifetime.end.p0(i64 255, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #5
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @backinbox(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

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


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