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

; 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.bitmap_info_header_t = type { i32, i32, i32, i16, i16, i32, i32, i32, i32, i32, i32 }
%struct.bmpfile_magic_t = type { [2 x i8] }
%struct.bmpfile_header_t = type { i32, i16, i16, i32 }
%struct.SImage = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @load_image(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.bitmap_info_header_t, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.bmpfile_magic_t, align 1
  %11 = alloca %struct.bmpfile_header_t, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.SImage, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  call void @release_image(ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr %6, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = call noalias ptr @fopen(ptr noundef %15, ptr noundef @.str)
  store ptr %16, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %107

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = call i64 @fread(ptr noundef %10, i64 noundef 2, i64 noundef 1, ptr noundef %21)
  %23 = icmp ne i64 %22, 1
  br i1 %23, label %24, label %27

24:                                               ; preds = %20
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = call i32 @fclose(ptr noundef %25)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %106

27:                                               ; preds = %20
  %28 = getelementptr inbounds %struct.bmpfile_magic_t, ptr %10, i32 0, i32 0
  %29 = getelementptr inbounds [2 x i8], ptr %28, i64 0, i64 0
  %30 = load i16, ptr %29, align 1, !tbaa !9
  %31 = zext i16 %30 to i32
  %32 = icmp ne i32 %31, 19778
  br i1 %32, label %33, label %36

33:                                               ; preds = %27
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call i32 @fclose(ptr noundef %34)
  store i32 4, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %106

36:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = call i64 @fread(ptr noundef %11, i64 noundef 12, i64 noundef 1, ptr noundef %37)
  %39 = icmp ne i64 %38, 1
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call i32 @fclose(ptr noundef %41)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %105

43:                                               ; preds = %36
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call i64 @fread(ptr noundef %44, i64 noundef 40, i64 noundef 1, ptr noundef %45)
  %47 = icmp ne i64 %46, 1
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call i32 @fclose(ptr noundef %49)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %105

51:                                               ; preds = %43
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %52, i32 0, i32 5
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %51
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.1) #5
  br label %59

59:                                               ; preds = %56, %51
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.bmpfile_header_t, ptr %11, i32 0, i32 3
  %62 = load i32, ptr %61, align 4, !tbaa !14
  %63 = zext i32 %62 to i64
  %64 = call i32 @fseek(ptr noundef %60, i64 noundef %63, i32 noundef 0)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %69

66:                                               ; preds = %59
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call i32 @fclose(ptr noundef %67)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %105

69:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %70, i32 0, i32 4
  %72 = load i16, ptr %71, align 2, !tbaa !16
  %73 = zext i16 %72 to i32
  %74 = icmp eq i32 %73, 32
  br i1 %74, label %75, label %76

75:                                               ; preds = %69
  br label %84

76:                                               ; preds = %69
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %77, i32 0, i32 4
  %79 = load i16, ptr %78, align 2, !tbaa !16
  %80 = zext i16 %79 to i32
  %81 = icmp eq i32 %80, 24
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 3, i32 1
  br label %84

84:                                               ; preds = %76, %75
  %85 = phi i32 [ 4, %75 ], [ %83, %76 ]
  store i32 %85, ptr %12, align 4, !tbaa !17
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !18
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 4, !tbaa !19
  %93 = load i32, ptr %12, align 4, !tbaa !17
  call void @create_image(ptr dead_on_unwind writable sret(%struct.SImage) align 8 %13, i32 noundef %89, i32 noundef %92, i32 noundef %93)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SImage, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.bitmap_info_header_t, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %98, align 4, !tbaa !23
  %100 = zext i32 %99 to i64
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = call i64 @fread(ptr noundef %96, i64 noundef 1, i64 noundef %100, ptr noundef %101)
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = call i32 @fclose(ptr noundef %103)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %105

105:                                              ; preds = %84, %66, %48, %40
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  br label %106

106:                                              ; preds = %105, %33, %24
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  br label %107

107:                                              ; preds = %106, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  %108 = load i32, ptr %3, align 4
  ret i32 %108
}

declare void @release_image(ptr noundef) #1

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !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 = !{!"short", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 12, !10, i64 14, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"", !13, i64 0, !10, i64 4, !10, i64 6, !13, i64 8}
!16 = !{!12, !10, i64 14}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !13, i64 4}
!19 = !{!12, !13, i64 8}
!20 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17, i64 12, i64 4, !17, i64 16, i64 8, !5}
!21 = !{!22, !6, i64 16}
!22 = !{!"SImage", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !6, i64 16}
!23 = !{!12, !13, i64 20}


; 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.bitmap_info_header_t = type { i32, i32, i32, i16, i16, i32, i32, i32, i32, i32, i32 }
%struct.bmpfile_magic_t = type { [2 x i8] }
%struct.bmpfile_header_t = type { i32, i16, i16, i32 }
%struct.SImage = type { i32, i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 5) i32 @load_image(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.bitmap_info_header_t, align 4
  %4 = alloca %struct.bmpfile_magic_t, align 2
  %5 = alloca %struct.bmpfile_header_t, align 4
  %6 = alloca %struct.SImage, align 8
  tail call void @release_image(ptr noundef %1) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  %7 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %58, label %9

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #5
  %10 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 2, i64 noundef 1, ptr noundef nonnull %7)
  %.not = icmp eq i64 %10, 1
  br i1 %.not, label %13, label %11

11:                                               ; preds = %9
  %12 = tail call i32 @fclose(ptr noundef nonnull %7)
  br label %57

13:                                               ; preds = %9
  %14 = load i16, ptr %4, align 2, !tbaa !5
  %.not26 = icmp eq i16 %14, 19778
  br i1 %.not26, label %17, label %15

15:                                               ; preds = %13
  %16 = tail call i32 @fclose(ptr noundef nonnull %7)
  br label %57

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %18 = call i64 @fread(ptr noundef nonnull %5, i64 noundef 12, i64 noundef 1, ptr noundef nonnull %7)
  %.not27 = icmp eq i64 %18, 1
  br i1 %.not27, label %21, label %19

19:                                               ; preds = %17
  %20 = tail call i32 @fclose(ptr noundef nonnull %7)
  br label %56

21:                                               ; preds = %17
  %22 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 40, i64 noundef 1, ptr noundef nonnull %7)
  %.not28 = icmp eq i64 %22, 1
  br i1 %.not28, label %25, label %23

23:                                               ; preds = %21
  %24 = tail call i32 @fclose(ptr noundef nonnull %7)
  br label %56

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %.not29 = icmp eq i32 %27, 0
  br i1 %.not29, label %31, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr @stderr, align 8, !tbaa !12
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.1) #6
  br label %31

31:                                               ; preds = %28, %25
  %32 = getelementptr inbounds i8, ptr %5, i64 8
  %33 = load i32, ptr %32, align 4, !tbaa !14
  %34 = zext i32 %33 to i64
  %35 = tail call i32 @fseek(ptr noundef nonnull %7, i64 noundef %34, i32 noundef 0)
  %.not30 = icmp eq i32 %35, 0
  br i1 %.not30, label %38, label %36

36:                                               ; preds = %31
  %37 = tail call i32 @fclose(ptr noundef nonnull %7)
  br label %56

38:                                               ; preds = %31
  %39 = getelementptr inbounds i8, ptr %3, i64 14
  %40 = load i16, ptr %39, align 2, !tbaa !16
  %41 = icmp eq i16 %40, 32
  %42 = icmp eq i16 %40, 24
  %43 = select i1 %42, i32 3, i32 1
  %44 = select i1 %41, i32 4, i32 %43
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %45 = getelementptr inbounds i8, ptr %3, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !17
  %47 = getelementptr inbounds i8, ptr %3, i64 8
  %48 = load i32, ptr %47, align 4, !tbaa !18
  call void @create_image(ptr dead_on_unwind nonnull writable sret(%struct.SImage) align 8 %6, i32 noundef %46, i32 noundef %48, i32 noundef %44) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 24, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  %49 = getelementptr inbounds i8, ptr %1, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %3, i64 20
  %52 = load i32, ptr %51, align 4, !tbaa !23
  %53 = zext i32 %52 to i64
  %54 = call i64 @fread(ptr noundef %50, i64 noundef 1, i64 noundef %53, ptr noundef nonnull %7)
  %55 = call i32 @fclose(ptr noundef nonnull %7)
  br label %56

56:                                               ; preds = %38, %36, %23, %19
  %.0 = phi i32 [ 2, %19 ], [ 2, %23 ], [ 2, %36 ], [ 0, %38 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  br label %57

57:                                               ; preds = %56, %15, %11
  %.1 = phi i32 [ 2, %11 ], [ 4, %15 ], [ %.0, %56 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #5
  br label %58

58:                                               ; preds = %2, %57
  %.2 = phi i32 [ %.1, %57 ], [ 1, %2 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  ret i32 %.2
}

declare void @release_image(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @fseek(ptr nocapture noundef, i64 noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { cold 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 12, !6, i64 14, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !11, i64 8}
!15 = !{!"", !11, i64 0, !6, i64 4, !6, i64 6, !11, i64 8}
!16 = !{!10, !6, i64 14}
!17 = !{!10, !11, i64 4}
!18 = !{!10, !11, i64 8}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20, i64 8, i64 4, !20, i64 12, i64 4, !20, i64 16, i64 8, !12}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !13, i64 16}
!22 = !{!"SImage", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !13, i64 16}
!23 = !{!10, !11, i64 20}


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