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

; 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.BufferedStreamingGrid = type { %class.StreamingGrid, i8, ptr, i32, i32, ptr }
%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.8 = external hidden unnamed_addr constant [61 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: mustprogress uwtable
define dso_local void @_ZN21BufferedStreamingGrid5resetEbi(ptr noundef nonnull align 8 dereferenceable(160) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  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 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %12 = trunc i8 %11 to i1
  %13 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 1
  %14 = zext i1 %12 to i8
  store i8 %14, ptr %13, align 8, !tbaa !15
  %15 = load i32, ptr %6, align 4, !tbaa !11
  %16 = load ptr, ptr %10, align 8, !tbaa !21
  %17 = getelementptr inbounds ptr, ptr %16, i64 3
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(160) %10)
  %20 = icmp slt i32 %15, %19
  br i1 %20, label %21, label %23

21:                                               ; preds = %3
  %22 = load i32, ptr %6, align 4, !tbaa !11
  br label %28

23:                                               ; preds = %3
  %24 = load ptr, ptr %10, align 8, !tbaa !21
  %25 = getelementptr inbounds ptr, ptr %24, i64 3
  %26 = load ptr, ptr %25, align 8
  %27 = call noundef i32 %26(ptr noundef nonnull align 8 dereferenceable(160) %10)
  br label %28

28:                                               ; preds = %23, %21
  %29 = phi i32 [ %22, %21 ], [ %27, %23 ]
  %30 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 4
  store i32 %29, ptr %30, align 4, !tbaa !23
  %31 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !24
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %38

34:                                               ; preds = %28
  %35 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  call void @free(ptr noundef %36) #6
  %37 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  store ptr null, ptr %37, align 8, !tbaa !24
  br label %38

38:                                               ; preds = %34, %28
  %39 = load ptr, ptr %10, align 8, !tbaa !21
  %40 = getelementptr inbounds ptr, ptr %39, i64 4
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef i32 %41(ptr noundef nonnull align 8 dereferenceable(160) %10)
  %43 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 4
  %44 = load i32, ptr %43, align 4, !tbaa !23
  %45 = mul nsw i32 %42, %44
  %46 = sext i32 %45 to i64
  %47 = call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %46)
  %48 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  store ptr %47, ptr %48, align 8, !tbaa !24
  %49 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !24
  %51 = icmp ne ptr %50, null
  br i1 %51, label %55, label %52

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

55:                                               ; preds = %38
  %56 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  %58 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %59 = trunc i8 %58 to i1
  %60 = load ptr, ptr %57, align 8, !tbaa !21
  %61 = getelementptr inbounds ptr, ptr %60, i64 7
  %62 = load ptr, ptr %61, align 8
  call void %62(ptr noundef nonnull align 8 dereferenceable(128) %57, i1 noundef zeroext %59, i32 noundef 1)
  %63 = load i8, ptr %5, align 1, !tbaa !9, !range !13, !noundef !14
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %105

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

66:                                               ; preds = %101, %65
  %67 = load i32, ptr %7, align 4, !tbaa !11
  %68 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 4
  %69 = load i32, ptr %68, align 4, !tbaa !23
  %70 = icmp slt i32 %67, %69
  br i1 %70, label %72, label %71

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

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %73 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !25
  %75 = load i32, ptr %7, align 4, !tbaa !11
  %76 = load ptr, ptr %74, align 8, !tbaa !21
  %77 = getelementptr inbounds ptr, ptr %76, i64 5
  %78 = load ptr, ptr %77, align 8
  %79 = call noundef ptr %78(ptr noundef nonnull align 8 dereferenceable(128) %74, i32 noundef %75)
  store ptr %79, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !24
  %82 = load i32, ptr %7, align 4, !tbaa !11
  %83 = load ptr, ptr %10, align 8, !tbaa !21
  %84 = getelementptr inbounds ptr, ptr %83, i64 4
  %85 = load ptr, ptr %84, align 8
  %86 = call noundef i32 %85(ptr noundef nonnull align 8 dereferenceable(160) %10)
  %87 = mul nsw i32 %82, %86
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %81, i64 %88
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !21
  %92 = getelementptr inbounds ptr, ptr %91, i64 4
  %93 = load ptr, ptr %92, align 8
  %94 = call noundef i32 %93(ptr noundef nonnull align 8 dereferenceable(160) %10)
  %95 = sext i32 %94 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %89, ptr align 1 %90, i64 %95, i1 false)
  %96 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = load ptr, ptr %97, align 8, !tbaa !21
  %99 = getelementptr inbounds ptr, ptr %98, i64 6
  %100 = load ptr, ptr %99, align 8
  call void %100(ptr noundef nonnull align 8 dereferenceable(128) %97)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %101

101:                                              ; preds = %72
  %102 = load i32, ptr %7, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %7, align 4, !tbaa !11
  br label %66, !llvm.loop !26

104:                                              ; preds = %71
  br label %105

105:                                              ; preds = %104, %55
  %106 = getelementptr inbounds %class.BufferedStreamingGrid, ptr %10, i32 0, i32 3
  store i32 0, ptr %106, align 8, !tbaa !28
  ret void
}

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

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

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

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 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 128}
!16 = !{!"_ZTS21BufferedStreamingGrid", !17, i64 0, !10, i64 128, !6, i64 136, !12, i64 144, !12, i64 148, !6, i64 152}
!17 = !{!"_ZTS13StreamingGrid", !18, i64 0}
!18 = !{!"_ZTS8IOClient", !19, i64 8, !6, i64 120}
!19 = !{!"_ZTSN5boost21recursive_timed_mutexE", !7, i64 0, !7, i64 40, !10, i64 88, !20, i64 96, !12, i64 104}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!16, !12, i64 148}
!24 = !{!16, !6, i64 136}
!25 = !{!16, !6, i64 152}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!16, !12, i64 144}


; 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.8 = external hidden unnamed_addr constant [61 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: mustprogress uwtable
define dso_local void @_ZN21BufferedStreamingGrid5resetEbi(ptr noundef nonnull align 8 dereferenceable(160) %0, i1 noundef zeroext %1, i32 noundef %2) unnamed_addr #2 align 2 {
  %4 = zext i1 %1 to i8
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  store i8 %4, ptr %5, align 8, !tbaa !5
  %6 = load ptr, ptr %0, align 8, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8
  %9 = tail call noundef i32 %8(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %10 = icmp sgt i32 %9, %2
  br i1 %10, label %16, label %11

11:                                               ; preds = %3
  %12 = load ptr, ptr %0, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br label %16

16:                                               ; preds = %3, %11
  %17 = phi i32 [ %15, %11 ], [ %2, %3 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %17, ptr %18, align 4, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %22, label %21

21:                                               ; preds = %16
  tail call void @free(ptr noundef nonnull %20) #6
  store ptr null, ptr %19, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %21, %16
  %23 = load ptr, ptr %0, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %27 = load i32, ptr %18, align 4, !tbaa !18
  %28 = mul nsw i32 %27, %26
  %29 = sext i32 %28 to i64
  %30 = tail call noundef ptr @_Z12AllocPointerIhEPT_m(i64 noundef %29)
  store ptr %30, ptr %19, align 8, !tbaa !19
  %.not12 = icmp eq ptr %30, null
  br i1 %.not12, label %31, label %34

31:                                               ; preds = %22
  %32 = load ptr, ptr @stderr, align 8, !tbaa !20
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.8) #7
  tail call void @exit(i32 noundef 0) #8
  unreachable

34:                                               ; preds = %22
  %35 = getelementptr inbounds i8, ptr %0, i64 152
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %37, i64 56
  %39 = load ptr, ptr %38, align 8
  tail call void %39(ptr noundef nonnull align 8 dereferenceable(128) %36, i1 noundef zeroext %1, i32 noundef 1)
  %40 = load i32, ptr %18, align 4
  %41 = icmp sgt i32 %40, 0
  %or.cond = select i1 %1, i1 %41, i1 false
  br i1 %or.cond, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %34, %.lr.ph
  %.013 = phi i32 [ %64, %.lr.ph ], [ 0, %34 ]
  %42 = load ptr, ptr %35, align 8, !tbaa !21
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = getelementptr inbounds i8, ptr %43, i64 40
  %45 = load ptr, ptr %44, align 8
  %46 = tail call noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(128) %42, i32 noundef %.013)
  %47 = load ptr, ptr %19, align 8, !tbaa !19
  %48 = load ptr, ptr %0, align 8, !tbaa !16
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load ptr, ptr %49, align 8
  %51 = tail call noundef i32 %50(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %52 = mul nsw i32 %51, %.013
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %47, i64 %53
  %55 = load ptr, ptr %0, align 8, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %55, i64 32
  %57 = load ptr, ptr %56, align 8
  %58 = tail call noundef i32 %57(ptr noundef nonnull align 8 dereferenceable(160) %0)
  %59 = sext i32 %58 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %54, ptr align 1 %46, i64 %59, i1 false)
  %60 = load ptr, ptr %35, align 8, !tbaa !21
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %61, i64 48
  %63 = load ptr, ptr %62, align 8
  tail call void %63(ptr noundef nonnull align 8 dereferenceable(128) %60)
  %64 = add nuw nsw i32 %.013, 1
  %65 = load i32, ptr %18, align 4, !tbaa !18
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %.lr.ph, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph, %34
  %67 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 0, ptr %67, align 8, !tbaa !24
  ret void
}

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 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 = { 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 = { 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 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { 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 128}
!6 = !{!"_ZTS21BufferedStreamingGrid", !7, i64 0, !12, i64 128, !15, i64 136, !14, i64 144, !14, i64 148, !15, i64 152}
!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 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !11, i64 0}
!18 = !{!6, !14, i64 148}
!19 = !{!6, !15, i64 136}
!20 = !{!15, !15, i64 0}
!21 = !{!6, !15, i64 152}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !14, i64 144}


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