; LLVM IR from FSmallenburg/EDMD :: Multi (mdMulti)

; 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, i8, 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
declare dso_local void @createevent(double noundef, ptr noundef, ptr noundef, i32 noundef) #4

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

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

26:                                               ; preds = %0
  %27 = load i32, ptr @N, align 4, !tbaa !9
  %28 = mul nsw i32 %27, 10
  store i32 %28, ptr @totalevents, align 4, !tbaa !9
  %29 = load i32, ptr @totalevents, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = mul i64 %30, 88
  %32 = call noalias ptr @malloc(i64 noundef %31) #9
  store ptr %32, ptr @eventlist, align 8, !tbaa !11
  %33 = load i32, ptr @totalevents, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = mul i64 %34, 8
  %36 = call noalias ptr @malloc(i64 noundef %35) #9
  store ptr %36, 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 %37

37:                                               ; preds = %80, %26
  %38 = load i32, ptr %1, align 4, !tbaa !9
  %39 = load i32, ptr @totalevents, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %83

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

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

83:                                               ; preds = %37
  %84 = load ptr, ptr @eventpool, align 8, !tbaa !11
  %85 = load i32, ptr @nempty, align 4, !tbaa !9
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr @nempty, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %84, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  store ptr %89, ptr @root, align 8, !tbaa !11
  %90 = load ptr, ptr @root, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.sevent, ptr %90, i32 0, i32 0
  store double 0xC2374876E7FFFD71, ptr %91, align 8, !tbaa !22
  %92 = load ptr, ptr @root, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.sevent, ptr %92, i32 0, i32 10
  store i8 99, ptr %93, align 8, !tbaa !23
  %94 = load ptr, ptr @root, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.sevent, ptr %94, i32 0, i32 3
  store ptr null, ptr %95, align 8, !tbaa !24
  call void @createevent(double noundef 0.000000e+00, ptr noundef null, ptr noundef null, i32 noundef 100)
  %96 = load i32, ptr @totalevents, align 4, !tbaa !9
  %97 = load i32, ptr @nempty, align 4, !tbaa !9
  %98 = sub nsw i32 %96, %97
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %98)
  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, !7, 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, !7, 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, i8, 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
declare dso_local void @createevent(double noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; 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, 10
  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
  store i32 %47, ptr @nempty, align 4, !tbaa !9
  %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 i8 99, ptr %51, align 8, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %50, i64 24
  store ptr null, ptr %52, align 8, !tbaa !24
  tail call void @createevent(double noundef 0.000000e+00, ptr noundef null, ptr noundef null, i32 noundef 100)
  %53 = load i32, ptr @totalevents, align 4, !tbaa !9
  %54 = load i32, ptr @nempty, align 4, !tbaa !9
  %55 = sub nsw i32 %53, %54
  %56 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %55)
  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, !7, 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, !7, 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