; LLVM IR from jingweizhanghuai/Morn :: src/util/morn_time.ll (mTimerBegin)

; 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.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleTimer = type { ptr }
%struct.MList = type { i32, ptr }

@morn_timer_list = external dso_local thread_local global ptr, align 8

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

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1

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

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare ptr @mMornObject(ptr noundef, i32 noundef) #2

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

declare void @mListRelease(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

; Function Attrs: nounwind uwtable
define dso_local void @_mTimerBegin(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 16, ptr %3, align 4, !tbaa !9
  %11 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %52

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %15 = call ptr @mMornObject(ptr noundef null, i32 noundef -1)
  %16 = call ptr @GetHandle(ptr noundef %15, i32 noundef 8, i32 noundef -1998649926, ptr noundef @endTimer)
  store ptr %16, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.MHandle, ptr %17, i32 0, i32 3
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  store ptr %19, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.HandleTimer, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %28

24:                                               ; preds = %14
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.HandleTimer, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  call void @mListRelease(ptr noundef %27)
  br label %28

28:                                               ; preds = %24, %14
  %29 = call ptr @ListCreate(i32 noundef -1, ptr noundef null)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.HandleTimer, ptr %30, i32 0, i32 0
  store ptr %29, ptr %31, align 8, !tbaa !13
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.HandleTimer, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  store ptr %34, ptr %35, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.MHandle, ptr %36, i32 0, i32 1
  store volatile i32 1, ptr %37, align 4, !tbaa !15
  %38 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = load i32, ptr %3, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  %42 = call ptr @mListWrite(ptr noundef %39, i32 noundef 0, ptr noundef null, i32 noundef %41)
  %43 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MList, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = getelementptr inbounds ptr, ptr %46, i64 0
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = load i32, ptr %3, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %48, i64 %50
  store i8 0, ptr %51, align 1, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %52

52:                                               ; preds = %28, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 -1, ptr %6, align 4, !tbaa !9
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %89

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %57 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MList, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !19
  %61 = sub nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %84, %56
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 2, ptr %8, align 4
  br label %87

66:                                               ; preds = %62
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MList, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  %79 = call i32 @strcmp(ptr noundef %67, ptr noundef %78) #8
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %66
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %6, align 4, !tbaa !9
  store i32 2, ptr %8, align 4
  br label %87

83:                                               ; preds = %66
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = add nsw i32 %85, -1
  store i32 %86, ptr %7, align 4, !tbaa !9
  br label %62, !llvm.loop !20

87:                                               ; preds = %81, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88, %55
  %90 = load i32, ptr %6, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %122

92:                                               ; preds = %89
  %93 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MList, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !19
  store i32 %96, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = call i64 @strlen(ptr noundef %97) #8
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %9, align 4, !tbaa !9
  %100 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i32, ptr %3, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = add nsw i32 %102, %103
  %105 = add nsw i32 %104, 1
  %106 = call ptr @mListWrite(ptr noundef %101, i32 noundef -1, ptr noundef null, i32 noundef %105)
  %107 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.MList, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = load i32, ptr %6, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %110, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = load i32, ptr %3, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %117, ptr align 1 %118, i64 %121, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %122

122:                                              ; preds = %92, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %123 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.MList, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !16
  %127 = load i32, ptr %6, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  store ptr %130, ptr %10, align 8, !tbaa !5
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = call i32 @gettimeofday(ptr noundef %131, ptr noundef null) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void
}

declare ptr @ListCreate(i32 noundef, ptr noundef) #2

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind willreturn memory(read) "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 nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !6, i64 16}
!12 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!13 = !{!14, !6, i64 0}
!14 = !{!"HandleTimer", !6, i64 0}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !6, i64 8}
!17 = !{!"MList", !10, i64 0, !6, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!17, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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"

@morn_timer_list = external dso_local thread_local local_unnamed_addr global ptr, align 8

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

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @mMornObject(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @endTimer(ptr noundef) #2

declare void @mListRelease(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #3

; Function Attrs: nounwind uwtable
define dso_local void @_mTimerBegin(ptr noundef readonly %0) local_unnamed_addr #2 {
  %2 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @morn_timer_list)
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %21

5:                                                ; preds = %1
  %6 = tail call ptr @mMornObject(ptr noundef null, i32 noundef -1) #6
  %7 = tail call ptr @GetHandle(ptr noundef %6, i32 noundef 8, i32 noundef -1998649926, ptr noundef nonnull @endTimer) #6
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %12, label %11

11:                                               ; preds = %5
  tail call void @mListRelease(ptr noundef nonnull %10) #6
  br label %12

12:                                               ; preds = %11, %5
  %13 = tail call ptr @ListCreate(i32 noundef -1, ptr noundef null) #6
  store ptr %13, ptr %9, align 8, !tbaa !12
  store ptr %13, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 4
  store volatile i32 1, ptr %14, align 4, !tbaa !14
  %15 = tail call ptr @mListWrite(ptr noundef %13, i32 noundef 0, ptr noundef null, i32 noundef 17) #6
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !15
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  store i8 0, ptr %20, align 1, !tbaa !17
  br label %21

21:                                               ; preds = %12, %1
  %22 = phi ptr [ %16, %12 ], [ %3, %1 ]
  %23 = icmp eq ptr %0, null
  br i1 %23, label %.thread, label %24

24:                                               ; preds = %21
  %25 = load i32, ptr %22, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %22, i64 8
  %27 = zext i32 %25 to i64
  br label %28

28:                                               ; preds = %31, %24
  %indvars.iv = phi i64 [ %32, %31 ], [ %27, %24 ]
  %29 = trunc nuw i64 %indvars.iv to i32
  %30 = icmp sgt i32 %29, 1
  br i1 %30, label %31, label %39

31:                                               ; preds = %28
  %32 = add nsw i64 %indvars.iv, -1
  %33 = load ptr, ptr %26, align 8, !tbaa !15
  %34 = getelementptr inbounds ptr, ptr %33, i64 %32
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %0, ptr noundef nonnull dereferenceable(1) %36) #7
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %.thread.loopexit, label %28, !llvm.loop !19

39:                                               ; preds = %28
  %40 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #7
  %41 = trunc i64 %40 to i32
  %42 = add nsw i32 %41, 17
  %43 = tail call ptr @mListWrite(ptr noundef nonnull %22, i32 noundef -1, ptr noundef null, i32 noundef %42) #6
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = sext i32 %25 to i64
  %48 = getelementptr inbounds ptr, ptr %46, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %51 = shl i64 %40, 32
  %sext = add i64 %51, 4294967296
  %52 = ashr exact i64 %sext, 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %50, ptr nonnull align 1 %0, i64 %52, i1 false)
  br label %.thread

.thread.loopexit:                                 ; preds = %31
  %53 = trunc i64 %32 to i32
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %21, %39
  %54 = phi ptr [ %44, %39 ], [ %22, %21 ], [ %22, %.thread.loopexit ]
  %.2 = phi i32 [ %25, %39 ], [ 0, %21 ], [ %53, %.thread.loopexit ]
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = sext i32 %.2 to i64
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = tail call i32 @gettimeofday(ptr noundef %59, ptr noundef null) #6
  ret void
}

declare ptr @ListCreate(i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @mListWrite(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !6, i64 16}
!10 = !{!"MHandle", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"HandleTimer", !6, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!16, !6, i64 8}
!16 = !{!"MList", !11, i64 0, !6, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!16, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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