; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/102 Division 1/Problem C/DP.ll (Z2goiii)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@t = external dso_local global [4 x [5 x [2 x i32]]], align 16
@id = external dso_local global [4 x %"class.std::vector"], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@dp = external dso_local global [10 x [9 x [524288 x i32]]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4goodii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z2goiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [10 x [9 x [524288 x i32]]], ptr @dp, i64 0, i64 %17
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [9 x [524288 x i32]], ptr %18, i64 0, i64 %20
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [524288 x i32], ptr %21, i64 0, i64 %23
  store ptr %24, ptr %8, align 8, !tbaa !9
  %25 = load ptr, ptr %8, align 8, !tbaa !9
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = icmp ne i32 %26, -1
  br i1 %27, label %28, label %31

28:                                               ; preds = %3
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  %30 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %30, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

31:                                               ; preds = %3
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = load i32, ptr @m, align 4, !tbaa !5
  %34 = icmp sge i32 %32, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %31
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 0, ptr %36, align 4, !tbaa !5
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

37:                                               ; preds = %31
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %41, label %47

41:                                               ; preds = %37
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = call noundef i32 @_Z2goiii(i32 noundef 0, i32 noundef %43, i32 noundef %44)
  %46 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %45, ptr %46, align 4, !tbaa !5
  store i32 %45, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

47:                                               ; preds = %37
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 0, ptr %50, align 4, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = ashr i32 %55, 1
  %57 = call noundef i32 @_Z2goiii(i32 noundef %53, i32 noundef %54, i32 noundef %56)
  store i32 %57, ptr %10, align 4, !tbaa !5
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %59, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = and i32 %61, 1
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %147

64:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %143, %64
  %66 = load i32, ptr %11, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 4
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %146

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 1, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = ashr i32 %70, 1
  store i32 %71, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %72

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

75:                                               ; preds = %72
  store i32 5, ptr %9, align 4
  br label %127

76:                                               ; preds = %72
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [4 x %"class.std::vector"], ptr @id, i64 0, i64 %79
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #4
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = shl i32 1, %84
  %86 = and i32 %77, %85
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %112, label %88

88:                                               ; preds = %76
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %91
  %93 = load i32, ptr %14, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [5 x [2 x i32]], ptr %92, i64 0, i64 %95
  %97 = getelementptr inbounds [2 x i32], ptr %96, i64 0, i64 0
  %98 = load i32, ptr %97, align 8, !tbaa !5
  %99 = add nsw i32 %89, %98
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %102
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [5 x [2 x i32]], ptr %103, i64 0, i64 %106
  %108 = getelementptr inbounds [2 x i32], ptr %107, i64 0, i64 1
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = add nsw i32 %100, %109
  %111 = call noundef zeroext i1 @_Z4goodii(i32 noundef %99, i32 noundef %110)
  br i1 %111, label %113, label %112

112:                                              ; preds = %88, %76
  store i8 0, ptr %12, align 1, !tbaa !11
  store i32 5, ptr %9, align 4
  br label %127

113:                                              ; preds = %88
  %114 = load i32, ptr %11, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [4 x %"class.std::vector"], ptr @id, i64 0, i64 %115
  %117 = load i32, ptr %14, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #4
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = shl i32 1, %120
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = or i32 %122, %121
  store i32 %123, ptr %13, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %113
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %14, align 4, !tbaa !5
  br label %72, !llvm.loop !13

127:                                              ; preds = %112, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %128

128:                                              ; preds = %127
  %129 = load i8, ptr %12, align 1, !tbaa !11, !range !15, !noundef !16
  %130 = trunc i8 %129 to i1
  br i1 %130, label %131, label %142

131:                                              ; preds = %128
  %132 = load ptr, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %133 = load i32, ptr %5, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  %135 = load i32, ptr %6, align 4, !tbaa !5
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = call noundef i32 @_Z2goiii(i32 noundef %134, i32 noundef %135, i32 noundef %136)
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %15, align 4, !tbaa !5
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %132, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %140, ptr %141, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %142

142:                                              ; preds = %131, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !5
  br label %65, !llvm.loop !17

146:                                              ; preds = %68
  br label %147

147:                                              ; preds = %146, %49
  %148 = load ptr, ptr %8, align 8, !tbaa !9
  %149 = load i32, ptr %148, align 4, !tbaa !5
  store i32 %149, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %150

150:                                              ; preds = %147, %41, %35, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %151 = load i32, ptr %4, align 4
  ret i32 %151
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@t = external dso_local local_unnamed_addr global [4 x [5 x [2 x i32]]], align 16
@id = external dso_local global [4 x %"class.std::vector"], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@dp = external dso_local global [10 x [9 x [524288 x i32]]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4goodii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z2goiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = sext i32 %0 to i64
  %7 = sext i32 %1 to i64
  %8 = sext i32 %2 to i64
  %9 = getelementptr inbounds [10 x [9 x [524288 x i32]]], ptr @dp, i64 0, i64 %6, i64 %7, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %.not = icmp eq i32 %10, -1
  br i1 %.not, label %11, label %common.ret59

11:                                               ; preds = %3
  %12 = load i32, ptr @m, align 4, !tbaa !5
  %.not49 = icmp sgt i32 %12, %1
  br i1 %.not49, label %14, label %13

13:                                               ; preds = %11
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %common.ret59

14:                                               ; preds = %11
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp eq i32 %15, %0
  br i1 %16, label %17, label %20

common.ret59:                                     ; preds = %3, %13, %.loopexit52.loopexit, %20, %17
  %common.ret59.op = phi i32 [ %19, %17 ], [ 0, %13 ], [ %10, %3 ], [ %.pre, %.loopexit52.loopexit ], [ %25, %20 ]
  ret i32 %common.ret59.op

17:                                               ; preds = %14
  %18 = add nsw i32 %1, 1
  %19 = tail call noundef i32 @_Z2goiii(i32 noundef 0, i32 noundef %18, i32 noundef %2)
  store i32 %19, ptr %9, align 4, !tbaa !5
  br label %common.ret59

20:                                               ; preds = %14
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %21 = add nsw i32 %0, 1
  %22 = ashr i32 %2, 1
  %23 = tail call noundef i32 @_Z2goiii(i32 noundef %21, i32 noundef %1, i32 noundef %22)
  store i32 %23, ptr %4, align 4, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %25, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  %26 = and i32 %2, 1
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %.preheader, label %common.ret59

.preheader:                                       ; preds = %20, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %20 ]
  %28 = getelementptr inbounds [4 x %"class.std::vector"], ptr @id, i64 0, i64 %indvars.iv
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #3
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = shl nuw i32 1, %30
  %32 = and i32 %31, %22
  %.not50 = icmp eq i32 %32, 0
  br i1 %.not50, label %33, label %.loopexit

33:                                               ; preds = %.preheader
  %34 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %indvars.iv, i64 1
  %35 = load i32, ptr %34, align 8, !tbaa !5
  %36 = add nsw i32 %35, %0
  %37 = getelementptr inbounds i8, ptr %34, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add nsw i32 %38, %1
  %40 = call noundef zeroext i1 @_Z4goodii(i32 noundef %36, i32 noundef %39)
  br i1 %40, label %41, label %.loopexit

41:                                               ; preds = %33
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #3
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = shl nuw i32 1, %43
  %45 = or i32 %44, %22
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 1) #3
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = shl nuw i32 1, %47
  %49 = and i32 %48, %45
  %.not50.1 = icmp eq i32 %49, 0
  br i1 %.not50.1, label %50, label %.loopexit

50:                                               ; preds = %41
  %51 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %indvars.iv, i64 2
  %52 = load i32, ptr %51, align 8, !tbaa !5
  %53 = add nsw i32 %52, %0
  %54 = getelementptr inbounds i8, ptr %51, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = add nsw i32 %55, %1
  %57 = call noundef zeroext i1 @_Z4goodii(i32 noundef %53, i32 noundef %56)
  br i1 %57, label %58, label %.loopexit

58:                                               ; preds = %50
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 1) #3
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = shl nuw i32 1, %60
  %62 = or i32 %61, %45
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 2) #3
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = shl nuw i32 1, %64
  %66 = and i32 %65, %62
  %.not50.2 = icmp eq i32 %66, 0
  br i1 %.not50.2, label %67, label %.loopexit

67:                                               ; preds = %58
  %68 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %indvars.iv, i64 3
  %69 = load i32, ptr %68, align 8, !tbaa !5
  %70 = add nsw i32 %69, %0
  %71 = getelementptr inbounds i8, ptr %68, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, %1
  %74 = call noundef zeroext i1 @_Z4goodii(i32 noundef %70, i32 noundef %73)
  br i1 %74, label %75, label %.loopexit

75:                                               ; preds = %67
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 2) #3
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = shl nuw i32 1, %77
  %79 = or i32 %78, %62
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 3) #3
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = shl nuw i32 1, %81
  %83 = and i32 %82, %79
  %.not50.3 = icmp eq i32 %83, 0
  br i1 %.not50.3, label %84, label %.loopexit

84:                                               ; preds = %75
  %85 = getelementptr inbounds [4 x [5 x [2 x i32]]], ptr @t, i64 0, i64 %indvars.iv, i64 4
  %86 = load i32, ptr %85, align 8, !tbaa !5
  %87 = add nsw i32 %86, %0
  %88 = getelementptr inbounds i8, ptr %85, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %89, %1
  %91 = call noundef zeroext i1 @_Z4goodii(i32 noundef %87, i32 noundef %90)
  br i1 %91, label %.critedge, label %.loopexit

.critedge:                                        ; preds = %84
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 3) #3
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = shl nuw i32 1, %93
  %95 = or i32 %94, %79
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %96 = call noundef i32 @_Z2goiii(i32 noundef %21, i32 noundef %1, i32 noundef %95)
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %5, align 4, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %99 = load i32, ptr %98, align 4, !tbaa !5
  store i32 %99, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  br label %.loopexit

.loopexit:                                        ; preds = %33, %.preheader, %41, %50, %58, %67, %75, %84, %.critedge
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %.loopexit52.loopexit, label %.preheader, !llvm.loop !9

.loopexit52.loopexit:                             ; preds = %.loopexit
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %common.ret59
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) 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) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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