; LLVM IR from cjmcv/hpc :: coroutine/libco/libco/src/co_hook_sys_call.ll (Z15co_set_env_listPPKcm)

; 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.stCoSysEnvArr_t = type { ptr, i64 }
%struct.stCoSysEnv_t = type { ptr, ptr }

@_ZL11g_co_sysenv = external hidden global %struct.stCoSysEnvArr_t, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15co_set_env_listPPKcm(ptr noundef %0, i64 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %9 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  br label %97

12:                                               ; preds = %2
  %13 = load i64, ptr %4, align 8, !tbaa !9
  %14 = mul i64 16, %13
  %15 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %14) #8
  store ptr %15, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %47, %12
  %17 = load i64, ptr %5, align 8, !tbaa !9
  %18 = load i64, ptr %4, align 8, !tbaa !9
  %19 = icmp ult i64 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  br label %50

21:                                               ; preds = %16
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = getelementptr inbounds ptr, ptr %22, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %46

27:                                               ; preds = %21
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %28, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 0
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %35, label %46

35:                                               ; preds = %27
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %36, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = call noalias ptr @strdup(ptr noundef %39) #9
  %41 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  %42 = load i64, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  %43 = add i64 %42, 1
  store i64 %43, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  %44 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %41, i64 %42
  %45 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %44, i32 0, i32 0
  store ptr %40, ptr %45, align 8, !tbaa !15
  br label %46

46:                                               ; preds = %35, %27, %21
  br label %47

47:                                               ; preds = %46
  %48 = load i64, ptr %5, align 8, !tbaa !9
  %49 = add i64 %48, 1
  store i64 %49, ptr %5, align 8, !tbaa !9
  br label %16, !llvm.loop !17

50:                                               ; preds = %20
  %51 = load i64, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  %52 = icmp ugt i64 %51, 1
  br i1 %52, label %53, label %97

53:                                               ; preds = %50
  %54 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  %55 = load i64, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  call void @qsort(ptr noundef %54, i64 noundef %55, i64 noundef 16, ptr noundef @_ZL14co_sysenv_compPKvS0_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %56 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  store ptr %56, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %57 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %57, i64 1
  store ptr %58, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %86, %53
  %60 = load i64, ptr %8, align 8, !tbaa !9
  %61 = load i64, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %89

64:                                               ; preds = %59
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = call i32 @strcmp(ptr noundef %67, ptr noundef %70) #10
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %83

73:                                               ; preds = %64
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %74, i32 1
  store ptr %75, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = icmp ne ptr %76, %77
  br i1 %78, label %79, label %82

79:                                               ; preds = %73
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 8 %80, i64 16, i1 false), !tbaa.struct !19
  br label %82

82:                                               ; preds = %79, %73
  br label %83

83:                                               ; preds = %82, %64
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %84, i32 1
  store ptr %85, ptr %7, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %83
  %87 = load i64, ptr %8, align 8, !tbaa !9
  %88 = add i64 %87, 1
  store i64 %88, ptr %8, align 8, !tbaa !9
  br label %59, !llvm.loop !20

89:                                               ; preds = %63
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !11
  %92 = ptrtoint ptr %90 to i64
  %93 = ptrtoint ptr %91 to i64
  %94 = sub i64 %92, %93
  %95 = sdiv exact i64 %94, 16
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr getelementptr inbounds (%struct.stCoSysEnvArr_t, ptr @_ZL11g_co_sysenv, i32 0, i32 1), align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %97

97:                                               ; preds = %89, %50, %11
  ret void
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #4

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14co_sysenv_compPKvS0_(ptr noundef, ptr noundef) #6

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { 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 #4 = { 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 = { "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 = { mustprogress 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 #7 = { 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 #8 = { nounwind allocsize(0,1) }
attributes #9 = { nounwind }
attributes #10 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS15stCoSysEnvArr_t", !6, i64 0, !10, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS12stCoSysEnv_t", !6, i64 0, !6, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!20 = distinct !{!20, !18}


; 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.stCoSysEnvArr_t = type { ptr, i64 }
%struct.stCoSysEnv_t = type { ptr, ptr }

@_ZL11g_co_sysenv = external hidden local_unnamed_addr global %struct.stCoSysEnvArr_t, align 8

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

; Function Attrs: mustprogress nofree uwtable
define dso_local void @_Z15co_set_env_listPPKcm(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %38

4:                                                ; preds = %2
  %5 = shl i64 %1, 4
  %6 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %5) #7
  store ptr %6, ptr @_ZL11g_co_sysenv, align 8, !tbaa !5
  %.promoted = load i64, ptr getelementptr inbounds (i8, ptr @_ZL11g_co_sysenv, i64 8), align 8, !tbaa !11
  %.not40 = icmp eq i64 %1, 0
  br i1 %.not40, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %18, %4
  %7 = phi i64 [ %.promoted, %4 ], [ %19, %18 ]
  %8 = icmp ugt i64 %7, 1
  br i1 %8, label %21, label %38

.lr.ph:                                           ; preds = %4, %18
  %.02231 = phi i64 [ %20, %18 ], [ 0, %4 ]
  %9 = phi i64 [ %19, %18 ], [ %.promoted, %4 ]
  %10 = getelementptr inbounds ptr, ptr %0, i64 %.02231
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %.not29 = icmp eq ptr %11, null
  br i1 %.not29, label %18, label %12

12:                                               ; preds = %.lr.ph
  %13 = load i8, ptr %11, align 1, !tbaa !13
  %.not30 = icmp eq i8 %13, 0
  br i1 %.not30, label %18, label %14

14:                                               ; preds = %12
  %15 = tail call noalias ptr @strdup(ptr noundef nonnull %11) #8
  %16 = add i64 %9, 1
  store i64 %16, ptr getelementptr inbounds (i8, ptr @_ZL11g_co_sysenv, i64 8), align 8, !tbaa !11
  %17 = getelementptr inbounds %struct.stCoSysEnv_t, ptr %6, i64 %9
  store ptr %15, ptr %17, align 8, !tbaa !14
  br label %18

18:                                               ; preds = %.lr.ph, %12, %14
  %19 = phi i64 [ %9, %.lr.ph ], [ %9, %12 ], [ %16, %14 ]
  %20 = add nuw i64 %.02231, 1
  %exitcond.not = icmp eq i64 %20, %1
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

21:                                               ; preds = %._crit_edge
  tail call void @qsort(ptr noundef %6, i64 noundef %7, i64 noundef 16, ptr noundef nonnull @_ZL14co_sysenv_compPKvS0_)
  %22 = load ptr, ptr @_ZL11g_co_sysenv, align 8, !tbaa !5
  %23 = load i64, ptr getelementptr inbounds (i8, ptr @_ZL11g_co_sysenv, i64 8), align 8, !tbaa !11
  %24 = icmp ugt i64 %23, 1
  br i1 %24, label %.lr.ph38, label %._crit_edge39

._crit_edge39:                                    ; preds = %36, %21
  %.021.lcssa = phi ptr [ %22, %21 ], [ %.1, %36 ]
  %25 = ptrtoint ptr %.021.lcssa to i64
  %26 = ptrtoint ptr %22 to i64
  %27 = sub i64 %25, %26
  %28 = ashr exact i64 %27, 4
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr getelementptr inbounds (i8, ptr @_ZL11g_co_sysenv, i64 8), align 8, !tbaa !11
  br label %38

.lr.ph38:                                         ; preds = %21, %36
  %.035 = phi i64 [ %37, %36 ], [ 1, %21 ]
  %.pn34 = phi ptr [ %.02036, %36 ], [ %22, %21 ]
  %.02133 = phi ptr [ %.1, %36 ], [ %22, %21 ]
  %.02036 = getelementptr inbounds i8, ptr %.pn34, i64 16
  %30 = load ptr, ptr %.02133, align 8, !tbaa !14
  %31 = load ptr, ptr %.02036, align 8, !tbaa !14
  %32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) %31) #9
  %.not27 = icmp eq i32 %32, 0
  br i1 %.not27, label %36, label %33

33:                                               ; preds = %.lr.ph38
  %34 = getelementptr inbounds i8, ptr %.02133, i64 16
  %.not28 = icmp eq ptr %.pn34, %.02133
  br i1 %.not28, label %36, label %35

35:                                               ; preds = %33
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %.02036, i64 16, i1 false), !tbaa.struct !18
  br label %36

36:                                               ; preds = %33, %35, %.lr.ph38
  %.1 = phi ptr [ %34, %35 ], [ %34, %33 ], [ %.02133, %.lr.ph38 ]
  %37 = add nuw i64 %.035, 1
  %exitcond41.not = icmp eq i64 %37, %23
  br i1 %exitcond41.not, label %._crit_edge39, label %.lr.ph38, !llvm.loop !19

38:                                               ; preds = %2, %._crit_edge39, %._crit_edge
  ret void
}

; 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 #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL14co_sysenv_compPKvS0_(ptr noundef, ptr noundef) #5

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree 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 #2 = { 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 #3 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, 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 #4 = { nofree "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 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 #6 = { 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 #7 = { nounwind allocsize(0,1) }
attributes #8 = { nounwind }
attributes #9 = { 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, !7, i64 0}
!6 = !{!"_ZTS15stCoSysEnvArr_t", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTS12stCoSysEnv_t", !7, i64 0, !7, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!19 = distinct !{!19, !17}


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