; LLVM IR from jingweizhanghuai/Morn :: example (coroutine)

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

@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@main.Info = external hidden global ptr, align 8
@__const.main.Key = external hidden unnamed_addr constant [2 x ptr], align 16
@main.Info.3 = external hidden global ptr, align 8
@__const.main.Key.4 = external hidden unnamed_addr constant [2 x ptr], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @test1() #0

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #3

declare ptr @m_CoroutineInfo(ptr noundef, ptr noundef, ptr noundef) #2

declare void @m_Coroutine(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @test2() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [2 x ptr], align 16
  %4 = alloca [2 x ptr], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %5

5:                                                ; preds = %46, %0
  %6 = load i32, ptr %2, align 4, !tbaa !5
  %7 = icmp slt i32 %6, 8
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %49

9:                                                ; preds = %5
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
  br label %12

12:                                               ; preds = %9
  br label %13

13:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.Key, i64 16, i1 false)
  %14 = load ptr, ptr @main.Info, align 8, !tbaa !9
  %15 = icmp eq ptr %14, null
  br i1 %15, label %21, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 0
  %18 = load ptr, ptr @main.Info, align 8, !tbaa !9
  %19 = call i32 @memcmp(ptr noundef %17, ptr noundef %18, i64 noundef 16) #6
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %16, %13
  %22 = call ptr @m_CoroutineInfo(ptr noundef @test1, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef inttoptr (i64 -1 to ptr))
  store ptr %22, ptr @main.Info, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %21, %16
  %24 = load ptr, ptr @main.Info, align 8, !tbaa !9
  call void @m_Coroutine(ptr noundef %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  br label %25

25:                                               ; preds = %23
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.Key.4, i64 16, i1 false)
  %31 = load ptr, ptr @main.Info.3, align 8, !tbaa !9
  %32 = icmp eq ptr %31, null
  br i1 %32, label %38, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds [2 x ptr], ptr %4, i64 0, i64 0
  %35 = load ptr, ptr @main.Info.3, align 8, !tbaa !9
  %36 = call i32 @memcmp(ptr noundef %34, ptr noundef %35, i64 noundef 16) #6
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %33, %30
  %39 = call ptr @m_CoroutineInfo(ptr noundef @test2, ptr noundef inttoptr (i64 -1 to ptr), ptr noundef inttoptr (i64 -1 to ptr))
  store ptr %39, ptr @main.Info.3, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %38, %33
  %41 = load ptr, ptr @main.Info.3, align 8, !tbaa !9
  call void @m_Coroutine(ptr noundef %41)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  br label %42

42:                                               ; preds = %40
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %2, align 4, !tbaa !5
  br label %5, !llvm.loop !11

49:                                               ; preds = %8
  ret i32 0
}

; 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) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"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"

@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@main.Info = external hidden local_unnamed_addr global ptr, align 8
@__const.main.Key = external hidden unnamed_addr constant [2 x ptr], align 16
@main.Info.3 = external hidden local_unnamed_addr global ptr, align 8
@__const.main.Key.4 = external hidden unnamed_addr constant [2 x ptr], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @test1() #0

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

declare ptr @m_CoroutineInfo(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @m_Coroutine(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @test2() #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 0)
  %2 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %3 = icmp eq ptr %2, null
  br i1 %3, label %5, label %4

4:                                                ; preds = %0
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %2, i64 16)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %7, label %5

5:                                                ; preds = %4, %0
  %6 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %6, ptr @main.Info, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %5, %4
  %8 = phi ptr [ %6, %5 ], [ %2, %4 ]
  tail call void @m_Coroutine(ptr noundef %8) #4
  %9 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  %bcmp5 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %9, i64 16)
  %.not6 = icmp eq i32 %bcmp5, 0
  br i1 %.not6, label %14, label %12

12:                                               ; preds = %11, %7
  %13 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %13, ptr @main.Info.3, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %12, %11
  %15 = phi ptr [ %13, %12 ], [ %9, %11 ]
  tail call void @m_Coroutine(ptr noundef %15) #4
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 1)
  %17 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  %bcmp.1 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %17, i64 16)
  %.not.1 = icmp eq i32 %bcmp.1, 0
  br i1 %.not.1, label %22, label %20

20:                                               ; preds = %19, %14
  %21 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %21, ptr @main.Info, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %20, %19
  %23 = phi ptr [ %21, %20 ], [ %17, %19 ]
  tail call void @m_Coroutine(ptr noundef %23) #4
  %24 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  %bcmp5.1 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %24, i64 16)
  %.not6.1 = icmp eq i32 %bcmp5.1, 0
  br i1 %.not6.1, label %29, label %27

27:                                               ; preds = %26, %22
  %28 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %28, ptr @main.Info.3, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %27, %26
  %30 = phi ptr [ %28, %27 ], [ %24, %26 ]
  tail call void @m_Coroutine(ptr noundef %30) #4
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 2)
  %32 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  %bcmp.2 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %32, i64 16)
  %.not.2 = icmp eq i32 %bcmp.2, 0
  br i1 %.not.2, label %37, label %35

35:                                               ; preds = %34, %29
  %36 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %36, ptr @main.Info, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %35, %34
  %38 = phi ptr [ %36, %35 ], [ %32, %34 ]
  tail call void @m_Coroutine(ptr noundef %38) #4
  %39 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  %bcmp5.2 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %39, i64 16)
  %.not6.2 = icmp eq i32 %bcmp5.2, 0
  br i1 %.not6.2, label %44, label %42

42:                                               ; preds = %41, %37
  %43 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %43, ptr @main.Info.3, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %42, %41
  %45 = phi ptr [ %43, %42 ], [ %39, %41 ]
  tail call void @m_Coroutine(ptr noundef %45) #4
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 3)
  %47 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  %bcmp.3 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %47, i64 16)
  %.not.3 = icmp eq i32 %bcmp.3, 0
  br i1 %.not.3, label %52, label %50

50:                                               ; preds = %49, %44
  %51 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %51, ptr @main.Info, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %50, %49
  %53 = phi ptr [ %51, %50 ], [ %47, %49 ]
  tail call void @m_Coroutine(ptr noundef %53) #4
  %54 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  %bcmp5.3 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %54, i64 16)
  %.not6.3 = icmp eq i32 %bcmp5.3, 0
  br i1 %.not6.3, label %59, label %57

57:                                               ; preds = %56, %52
  %58 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %58, ptr @main.Info.3, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %57, %56
  %60 = phi ptr [ %58, %57 ], [ %54, %56 ]
  tail call void @m_Coroutine(ptr noundef %60) #4
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 4)
  %62 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %63 = icmp eq ptr %62, null
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  %bcmp.4 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %62, i64 16)
  %.not.4 = icmp eq i32 %bcmp.4, 0
  br i1 %.not.4, label %67, label %65

65:                                               ; preds = %64, %59
  %66 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %66, ptr @main.Info, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %65, %64
  %68 = phi ptr [ %66, %65 ], [ %62, %64 ]
  tail call void @m_Coroutine(ptr noundef %68) #4
  %69 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %70 = icmp eq ptr %69, null
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  %bcmp5.4 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %69, i64 16)
  %.not6.4 = icmp eq i32 %bcmp5.4, 0
  br i1 %.not6.4, label %74, label %72

72:                                               ; preds = %71, %67
  %73 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %73, ptr @main.Info.3, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %72, %71
  %75 = phi ptr [ %73, %72 ], [ %69, %71 ]
  tail call void @m_Coroutine(ptr noundef %75) #4
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 5)
  %77 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %78 = icmp eq ptr %77, null
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  %bcmp.5 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %77, i64 16)
  %.not.5 = icmp eq i32 %bcmp.5, 0
  br i1 %.not.5, label %82, label %80

80:                                               ; preds = %79, %74
  %81 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %81, ptr @main.Info, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %80, %79
  %83 = phi ptr [ %81, %80 ], [ %77, %79 ]
  tail call void @m_Coroutine(ptr noundef %83) #4
  %84 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %85 = icmp eq ptr %84, null
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  %bcmp5.5 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %84, i64 16)
  %.not6.5 = icmp eq i32 %bcmp5.5, 0
  br i1 %.not6.5, label %89, label %87

87:                                               ; preds = %86, %82
  %88 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %88, ptr @main.Info.3, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %87, %86
  %90 = phi ptr [ %88, %87 ], [ %84, %86 ]
  tail call void @m_Coroutine(ptr noundef %90) #4
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 6)
  %92 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %93 = icmp eq ptr %92, null
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  %bcmp.6 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %92, i64 16)
  %.not.6 = icmp eq i32 %bcmp.6, 0
  br i1 %.not.6, label %97, label %95

95:                                               ; preds = %94, %89
  %96 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %96, ptr @main.Info, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %95, %94
  %98 = phi ptr [ %96, %95 ], [ %92, %94 ]
  tail call void @m_Coroutine(ptr noundef %98) #4
  %99 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %100 = icmp eq ptr %99, null
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  %bcmp5.6 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %99, i64 16)
  %.not6.6 = icmp eq i32 %bcmp5.6, 0
  br i1 %.not6.6, label %104, label %102

102:                                              ; preds = %101, %97
  %103 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %103, ptr @main.Info.3, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %102, %101
  %105 = phi ptr [ %103, %102 ], [ %99, %101 ]
  tail call void @m_Coroutine(ptr noundef %105) #4
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 7)
  %107 = load ptr, ptr @main.Info, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %110, label %109

109:                                              ; preds = %104
  %bcmp.7 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key, ptr noundef nonnull dereferenceable(16) %107, i64 16)
  %.not.7 = icmp eq i32 %bcmp.7, 0
  br i1 %.not.7, label %112, label %110

110:                                              ; preds = %109, %104
  %111 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test1, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %111, ptr @main.Info, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %110, %109
  %113 = phi ptr [ %111, %110 ], [ %107, %109 ]
  tail call void @m_Coroutine(ptr noundef %113) #4
  %114 = load ptr, ptr @main.Info.3, align 8, !tbaa !5
  %115 = icmp eq ptr %114, null
  br i1 %115, label %117, label %116

116:                                              ; preds = %112
  %bcmp5.7 = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @__const.main.Key.4, ptr noundef nonnull dereferenceable(16) %114, i64 16)
  %.not6.7 = icmp eq i32 %bcmp5.7, 0
  br i1 %.not6.7, label %119, label %117

117:                                              ; preds = %116, %112
  %118 = tail call ptr @m_CoroutineInfo(ptr noundef nonnull @test2, ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull inttoptr (i64 -1 to ptr)) #4
  store ptr %118, ptr @main.Info.3, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %117, %116
  %120 = phi ptr [ %118, %117 ], [ %114, %116 ]
  tail call void @m_Coroutine(ptr noundef %120) #4
  ret i32 0
}

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { 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"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass