; LLVM IR from niessner/Matterport :: code/gaps/pkgs/png (pngwutil)

; 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.compression_state = type { ptr, i32, i32, i32, ptr }

@__const.png_write_iCCP.png_iCCP = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [50 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) #2

declare void @png_warning(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @png_write_iCCP(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca [5 x i8], align 1
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.compression_state, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 5, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.png_write_iCCP.png_iCCP, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  %17 = getelementptr inbounds %struct.compression_state, ptr %14, i32 0, i32 2
  store i32 0, ptr %17, align 4, !tbaa !11
  %18 = getelementptr inbounds %struct.compression_state, ptr %14, i32 0, i32 3
  store i32 0, ptr %18, align 8, !tbaa !13
  %19 = getelementptr inbounds %struct.compression_state, ptr %14, i32 0, i32 4
  store ptr null, ptr %19, align 8, !tbaa !14
  %20 = getelementptr inbounds %struct.compression_state, ptr %14, i32 0, i32 0
  store ptr null, ptr %20, align 8, !tbaa !15
  %21 = getelementptr inbounds %struct.compression_state, ptr %14, i32 0, i32 1
  store i32 0, ptr %21, align 8, !tbaa !16
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call i64 @png_check_keyword(ptr noundef %22, ptr noundef %23, ptr noundef %13)
  store i64 %24, ptr %12, align 8, !tbaa !17
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %5
  store i32 1, ptr %16, align 4
  br label %117

27:                                               ; preds = %5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_warning(ptr noundef %31, ptr noundef @.str.18)
  br label %32

32:                                               ; preds = %30, %27
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %35, %32
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = icmp sgt i32 %37, 3
  br i1 %38, label %39, label %61

39:                                               ; preds = %36
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !19
  %42 = zext i8 %41 to i32
  %43 = shl i32 %42, 24
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = load i8, ptr %45, align 1, !tbaa !19
  %47 = zext i8 %46 to i32
  %48 = shl i32 %47, 16
  %49 = or i32 %43, %48
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 2
  %52 = load i8, ptr %51, align 1, !tbaa !19
  %53 = zext i8 %52 to i32
  %54 = shl i32 %53, 8
  %55 = or i32 %49, %54
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 3
  %58 = load i8, ptr %57, align 1, !tbaa !19
  %59 = zext i8 %58 to i32
  %60 = or i32 %55, %59
  store i32 %60, ptr %15, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %39, %36
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_warning(ptr noundef %65, ptr noundef @.str.19)
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  call void @png_free(ptr noundef %66, ptr noundef %67)
  store i32 1, ptr %16, align 4
  br label %117

68:                                               ; preds = %61
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %72, label %76

72:                                               ; preds = %68
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_warning(ptr noundef %73, ptr noundef @.str.20)
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  call void @png_free(ptr noundef %74, ptr noundef %75)
  store i32 1, ptr %16, align 4
  br label %117

76:                                               ; preds = %68
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = icmp sgt i32 %77, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %76
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_warning(ptr noundef %81, ptr noundef @.str.21)
  %82 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %82, ptr %10, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %80, %76
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %83
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call i32 @png_text_compress(ptr noundef %87, ptr noundef %88, i64 noundef %90, i32 noundef 0, ptr noundef %14)
  store i32 %91, ptr %10, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %86, %83
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 0
  %95 = load i64, ptr %12, align 8, !tbaa !17
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = add i64 %95, %97
  %99 = add i64 %98, 2
  %100 = trunc i64 %99 to i32
  call void @png_write_chunk_start(ptr noundef %93, ptr noundef %94, i32 noundef %100)
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i64, ptr %12, align 8, !tbaa !17
  %103 = add i64 %102, 1
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  store i8 0, ptr %104, align 1, !tbaa !19
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load i64, ptr %12, align 8, !tbaa !17
  %108 = add i64 %107, 2
  call void @png_write_chunk_data(ptr noundef %105, ptr noundef %106, i64 noundef %108)
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %92
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_write_compressed_data_out(ptr noundef %112, ptr noundef %14)
  br label %113

113:                                              ; preds = %111, %92
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  call void @png_write_chunk_end(ptr noundef %114)
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  call void @png_free(ptr noundef %115, ptr noundef %116)
  store i32 0, ptr %16, align 4
  br label %117

117:                                              ; preds = %113, %72, %64, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 5, ptr %11) #4
  %118 = load i32, ptr %16, align 4
  switch i32 %118, label %120 [
    i32 0, label %119
    i32 1, label %119
  ]

119:                                              ; preds = %117, %117
  ret void

120:                                              ; preds = %117
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @png_check_keyword(ptr noundef, ptr noundef, ptr noundef) #2

declare void @png_free(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @png_text_compress(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @png_write_compressed_data_out(ptr noundef, ptr noundef) #2

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

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


; 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.compression_state = type { ptr, i32, i32, i32, ptr }

@__const.png_write_iCCP.png_iCCP = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_start(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_data(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @png_write_chunk_end(ptr noundef) local_unnamed_addr #2

declare void @png_warning(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @png_write_iCCP(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [5 x i8], align 1
  %7 = alloca ptr, align 8
  %8 = alloca %struct.compression_state, align 8
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %6, ptr noundef nonnull align 1 dereferenceable(5) @__const.png_write_iCCP.png_iCCP, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  %9 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %8, i8 0, i64 20, i1 false)
  %10 = call i64 @png_check_keyword(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %7)
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %57, label %12

12:                                               ; preds = %5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %14, label %13

13:                                               ; preds = %12
  call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.18) #5
  br label %14

14:                                               ; preds = %13, %12
  %15 = icmp eq ptr %3, null
  %spec.select = select i1 %15, i32 0, i32 %4
  %16 = icmp sgt i32 %spec.select, 3
  br i1 %16, label %17, label %.thread

17:                                               ; preds = %14
  %18 = load i8, ptr %3, align 1, !tbaa !11
  %19 = zext i8 %18 to i32
  %20 = shl nuw i32 %19, 24
  %21 = getelementptr inbounds i8, ptr %3, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !11
  %23 = zext i8 %22 to i32
  %24 = shl nuw nsw i32 %23, 16
  %25 = getelementptr inbounds i8, ptr %3, i64 2
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = zext i8 %26 to i32
  %28 = shl nuw nsw i32 %27, 8
  %29 = getelementptr inbounds i8, ptr %3, i64 3
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = zext i8 %30 to i32
  %32 = or disjoint i32 %24, %31
  %33 = or disjoint i32 %32, %28
  %34 = or disjoint i32 %33, %20
  %35 = icmp slt i32 %20, 0
  br i1 %35, label %36, label %.thread

36:                                               ; preds = %17
  call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.19) #5
  br label %.sink.split

.thread:                                          ; preds = %14, %17
  %.039 = phi i32 [ %34, %17 ], [ 0, %14 ]
  %37 = icmp slt i32 %spec.select, %.039
  br i1 %37, label %38, label %39

38:                                               ; preds = %.thread
  call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.20) #5
  br label %.sink.split

39:                                               ; preds = %.thread
  %40 = icmp ugt i32 %spec.select, %.039
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  call void @png_warning(ptr noundef %0, ptr noundef nonnull @.str.21) #5
  br label %42

42:                                               ; preds = %41, %39
  %.1 = phi i32 [ %.039, %41 ], [ %spec.select, %39 ]
  %.not36 = icmp eq i32 %.1, 0
  br i1 %.not36, label %46, label %43

43:                                               ; preds = %42
  %44 = zext nneg i32 %.1 to i64
  %45 = call i32 @png_text_compress(ptr noundef %0, ptr noundef %3, i64 noundef %44, i32 noundef 0, ptr noundef nonnull %8)
  br label %46

46:                                               ; preds = %43, %42
  %.2 = phi i32 [ %45, %43 ], [ 0, %42 ]
  %47 = trunc i64 %10 to i32
  %48 = add i32 %47, 2
  %49 = add i32 %48, %.2
  call void @png_write_chunk_start(ptr noundef %0, ptr noundef nonnull %6, i32 noundef %49)
  %50 = load ptr, ptr %7, align 8, !tbaa !12
  %51 = getelementptr i8, ptr %50, i64 %10
  %52 = getelementptr i8, ptr %51, i64 1
  store i8 0, ptr %52, align 1, !tbaa !11
  %53 = load ptr, ptr %7, align 8, !tbaa !12
  %54 = add i64 %10, 2
  call void @png_write_chunk_data(ptr noundef %0, ptr noundef %53, i64 noundef %54)
  %.not37 = icmp eq i32 %.2, 0
  br i1 %.not37, label %56, label %55

55:                                               ; preds = %46
  call void @png_write_compressed_data_out(ptr noundef %0, ptr noundef nonnull %8)
  br label %56

56:                                               ; preds = %55, %46
  call void @png_write_chunk_end(ptr noundef %0)
  br label %.sink.split

.sink.split:                                      ; preds = %36, %38, %56
  %.sink = load ptr, ptr %7, align 8, !tbaa !12
  call void @png_free(ptr noundef %0, ptr noundef %.sink) #5
  br label %57

57:                                               ; preds = %.sink.split, %5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i64 @png_check_keyword(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @png_free(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @png_text_compress(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @png_write_compressed_data_out(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !7, i64 24}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass