; LLVM IR from eyangch/competitive-programming :: USACOtraining/2.3/concom.ll (Z3dfsiPA101_iii)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@been = external dso_local global %"class.std::set", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsiPA101_iii(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i1, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [101 x [101 x i32]], align 16
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40804, ptr %10) #4
  %17 = load ptr, ptr %7, align 8, !tbaa !9
  %18 = getelementptr inbounds [101 x i32], ptr %17, i64 0
  %19 = getelementptr inbounds [101 x i32], ptr %18, i64 0, i64 0
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds [101 x i32], ptr %20, i64 100
  %22 = getelementptr inbounds [101 x i32], ptr %21, i64 0, i64 0
  %23 = getelementptr inbounds i32, ptr %22, i64 101
  %24 = getelementptr inbounds [101 x [101 x i32]], ptr %10, i64 0, i64 0
  %25 = getelementptr inbounds [101 x i32], ptr %24, i64 0, i64 0
  %26 = call noundef ptr @_ZSt4copyIPiS0_ET0_T_S2_S1_(ptr noundef %19, ptr noundef %23, ptr noundef %25)
  %27 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @been, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %28 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %29 = extractvalue { ptr, i8 } %27, 0
  store ptr %29, ptr %28, align 8
  %30 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %31 = extractvalue { ptr, i8 } %27, 1
  store i8 %31, ptr %30, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %91, %4
  %33 = load i32, ptr %12, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 101
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 2, ptr %13, align 4
  br label %94

36:                                               ; preds = %32
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [101 x i32], ptr %37, i64 %39
  %41 = load i32, ptr %12, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [101 x i32], ptr %40, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 50
  br i1 %45, label %46, label %90

46:                                               ; preds = %36
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = load i32, ptr %9, align 4, !tbaa !5
  %49 = icmp eq i32 %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %46
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %94

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %52 = call ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) @been, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %53 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %54 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @been) #4
  %55 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br i1 %56, label %57, label %58

57:                                               ; preds = %51
  br label %91

58:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %79, %58
  %60 = load i32, ptr %16, align 4, !tbaa !5
  %61 = icmp slt i32 %60, 101
  br i1 %61, label %63, label %62

62:                                               ; preds = %59
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %82

63:                                               ; preds = %59
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [101 x [101 x i32]], ptr %10, i64 0, i64 %65
  %67 = load i32, ptr %16, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [101 x i32], ptr %66, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [101 x [101 x i32]], ptr %10, i64 0, i64 %72
  %74 = load i32, ptr %16, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [101 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %77, %70
  store i32 %78, ptr %76, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %63
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %16, align 4, !tbaa !5
  br label %59, !llvm.loop !11

82:                                               ; preds = %62
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = getelementptr inbounds [101 x [101 x i32]], ptr %10, i64 0, i64 0
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = call noundef zeroext i1 @_Z3dfsiPA101_iii(i32 noundef %83, ptr noundef %84, i32 noundef %85, i32 noundef %86)
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %94

89:                                               ; preds = %82
  br label %90

90:                                               ; preds = %89, %36
  br label %91

91:                                               ; preds = %90, %57
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %12, align 4, !tbaa !5
  br label %32, !llvm.loop !13

94:                                               ; preds = %88, %50, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %95 = load i32, ptr %13, align 4
  switch i32 %95, label %97 [
    i32 2, label %96
  ]

96:                                               ; preds = %94
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %97

97:                                               ; preds = %96, %94
  call void @llvm.lifetime.end.p0(i64 40804, ptr %10) #4
  %98 = load i1, ptr %5, align 1
  ret i1 %98
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt4copyIPiS0_ET0_T_S2_S1_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@been = external dso_local global %"class.std::set", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z3dfsiPA101_iii(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca [101 x [101 x i32]], align 16
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  store i32 %2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40804, ptr nonnull %6) #4
  %10 = getelementptr inbounds i8, ptr %1, i64 40804
  %11 = call noundef ptr @_ZSt4copyIPiS0_ET0_T_S2_S1_(ptr noundef %1, ptr noundef nonnull %10, ptr noundef nonnull %6)
  %12 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @been, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  %scevgep = getelementptr inbounds i8, ptr %6, i64 4
  %scevgep23 = getelementptr inbounds i8, ptr %6, i64 404
  %scevgep25 = getelementptr inbounds i8, ptr %6, i64 4
  %scevgep27 = getelementptr inbounds i8, ptr %6, i64 404
  br label %13

13:                                               ; preds = %4, %114
  %storemerge17 = phi i32 [ 1, %4 ], [ %116, %114 ]
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = sext i32 %storemerge17 to i64
  %17 = getelementptr inbounds [101 x i32], ptr %1, i64 %15, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 50
  br i1 %19, label %20, label %114

20:                                               ; preds = %13
  %21 = icmp eq i32 %storemerge17, %3
  br i1 %21, label %118, label %22

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %23 = call ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48) @been, ptr noundef nonnull align 4 dereferenceable(4) %7)
  store ptr %23, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %24 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @been) #4
  store ptr %24, ptr %9, align 8
  %25 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %.pre21 = load i32, ptr %7, align 4, !tbaa !5
  br i1 %25, label %114, label %.preheader

.preheader:                                       ; preds = %22
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = sext i32 %.pre21 to i64
  %29 = mul nsw i64 %28, 404
  %scevgep22 = getelementptr i8, ptr %scevgep, i64 %29
  %scevgep24 = getelementptr i8, ptr %scevgep23, i64 %29
  %30 = mul nsw i64 %27, 404
  %scevgep26 = getelementptr i8, ptr %scevgep25, i64 %30
  %scevgep28 = getelementptr i8, ptr %scevgep27, i64 %30
  %bound0 = icmp ult ptr %scevgep22, %scevgep28
  %bound1 = icmp ult ptr %scevgep26, %scevgep24
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader.new, label %vector.body

scalar.ph.preheader.new:                          ; preds = %vector.body, %.preheader
  %indvars.iv.ph = phi i64 [ 1, %.preheader ], [ 97, %vector.body ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader
  %31 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 1
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load = load <4 x i32>, ptr %31, align 4, !tbaa !5, !alias.scope !9
  %wide.load29 = load <4 x i32>, ptr %32, align 4, !tbaa !5, !alias.scope !9
  %33 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 1
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load30 = load <4 x i32>, ptr %33, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31 = load <4 x i32>, ptr %34, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %35 = add nsw <4 x i32> %wide.load30, %wide.load
  %36 = add nsw <4 x i32> %wide.load31, %wide.load29
  store <4 x i32> %35, ptr %33, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %36, ptr %34, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %37 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 9
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load.1 = load <4 x i32>, ptr %37, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.1 = load <4 x i32>, ptr %38, align 4, !tbaa !5, !alias.scope !9
  %39 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 9
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %wide.load30.1 = load <4 x i32>, ptr %39, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.1 = load <4 x i32>, ptr %40, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %41 = add nsw <4 x i32> %wide.load30.1, %wide.load.1
  %42 = add nsw <4 x i32> %wide.load31.1, %wide.load29.1
  store <4 x i32> %41, ptr %39, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %42, ptr %40, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %43 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 17
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load.2 = load <4 x i32>, ptr %43, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.2 = load <4 x i32>, ptr %44, align 4, !tbaa !5, !alias.scope !9
  %45 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 17
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %wide.load30.2 = load <4 x i32>, ptr %45, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.2 = load <4 x i32>, ptr %46, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %47 = add nsw <4 x i32> %wide.load30.2, %wide.load.2
  %48 = add nsw <4 x i32> %wide.load31.2, %wide.load29.2
  store <4 x i32> %47, ptr %45, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %48, ptr %46, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %49 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 25
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load.3 = load <4 x i32>, ptr %49, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.3 = load <4 x i32>, ptr %50, align 4, !tbaa !5, !alias.scope !9
  %51 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 25
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load30.3 = load <4 x i32>, ptr %51, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.3 = load <4 x i32>, ptr %52, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %53 = add nsw <4 x i32> %wide.load30.3, %wide.load.3
  %54 = add nsw <4 x i32> %wide.load31.3, %wide.load29.3
  store <4 x i32> %53, ptr %51, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %54, ptr %52, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %55 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 33
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %wide.load.4 = load <4 x i32>, ptr %55, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.4 = load <4 x i32>, ptr %56, align 4, !tbaa !5, !alias.scope !9
  %57 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 33
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %wide.load30.4 = load <4 x i32>, ptr %57, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.4 = load <4 x i32>, ptr %58, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %59 = add nsw <4 x i32> %wide.load30.4, %wide.load.4
  %60 = add nsw <4 x i32> %wide.load31.4, %wide.load29.4
  store <4 x i32> %59, ptr %57, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %60, ptr %58, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %61 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 41
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load.5 = load <4 x i32>, ptr %61, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.5 = load <4 x i32>, ptr %62, align 4, !tbaa !5, !alias.scope !9
  %63 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 41
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %wide.load30.5 = load <4 x i32>, ptr %63, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.5 = load <4 x i32>, ptr %64, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %65 = add nsw <4 x i32> %wide.load30.5, %wide.load.5
  %66 = add nsw <4 x i32> %wide.load31.5, %wide.load29.5
  store <4 x i32> %65, ptr %63, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %66, ptr %64, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %67 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 49
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %wide.load.6 = load <4 x i32>, ptr %67, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.6 = load <4 x i32>, ptr %68, align 4, !tbaa !5, !alias.scope !9
  %69 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 49
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load30.6 = load <4 x i32>, ptr %69, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.6 = load <4 x i32>, ptr %70, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %71 = add nsw <4 x i32> %wide.load30.6, %wide.load.6
  %72 = add nsw <4 x i32> %wide.load31.6, %wide.load29.6
  store <4 x i32> %71, ptr %69, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %72, ptr %70, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %73 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 57
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %wide.load.7 = load <4 x i32>, ptr %73, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.7 = load <4 x i32>, ptr %74, align 4, !tbaa !5, !alias.scope !9
  %75 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 57
  %76 = getelementptr inbounds i8, ptr %75, i64 16
  %wide.load30.7 = load <4 x i32>, ptr %75, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.7 = load <4 x i32>, ptr %76, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %77 = add nsw <4 x i32> %wide.load30.7, %wide.load.7
  %78 = add nsw <4 x i32> %wide.load31.7, %wide.load29.7
  store <4 x i32> %77, ptr %75, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %78, ptr %76, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %79 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 65
  %80 = getelementptr inbounds i8, ptr %79, i64 16
  %wide.load.8 = load <4 x i32>, ptr %79, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.8 = load <4 x i32>, ptr %80, align 4, !tbaa !5, !alias.scope !9
  %81 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 65
  %82 = getelementptr inbounds i8, ptr %81, i64 16
  %wide.load30.8 = load <4 x i32>, ptr %81, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.8 = load <4 x i32>, ptr %82, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %83 = add nsw <4 x i32> %wide.load30.8, %wide.load.8
  %84 = add nsw <4 x i32> %wide.load31.8, %wide.load29.8
  store <4 x i32> %83, ptr %81, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %84, ptr %82, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %85 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 73
  %86 = getelementptr inbounds i8, ptr %85, i64 16
  %wide.load.9 = load <4 x i32>, ptr %85, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.9 = load <4 x i32>, ptr %86, align 4, !tbaa !5, !alias.scope !9
  %87 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 73
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load30.9 = load <4 x i32>, ptr %87, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.9 = load <4 x i32>, ptr %88, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %89 = add nsw <4 x i32> %wide.load30.9, %wide.load.9
  %90 = add nsw <4 x i32> %wide.load31.9, %wide.load29.9
  store <4 x i32> %89, ptr %87, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %90, ptr %88, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %91 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 81
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %wide.load.10 = load <4 x i32>, ptr %91, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.10 = load <4 x i32>, ptr %92, align 4, !tbaa !5, !alias.scope !9
  %93 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 81
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %wide.load30.10 = load <4 x i32>, ptr %93, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.10 = load <4 x i32>, ptr %94, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %95 = add nsw <4 x i32> %wide.load30.10, %wide.load.10
  %96 = add nsw <4 x i32> %wide.load31.10, %wide.load29.10
  store <4 x i32> %95, ptr %93, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %96, ptr %94, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %97 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 89
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %wide.load.11 = load <4 x i32>, ptr %97, align 4, !tbaa !5, !alias.scope !9
  %wide.load29.11 = load <4 x i32>, ptr %98, align 4, !tbaa !5, !alias.scope !9
  %99 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 89
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %wide.load30.11 = load <4 x i32>, ptr %99, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %wide.load31.11 = load <4 x i32>, ptr %100, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  %101 = add nsw <4 x i32> %wide.load30.11, %wide.load.11
  %102 = add nsw <4 x i32> %wide.load31.11, %wide.load29.11
  store <4 x i32> %101, ptr %99, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  store <4 x i32> %102, ptr %100, align 4, !tbaa !5, !alias.scope !12, !noalias !9
  br label %scalar.ph.preheader.new

.loopexit:                                        ; preds = %scalar.ph
  %103 = call noundef zeroext i1 @_Z3dfsiPA101_iii(i32 noundef %0, ptr noundef nonnull %6, i32 noundef %.pre21, i32 noundef %3)
  br i1 %103, label %118, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  br label %114

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %indvars.iv = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader.new ], [ %indvars.iv.next.1, %scalar.ph ]
  %104 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 %indvars.iv
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 %indvars.iv
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, %105
  store i32 %108, ptr %106, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %109 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %27, i64 %indvars.iv.next
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = getelementptr inbounds [101 x [101 x i32]], ptr %6, i64 0, i64 %28, i64 %indvars.iv.next
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = add nsw i32 %112, %110
  store i32 %113, ptr %111, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 101
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !14

114:                                              ; preds = %._crit_edge, %13, %22
  %115 = phi i32 [ %.pre, %._crit_edge ], [ %storemerge17, %13 ], [ %.pre21, %22 ]
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %7, align 4, !tbaa !5
  %117 = icmp slt i32 %115, 100
  br i1 %117, label %13, label %.critedge, !llvm.loop !17

118:                                              ; preds = %.loopexit, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %119

.critedge:                                        ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %119

119:                                              ; preds = %118, %.critedge
  %120 = phi i1 [ true, %118 ], [ false, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 40804, ptr nonnull %6) #4
  ret i1 %120
}

; 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 uwtable
declare dso_local noundef ptr @_ZSt4copyIPiS0_ET0_T_S2_S1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3setIiSt4lessIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { 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 = distinct !{!10, !11}
!11 = distinct !{!11, !"LVerDomain"}
!12 = !{!13}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = distinct !{!17, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass