; LLVM IR from steps3d/graphics-book :: Code/Libs/SOIL (SOIL)

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

@result_string_pointer = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 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

declare ptr @stbi_failure_reason() #1

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

; 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 i32 @SOIL_direct_load_DDS_from_memory(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @query_cubemap_capability() #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SOIL_load_OGL_single_cubemap_from_memory(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %6
  store ptr @.str.8, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

24:                                               ; preds = %6
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = and i32 %25, 64
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %40

28:                                               ; preds = %24
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = call i32 @SOIL_direct_load_DDS_from_memory(ptr noundef %29, i64 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef 1)
  store i32 %34, ptr %19, align 4, !tbaa !9
  %35 = load i32, ptr %19, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %28
  %38 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %38, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

39:                                               ; preds = %28
  br label %40

40:                                               ; preds = %39, %24
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %94, %40
  %42 = load i32, ptr %18, align 4, !tbaa !9
  %43 = icmp slt i32 %42, 6
  br i1 %43, label %44, label %97

44:                                               ; preds = %41
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i32, ptr %18, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp ne i32 %50, 78
  br i1 %51, label %52, label %93

52:                                               ; preds = %44
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load i32, ptr %18, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i8, ptr %53, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = icmp ne i32 %58, 83
  br i1 %59, label %60, label %93

60:                                               ; preds = %52
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %61, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = icmp ne i32 %66, 87
  br i1 %67, label %68, label %93

68:                                               ; preds = %60
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp ne i32 %74, 69
  br i1 %75, label %76, label %93

76:                                               ; preds = %68
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %77, i64 %79
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp ne i32 %82, 85
  br i1 %83, label %84, label %93

84:                                               ; preds = %76
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %85, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = sext i8 %89 to i32
  %91 = icmp ne i32 %90, 68
  br i1 %91, label %92, label %93

92:                                               ; preds = %84
  store ptr @.str.6, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

93:                                               ; preds = %84, %76, %68, %60, %52, %44
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %18, align 4, !tbaa !9
  br label %41, !llvm.loop !12

97:                                               ; preds = %41
  %98 = call i32 @query_cubemap_capability()
  %99 = icmp ne i32 %98, 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %97
  store ptr @.str.3, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

101:                                              ; preds = %97
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = call ptr @SOIL_load_image_from_memory(ptr noundef %102, i32 noundef %103, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef %104)
  store ptr %105, ptr %14, align 8, !tbaa !5
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = icmp sge i32 %106, 1
  br i1 %107, label %108, label %113

108:                                              ; preds = %101
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = icmp sle i32 %109, 4
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %112, ptr %17, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %111, %108, %101
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = icmp eq ptr null, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %113
  %117 = call ptr @stbi_failure_reason()
  store ptr %117, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

118:                                              ; preds = %113
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = mul nsw i32 6, %120
  %122 = icmp ne i32 %119, %121
  br i1 %122, label %123, label %130

123:                                              ; preds = %118
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = mul nsw i32 6, %124
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = icmp ne i32 %125, %126
  br i1 %127, label %128, label %130

128:                                              ; preds = %123
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  call void @SOIL_free_image_data(ptr noundef %129)
  store ptr @.str.7, ptr @result_string_pointer, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

130:                                              ; preds = %123, %118
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = call i32 @SOIL_create_OGL_single_cubemap(ptr noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134, ptr noundef %135, i32 noundef %136, i32 noundef %137)
  store i32 %138, ptr %19, align 4, !tbaa !9
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  call void @SOIL_free_image_data(ptr noundef %139)
  %140 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %140, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %141

141:                                              ; preds = %130, %128, %116, %100, %92, %37, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %142 = load i32, ptr %7, align 4
  ret i32 %142
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

@result_string_pointer = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 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

declare ptr @stbi_failure_reason() local_unnamed_addr #1

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

; 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 i32 @SOIL_direct_load_DDS_from_memory(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @query_cubemap_capability() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SOIL_load_OGL_single_cubemap_from_memory(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %10 = icmp eq ptr %0, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %6
  store ptr @.str.8, ptr @result_string_pointer, align 8, !tbaa !5
  br label %55

12:                                               ; preds = %6
  %13 = and i32 %5, 64
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %17, label %14

14:                                               ; preds = %12
  %15 = sext i32 %1 to i64
  %16 = tail call i32 @SOIL_direct_load_DDS_from_memory(ptr noundef nonnull %0, i64 noundef %15, i32 noundef %4, i32 noundef %5, i32 noundef 1)
  %.not44 = icmp eq i32 %16, 0
  br i1 %.not44, label %17, label %55

17:                                               ; preds = %14, %12
  %18 = load i8, ptr %2, align 1, !tbaa !9
  switch i8 %18, label %19 [
    i8 78, label %20
    i8 83, label %20
    i8 87, label %20
    i8 69, label %20
    i8 85, label %20
    i8 68, label %20
  ]

19:                                               ; preds = %32, %29, %26, %23, %20, %17
  store ptr @.str.6, ptr @result_string_pointer, align 8, !tbaa !5
  br label %55

20:                                               ; preds = %17, %17, %17, %17, %17, %17
  %21 = getelementptr inbounds i8, ptr %2, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !9
  switch i8 %22, label %19 [
    i8 78, label %23
    i8 83, label %23
    i8 87, label %23
    i8 69, label %23
    i8 85, label %23
    i8 68, label %23
  ]

23:                                               ; preds = %20, %20, %20, %20, %20, %20
  %24 = getelementptr inbounds i8, ptr %2, i64 2
  %25 = load i8, ptr %24, align 1, !tbaa !9
  switch i8 %25, label %19 [
    i8 78, label %26
    i8 83, label %26
    i8 87, label %26
    i8 69, label %26
    i8 85, label %26
    i8 68, label %26
  ]

26:                                               ; preds = %23, %23, %23, %23, %23, %23
  %27 = getelementptr inbounds i8, ptr %2, i64 3
  %28 = load i8, ptr %27, align 1, !tbaa !9
  switch i8 %28, label %19 [
    i8 78, label %29
    i8 83, label %29
    i8 87, label %29
    i8 69, label %29
    i8 85, label %29
    i8 68, label %29
  ]

29:                                               ; preds = %26, %26, %26, %26, %26, %26
  %30 = getelementptr inbounds i8, ptr %2, i64 4
  %31 = load i8, ptr %30, align 1, !tbaa !9
  switch i8 %31, label %19 [
    i8 78, label %32
    i8 83, label %32
    i8 87, label %32
    i8 69, label %32
    i8 85, label %32
    i8 68, label %32
  ]

32:                                               ; preds = %29, %29, %29, %29, %29, %29
  %33 = getelementptr inbounds i8, ptr %2, i64 5
  %34 = load i8, ptr %33, align 1, !tbaa !9
  switch i8 %34, label %19 [
    i8 78, label %35
    i8 83, label %35
    i8 87, label %35
    i8 69, label %35
    i8 85, label %35
    i8 68, label %35
  ]

35:                                               ; preds = %32, %32, %32, %32, %32, %32
  %36 = tail call i32 @query_cubemap_capability()
  %.not45 = icmp eq i32 %36, 1
  br i1 %.not45, label %38, label %37

37:                                               ; preds = %35
  store ptr @.str.3, ptr @result_string_pointer, align 8, !tbaa !5
  br label %55

38:                                               ; preds = %35
  %39 = call ptr @SOIL_load_image_from_memory(ptr noundef nonnull %0, i32 noundef %1, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef %3)
  %40 = add i32 %3, -1
  %or.cond = icmp ult i32 %40, 4
  br i1 %or.cond, label %41, label %42

41:                                               ; preds = %38
  store i32 %3, ptr %9, align 4, !tbaa !10
  br label %42

42:                                               ; preds = %41, %38
  %43 = icmp eq ptr %39, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %42
  %45 = call ptr @stbi_failure_reason() #3
  store ptr %45, ptr @result_string_pointer, align 8, !tbaa !5
  br label %55

46:                                               ; preds = %42
  %47 = load i32, ptr %7, align 4, !tbaa !10
  %48 = load i32, ptr %8, align 4, !tbaa !10
  %49 = mul nsw i32 %48, 6
  %.not46 = icmp eq i32 %47, %49
  %50 = mul nsw i32 %47, 6
  %.not47 = icmp eq i32 %50, %48
  %or.cond54 = select i1 %.not46, i1 true, i1 %.not47
  br i1 %or.cond54, label %52, label %51

51:                                               ; preds = %46
  call void @SOIL_free_image_data(ptr noundef nonnull %39)
  store ptr @.str.7, ptr @result_string_pointer, align 8, !tbaa !5
  br label %55

52:                                               ; preds = %46
  %53 = load i32, ptr %9, align 4, !tbaa !10
  %54 = call i32 @SOIL_create_OGL_single_cubemap(ptr noundef nonnull %39, i32 noundef %47, i32 noundef %48, i32 noundef %53, ptr noundef nonnull %2, i32 noundef %4, i32 noundef %5)
  call void @SOIL_free_image_data(ptr noundef nonnull %39)
  br label %55

55:                                               ; preds = %14, %52, %51, %44, %37, %19, %11
  %.037 = phi i32 [ 0, %11 ], [ 0, %19 ], [ 0, %37 ], [ 0, %44 ], [ 0, %51 ], [ %54, %52 ], [ %16, %14 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  ret i32 %.037
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass