; 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.sevent = type { double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }

@N = external dso_local global i32, align 4
@maxscheduletime = external dso_local global double, align 8
@eventlisttimemultiplier = external dso_local global double, align 8
@nempty = external dso_local global i32, align 4
@eventlists = external dso_local global ptr, align 8
@eventlist = external dso_local global ptr, align 8
@eventpool = external dso_local global ptr, align 8
@totalevents = external dso_local global i32, align 4
@root = external dso_local global ptr, align 8
@eventlisttime = external dso_local global double, align 8
@numeventlists = external dso_local global i32, align 4
@.str.24 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [35 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 allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @initeventpool() #4 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = load double, ptr @eventlisttimemultiplier, align 8, !tbaa !5
  %5 = load i32, ptr @N, align 4, !tbaa !9
  %6 = sitofp i32 %5 to double
  %7 = fdiv double %4, %6
  store double %7, ptr @eventlisttime, align 8, !tbaa !5
  %8 = load double, ptr @maxscheduletime, align 8, !tbaa !5
  %9 = load double, ptr @eventlisttime, align 8, !tbaa !5
  %10 = fdiv double %8, %9
  %11 = call double @llvm.ceil.f64(double %10)
  %12 = fptosi double %11 to i32
  store i32 %12, ptr @numeventlists, align 4, !tbaa !9
  %13 = load i32, ptr @numeventlists, align 4, !tbaa !9
  %14 = sitofp i32 %13 to double
  %15 = load double, ptr @eventlisttime, align 8, !tbaa !5
  %16 = fmul double %14, %15
  store double %16, ptr @maxscheduletime, align 8, !tbaa !5
  %17 = load i32, ptr @numeventlists, align 4, !tbaa !9
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %17)
  %19 = load i32, ptr @numeventlists, align 4, !tbaa !9
  %20 = add nsw i32 %19, 1
  %21 = sext i32 %20 to i64
  %22 = call noalias ptr @calloc(i64 noundef %21, i64 noundef 8) #7
  store ptr %22, ptr @eventlists, align 8, !tbaa !11
  %23 = load ptr, ptr @eventlists, align 8, !tbaa !11
  %24 = icmp ne ptr %23, null
  br i1 %24, label %27, label %25

25:                                               ; preds = %0
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  call void @exit(i32 noundef 3) #8
  unreachable

27:                                               ; preds = %0
  %28 = load i32, ptr @N, align 4, !tbaa !9
  %29 = mul nsw i32 %28, 20
  store i32 %29, ptr @totalevents, align 4, !tbaa !9
  %30 = load i32, ptr @totalevents, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 88
  %33 = call noalias ptr @malloc(i64 noundef %32) #9
  store ptr %33, ptr @eventlist, align 8, !tbaa !11
  %34 = load i32, ptr @totalevents, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = mul i64 %35, 8
  %37 = call noalias ptr @malloc(i64 noundef %36) #9
  store ptr %37, ptr @eventpool, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #10
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %81, %27
  %39 = load i32, ptr %1, align 4, !tbaa !9
  %40 = load i32, ptr @totalevents, align 4, !tbaa !9
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %42, label %84

42:                                               ; preds = %38
  %43 = load ptr, ptr @eventlist, align 8, !tbaa !11
  %44 = load i32, ptr @totalevents, align 4, !tbaa !9
  %45 = load i32, ptr %1, align 4, !tbaa !9
  %46 = sub nsw i32 %44, %45
  %47 = sub nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.sevent, ptr %43, i64 %48
  store ptr %49, ptr %2, align 8, !tbaa !11
  %50 = load ptr, ptr %2, align 8, !tbaa !11
  %51 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %52 = load i32, ptr %1, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  store ptr %50, ptr %54, align 8, !tbaa !11
  %55 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %56 = load i32, ptr %1, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = getelementptr inbounds %struct.sevent, ptr %59, i32 0, i32 1
  store ptr null, ptr %60, align 8, !tbaa !13
  %61 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %62 = load i32, ptr %1, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.sevent, ptr %65, i32 0, i32 2
  store ptr null, ptr %66, align 8, !tbaa !15
  %67 = load ptr, ptr %2, align 8, !tbaa !11
  %68 = load ptr, ptr %2, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.sevent, ptr %68, i32 0, i32 7
  store ptr %67, ptr %69, align 8, !tbaa !16
  %70 = load ptr, ptr %2, align 8, !tbaa !11
  %71 = load ptr, ptr %2, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.sevent, ptr %71, i32 0, i32 6
  store ptr %70, ptr %72, align 8, !tbaa !17
  %73 = load ptr, ptr %2, align 8, !tbaa !11
  %74 = load ptr, ptr %2, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.sevent, ptr %74, i32 0, i32 9
  store ptr %73, ptr %75, align 8, !tbaa !18
  %76 = load ptr, ptr %2, align 8, !tbaa !11
  %77 = load ptr, ptr %2, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct.sevent, ptr %77, i32 0, i32 8
  store ptr %76, ptr %78, align 8, !tbaa !19
  %79 = load i32, ptr @nempty, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr @nempty, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %42
  %82 = load i32, ptr %1, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %1, align 4, !tbaa !9
  br label %38, !llvm.loop !20

84:                                               ; preds = %38
  %85 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %86 = load i32, ptr @nempty, align 4, !tbaa !9
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr @nempty, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds ptr, ptr %85, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  store ptr %90, ptr @root, align 8, !tbaa !11
  %91 = load ptr, ptr @root, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.sevent, ptr %91, i32 0, i32 0
  store double 0xC2374876E7FFFD71, ptr %92, align 8, !tbaa !22
  %93 = load ptr, ptr @root, align 8, !tbaa !11
  %94 = getelementptr inbounds %struct.sevent, ptr %93, i32 0, i32 10
  store i32 99, ptr %94, align 8, !tbaa !23
  %95 = load ptr, ptr @root, align 8, !tbaa !11
  %96 = getelementptr inbounds %struct.sevent, ptr %95, i32 0, i32 3
  store ptr null, ptr %96, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %97 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %98 = load i32, ptr @nempty, align 4, !tbaa !9
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr @nempty, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %97, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !11
  store ptr %102, ptr %3, align 8, !tbaa !11
  %103 = load ptr, ptr %3, align 8, !tbaa !11
  %104 = getelementptr inbounds %struct.sevent, ptr %103, i32 0, i32 0
  store double 0.000000e+00, ptr %104, align 8, !tbaa !22
  %105 = load ptr, ptr %3, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct.sevent, ptr %105, i32 0, i32 10
  store i32 100, ptr %106, align 8, !tbaa !23
  %107 = load ptr, ptr %3, align 8, !tbaa !11
  %108 = load ptr, ptr @root, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.sevent, ptr %108, i32 0, i32 2
  store ptr %107, ptr %109, align 8, !tbaa !15
  %110 = load ptr, ptr @root, align 8, !tbaa !11
  %111 = load ptr, ptr %3, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.sevent, ptr %111, i32 0, i32 3
  store ptr %110, ptr %112, align 8, !tbaa !24
  %113 = load i32, ptr @totalevents, align 4, !tbaa !9
  %114 = load i32, ptr @nempty, align 4, !tbaa !9
  %115 = sub nsw i32 %113, %114
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #10
  ret void
}

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

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

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 allocsize(0,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 #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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind allocsize(0,1) }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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, !12, i64 8}
!14 = !{!"sevent", !6, 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, !12, i64 72, !10, i64 80, !10, i64 84}
!15 = !{!14, !12, i64 16}
!16 = !{!14, !12, i64 56}
!17 = !{!14, !12, i64 48}
!18 = !{!14, !12, i64 72}
!19 = !{!14, !12, i64 64}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !6, i64 0}
!23 = !{!14, !10, i64 80}
!24 = !{!14, !12, i64 24}


; 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.sevent = type { double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }

@N = external dso_local local_unnamed_addr global i32, align 4
@maxscheduletime = external dso_local local_unnamed_addr global double, align 8
@eventlisttimemultiplier = external dso_local local_unnamed_addr global double, align 8
@nempty = external dso_local local_unnamed_addr global i32, align 4
@eventlists = external dso_local local_unnamed_addr global ptr, align 8
@eventlist = external dso_local local_unnamed_addr global ptr, align 8
@eventpool = external dso_local local_unnamed_addr global ptr, align 8
@totalevents = external dso_local local_unnamed_addr global i32, align 4
@root = external dso_local local_unnamed_addr global ptr, align 8
@eventlisttime = external dso_local local_unnamed_addr global double, align 8
@numeventlists = external dso_local local_unnamed_addr global i32, align 4
@.str.24 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [35 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 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 @initeventpool() local_unnamed_addr #3 {
  %1 = load double, ptr @eventlisttimemultiplier, align 8, !tbaa !5
  %2 = load i32, ptr @N, align 4, !tbaa !9
  %3 = sitofp i32 %2 to double
  %4 = fdiv double %1, %3
  store double %4, ptr @eventlisttime, align 8, !tbaa !5
  %5 = load double, ptr @maxscheduletime, align 8, !tbaa !5
  %6 = fdiv double %5, %4
  %7 = tail call double @llvm.ceil.f64(double %6)
  %8 = fptosi double %7 to i32
  store i32 %8, ptr @numeventlists, align 4, !tbaa !9
  %9 = sitofp i32 %8 to double
  %10 = fmul double %4, %9
  store double %10, ptr @maxscheduletime, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i32 noundef %8)
  %12 = load i32, ptr @numeventlists, align 4, !tbaa !9
  %13 = add nsw i32 %12, 1
  %14 = sext i32 %13 to i64
  %15 = tail call noalias ptr @calloc(i64 noundef %14, i64 noundef 8) #7
  store ptr %15, ptr @eventlists, align 8, !tbaa !11
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %18

16:                                               ; preds = %0
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  tail call void @exit(i32 noundef 3) #8
  unreachable

18:                                               ; preds = %0
  %19 = load i32, ptr @N, align 4, !tbaa !9
  %20 = mul nsw i32 %19, 20
  store i32 %20, ptr @totalevents, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = mul nsw i64 %21, 88
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #9
  store ptr %23, ptr @eventlist, align 8, !tbaa !11
  %24 = shl nsw i64 %21, 3
  %25 = tail call noalias ptr @malloc(i64 noundef %24) #9
  store ptr %25, ptr @eventpool, align 8, !tbaa !11
  %nempty.promoted = load i32, ptr @nempty, align 4, !tbaa !9
  %26 = icmp sgt i32 %19, 0
  br i1 %26, label %.lr.ph.preheader, label %44

.lr.ph.preheader:                                 ; preds = %18
  %smax = tail call i32 @llvm.smax.i32(i32 %20, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %27 = load ptr, ptr @eventlist, align 8, !tbaa !11
  %28 = xor i64 %indvars.iv, -1
  %29 = getelementptr %struct.sevent, ptr %27, i64 %21
  %30 = getelementptr %struct.sevent, ptr %29, i64 %28
  %31 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  store ptr %30, ptr %32, align 8, !tbaa !11
  %33 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  store ptr null, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %34, align 8, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  store ptr null, ptr %38, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %30, i64 56
  store ptr %30, ptr %39, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %30, i64 48
  store ptr %30, ptr %40, align 8, !tbaa !17
  %41 = getelementptr inbounds i8, ptr %30, i64 72
  store ptr %30, ptr %41, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %30, i64 64
  store ptr %30, ptr %42, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph
  %43 = add i32 %nempty.promoted, %smax
  %.pre = load ptr, ptr @eventpool, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %._crit_edge, %18
  %45 = phi i32 [ %43, %._crit_edge ], [ %nempty.promoted, %18 ]
  %46 = phi ptr [ %.pre, %._crit_edge ], [ %25, %18 ]
  %47 = add nsw i32 %45, -1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds ptr, ptr %46, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  store ptr %50, ptr @root, align 8, !tbaa !11
  store double 0xC2374876E7FFFD71, ptr %50, align 8, !tbaa !22
  %51 = getelementptr inbounds i8, ptr %50, i64 80
  store i32 99, ptr %51, align 8, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %50, i64 24
  store ptr null, ptr %52, align 8, !tbaa !24
  %53 = add nsw i32 %45, -2
  store i32 %53, ptr @nempty, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %46, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  store double 0.000000e+00, ptr %56, align 8, !tbaa !22
  %57 = getelementptr inbounds i8, ptr %56, i64 80
  store i32 100, ptr %57, align 8, !tbaa !23
  %58 = getelementptr inbounds i8, ptr %50, i64 16
  store ptr %56, ptr %58, align 8, !tbaa !15
  %59 = getelementptr inbounds i8, ptr %56, i64 24
  store ptr %50, ptr %59, align 8, !tbaa !24
  %60 = sub nsw i32 %20, %53
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %60)
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 = { 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"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, !12, i64 8}
!14 = !{!"sevent", !6, 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, !12, i64 72, !10, i64 80, !10, i64 84}
!15 = !{!14, !12, i64 16}
!16 = !{!14, !12, i64 56}
!17 = !{!14, !12, i64 48}
!18 = !{!14, !12, i64 72}
!19 = !{!14, !12, i64 64}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !6, i64 0}
!23 = !{!14, !10, i64 80}
!24 = !{!14, !12, i64 24}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass