; LLVM IR from drohmer/cgp :: library/cgp/07_image (image)

; 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.cgp::image_structure" = type { i32, i32, i32, %"struct.cgp::numarray" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN3cgpL17size_of_componentERKNS_16image_color_typeE(ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIhE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp15image_structureD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3cgp15image_structure34rotate_90_degrees_counterclockwiseEv(ptr dead_on_unwind noalias writable sret(%"struct.cgp::image_structure") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i1, align 1
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %16 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 2
  %17 = call noundef i32 @_ZN3cgpL17size_of_componentERKNS_16image_color_typeE(ptr noundef nonnull align 4 dereferenceable(4) %16)
  store i32 %17, ptr %5, align 4, !tbaa !9
  store i1 false, ptr %6, align 1
  call void @_ZN3cgp15image_structureC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %18 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %"struct.cgp::image_structure", ptr %0, i32 0, i32 1
  store i32 %19, ptr %20, align 4, !tbaa !19
  %21 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !19
  %23 = getelementptr inbounds %"struct.cgp::image_structure", ptr %0, i32 0, i32 0
  store i32 %22, ptr %23, align 8, !tbaa !11
  %24 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !20
  %26 = getelementptr inbounds %"struct.cgp::image_structure", ptr %0, i32 0, i32 2
  store i32 %25, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds %"struct.cgp::image_structure", ptr %0, i32 0, i32 3
  %28 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !19
  %32 = mul nsw i32 %29, %31
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = mul nsw i32 %32, %33
  %35 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIhE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24) %27, i32 noundef %34)
          to label %36 unwind label %43

36:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %106, %36
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !11
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %37
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %109

43:                                               ; preds = %2
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %113

47:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %102, %47
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !19
  %52 = icmp slt i32 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %105

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %55 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !11
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sub nsw i32 %56, %57
  %59 = sub nsw i32 %58, 1
  %60 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = mul nsw i32 %61, %62
  %64 = add nsw i32 %59, %63
  store i32 %64, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !19
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = mul nsw i32 %67, %68
  %70 = add nsw i32 %65, %69
  store i32 %70, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %94, %54
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %101

76:                                               ; preds = %71
  %77 = getelementptr inbounds %"struct.cgp::image_structure", ptr %15, i32 0, i32 3
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = mul nsw i32 %79, %80
  %82 = add nsw i32 %78, %81
  %83 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24) %77, i32 noundef %82)
          to label %84 unwind label %97

84:                                               ; preds = %76
  %85 = load i8, ptr %83, align 1, !tbaa !21
  %86 = getelementptr inbounds %"struct.cgp::image_structure", ptr %0, i32 0, i32 3
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = mul nsw i32 %88, %89
  %91 = add nsw i32 %87, %90
  %92 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24) %86, i32 noundef %91)
          to label %93 unwind label %97

93:                                               ; preds = %84
  store i8 %85, ptr %92, align 1, !tbaa !21
  br label %94

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

97:                                               ; preds = %84, %76
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %113

101:                                              ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %11, align 4, !tbaa !9
  br label %48, !llvm.loop !24

105:                                              ; preds = %53
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %9, align 4, !tbaa !9
  br label %37, !llvm.loop !25

109:                                              ; preds = %42
  store i1 true, ptr %6, align 1
  store i32 1, ptr %10, align 4
  %110 = load i1, ptr %6, align 1
  br i1 %110, label %112, label %111

111:                                              ; preds = %109
  call void @_ZN3cgp15image_structureD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #4
  br label %112

112:                                              ; preds = %111, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void

113:                                              ; preds = %97, %43
  call void @_ZN3cgp15image_structureD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr %7, align 8
  %116 = load i32, ptr %8, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

declare void @_ZN3cgp15image_structureC1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { inlinehint 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN3cgp15image_structureE", !10, i64 0, !10, i64 4, !13, i64 8, !14, i64 16}
!13 = !{!"_ZTSN3cgp16image_color_typeE", !7, i64 0}
!14 = !{!"_ZTSN3cgp8numarrayIhEE", !15, i64 0}
!15 = !{!"_ZTSSt6vectorIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!12, !10, i64 4}
!20 = !{!12, !13, i64 8}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


; 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.cgp::image_structure" = type { i32, i32, i32, %"struct.cgp::numarray" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN3cgpL17size_of_componentERKNS_16image_color_typeE(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIhE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp15image_structureD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3cgp15image_structure34rotate_90_degrees_counterclockwiseEv(ptr dead_on_unwind noalias writable sret(%"struct.cgp::image_structure") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = tail call noundef i32 @_ZN3cgpL17size_of_componentERKNS_16image_color_typeE(ptr noundef nonnull align 4 dereferenceable(4) %3)
  tail call void @_ZN3cgp15image_structureC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %5 = load i32, ptr %1, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %5, ptr %6, align 4, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !17
  store i32 %8, ptr %0, align 8, !tbaa !5
  %9 = load i32, ptr %3, align 8, !tbaa !18
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %9, ptr %10, align 8, !tbaa !18
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = mul i32 %5, %4
  %13 = mul i32 %12, %8
  %14 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayIhE6resizeEi(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %13)
          to label %.preheader28 unwind label %47

.preheader28:                                     ; preds = %2
  %15 = load i32, ptr %1, align 8, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader.lr.ph, label %._crit_edge

.preheader.lr.ph:                                 ; preds = %.preheader28
  %17 = icmp sgt i32 %4, 0
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load i32, ptr %7, align 4, !tbaa !17
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge32
  %21 = phi i32 [ %49, %._crit_edge32 ], [ %15, %.preheader.lr.ph ]
  %22 = phi i32 [ %50, %._crit_edge32 ], [ %19, %.preheader.lr.ph ]
  %.02333 = phi i32 [ %51, %._crit_edge32 ], [ 0, %.preheader.lr.ph ]
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph31, label %._crit_edge32

.lr.ph31:                                         ; preds = %.preheader
  %24 = xor i32 %.02333, -1
  br i1 %17, label %.lr.ph.us, label %._crit_edge32

.lr.ph.us:                                        ; preds = %.lr.ph31, %._crit_edge.us
  %25 = phi i32 [ %44, %._crit_edge.us ], [ %22, %.lr.ph31 ]
  %.02230.us = phi i32 [ %43, %._crit_edge.us ], [ 0, %.lr.ph31 ]
  %26 = load i32, ptr %1, align 8, !tbaa !5
  %27 = add i32 %26, %24
  %28 = mul nsw i32 %26, %.02230.us
  %29 = add nsw i32 %27, %28
  %30 = mul nsw i32 %25, %.02333
  %31 = add nsw i32 %30, %.02230.us
  %32 = mul nsw i32 %29, %4
  %33 = mul nsw i32 %31, %4
  br label %34

34:                                               ; preds = %.lr.ph.us, %41
  %.029.us = phi i32 [ 0, %.lr.ph.us ], [ %42, %41 ]
  %35 = add nsw i32 %.029.us, %32
  %36 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %35)
          to label %37 unwind label %.split.us

37:                                               ; preds = %34
  %38 = load i8, ptr %36, align 1, !tbaa !19
  %39 = add nsw i32 %.029.us, %33
  %40 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN3cgp8numarrayIhEixEi(ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef %39)
          to label %41 unwind label %.split.us

41:                                               ; preds = %37
  store i8 %38, ptr %40, align 1, !tbaa !19
  %42 = add nuw nsw i32 %.029.us, 1
  %exitcond.not = icmp eq i32 %42, %4
  br i1 %exitcond.not, label %._crit_edge.us, label %34, !llvm.loop !20

._crit_edge.us:                                   ; preds = %41
  %43 = add nuw nsw i32 %.02230.us, 1
  %44 = load i32, ptr %7, align 4, !tbaa !17
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph.us, label %._crit_edge32.loopexit, !llvm.loop !22

.split.us:                                        ; preds = %37, %34
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %53

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %53

._crit_edge32.loopexit:                           ; preds = %._crit_edge.us
  %.pre = load i32, ptr %1, align 8, !tbaa !5
  br label %._crit_edge32

._crit_edge32:                                    ; preds = %.lr.ph31, %._crit_edge32.loopexit, %.preheader
  %49 = phi i32 [ %.pre, %._crit_edge32.loopexit ], [ %21, %.preheader ], [ %21, %.lr.ph31 ]
  %50 = phi i32 [ %44, %._crit_edge32.loopexit ], [ %22, %.preheader ], [ %22, %.lr.ph31 ]
  %51 = add nuw nsw i32 %.02333, 1
  %52 = icmp slt i32 %51, %49
  br i1 %52, label %.preheader, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge32, %.preheader.lr.ph, %.preheader28
  ret void

53:                                               ; preds = %.split.us, %47
  %.pn = phi { ptr, i32 } [ %46, %.split.us ], [ %48, %47 ]
  tail call void @_ZN3cgp15image_structureD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %0) #3
  resume { ptr, i32 } %.pn
}

declare void @_ZN3cgp15image_structureC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { 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 #2 = { inlinehint 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 #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, !7, i64 0}
!6 = !{!"_ZTSN3cgp15image_structureE", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3cgp16image_color_typeE", !8, i64 0}
!11 = !{!"_ZTSN3cgp8numarrayIhEE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIhSaIhEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!6, !7, i64 4}
!18 = !{!6, !10, i64 8}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21, !24}
!24 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass