; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 10/1970. 皇后像廣場 (main)

; 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@vec = external dso_local global [9 x %"class.std::vector.13"], align 16
@nabors = external dso_local global %"class.std::vector.18", align 8

; 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4readv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11check_nabori(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4workiii(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector.8", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.8", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %20, %0
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 9
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %23

16:                                               ; preds = %12
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [9 x %"class.std::vector.13"], ptr @vec, i64 0, i64 %18
  call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 4)
  br label %20

20:                                               ; preds = %16
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !9

23:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %57, %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 9
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %60

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  call void @_Z4readv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %5)
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [9 x %"class.std::vector.13"], ptr @vec, i64 0, i64 %30
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #4
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %53, %28
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 4
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %56

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [9 x %"class.std::vector.13"], ptr @vec, i64 0, i64 %40
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sub nsw i32 %42, 1
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %44) #4
  call void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %45)
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [9 x %"class.std::vector.13"], ptr @vec, i64 0, i64 %47
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #4
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %53

53:                                               ; preds = %38
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %6, align 4, !tbaa !5
  br label %34, !llvm.loop !11

56:                                               ; preds = %37
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %3, align 4, !tbaa !5
  br label %24, !llvm.loop !12

60:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %101, %60
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = icmp slt i32 %62, 9
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %104

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

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

69:                                               ; preds = %66
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %100

70:                                               ; preds = %66
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = icmp eq i32 %71, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  br label %97

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %93, %75
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 9
  br i1 %78, label %80, label %79

79:                                               ; preds = %76
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %96

80:                                               ; preds = %76
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = icmp eq i32 %81, %82
  br i1 %83, label %88, label %84

84:                                               ; preds = %80
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = icmp eq i32 %85, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %84, %80
  br label %93

89:                                               ; preds = %84
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z4workiii(i32 noundef %90, i32 noundef %91, i32 noundef %92)
  br label %93

93:                                               ; preds = %89, %88
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %10, align 4, !tbaa !5
  br label %76, !llvm.loop !13

96:                                               ; preds = %79
  br label %97

97:                                               ; preds = %96, %74
  %98 = load i32, ptr %9, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %9, align 4, !tbaa !5
  br label %66, !llvm.loop !14

100:                                              ; preds = %69
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %8, align 4, !tbaa !5
  br label %61, !llvm.loop !15

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

105:                                              ; preds = %116, %104
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = call noundef i64 @_ZNKSt6vectorI5naborSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @nabors) #4
  %109 = icmp ult i64 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  store i32 20, ptr %4, align 4
  br label %119

111:                                              ; preds = %105
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = call noundef zeroext i1 @_Z11check_nabori(i32 noundef %112)
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  store i32 20, ptr %4, align 4
  br label %119

115:                                              ; preds = %111
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %11, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %11, align 4, !tbaa !5
  br label %105, !llvm.loop !16

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

120:                                              ; preds = %119
  %121 = load i32, ptr %1, align 4
  ret i32 %121
}

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

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

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 = { mustprogress norecurse 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


; 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<int>>, std::allocator<std::vector<std::vector<int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl" = type { %"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nabor, std::allocator<nabor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@vec = external dso_local global [9 x %"class.std::vector.13"], align 16
@nabors = external dso_local global %"class.std::vector.18", align 8

; 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
declare dso_local void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4readv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector.8") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z11check_nabori(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4workiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
.preheader40.preheader:
  %0 = alloca %"class.std::vector.8", align 8
  %1 = alloca %"class.std::vector.8", align 8
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) @vec, i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 24), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 48), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 72), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 96), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 120), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 144), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 168), i64 noundef 4)
  tail call void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @vec, i64 192), i64 noundef 4)
  br label %.preheader40

.preheader40:                                     ; preds = %.preheader40.preheader, %.preheader40
  %indvars.iv = phi i64 [ 0, %.preheader40.preheader ], [ %indvars.iv.next, %.preheader40 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %0) #4
  call void @_Z4readv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %0)
  %2 = getelementptr inbounds [9 x %"class.std::vector.13"], ptr @vec, i64 0, i64 %indvars.iv
  %3 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %4 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #4
  %5 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  call void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
  %6 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #4
  %7 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #4
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #4
  call void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %8)
  %9 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #4
  %10 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #4
  %11 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #4
  call void @_Z6revertRSt6vectorIS_IiSaIiEESaIS1_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %11)
  %12 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #4
  %13 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 9
  br i1 %exitcond.not, label %.preheader38, label %.preheader40, !llvm.loop !5

.preheader38:                                     ; preds = %.preheader40, %.loopexit78
  %.03346 = phi i32 [ %65, %.loopexit78 ], [ 0, %.preheader40 ]
  %14 = icmp eq i32 %.03346, 0
  br i1 %14, label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split, label %.preheader37.1.peel

.preheader37.1.peel:                              ; preds = %.preheader38
  %15 = icmp eq i32 %.03346, 1
  br i1 %15, label %.preheader37.3.peel.thread83, label %.preheader37.2.peel

.preheader37.3.peel.thread83:                     ; preds = %.preheader37.1.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 2)
  br label %.preheader37.4.peel.thread84

.preheader37.2.peel:                              ; preds = %.preheader37.1.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 1)
  %16 = icmp eq i32 %.03346, 2
  br i1 %16, label %.preheader37.4.peel.thread84, label %.preheader37.3.peel

.preheader37.3.peel:                              ; preds = %.preheader37.2.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 2)
  %17 = icmp eq i32 %.03346, 3
  br i1 %17, label %.preheader37.5.peel.thread85, label %.preheader37.4.peel

.preheader37.4.peel.thread84:                     ; preds = %.preheader37.3.peel.thread83, %.preheader37.2.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 3)
  br label %.preheader37.5.peel.thread85

.preheader37.4.peel:                              ; preds = %.preheader37.3.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 3)
  %18 = icmp eq i32 %.03346, 4
  br i1 %18, label %.preheader37.6.peel.thread86, label %.preheader37.5.peel

.preheader37.5.peel.thread85:                     ; preds = %.preheader37.4.peel.thread84, %.preheader37.3.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 4)
  br label %.preheader37.6.peel.thread86

.preheader37.5.peel:                              ; preds = %.preheader37.4.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 4)
  %19 = icmp eq i32 %.03346, 5
  br i1 %19, label %.preheader37.7.peel.thread87, label %.preheader37.6.peel

.preheader37.6.peel.thread86:                     ; preds = %.preheader37.5.peel.thread85, %.preheader37.4.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 5)
  br label %.preheader37.7.peel.thread87

.preheader37.6.peel:                              ; preds = %.preheader37.5.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 5)
  %20 = icmp eq i32 %.03346, 6
  br i1 %20, label %.preheader37.8.peel.thread88, label %.preheader37.7.peel

.preheader37.7.peel.thread87:                     ; preds = %.preheader37.6.peel.thread86, %.preheader37.5.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 6)
  br label %.preheader37.8.peel.thread88

.preheader37.7.peel:                              ; preds = %.preheader37.6.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 6)
  %21 = icmp eq i32 %.03346, 7
  br i1 %21, label %.preheader37.7.peel70.thread107, label %.preheader37.8.peel

.preheader37.7.peel70.thread107:                  ; preds = %.preheader37.7.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 8)
  br label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split

.preheader37.8.peel.thread88:                     ; preds = %.preheader37.7.peel.thread87, %.preheader37.6.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 7)
  br label %.peel.next

.preheader37.8.peel:                              ; preds = %.preheader37.7.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 7)
  %22 = icmp eq i32 %.03346, 8
  br i1 %22, label %.preheader37.2.peel60, label %.peel.next

.peel.next:                                       ; preds = %.preheader37.8.peel, %.preheader37.8.peel.thread88
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 0, i32 noundef 8)
  %23 = icmp eq i32 %.03346, 1
  br i1 %23, label %.peel.next54, label %.preheader37.2.peel60

.preheader37.2.peel60:                            ; preds = %.preheader37.8.peel, %.peel.next
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 0)
  %24 = icmp eq i32 %.03346, 2
  br i1 %24, label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split, label %.preheader37.3.peel62

.preheader37.3.peel62:                            ; preds = %.preheader37.2.peel60
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 2)
  %25 = icmp eq i32 %.03346, 3
  br i1 %25, label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split, label %.preheader37.4.peel64

.preheader37.4.peel64:                            ; preds = %.preheader37.3.peel62
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 3)
  %26 = icmp eq i32 %.03346, 4
  br i1 %26, label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split, label %.preheader37.5.peel66

.preheader37.5.peel66:                            ; preds = %.preheader37.4.peel64
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 4)
  %27 = icmp eq i32 %.03346, 5
  br i1 %27, label %.preheader37.8.peel72.thread.sink.split.sink.split, label %.preheader37.6.peel68

.preheader37.6.peel68:                            ; preds = %.preheader37.5.peel66
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 5)
  %28 = icmp eq i32 %.03346, 6
  br i1 %28, label %.preheader37.8.peel72.thread.sink.split, label %.preheader37.7.peel70

.preheader37.7.peel70:                            ; preds = %.preheader37.6.peel68
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 6)
  %29 = icmp eq i32 %.03346, 7
  br i1 %29, label %.preheader37.8.peel72.thread, label %.preheader37.8.peel72

.preheader37.8.peel72:                            ; preds = %.preheader37.7.peel70
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 7)
  %30 = icmp eq i32 %.03346, 8
  br i1 %30, label %.peel.next54, label %.preheader37.8.peel72.thread

.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split: ; preds = %.preheader38, %.preheader37.7.peel70.thread107
  %.sink112 = phi i32 [ 0, %.preheader37.7.peel70.thread107 ], [ 2, %.preheader38 ]
  %.sink111.ph = phi i32 [ 2, %.preheader37.7.peel70.thread107 ], [ 3, %.preheader38 ]
  %.sink110.ph.ph = phi i32 [ 3, %.preheader37.7.peel70.thread107 ], [ 4, %.preheader38 ]
  %.sink109.ph.ph.ph = phi i32 [ 4, %.preheader37.7.peel70.thread107 ], [ 5, %.preheader38 ]
  %.sink108.ph.ph.ph.ph = phi i32 [ 5, %.preheader37.7.peel70.thread107 ], [ 6, %.preheader38 ]
  %.sink.ph.ph.ph.ph.ph = phi i32 [ 6, %.preheader37.7.peel70.thread107 ], [ 7, %.preheader38 ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink112)
  br label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split

.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split: ; preds = %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split, %.preheader37.2.peel60
  %.sink111 = phi i32 [ 3, %.preheader37.2.peel60 ], [ %.sink111.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink110.ph = phi i32 [ 4, %.preheader37.2.peel60 ], [ %.sink110.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink109.ph.ph = phi i32 [ 5, %.preheader37.2.peel60 ], [ %.sink109.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink108.ph.ph.ph = phi i32 [ 6, %.preheader37.2.peel60 ], [ %.sink108.ph.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink.ph.ph.ph.ph = phi i32 [ 7, %.preheader37.2.peel60 ], [ %.sink.ph.ph.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split.sink.split ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink111)
  br label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split

.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split: ; preds = %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split, %.preheader37.3.peel62
  %.sink110 = phi i32 [ 4, %.preheader37.3.peel62 ], [ %.sink110.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink109.ph = phi i32 [ 5, %.preheader37.3.peel62 ], [ %.sink109.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink108.ph.ph = phi i32 [ 6, %.preheader37.3.peel62 ], [ %.sink108.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split ]
  %.sink.ph.ph.ph = phi i32 [ 7, %.preheader37.3.peel62 ], [ %.sink.ph.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split.sink.split ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink110)
  br label %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split

.preheader37.8.peel72.thread.sink.split.sink.split.sink.split: ; preds = %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split, %.preheader37.4.peel64
  %.sink109 = phi i32 [ 5, %.preheader37.4.peel64 ], [ %.sink109.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split ]
  %.sink108.ph = phi i32 [ 6, %.preheader37.4.peel64 ], [ %.sink108.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split ]
  %.sink.ph.ph = phi i32 [ 7, %.preheader37.4.peel64 ], [ %.sink.ph.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split.sink.split ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink109)
  br label %.preheader37.8.peel72.thread.sink.split.sink.split

.preheader37.8.peel72.thread.sink.split.sink.split: ; preds = %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split, %.preheader37.5.peel66
  %.sink108 = phi i32 [ 6, %.preheader37.5.peel66 ], [ %.sink108.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split ]
  %.sink.ph = phi i32 [ 7, %.preheader37.5.peel66 ], [ %.sink.ph.ph, %.preheader37.8.peel72.thread.sink.split.sink.split.sink.split ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink108)
  br label %.preheader37.8.peel72.thread.sink.split

.preheader37.8.peel72.thread.sink.split:          ; preds = %.preheader37.8.peel72.thread.sink.split.sink.split, %.preheader37.6.peel68
  %.sink = phi i32 [ 7, %.preheader37.6.peel68 ], [ %.sink.ph, %.preheader37.8.peel72.thread.sink.split.sink.split ]
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef %.sink)
  br label %.preheader37.8.peel72.thread

.preheader37.8.peel72.thread:                     ; preds = %.preheader37.8.peel72.thread.sink.split, %.preheader37.7.peel70, %.preheader37.8.peel72
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 1, i32 noundef 8)
  br label %.peel.next54

.peel.next54:                                     ; preds = %.peel.next, %.preheader37.8.peel72.thread, %.preheader37.8.peel72
  %31 = phi i1 [ true, %.peel.next ], [ false, %.preheader37.8.peel72.thread ], [ false, %.preheader37.8.peel72 ]
  %32 = icmp eq i32 %.03346, 2
  %33 = icmp eq i32 %.03346, 3
  %34 = icmp eq i32 %.03346, 4
  %35 = icmp eq i32 %.03346, 5
  %36 = icmp eq i32 %.03346, 6
  %37 = icmp eq i32 %.03346, 7
  %38 = icmp eq i32 %.03346, 8
  %cond = icmp eq i32 %.03346, 2
  br i1 %cond, label %.preheader37.preheader.peel123, label %.preheader37.preheader.peel

.preheader37.preheader.peel:                      ; preds = %.peel.next54
  br i1 %14, label %.preheader37.1.peel114, label %39

39:                                               ; preds = %.preheader37.preheader.peel
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 0)
  br label %.preheader37.1.peel114

.preheader37.1.peel114:                           ; preds = %39, %.preheader37.preheader.peel
  br i1 %31, label %.preheader37.3.peel116, label %40

40:                                               ; preds = %.preheader37.1.peel114
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 1)
  br label %.preheader37.3.peel116

.preheader37.3.peel116:                           ; preds = %.preheader37.1.peel114, %40
  br i1 %33, label %.preheader37.4.peel117, label %41

41:                                               ; preds = %.preheader37.3.peel116
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 3)
  br label %.preheader37.4.peel117

.preheader37.4.peel117:                           ; preds = %41, %.preheader37.3.peel116
  br i1 %34, label %.preheader37.5.peel118, label %42

42:                                               ; preds = %.preheader37.4.peel117
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 4)
  br label %.preheader37.5.peel118

.preheader37.5.peel118:                           ; preds = %42, %.preheader37.4.peel117
  br i1 %35, label %.preheader37.6.peel119, label %43

43:                                               ; preds = %.preheader37.5.peel118
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 5)
  br label %.preheader37.6.peel119

.preheader37.6.peel119:                           ; preds = %43, %.preheader37.5.peel118
  br i1 %36, label %.preheader37.7.peel120, label %44

44:                                               ; preds = %.preheader37.6.peel119
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 6)
  br label %.preheader37.7.peel120

.preheader37.7.peel120:                           ; preds = %44, %.preheader37.6.peel119
  br i1 %37, label %.preheader37.8.peel121, label %45

45:                                               ; preds = %.preheader37.7.peel120
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 7)
  br label %.preheader37.8.peel121

.preheader37.8.peel121:                           ; preds = %45, %.preheader37.7.peel120
  br i1 %38, label %.peel.next113, label %46

46:                                               ; preds = %.preheader37.8.peel121
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 2, i32 noundef 8)
  br label %.peel.next113

.peel.next113:                                    ; preds = %46, %.preheader37.8.peel121
  %cond161 = icmp eq i32 %.03346, 3
  br i1 %cond161, label %.preheader37.preheader.peel142, label %.preheader37.preheader.peel123

.preheader37.preheader.peel123:                   ; preds = %.peel.next113, %.peel.next54
  br i1 %14, label %.preheader37.1.peel124, label %47

47:                                               ; preds = %.preheader37.preheader.peel123
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 0)
  br label %.preheader37.1.peel124

.preheader37.1.peel124:                           ; preds = %47, %.preheader37.preheader.peel123
  br i1 %31, label %.preheader37.2.peel125, label %48

48:                                               ; preds = %.preheader37.1.peel124
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 1)
  br label %.preheader37.2.peel125

.preheader37.2.peel125:                           ; preds = %48, %.preheader37.1.peel124
  br i1 %32, label %.preheader37.4.peel129, label %49

49:                                               ; preds = %.preheader37.2.peel125
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 2)
  br label %.preheader37.4.peel129

.preheader37.4.peel129:                           ; preds = %.preheader37.2.peel125, %49
  br i1 %34, label %.preheader37.5.peel131, label %50

50:                                               ; preds = %.preheader37.4.peel129
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 4)
  br label %.preheader37.5.peel131

.preheader37.5.peel131:                           ; preds = %50, %.preheader37.4.peel129
  br i1 %35, label %.preheader37.6.peel133, label %51

51:                                               ; preds = %.preheader37.5.peel131
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 5)
  br label %.preheader37.6.peel133

.preheader37.6.peel133:                           ; preds = %51, %.preheader37.5.peel131
  br i1 %36, label %.preheader37.7.peel135, label %52

52:                                               ; preds = %.preheader37.6.peel133
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 6)
  br label %.preheader37.7.peel135

.preheader37.7.peel135:                           ; preds = %52, %.preheader37.6.peel133
  br i1 %37, label %.preheader37.8.peel137, label %53

53:                                               ; preds = %.preheader37.7.peel135
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 7)
  br label %.preheader37.8.peel137

.preheader37.8.peel137:                           ; preds = %53, %.preheader37.7.peel135
  br i1 %38, label %.peel.next122, label %54

54:                                               ; preds = %.preheader37.8.peel137
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 3, i32 noundef 8)
  br label %.peel.next122

.peel.next122:                                    ; preds = %54, %.preheader37.8.peel137
  %55 = icmp eq i32 %.03346, 4
  br i1 %55, label %.peel.next54.peel.newph, label %.preheader37.preheader.peel142

.preheader37.preheader.peel142:                   ; preds = %.peel.next113, %.peel.next122
  br i1 %14, label %.preheader37.1.peel143, label %56

56:                                               ; preds = %.preheader37.preheader.peel142
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 0)
  br label %.preheader37.1.peel143

.preheader37.1.peel143:                           ; preds = %56, %.preheader37.preheader.peel142
  br i1 %31, label %.preheader37.2.peel144, label %57

57:                                               ; preds = %.preheader37.1.peel143
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 1)
  br label %.preheader37.2.peel144

.preheader37.2.peel144:                           ; preds = %57, %.preheader37.1.peel143
  br i1 %32, label %.preheader37.3.peel146, label %58

58:                                               ; preds = %.preheader37.2.peel144
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 2)
  br label %.preheader37.3.peel146

.preheader37.3.peel146:                           ; preds = %58, %.preheader37.2.peel144
  br i1 %33, label %.preheader37.5.peel150, label %59

59:                                               ; preds = %.preheader37.3.peel146
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 3)
  br label %.preheader37.5.peel150

.preheader37.5.peel150:                           ; preds = %.preheader37.3.peel146, %59
  br i1 %35, label %.preheader37.6.peel152, label %60

60:                                               ; preds = %.preheader37.5.peel150
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 5)
  br label %.preheader37.6.peel152

.preheader37.6.peel152:                           ; preds = %60, %.preheader37.5.peel150
  br i1 %36, label %.preheader37.7.peel154, label %61

61:                                               ; preds = %.preheader37.6.peel152
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 6)
  br label %.preheader37.7.peel154

.preheader37.7.peel154:                           ; preds = %61, %.preheader37.6.peel152
  br i1 %37, label %.preheader37.8.peel156, label %62

62:                                               ; preds = %.preheader37.7.peel154
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 7)
  br label %.preheader37.8.peel156

.preheader37.8.peel156:                           ; preds = %62, %.preheader37.7.peel154
  br i1 %38, label %.peel.next54.peel.newph, label %63

63:                                               ; preds = %.preheader37.8.peel156
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef 4, i32 noundef 8)
  br label %.peel.next54.peel.newph

.peel.next54.peel.newph:                          ; preds = %.peel.next122, %.preheader37.8.peel156, %63
  br label %66

.preheader:                                       ; preds = %.loopexit78
  %64 = call noundef i64 @_ZNKSt6vectorI5naborSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @nabors) #4
  %.not = icmp eq i64 %64, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.loopexit78:                                      ; preds = %.loopexit
  %65 = add nuw nsw i32 %.03346, 1
  %exitcond79.not = icmp eq i32 %65, 9
  br i1 %exitcond79.not, label %.preheader, label %.preheader38, !llvm.loop !7

66:                                               ; preds = %.peel.next54.peel.newph, %.loopexit
  %.03245 = phi i32 [ 5, %.peel.next54.peel.newph ], [ %81, %.loopexit ]
  %67 = icmp eq i32 %.03346, %.03245
  br i1 %67, label %.loopexit, label %.preheader37.preheader

.preheader37.preheader:                           ; preds = %66
  br i1 %14, label %.preheader37.1, label %68

68:                                               ; preds = %.preheader37.preheader
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 0)
  br label %.preheader37.1

.preheader37.1:                                   ; preds = %.preheader37.preheader, %68
  br i1 %31, label %.preheader37.2, label %69

69:                                               ; preds = %.preheader37.1
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 1)
  br label %.preheader37.2

.preheader37.2:                                   ; preds = %69, %.preheader37.1
  br i1 %32, label %.preheader37.3, label %70

70:                                               ; preds = %.preheader37.2
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 2)
  br label %.preheader37.3

.preheader37.3:                                   ; preds = %70, %.preheader37.2
  br i1 %33, label %.preheader37.4, label %71

71:                                               ; preds = %.preheader37.3
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 3)
  br label %.preheader37.4

.preheader37.4:                                   ; preds = %71, %.preheader37.3
  br i1 %34, label %.preheader37.5, label %72

72:                                               ; preds = %.preheader37.4
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 4)
  br label %.preheader37.5

.preheader37.5:                                   ; preds = %72, %.preheader37.4
  %73 = icmp eq i32 %.03245, 5
  %or.cond.5 = or i1 %35, %73
  br i1 %or.cond.5, label %.preheader37.6, label %74

74:                                               ; preds = %.preheader37.5
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 5)
  br label %.preheader37.6

.preheader37.6:                                   ; preds = %74, %.preheader37.5
  %75 = icmp eq i32 %.03245, 6
  %or.cond.6 = or i1 %36, %75
  br i1 %or.cond.6, label %.preheader37.7, label %76

76:                                               ; preds = %.preheader37.6
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 6)
  br label %.preheader37.7

.preheader37.7:                                   ; preds = %76, %.preheader37.6
  %77 = icmp eq i32 %.03245, 7
  %or.cond.7 = or i1 %37, %77
  br i1 %or.cond.7, label %.preheader37.8, label %78

78:                                               ; preds = %.preheader37.7
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 7)
  br label %.preheader37.8

.preheader37.8:                                   ; preds = %78, %.preheader37.7
  %79 = icmp eq i32 %.03245, 8
  %or.cond.8 = or i1 %38, %79
  br i1 %or.cond.8, label %.loopexit, label %80

80:                                               ; preds = %.preheader37.8
  call void @_Z4workiii(i32 noundef %.03346, i32 noundef %.03245, i32 noundef 8)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader37.8, %80, %66
  %81 = add nuw nsw i32 %.03245, 1
  %exitcond53.not = icmp eq i32 %81, 9
  br i1 %exitcond53.not, label %.loopexit78, label %66, !llvm.loop !8

82:                                               ; preds = %.lr.ph
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %83 = call noundef i64 @_ZNKSt6vectorI5naborSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @nabors) #4
  %84 = icmp ugt i64 %83, %indvars.iv.next81
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.lr.ph:                                           ; preds = %.preheader, %82
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %82 ], [ 0, %.preheader ]
  %85 = trunc nuw nsw i64 %indvars.iv80 to i32
  %86 = call noundef zeroext i1 @_Z11check_nabori(i32 noundef %85)
  br i1 %86, label %._crit_edge, label %82

._crit_edge:                                      ; preds = %82, %.lr.ph, %.preheader
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IS_IiSaIiEESaIS1_EESaIS3_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IiSaIiEESaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 norecurse 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6, !9}
!9 = !{!"llvm.loop.peeled.count", i32 5}
!10 = distinct !{!10, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass