; LLVM IR from achilles288/robot-monitor-graphics :: src/base/bitmap_tiff.ll (ZN3rmg6Bitmap8loadTIFFEPKc)

; 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.rmg::Bitmap" = type { i16, i16, i8, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg6Bitmap8loadTIFFEPKc(ptr dead_on_unwind noalias writable sret(%"class.rmg::Bitmap") align 8 %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i16, align 2
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN3rmg6BitmapC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = invoke ptr @TIFFOpen(ptr noundef %15, ptr noundef @.str)
          to label %17 unwind label %24

17:                                               ; preds = %2
  store ptr %16, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %28, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
          to label %23 unwind label %24

23:                                               ; preds = %20
  store i1 true, ptr %5, align 1
  store i32 1, ptr %9, align 4
  br label %91

24:                                               ; preds = %20, %2
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %7, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %8, align 4
  br label %93

28:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #6
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef %29, i32 noundef 256, ptr noundef %10)
          to label %31 unwind label %64

31:                                               ; preds = %28
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef %32, i32 noundef 257, ptr noundef %11)
          to label %34 unwind label %64

34:                                               ; preds = %31
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef %35, i32 noundef 277, ptr noundef %12)
          to label %37 unwind label %64

37:                                               ; preds = %34
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = trunc i32 %38 to i16
  %40 = getelementptr inbounds %"class.rmg::Bitmap", ptr %0, i32 0, i32 0
  store i16 %39, ptr %40, align 8, !tbaa !11
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = trunc i32 %41 to i16
  %43 = getelementptr inbounds %"class.rmg::Bitmap", ptr %0, i32 0, i32 1
  store i16 %42, ptr %43, align 2, !tbaa !14
  %44 = load i16, ptr %12, align 2, !tbaa !15
  %45 = trunc i16 %44 to i8
  %46 = getelementptr inbounds %"class.rmg::Bitmap", ptr %0, i32 0, i32 2
  store i8 %45, ptr %46, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = mul i32 %47, %48
  %50 = load i16, ptr %12, align 2, !tbaa !15
  %51 = zext i16 %50 to i32
  %52 = mul i32 %49, %51
  %53 = zext i32 %52 to i64
  store i64 %53, ptr %13, align 8, !tbaa !17
  %54 = load i64, ptr %13, align 8, !tbaa !17
  %55 = call noalias ptr @malloc(i64 noundef %54) #7
  %56 = getelementptr inbounds %"class.rmg::Bitmap", ptr %0, i32 0, i32 3
  store ptr %55, ptr %56, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %79, %37
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = invoke i32 @TIFFNumberOfStrips(ptr noundef %59)
          to label %61 unwind label %68

61:                                               ; preds = %57
  %62 = icmp ult i32 %58, %60
  br i1 %62, label %72, label %63

63:                                               ; preds = %61
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %82

64:                                               ; preds = %34, %31, %28
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  br label %90

68:                                               ; preds = %72, %57
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %89

72:                                               ; preds = %61
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = getelementptr inbounds %"class.rmg::Bitmap", ptr %0, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = invoke i64 @TIFFReadEncodedStrip(ptr noundef %73, i32 noundef %74, ptr noundef %76, i64 noundef -1)
          to label %78 unwind label %68

78:                                               ; preds = %72
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = add i32 %80, 1
  store i32 %81, ptr %14, align 4, !tbaa !9
  br label %57, !llvm.loop !20

82:                                               ; preds = %63
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @TIFFClose(ptr noundef %83)
          to label %84 unwind label %85

84:                                               ; preds = %82
  store i1 true, ptr %5, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %91

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %7, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %8, align 4
  br label %89

89:                                               ; preds = %85, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %90

90:                                               ; preds = %89, %64
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %93

91:                                               ; preds = %84, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %92 = load i1, ptr %5, align 1
  br i1 %92, label %95, label %94

93:                                               ; preds = %90, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZN3rmg6BitmapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %96

94:                                               ; preds = %91
  call void @_ZN3rmg6BitmapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  br label %95

95:                                               ; preds = %94, %91
  ret void

96:                                               ; preds = %93
  %97 = load ptr, ptr %7, align 8
  %98 = load i32, ptr %8, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg6BitmapC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

declare ptr @TIFFOpen(ptr noundef, ptr noundef) #3

declare i32 @__gxx_personality_v0(...)

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

declare i32 @TIFFGetField(ptr noundef, i32 noundef, ...) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare i32 @TIFFNumberOfStrips(ptr noundef) #3

declare i64 @TIFFReadEncodedStrip(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #3

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

declare void @TIFFClose(ptr noundef) #3

; Function Attrs: nounwind
declare void @_ZN3rmg6BitmapD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 allocsize(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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN3rmg6BitmapE", !13, i64 0, !13, i64 2, !7, i64 4, !6, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !13, i64 2}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !7, i64 4}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!12, !6, i64 8}
!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"

%"class.rmg::Bitmap" = type { i16, i16, i8, ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg6Bitmap8loadTIFFEPKc(ptr dead_on_unwind noalias nonnull writable sret(%"class.rmg::Bitmap") align 8 %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i16, align 2
  tail call void @_ZN3rmg6BitmapC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  %6 = invoke ptr @TIFFOpen(ptr noundef %1, ptr noundef nonnull @.str)
          to label %7 unwind label %10

7:                                                ; preds = %2
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %8, label %12

8:                                                ; preds = %7
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %1)
  br label %52

10:                                               ; preds = %2
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %51

12:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #7
  %13 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef nonnull %6, i32 noundef 256, ptr noundef nonnull %3)
          to label %14 unwind label %38

14:                                               ; preds = %12
  %15 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef nonnull %6, i32 noundef 257, ptr noundef nonnull %4)
          to label %16 unwind label %38

16:                                               ; preds = %14
  %17 = invoke i32 (ptr, i32, ...) @TIFFGetField(ptr noundef nonnull %6, i32 noundef 277, ptr noundef nonnull %5)
          to label %18 unwind label %38

18:                                               ; preds = %16
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = trunc i32 %19 to i16
  store i16 %20, ptr %0, align 8, !tbaa !9
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = trunc i32 %21 to i16
  %23 = getelementptr inbounds i8, ptr %0, i64 2
  store i16 %22, ptr %23, align 2, !tbaa !13
  %24 = load i16, ptr %5, align 2, !tbaa !14
  %25 = trunc i16 %24 to i8
  %26 = getelementptr inbounds i8, ptr %0, i64 4
  store i8 %25, ptr %26, align 4, !tbaa !15
  %27 = mul i32 %21, %19
  %28 = zext i16 %24 to i32
  %29 = mul i32 %27, %28
  %30 = zext i32 %29 to i64
  %31 = call noalias ptr @malloc(i64 noundef %30) #8
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !16
  br label %33

33:                                               ; preds = %45, %18
  %.0 = phi i32 [ 0, %18 ], [ %46, %45 ]
  %34 = invoke i32 @TIFFNumberOfStrips(ptr noundef nonnull %6)
          to label %35 unwind label %40

35:                                               ; preds = %33
  %36 = icmp ult i32 %.0, %34
  br i1 %36, label %42, label %37

37:                                               ; preds = %35
  invoke void @TIFFClose(ptr noundef nonnull %6)
          to label %47 unwind label %48

38:                                               ; preds = %16, %14, %12
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %50

40:                                               ; preds = %42, %33
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %50

42:                                               ; preds = %35
  %43 = load ptr, ptr %32, align 8, !tbaa !16
  %44 = invoke i64 @TIFFReadEncodedStrip(ptr noundef nonnull %6, i32 noundef %.0, ptr noundef %43, i64 noundef -1)
          to label %45 unwind label %40

45:                                               ; preds = %42
  %46 = add nuw i32 %.0, 1
  br label %33, !llvm.loop !17

47:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %52

48:                                               ; preds = %37
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %50

50:                                               ; preds = %40, %48, %38
  %.pn.pn = phi { ptr, i32 } [ %39, %38 ], [ %41, %40 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %51

51:                                               ; preds = %50, %10
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %50 ], [ %11, %10 ]
  call void @_ZN3rmg6BitmapD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #7
  resume { ptr, i32 } %.pn.pn.pn

52:                                               ; preds = %8, %47
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg6BitmapC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

declare ptr @TIFFOpen(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

declare i32 @TIFFGetField(ptr noundef, i32 noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

declare i32 @TIFFNumberOfStrips(ptr noundef) local_unnamed_addr #3

declare i64 @TIFFReadEncodedStrip(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

declare void @TIFFClose(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3rmg6BitmapD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3rmg6BitmapE", !11, i64 0, !11, i64 2, !7, i64 4, !12, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 2}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !7, i64 4}
!16 = !{!10, !12, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass