; LLVM IR from mkazhdan/DMG :: Util/GridStream.ll (ZN14FileBackedGrid5resetEbi)

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

%class.FileBackedGrid = type <{ %class.StreamingGrid, i64, i64, ptr, ptr, i32, i32, i32, i32, i8, [7 x i8] }>
%class.StreamingGrid = type { %class.IOClient }
%class.IOClient = type { ptr, %"class.boost::recursive_timed_mutex", ptr }
%"class.boost::recursive_timed_mutex" = type <{ %union.pthread_mutex_t, %union.pthread_cond_t, i8, [7 x i8], i64, i32, [4 x i8] }>
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }

@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [45 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FileBackedGrid10_writeNextEv(ptr noundef nonnull align 8 dereferenceable(177)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FileBackedGrid5resetEbi(ptr noundef nonnull align 8 dereferenceable(177) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  %9 = zext i1 %1 to i8
  store i8 %9, ptr %5, align 1, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !11
  %10 = load ptr, ptr %4, align 8
  %11 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 9
  %12 = load i8, ptr %11, align 8, !tbaa !13, !range !20, !noundef !21
  %13 = trunc i8 %12 to i1
  br i1 %13, label %26, label %14

14:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %15

15:                                               ; preds = %22, %14
  %16 = load i32, ptr %7, align 4, !tbaa !11
  %17 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  %18 = load i32, ptr %17, align 4, !tbaa !22
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %25

21:                                               ; preds = %15
  call void @_ZN14FileBackedGrid10_writeNextEv(ptr noundef nonnull align 8 dereferenceable(177) %10)
  br label %22

22:                                               ; preds = %21
  %23 = load i32, ptr %7, align 4, !tbaa !11
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %7, align 4, !tbaa !11
  br label %15, !llvm.loop !23

25:                                               ; preds = %20
  br label %26

26:                                               ; preds = %25, %3
  %27 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !25
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %34

30:                                               ; preds = %26
  %31 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !25
  call void @free(ptr noundef %32) #6
  %33 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 4
  store ptr null, ptr %33, align 8, !tbaa !25
  br label %34

34:                                               ; preds = %30, %26
  %35 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !26
  %37 = call noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef %36, i64 noundef 0)
  %38 = load i8, ptr %5, align 1, !tbaa !9, !range !20, !noundef !21
  %39 = trunc i8 %38 to i1
  %40 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 9
  %41 = zext i1 %39 to i8
  store i8 %41, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %6, align 4, !tbaa !11
  %43 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  store i32 %42, ptr %43, align 4, !tbaa !22
  %44 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 5
  %47 = load i32, ptr %46, align 8, !tbaa !27
  %48 = icmp sgt i32 %45, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %34
  %50 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 5
  %51 = load i32, ptr %50, align 8, !tbaa !27
  %52 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  store i32 %51, ptr %52, align 4, !tbaa !22
  br label %53

53:                                               ; preds = %49, %34
  %54 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 6
  %55 = load i32, ptr %54, align 4, !tbaa !28
  %56 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  %57 = load i32, ptr %56, align 4, !tbaa !22
  %58 = mul nsw i32 %55, %57
  %59 = sext i32 %58 to i64
  %60 = call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %59)
  %61 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 4
  store ptr %60, ptr %61, align 8, !tbaa !25
  %62 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !25
  %64 = icmp ne ptr %63, null
  br i1 %64, label %68, label %65

65:                                               ; preds = %53
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.15) #6
  call void @exit(i32 noundef 0) #7
  unreachable

68:                                               ; preds = %53
  %69 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 9
  %70 = load i8, ptr %69, align 8, !tbaa !13, !range !20, !noundef !21
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %88

72:                                               ; preds = %68
  %73 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  %74 = load i32, ptr %73, align 4, !tbaa !22
  %75 = sub nsw i32 0, %74
  %76 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 7
  store i32 %75, ptr %76, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %84, %72
  %78 = load i32, ptr %8, align 4, !tbaa !11
  %79 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 8
  %80 = load i32, ptr %79, align 4, !tbaa !22
  %81 = icmp slt i32 %78, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %87

83:                                               ; preds = %77
  call void @_ZN14FileBackedGrid9_readNextEv(ptr noundef nonnull align 8 dereferenceable(177) %10)
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %8, align 4, !tbaa !11
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %8, align 4, !tbaa !11
  br label %77, !llvm.loop !30

87:                                               ; preds = %82
  br label %90

88:                                               ; preds = %68
  %89 = getelementptr inbounds %class.FileBackedGrid, ptr %10, i32 0, i32 7
  store i32 0, ptr %89, align 8, !tbaa !29
  br label %90

90:                                               ; preds = %88, %87
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FileBackedGrid9_readNextEv(ptr noundef nonnull align 8 dereferenceable(177)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 = { 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 #5 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 176}
!14 = !{!"_ZTS14FileBackedGrid", !15, i64 0, !19, i64 128, !19, i64 136, !6, i64 144, !6, i64 152, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !10, i64 176}
!15 = !{!"_ZTS13StreamingGrid", !16, i64 0}
!16 = !{!"_ZTS8IOClient", !17, i64 8, !6, i64 120}
!17 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !10, i64 88, !18, i64 96, !12, i64 104}
!18 = !{!"long", !7, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!14, !12, i64 172}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !6, i64 152}
!26 = !{!14, !6, i64 144}
!27 = !{!14, !12, i64 160}
!28 = !{!14, !12, i64 164}
!29 = !{!14, !12, i64 168}
!30 = distinct !{!30, !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FileBackedGrid10_writeNextEv(ptr noundef nonnull align 8 dereferenceable(177)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FileBackedGrid5resetEbi(ptr noundef nonnull align 8 dereferenceable(177) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #4 align 2 {
  %4 = zext i1 %1 to i8
  %5 = getelementptr inbounds i8, ptr %0, i64 176
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !17, !noundef !18
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %.loopexit10, label %.preheader

.preheader:                                       ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 172
  %9 = load i32, ptr %8, align 4, !tbaa !19
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %.loopexit10

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.0611 = phi i32 [ %11, %.lr.ph ], [ 0, %.preheader ]
  tail call void @_ZN14FileBackedGrid10_writeNextEv(ptr noundef nonnull align 8 dereferenceable(177) %0)
  %11 = add nuw nsw i32 %.0611, 1
  %12 = load i32, ptr %8, align 4, !tbaa !19
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %.lr.ph, label %.loopexit10, !llvm.loop !20

.loopexit10:                                      ; preds = %.lr.ph, %.preheader, %3
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  %15 = load ptr, ptr %14, align 8, !tbaa !22
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %17, label %16

16:                                               ; preds = %.loopexit10
  tail call void @free(ptr noundef nonnull %15) #7
  store ptr null, ptr %14, align 8, !tbaa !22
  br label %17

17:                                               ; preds = %16, %.loopexit10
  %18 = getelementptr inbounds i8, ptr %0, i64 144
  %19 = load ptr, ptr %18, align 8, !tbaa !23
  %20 = tail call noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef %19, i64 noundef 0)
  store i8 %4, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 172
  %22 = getelementptr inbounds i8, ptr %0, i64 160
  %23 = load i32, ptr %22, align 8, !tbaa !24
  %spec.store.select = tail call i32 @llvm.smin.i32(i32 %23, i32 %2)
  store i32 %spec.store.select, ptr %21, align 4
  %24 = getelementptr inbounds i8, ptr %0, i64 164
  %25 = load i32, ptr %24, align 4, !tbaa !25
  %26 = mul nsw i32 %25, %spec.store.select
  %27 = sext i32 %26 to i64
  %28 = tail call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %27)
  store ptr %28, ptr %14, align 8, !tbaa !22
  %.not9 = icmp eq ptr %28, null
  br i1 %.not9, label %29, label %32

29:                                               ; preds = %17
  %30 = load ptr, ptr @stderr, align 8, !tbaa !26
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.15) #8
  tail call void @exit(i32 noundef 0) #9
  unreachable

32:                                               ; preds = %17
  %33 = load i8, ptr %5, align 8, !tbaa !5, !range !17, !noundef !18
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %43

35:                                               ; preds = %32
  %36 = load i32, ptr %21, align 4, !tbaa !19
  %37 = sub nsw i32 0, %36
  %38 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 %37, ptr %38, align 8, !tbaa !27
  %39 = icmp sgt i32 %36, 0
  br i1 %39, label %.lr.ph13, label %.loopexit

.lr.ph13:                                         ; preds = %35, %.lr.ph13
  %.012 = phi i32 [ %40, %.lr.ph13 ], [ 0, %35 ]
  tail call void @_ZN14FileBackedGrid9_readNextEv(ptr noundef nonnull align 8 dereferenceable(177) %0)
  %40 = add nuw nsw i32 %.012, 1
  %41 = load i32, ptr %21, align 4, !tbaa !19
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph13, label %.loopexit, !llvm.loop !28

43:                                               ; preds = %32
  %44 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 0, ptr %44, align 8, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph13, %35, %43
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14SeekFileHandleP11_FileHandlex(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14FileBackedGrid9_readNextEv(ptr noundef nonnull align 8 dereferenceable(177)) local_unnamed_addr #4 align 2

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

attributes #0 = { 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 #1 = { mustprogress nounwind willreturn allockind("free") 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 #2 = { 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 #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 = { 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 #5 = { inlinehint 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn 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, !12, i64 176}
!6 = !{!"_ZTS14FileBackedGrid", !7, i64 0, !16, i64 128, !16, i64 136, !15, i64 144, !15, i64 152, !14, i64 160, !14, i64 164, !14, i64 168, !14, i64 172, !12, i64 176}
!7 = !{!"_ZTS13StreamingGrid", !8, i64 0}
!8 = !{!"_ZTS8IOClient", !9, i64 8, !15, i64 120}
!9 = !{!"_ZTSN5boost21recursive_timed_mutexE", !10, i64 0, !10, i64 40, !12, i64 88, !13, i64 96, !14, i64 104}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long long", !10, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !14, i64 172}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !15, i64 152}
!23 = !{!6, !15, i64 144}
!24 = !{!6, !14, i64 160}
!25 = !{!6, !14, i64 164}
!26 = !{!15, !15, i64 0}
!27 = !{!6, !14, i64 168}
!28 = distinct !{!28, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass