; LLVM IR from casensiom/fast-image-processing :: src (crop)

; 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.STextureTriangle = type { [3 x %struct.STextureVector], i32 }
%struct.STextureVector = type { i32, i32, float, float }
%struct.SImage = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.STextureTriangle, align 4
  %10 = alloca %struct.STextureTriangle, align 4
  %11 = alloca %struct.SImage, align 8
  %12 = alloca %struct.SImage, align 8
  %13 = alloca %struct.SImage, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.SImage, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 255, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 255, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 255, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 52, ptr %9) #4
  %18 = load i32, ptr %8, align 4, !tbaa !5
  %19 = load i32, ptr %7, align 4, !tbaa !5
  call void @set_triangle(ptr dead_on_unwind writable sret(%struct.STextureTriangle) align 4 %9, i32 noundef 0, i32 noundef 0, float noundef 5.000000e-01, float noundef 0.000000e+00, i32 noundef 0, i32 noundef %18, float noundef 0.000000e+00, float noundef 5.000000e-01, i32 noundef %19, i32 noundef 0, float noundef 1.000000e+00, float noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 52, ptr %10) #4
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = load i32, ptr %8, align 4, !tbaa !5
  call void @set_triangle(ptr dead_on_unwind writable sret(%struct.STextureTriangle) align 4 %10, i32 noundef %20, i32 noundef 0, float noundef 1.000000e+00, float noundef 5.000000e-01, i32 noundef 0, i32 noundef %21, float noundef 0.000000e+00, float noundef 5.000000e-01, i32 noundef %22, i32 noundef %23, float noundef 5.000000e-01, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @reset_image(ptr noundef %11)
  call void @reset_image(ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #4
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  call void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8 %13, i32 noundef %24, i32 noundef %25, i32 noundef 4)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %110, %2
  %27 = load i32, ptr %14, align 4, !tbaa !5
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %113

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %106, %31
  %33 = load i32, ptr %16, align 4, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %109

37:                                               ; preds = %32
  %38 = load i32, ptr %16, align 4, !tbaa !5
  %39 = urem i32 %38, 255
  %40 = load i32, ptr %14, align 4, !tbaa !5
  %41 = urem i32 %40, 255
  %42 = xor i32 %39, %41
  %43 = trunc i32 %42 to i8
  %44 = getelementptr inbounds %struct.SImage, ptr %12, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = load i32, ptr %16, align 4, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = mul i32 %47, %48
  %50 = add i32 %46, %49
  %51 = mul i32 %50, 4
  %52 = add i32 %51, 0
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %45, i64 %53
  store i8 %43, ptr %54, align 1, !tbaa !14
  %55 = load i32, ptr %16, align 4, !tbaa !5
  %56 = urem i32 %55, 255
  %57 = load i32, ptr %14, align 4, !tbaa !5
  %58 = urem i32 %57, 255
  %59 = xor i32 %56, %58
  %60 = trunc i32 %59 to i8
  %61 = getelementptr inbounds %struct.SImage, ptr %12, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !12
  %63 = load i32, ptr %16, align 4, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !5
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = mul i32 %64, %65
  %67 = add i32 %63, %66
  %68 = mul i32 %67, 4
  %69 = add i32 %68, 1
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %62, i64 %70
  store i8 %60, ptr %71, align 1, !tbaa !14
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = urem i32 %72, 255
  %74 = load i32, ptr %14, align 4, !tbaa !5
  %75 = urem i32 %74, 255
  %76 = xor i32 %73, %75
  %77 = trunc i32 %76 to i8
  %78 = getelementptr inbounds %struct.SImage, ptr %12, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !12
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = mul i32 %81, %82
  %84 = add i32 %80, %83
  %85 = mul i32 %84, 4
  %86 = add i32 %85, 2
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds i8, ptr %79, i64 %87
  store i8 %77, ptr %88, align 1, !tbaa !14
  %89 = load i32, ptr %16, align 4, !tbaa !5
  %90 = urem i32 %89, 255
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = urem i32 %91, 255
  %93 = xor i32 %90, %92
  %94 = trunc i32 %93 to i8
  %95 = getelementptr inbounds %struct.SImage, ptr %12, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !12
  %97 = load i32, ptr %16, align 4, !tbaa !5
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = mul i32 %98, %99
  %101 = add i32 %97, %100
  %102 = mul i32 %101, 4
  %103 = add i32 %102, 3
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %96, i64 %104
  store i8 %94, ptr %105, align 1, !tbaa !14
  br label %106

106:                                              ; preds = %37
  %107 = load i32, ptr %16, align 4, !tbaa !5
  %108 = add i32 %107, 1
  store i32 %108, ptr %16, align 4, !tbaa !5
  br label %32, !llvm.loop !15

109:                                              ; preds = %36
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !5
  br label %26, !llvm.loop !17

113:                                              ; preds = %30
  %114 = call i32 @save_image(ptr noundef @.str, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #4
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  call void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8 %17, i32 noundef %115, i32 noundef %116, i32 noundef 4)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %17, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  call void @render_textured_triangle(ptr noundef %9, ptr noundef %12, ptr noundef %11)
  call void @render_textured_triangle(ptr noundef %10, ptr noundef %12, ptr noundef %11)
  %117 = call i32 @save_image(ptr noundef @.str.1, ptr noundef %11)
  call void @release_image(ptr noundef %12)
  call void @release_image(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 52, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 52, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %118 = load i32, ptr %3, align 4
  ret i32 %118
}

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

declare void @set_triangle(ptr dead_on_unwind writable sret(%struct.STextureTriangle) align 4, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef, float noundef) #2

declare void @reset_image(ptr noundef) #2

declare void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8, i32 noundef, i32 noundef, i32 noundef) #2

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

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

declare i32 @save_image(ptr noundef, ptr noundef) #2

declare void @render_textured_triangle(ptr noundef, ptr noundef, ptr noundef) #2

declare void @release_image(ptr noundef) #2

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 8, !9}
!12 = !{!13, !10, i64 16}
!13 = !{!"SImage", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !10, i64 16}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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.STextureTriangle = type { [3 x %struct.STextureVector], i32 }
%struct.STextureVector = type { i32, i32, float, float }
%struct.SImage = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.STextureTriangle, align 4
  %4 = alloca %struct.STextureTriangle, align 4
  %5 = alloca %struct.SImage, align 8
  %6 = alloca %struct.SImage, align 8
  %7 = alloca %struct.SImage, align 8
  %8 = alloca %struct.SImage, align 8
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %3) #4
  call void @set_triangle(ptr dead_on_unwind nonnull writable sret(%struct.STextureTriangle) align 4 %3, i32 noundef 0, i32 noundef 0, float noundef 5.000000e-01, float noundef 0.000000e+00, i32 noundef 0, i32 noundef 255, float noundef 0.000000e+00, float noundef 5.000000e-01, i32 noundef 255, i32 noundef 0, float noundef 1.000000e+00, float noundef 5.000000e-01) #4
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %4) #4
  call void @set_triangle(ptr dead_on_unwind nonnull writable sret(%struct.STextureTriangle) align 4 %4, i32 noundef 255, i32 noundef 0, float noundef 1.000000e+00, float noundef 5.000000e-01, i32 noundef 0, i32 noundef 255, float noundef 0.000000e+00, float noundef 5.000000e-01, i32 noundef 255, i32 noundef 255, float noundef 5.000000e-01, float noundef 1.000000e+00) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @reset_image(ptr noundef nonnull %5) #4
  call void @reset_image(ptr noundef nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @create_image(ptr dead_on_unwind nonnull writable sret(%struct.SImage) align 8 %7, i32 noundef 255, i32 noundef 255, i32 noundef 4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  %9 = getelementptr inbounds i8, ptr %6, i64 16
  br label %.preheader

.preheader:                                       ; preds = %2, %14
  %indvars.iv41 = phi i64 [ 0, %2 ], [ %indvars.iv.next42, %14 ]
  %10 = mul nuw nsw i64 %indvars.iv41, 255
  br label %15

11:                                               ; preds = %14
  %12 = call i32 @save_image(ptr noundef nonnull @.str, ptr noundef nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #4
  call void @create_image(ptr dead_on_unwind nonnull writable sret(%struct.SImage) align 8 %8, i32 noundef 255, i32 noundef 255, i32 noundef 4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #4
  call void @render_textured_triangle(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %5) #4
  call void @render_textured_triangle(ptr noundef nonnull %4, ptr noundef nonnull %6, ptr noundef nonnull %5) #4
  %13 = call i32 @save_image(ptr noundef nonnull @.str.1, ptr noundef nonnull %5) #4
  call void @release_image(ptr noundef nonnull %6) #4
  call void @release_image(ptr noundef nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %3) #4
  ret i32 0

14:                                               ; preds = %15
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next42, 255
  br i1 %exitcond44.not, label %11, label %.preheader, !llvm.loop !12

15:                                               ; preds = %.preheader, %15
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %15 ]
  %16 = xor i64 %indvars.iv, %indvars.iv41
  %17 = trunc i64 %16 to i8
  %18 = load ptr, ptr %9, align 8, !tbaa !14
  %19 = add nuw nsw i64 %indvars.iv, %10
  %20 = shl nuw nsw i64 %19, 2
  %21 = getelementptr inbounds i8, ptr %18, i64 %20
  store i8 %17, ptr %21, align 1, !tbaa !16
  %22 = load ptr, ptr %9, align 8, !tbaa !14
  %23 = or disjoint i64 %20, 1
  %24 = getelementptr inbounds i8, ptr %22, i64 %23
  store i8 %17, ptr %24, align 1, !tbaa !16
  %25 = load ptr, ptr %9, align 8, !tbaa !14
  %26 = or disjoint i64 %20, 2
  %27 = getelementptr inbounds i8, ptr %25, i64 %26
  store i8 %17, ptr %27, align 1, !tbaa !16
  %28 = load ptr, ptr %9, align 8, !tbaa !14
  %29 = or disjoint i64 %20, 3
  %30 = getelementptr inbounds i8, ptr %28, i64 %29
  store i8 %17, ptr %30, align 1, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 255
  br i1 %exitcond.not, label %14, label %15, !llvm.loop !17
}

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

declare void @set_triangle(ptr dead_on_unwind writable sret(%struct.STextureTriangle) align 4, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #2

declare void @reset_image(ptr noundef) local_unnamed_addr #2

declare void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @save_image(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @render_textured_triangle(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @release_image(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !11, i64 16}
!15 = !{!"SImage", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !11, i64 16}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !13}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass