; LLVM IR from tangjz/acm-icpc :: codeforces/gym/100685G.ll (Z3dfsi)

; 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<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { i32, i32 }

@tot = external dso_local global i32, align 4
@in = external dso_local global [100010 x i32], align 16
@out = external dso_local global [100010 x i32], align 16
@dep = external dso_local global [100010 x i32], align 16
@fa = external dso_local global [100010 x [17 x i32]], align 16
@e = external dso_local global [100010 x %"class.std::vector"], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsi(i32 noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %9 = load i32, ptr @tot, align 4, !tbaa !5
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr @tot, align 4, !tbaa !5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100010 x i32], ptr @in, i64 0, i64 %12
  store i32 %10, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e, i64 0, i64 %15
  %17 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %18 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  store ptr %17, ptr %18, align 8
  br label %19

19:                                               ; preds = %108, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e, i64 0, i64 %21
  %23 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  %24 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br i1 %25, label %27, label %26

26:                                               ; preds = %19
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %110

27:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %28 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %29 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 0
  store ptr %29, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %30 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %31 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 1
  store ptr %31, ptr %7, align 8, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %35
  %37 = getelementptr inbounds [17 x i32], ptr %36, i64 0, i64 0
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp eq i32 %33, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %27
  store i32 4, ptr %5, align 4
  br label %105

41:                                               ; preds = %27
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %49
  store i32 %46, ptr %50, align 4, !tbaa !5
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !9
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %54
  %56 = getelementptr inbounds [17 x i32], ptr %55, i64 0, i64 0
  store i32 %51, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %98, %41
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 17
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 5, ptr %5, align 4
  br label %101

61:                                               ; preds = %57
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %64
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [17 x i32], ptr %65, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %96

72:                                               ; preds = %61
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %75
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [17 x i32], ptr %76, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %82
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [17 x i32], ptr %83, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !9
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %91
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [17 x i32], ptr %92, i64 0, i64 %94
  store i32 %88, ptr %95, align 4, !tbaa !5
  br label %97

96:                                               ; preds = %61
  store i32 5, ptr %5, align 4
  br label %101

97:                                               ; preds = %72
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %8, align 4, !tbaa !5
  br label %57, !llvm.loop !11

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

102:                                              ; preds = %101
  %103 = load ptr, ptr %6, align 8, !tbaa !9
  %104 = load i32, ptr %103, align 4, !tbaa !5
  call void @_Z3dfsi(i32 noundef %104)
  store i32 0, ptr %5, align 4
  br label %105

105:                                              ; preds = %102, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %106 = load i32, ptr %5, align 4
  switch i32 %106, label %116 [
    i32 0, label %107
    i32 4, label %108
  ]

107:                                              ; preds = %105
  br label %108

108:                                              ; preds = %107, %105
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  br label %19, !llvm.loop !13

110:                                              ; preds = %26
  %111 = load i32, ptr @tot, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr @tot, align 4, !tbaa !5
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100010 x i32], ptr @out, i64 0, i64 %114
  store i32 %112, ptr %115, align 4, !tbaa !5
  ret void

116:                                              ; preds = %105
  unreachable
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@tot = external dso_local local_unnamed_addr global i32, align 4
@in = external dso_local local_unnamed_addr global [100010 x i32], align 16
@out = external dso_local local_unnamed_addr global [100010 x i32], align 16
@dep = external dso_local local_unnamed_addr global [100010 x i32], align 16
@fa = external dso_local local_unnamed_addr global [100010 x [17 x i32]], align 16
@e = external dso_local global [100010 x %"class.std::vector"], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z3dfsi(i32 noundef %0) local_unnamed_addr #1 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = load i32, ptr @tot, align 4, !tbaa !5
  %5 = add nsw i32 %4, 1
  store i32 %5, ptr @tot, align 4, !tbaa !5
  %6 = sext i32 %0 to i64
  %7 = getelementptr inbounds [100010 x i32], ptr @in, i64 0, i64 %6
  store i32 %5, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %8 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @e, i64 0, i64 %6
  %9 = tail call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  store ptr %9, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %10 = tail call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  store ptr %10, ptr %3, align 8
  %11 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %12 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %6
  %13 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %6
  br label %17

._crit_edge:                                      ; preds = %177, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  %14 = load i32, ptr @tot, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr @tot, align 4, !tbaa !5
  %16 = getelementptr inbounds [100010 x i32], ptr @out, i64 0, i64 %6
  store i32 %15, ptr %16, align 4, !tbaa !5
  ret void

17:                                               ; preds = %.lr.ph, %177
  %18 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %19 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %20 = load i32, ptr %18, align 4, !tbaa !5
  %21 = load i32, ptr %12, align 4, !tbaa !5
  %22 = icmp eq i32 %20, %21
  br i1 %22, label %177, label %23

23:                                               ; preds = %17
  %24 = load i32, ptr %13, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  %26 = sext i32 %20 to i64
  %27 = getelementptr inbounds [100010 x i32], ptr @dep, i64 0, i64 %26
  store i32 %25, ptr %27, align 4, !tbaa !5
  %28 = load i32, ptr %18, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %29
  store i32 %0, ptr %30, align 4, !tbaa !5
  %31 = load i32, ptr %18, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %32, i64 0
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %175, label %35

35:                                               ; preds = %23
  %36 = sext i32 %34 to i64
  %37 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %36, i64 0
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %32, i64 1
  store i32 %38, ptr %39, align 4, !tbaa !5
  %40 = load i32, ptr %18, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %41, i64 1
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %43, 0
  br i1 %.not.1, label %175, label %44

44:                                               ; preds = %35
  %45 = sext i32 %43 to i64
  %46 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %45, i64 1
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %41, i64 2
  store i32 %47, ptr %48, align 4, !tbaa !5
  %49 = load i32, ptr %18, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %50, i64 2
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %52, 0
  br i1 %.not.2, label %175, label %53

53:                                               ; preds = %44
  %54 = sext i32 %52 to i64
  %55 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %54, i64 2
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %50, i64 3
  store i32 %56, ptr %57, align 4, !tbaa !5
  %58 = load i32, ptr %18, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %59, i64 3
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %.not.3 = icmp eq i32 %61, 0
  br i1 %.not.3, label %175, label %62

62:                                               ; preds = %53
  %63 = sext i32 %61 to i64
  %64 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %63, i64 3
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %59, i64 4
  store i32 %65, ptr %66, align 4, !tbaa !5
  %67 = load i32, ptr %18, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %68, i64 4
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %.not.4 = icmp eq i32 %70, 0
  br i1 %.not.4, label %175, label %71

71:                                               ; preds = %62
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %72, i64 4
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %68, i64 5
  store i32 %74, ptr %75, align 4, !tbaa !5
  %76 = load i32, ptr %18, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %77, i64 5
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %.not.5 = icmp eq i32 %79, 0
  br i1 %.not.5, label %175, label %80

80:                                               ; preds = %71
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %81, i64 5
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %77, i64 6
  store i32 %83, ptr %84, align 4, !tbaa !5
  %85 = load i32, ptr %18, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %86, i64 6
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %.not.6 = icmp eq i32 %88, 0
  br i1 %.not.6, label %175, label %89

89:                                               ; preds = %80
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %90, i64 6
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %86, i64 7
  store i32 %92, ptr %93, align 4, !tbaa !5
  %94 = load i32, ptr %18, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %95, i64 7
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not.7 = icmp eq i32 %97, 0
  br i1 %.not.7, label %175, label %98

98:                                               ; preds = %89
  %99 = sext i32 %97 to i64
  %100 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %99, i64 7
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %95, i64 8
  store i32 %101, ptr %102, align 4, !tbaa !5
  %103 = load i32, ptr %18, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %104, i64 8
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %.not.8 = icmp eq i32 %106, 0
  br i1 %.not.8, label %175, label %107

107:                                              ; preds = %98
  %108 = sext i32 %106 to i64
  %109 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %108, i64 8
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %104, i64 9
  store i32 %110, ptr %111, align 4, !tbaa !5
  %112 = load i32, ptr %18, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %113, i64 9
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %.not.9 = icmp eq i32 %115, 0
  br i1 %.not.9, label %175, label %116

116:                                              ; preds = %107
  %117 = sext i32 %115 to i64
  %118 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %117, i64 9
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %113, i64 10
  store i32 %119, ptr %120, align 4, !tbaa !5
  %121 = load i32, ptr %18, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %122, i64 10
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %.not.10 = icmp eq i32 %124, 0
  br i1 %.not.10, label %175, label %125

125:                                              ; preds = %116
  %126 = sext i32 %124 to i64
  %127 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %126, i64 10
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %122, i64 11
  store i32 %128, ptr %129, align 4, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %131, i64 11
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %.not.11 = icmp eq i32 %133, 0
  br i1 %.not.11, label %175, label %134

134:                                              ; preds = %125
  %135 = sext i32 %133 to i64
  %136 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %135, i64 11
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %131, i64 12
  store i32 %137, ptr %138, align 4, !tbaa !5
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %140, i64 12
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %.not.12 = icmp eq i32 %142, 0
  br i1 %.not.12, label %175, label %143

143:                                              ; preds = %134
  %144 = sext i32 %142 to i64
  %145 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %144, i64 12
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %140, i64 13
  store i32 %146, ptr %147, align 4, !tbaa !5
  %148 = load i32, ptr %18, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %149, i64 13
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %.not.13 = icmp eq i32 %151, 0
  br i1 %.not.13, label %175, label %152

152:                                              ; preds = %143
  %153 = sext i32 %151 to i64
  %154 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %153, i64 13
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %149, i64 14
  store i32 %155, ptr %156, align 4, !tbaa !5
  %157 = load i32, ptr %18, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %158, i64 14
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %.not.14 = icmp eq i32 %160, 0
  br i1 %.not.14, label %175, label %161

161:                                              ; preds = %152
  %162 = sext i32 %160 to i64
  %163 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %162, i64 14
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %158, i64 15
  store i32 %164, ptr %165, align 4, !tbaa !5
  %166 = load i32, ptr %18, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %167, i64 15
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %.not.15 = icmp eq i32 %169, 0
  br i1 %.not.15, label %175, label %170

170:                                              ; preds = %161
  %171 = sext i32 %169 to i64
  %172 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %171, i64 15
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = getelementptr inbounds [100010 x [17 x i32]], ptr @fa, i64 0, i64 %167, i64 16
  store i32 %173, ptr %174, align 4, !tbaa !5
  %.pre = load i32, ptr %18, align 4, !tbaa !5
  br label %175

175:                                              ; preds = %170, %161, %152, %143, %134, %125, %116, %107, %98, %89, %80, %71, %62, %53, %44, %35, %23
  %176 = phi i32 [ %.pre, %170 ], [ %166, %161 ], [ %157, %152 ], [ %148, %143 ], [ %139, %134 ], [ %130, %125 ], [ %121, %116 ], [ %112, %107 ], [ %103, %98 ], [ %94, %89 ], [ %85, %80 ], [ %76, %71 ], [ %67, %62 ], [ %58, %53 ], [ %49, %44 ], [ %40, %35 ], [ %31, %23 ]
  call void @_Z3dfsi(i32 noundef %176)
  br label %177

177:                                              ; preds = %17, %175
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %179 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  store ptr %179, ptr %3, align 8
  %180 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br i1 %180, label %17, label %._crit_edge, !llvm.loop !9
}

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

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

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

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

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

attributes #0 = { mustprogress 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 = { 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,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass