; LLVM IR from Tunghohin/Competitive_Coding :: Uva (uva1364)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@G = external dso_local global [1010 x [1010 x i8]], align 16
@meeting_enabled = external dso_local global [1010 x i8], align 16
@head = external dso_local global [1010 x i32], align 16
@tot = external dso_local global i32, align 4
@root = external dso_local global i32, align 4
@dfn = external dso_local global [1010 x i32], align 16
@low = external dso_local global [1010 x i32], align 16
@timestamp = external dso_local global i32, align 4
@top = external dso_local global i32, align 4
@bcc_cnt = external dso_local global i32, align 4
@bcc = external dso_local global [1010 x %"class.std::vector"], align 16
@color = external dso_local global [1010 x i32], align 16
@in_bcc = external dso_local global [1010 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6tarjani(i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef, i32 noundef) #1

; 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 i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %20 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %21 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %23
  %25 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef null)
  %26 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %27 = getelementptr i8, ptr %26, i64 -24
  %28 = load i64, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %28
  %30 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %29, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  br label %31

31:                                               ; preds = %191, %0
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %34 = load i32, ptr %2, align 4, !tbaa !8
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %39, label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = icmp ne i32 %37, 0
  br label %39

39:                                               ; preds = %36, %31
  %40 = phi i1 [ true, %31 ], [ %38, %36 ]
  br i1 %40, label %41, label %195

41:                                               ; preds = %39
  call void @llvm.memset.p0.i64(ptr align 16 @G, i8 0, i64 1020100, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dfn, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @low, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @meeting_enabled, i8 0, i64 1010, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @head, i8 0, i64 4040, i1 false)
  store i32 0, ptr @bcc_cnt, align 4, !tbaa !8
  store i32 0, ptr @top, align 4, !tbaa !8
  store i32 0, ptr @timestamp, align 4, !tbaa !8
  store i32 0, ptr @tot, align 4, !tbaa !8
  br label %42

42:                                               ; preds = %46, %41
  %43 = load i32, ptr %3, align 4, !tbaa !8
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr %3, align 4, !tbaa !8
  %45 = icmp ne i32 %43, 0
  br i1 %45, label %46, label %61

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %49 = load i32, ptr %5, align 4, !tbaa !8
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %50
  %52 = load i32, ptr %4, align 4, !tbaa !8
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [1010 x i8], ptr %51, i64 0, i64 %53
  store i8 1, ptr %54, align 1, !tbaa !11
  %55 = load i32, ptr %4, align 4, !tbaa !8
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %56
  %58 = load i32, ptr %5, align 4, !tbaa !8
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1010 x i8], ptr %57, i64 0, i64 %59
  store i8 1, ptr %60, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %42, !llvm.loop !13

61:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %62

62:                                               ; preds = %92, %61
  %63 = load i32, ptr %6, align 4, !tbaa !8
  %64 = load i32, ptr %2, align 4, !tbaa !8
  %65 = icmp sle i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 6, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %95

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %68

68:                                               ; preds = %88, %67
  %69 = load i32, ptr %8, align 4, !tbaa !8
  %70 = load i32, ptr %6, align 4, !tbaa !8
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 9, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %91

73:                                               ; preds = %68
  %74 = load i32, ptr %6, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %75
  %77 = load i32, ptr %8, align 4, !tbaa !8
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [1010 x i8], ptr %76, i64 0, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !11, !range !15, !noundef !16
  %81 = trunc i8 %80 to i1
  br i1 %81, label %87, label %82

82:                                               ; preds = %73
  %83 = load i32, ptr %6, align 4, !tbaa !8
  %84 = load i32, ptr %8, align 4, !tbaa !8
  call void @_Z8add_edgeii(i32 noundef %83, i32 noundef %84)
  %85 = load i32, ptr %8, align 4, !tbaa !8
  %86 = load i32, ptr %6, align 4, !tbaa !8
  call void @_Z8add_edgeii(i32 noundef %85, i32 noundef %86)
  br label %87

87:                                               ; preds = %82, %73
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %8, align 4, !tbaa !8
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %8, align 4, !tbaa !8
  br label %68, !llvm.loop !17

91:                                               ; preds = %72
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %6, align 4, !tbaa !8
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !8
  br label %62, !llvm.loop !18

95:                                               ; preds = %66
  store i32 1, ptr @root, align 4, !tbaa !8
  br label %96

96:                                               ; preds = %109, %95
  %97 = load i32, ptr @root, align 4, !tbaa !8
  %98 = load i32, ptr %2, align 4, !tbaa !8
  %99 = icmp sle i32 %97, %98
  br i1 %99, label %100, label %112

100:                                              ; preds = %96
  %101 = load i32, ptr @root, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1010 x i32], ptr @dfn, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %108, label %106

106:                                              ; preds = %100
  %107 = load i32, ptr @root, align 4, !tbaa !8
  call void @_Z6tarjani(i32 noundef %107)
  br label %108

108:                                              ; preds = %106, %100
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr @root, align 4, !tbaa !8
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr @root, align 4, !tbaa !8
  br label %96, !llvm.loop !19

112:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %113

113:                                              ; preds = %169, %112
  %114 = load i32, ptr %9, align 4, !tbaa !8
  %115 = load i32, ptr @bcc_cnt, align 4, !tbaa !8
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 15, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %172

118:                                              ; preds = %113
  call void @llvm.memset.p0.i64(ptr align 16 @color, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @in_bcc, i8 0, i64 1010, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %119 = load i32, ptr %9, align 4, !tbaa !8
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [1010 x %"class.std::vector"], ptr @bcc, i64 0, i64 %120
  store ptr %121, ptr %10, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %122 = load ptr, ptr %10, align 8, !tbaa !20
  %123 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %125 = load ptr, ptr %10, align 8, !tbaa !20
  %126 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #8
  %127 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %126, ptr %127, align 8
  br label %128

128:                                              ; preds = %137, %118
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %129, label %131, label %130

130:                                              ; preds = %128
  store i32 18, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %139

131:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %133 = load i32, ptr %132, align 4, !tbaa !8
  store i32 %133, ptr %13, align 4, !tbaa !8
  %134 = load i32, ptr %13, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [1010 x i8], ptr @in_bcc, i64 0, i64 %135
  store i8 1, ptr %136, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %137

137:                                              ; preds = %131
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %128

139:                                              ; preds = %130
  %140 = load i32, ptr %9, align 4, !tbaa !8
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [1010 x %"class.std::vector"], ptr @bcc, i64 0, i64 %141
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #8
  %144 = load i32, ptr %143, align 4, !tbaa !8
  %145 = call noundef zeroext i1 @_Z3dfsii(i32 noundef %144, i32 noundef 1)
  br i1 %145, label %168, label %146

146:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %147 = load i32, ptr %9, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1010 x %"class.std::vector"], ptr @bcc, i64 0, i64 %148
  store ptr %149, ptr %14, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %150 = load ptr, ptr %14, align 8, !tbaa !20
  %151 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #8
  %152 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %151, ptr %152, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %153 = load ptr, ptr %14, align 8, !tbaa !20
  %154 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #8
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  br label %156

156:                                              ; preds = %165, %146
  %157 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %157, label %159, label %158

158:                                              ; preds = %156
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %167

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %161 = load i32, ptr %160, align 4, !tbaa !8
  store i32 %161, ptr %17, align 4, !tbaa !8
  %162 = load i32, ptr %17, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [1010 x i8], ptr @meeting_enabled, i64 0, i64 %163
  store i8 1, ptr %164, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %165

165:                                              ; preds = %159
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %156

167:                                              ; preds = %158
  br label %168

168:                                              ; preds = %167, %139
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %9, align 4, !tbaa !8
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %9, align 4, !tbaa !8
  br label %113, !llvm.loop !22

172:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !8
  br label %173

173:                                              ; preds = %188, %172
  %174 = load i32, ptr %19, align 4, !tbaa !8
  %175 = load i32, ptr %2, align 4, !tbaa !8
  %176 = icmp sle i32 %174, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  store i32 22, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %191

178:                                              ; preds = %173
  %179 = load i32, ptr %19, align 4, !tbaa !8
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [1010 x i8], ptr @meeting_enabled, i64 0, i64 %180
  %182 = load i8, ptr %181, align 1, !tbaa !11, !range !15, !noundef !16
  %183 = trunc i8 %182 to i1
  br i1 %183, label %187, label %184

184:                                              ; preds = %178
  %185 = load i32, ptr %18, align 4, !tbaa !8
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %18, align 4, !tbaa !8
  br label %187

187:                                              ; preds = %184, %178
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %19, align 4, !tbaa !8
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %19, align 4, !tbaa !8
  br label %173, !llvm.loop !23

191:                                              ; preds = %177
  %192 = load i32, ptr %18, align 4, !tbaa !8
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %192)
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %193, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %31, !llvm.loop !24

195:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %196 = load i32, ptr %1, align 4
  ret i32 %196
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { "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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !10, i64 0}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@G = external dso_local local_unnamed_addr global [1010 x [1010 x i8]], align 16
@meeting_enabled = external dso_local local_unnamed_addr global [1010 x i8], align 16
@head = external dso_local local_unnamed_addr global [1010 x i32], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@root = external dso_local local_unnamed_addr global i32, align 4
@dfn = external dso_local local_unnamed_addr global [1010 x i32], align 16
@low = external dso_local local_unnamed_addr global [1010 x i32], align 16
@timestamp = external dso_local local_unnamed_addr global i32, align 4
@top = external dso_local local_unnamed_addr global i32, align 4
@bcc_cnt = external dso_local local_unnamed_addr global i32, align 4
@bcc = external dso_local global [1010 x %"class.std::vector"], align 16
@color = external dso_local local_unnamed_addr global [1010 x i32], align 16
@in_bcc = external dso_local local_unnamed_addr global [1010 x i8], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6tarjani(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  %15 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %17
  %19 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %22 = load i32, ptr %1, align 4, !tbaa !8
  %23 = icmp ne i32 %22, 0
  %24 = load i32, ptr %2, align 4
  %25 = icmp ne i32 %24, 0
  %26 = select i1 %23, i1 true, i1 %25
  br i1 %26, label %.lr.ph64, label %._crit_edge65

.lr.ph64:                                         ; preds = %0, %._crit_edge62
  %27 = phi i32 [ %107, %._crit_edge62 ], [ %22, %0 ]
  %28 = phi i32 [ %109, %._crit_edge62 ], [ %24, %0 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1020100) @G, i8 0, i64 1020100, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040) @dfn, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040) @low, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1010) @meeting_enabled, i8 0, i64 1010, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040) @head, i8 0, i64 4040, i1 false)
  store i32 0, ptr @bcc_cnt, align 4, !tbaa !8
  store i32 0, ptr @top, align 4, !tbaa !8
  store i32 0, ptr @timestamp, align 4, !tbaa !8
  store i32 0, ptr @tot, align 4, !tbaa !8
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr %2, align 4, !tbaa !8
  %.not41 = icmp eq i32 %28, 0
  br i1 %.not41, label %.preheader40, label %.lr.ph

.preheader40.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %.preheader40

.preheader40:                                     ; preds = %.preheader40.loopexit, %.lr.ph64
  %30 = phi i32 [ %.pre, %.preheader40.loopexit ], [ %27, %.lr.ph64 ]
  %.not3244 = icmp slt i32 %30, 1
  br i1 %.not3244, label %.preheader39.thread, label %.preheader

.preheader39.thread:                              ; preds = %.preheader40
  store i32 1, ptr @root, align 4, !tbaa !8
  br label %.preheader38

.lr.ph:                                           ; preds = %.lr.ph64, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %33 = load i32, ptr %4, align 4, !tbaa !8
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %3, align 4, !tbaa !8
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %34, i64 %36
  store i8 1, ptr %37, align 1, !tbaa !11
  %38 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %36, i64 %34
  store i8 1, ptr %38, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  %39 = load i32, ptr %2, align 4, !tbaa !8
  %40 = add nsw i32 %39, -1
  store i32 %40, ptr %2, align 4, !tbaa !8
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %.preheader40.loopexit, label %.lr.ph, !llvm.loop !13

.preheader39:                                     ; preds = %._crit_edge
  store i32 1, ptr @root, align 4, !tbaa !8
  %.not3346 = icmp slt i32 %44, 1
  br i1 %.not3346, label %.preheader38, label %.lr.ph48

.preheader:                                       ; preds = %.preheader40, %._crit_edge
  %41 = phi i32 [ %44, %._crit_edge ], [ %30, %.preheader40 ]
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %._crit_edge ], [ 1, %.preheader40 ]
  %42 = icmp ugt i64 %indvars.iv67, 1
  br i1 %42, label %.lr.ph43, label %._crit_edge

.lr.ph43:                                         ; preds = %.preheader
  %43 = trunc nuw nsw i64 %indvars.iv67 to i32
  br label %46

._crit_edge.loopexit:                             ; preds = %52
  %.pre77 = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %44 = phi i32 [ %.pre77, %._crit_edge.loopexit ], [ %41, %.preheader ]
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %45 = sext i32 %44 to i64
  %.not32.not = icmp slt i64 %indvars.iv67, %45
  br i1 %.not32.not, label %.preheader, label %.preheader39, !llvm.loop !15

46:                                               ; preds = %.lr.ph43, %52
  %indvars.iv = phi i64 [ 1, %.lr.ph43 ], [ %indvars.iv.next, %52 ]
  %47 = getelementptr inbounds [1010 x [1010 x i8]], ptr @G, i64 0, i64 %indvars.iv67, i64 %indvars.iv
  %48 = load i8, ptr %47, align 1, !tbaa !11, !range !16, !noundef !17
  %49 = trunc nuw i8 %48 to i1
  br i1 %49, label %52, label %50

50:                                               ; preds = %46
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_Z8add_edgeii(i32 noundef %43, i32 noundef %51)
  call void @_Z8add_edgeii(i32 noundef %51, i32 noundef %43)
  br label %52

52:                                               ; preds = %46, %50
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv67
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %46, !llvm.loop !18

.preheader38:                                     ; preds = %60, %.preheader39.thread, %.preheader39
  %53 = phi i32 [ %44, %.preheader39 ], [ %30, %.preheader39.thread ], [ %61, %60 ]
  %54 = load i32, ptr @bcc_cnt, align 4, !tbaa !8
  %.not3455 = icmp slt i32 %54, 1
  br i1 %.not3455, label %.preheader37, label %.lr.ph57

.lr.ph48:                                         ; preds = %.preheader39, %60
  %55 = phi i32 [ %61, %60 ], [ %44, %.preheader39 ]
  %storemerge47 = phi i32 [ %63, %60 ], [ 1, %.preheader39 ]
  %56 = sext i32 %storemerge47 to i64
  %57 = getelementptr inbounds [1010 x i32], ptr @dfn, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %.not36 = icmp eq i32 %58, 0
  br i1 %.not36, label %59, label %60

59:                                               ; preds = %.lr.ph48
  call void @_Z6tarjani(i32 noundef %storemerge47)
  %.pre78 = load i32, ptr @root, align 4, !tbaa !8
  %.pre79 = load i32, ptr %1, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %.lr.ph48, %59
  %61 = phi i32 [ %55, %.lr.ph48 ], [ %.pre79, %59 ]
  %62 = phi i32 [ %storemerge47, %.lr.ph48 ], [ %.pre78, %59 ]
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @root, align 4, !tbaa !8
  %.not33.not = icmp slt i32 %62, %61
  br i1 %.not33.not, label %.lr.ph48, label %.preheader38, !llvm.loop !19

.preheader37.loopexit:                            ; preds = %100
  %.pre80 = load i32, ptr %1, align 4, !tbaa !8
  br label %.preheader37

.preheader37:                                     ; preds = %.preheader37.loopexit, %.preheader38
  %64 = phi i32 [ %.pre80, %.preheader37.loopexit ], [ %53, %.preheader38 ]
  %.not3558 = icmp slt i32 %64, 1
  br i1 %.not3558, label %._crit_edge62, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %.preheader37
  %65 = add nuw i32 %64, 1
  %wide.trip.count = zext i32 %65 to i64
  %66 = zext nneg i32 %64 to i64
  %min.iters.check = icmp ult i32 %64, 8
  br i1 %min.iters.check, label %.lr.ph61.preheader86, label %vector.ph

.lr.ph61.preheader86:                             ; preds = %middle.block, %.lr.ph61.preheader
  %indvars.iv73.ph = phi i64 [ 1, %.lr.ph61.preheader ], [ %ind.end, %middle.block ]
  %.02759.ph = phi i32 [ 0, %.lr.ph61.preheader ], [ %76, %middle.block ]
  br label %.lr.ph61

vector.ph:                                        ; preds = %.lr.ph61.preheader
  %n.vec = and i64 %66, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %73, %vector.body ]
  %vec.phi84 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %74, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %67 = getelementptr inbounds [1010 x i8], ptr @meeting_enabled, i64 0, i64 %offset.idx
  %68 = getelementptr inbounds i8, ptr %67, i64 4
  %wide.load = load <4 x i8>, ptr %67, align 1, !tbaa !11
  %wide.load85 = load <4 x i8>, ptr %68, align 1, !tbaa !11
  %69 = xor <4 x i8> %wide.load, <i8 1, i8 1, i8 1, i8 1>
  %70 = xor <4 x i8> %wide.load85, <i8 1, i8 1, i8 1, i8 1>
  %71 = zext <4 x i8> %69 to <4 x i32>
  %72 = zext <4 x i8> %70 to <4 x i32>
  %73 = add <4 x i32> %vec.phi, %71
  %74 = add <4 x i32> %vec.phi84, %72
  %index.next = add nuw i64 %index, 8
  %75 = icmp eq i64 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %74, %73
  %76 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %66
  br i1 %cmp.n, label %._crit_edge62, label %.lr.ph61.preheader86

.lr.ph57:                                         ; preds = %.preheader38, %100
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %100 ], [ 1, %.preheader38 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4040) @color, i8 0, i64 4040, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1010) @in_bcc, i8 0, i64 1010, i1 false)
  %77 = getelementptr inbounds [1010 x %"class.std::vector"], ptr @bcc, i64 0, i64 %indvars.iv70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %78 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %78, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %79 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %79, ptr %6, align 8
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  br i1 %80, label %.lr.ph50, label %._crit_edge51

._crit_edge51:                                    ; preds = %.lr.ph50, %.lr.ph57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = call noundef zeroext i1 @_Z3dfsii(i32 noundef %82, i32 noundef 1)
  br i1 %83, label %100, label %90

.lr.ph50:                                         ; preds = %.lr.ph57, %.lr.ph50
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  %85 = load i32, ptr %84, align 4, !tbaa !8
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [1010 x i8], ptr @in_bcc, i64 0, i64 %86
  store i8 1, ptr %87, align 1, !tbaa !11
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  br i1 %89, label %.lr.ph50, label %._crit_edge51

90:                                               ; preds = %._crit_edge51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %91 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %91, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %92 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %92, ptr %8, align 8
  %93 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %93, label %.lr.ph53, label %._crit_edge54

._crit_edge54:                                    ; preds = %.lr.ph53, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  br label %100

.lr.ph53:                                         ; preds = %90, %.lr.ph53
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %95 = load i32, ptr %94, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1010 x i8], ptr @meeting_enabled, i64 0, i64 %96
  store i8 1, ptr %97, align 1, !tbaa !11
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  br i1 %99, label %.lr.ph53, label %._crit_edge54

100:                                              ; preds = %._crit_edge51, %._crit_edge54
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %101 = load i32, ptr @bcc_cnt, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %.not34.not = icmp slt i64 %indvars.iv70, %102
  br i1 %.not34.not, label %.lr.ph57, label %.preheader37.loopexit, !llvm.loop !23

._crit_edge62:                                    ; preds = %.lr.ph61, %middle.block, %.preheader37
  %.027.lcssa = phi i32 [ 0, %.preheader37 ], [ %76, %middle.block ], [ %spec.select, %.lr.ph61 ]
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.027.lcssa)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %103, i8 noundef signext 10)
  %105 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %107 = load i32, ptr %1, align 4, !tbaa !8
  %108 = icmp ne i32 %107, 0
  %109 = load i32, ptr %2, align 4
  %110 = icmp ne i32 %109, 0
  %111 = select i1 %108, i1 true, i1 %110
  br i1 %111, label %.lr.ph64, label %._crit_edge65, !llvm.loop !24

.lr.ph61:                                         ; preds = %.lr.ph61.preheader86, %.lr.ph61
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.lr.ph61 ], [ %indvars.iv73.ph, %.lr.ph61.preheader86 ]
  %.02759 = phi i32 [ %spec.select, %.lr.ph61 ], [ %.02759.ph, %.lr.ph61.preheader86 ]
  %112 = getelementptr inbounds [1010 x i8], ptr @meeting_enabled, i64 0, i64 %indvars.iv73
  %113 = load i8, ptr %112, align 1, !tbaa !11, !range !16, !noundef !17
  %114 = xor i8 %113, 1
  %not. = zext nneg i8 %114 to i32
  %spec.select = add nuw nsw i32 %.02759, %not.
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count
  br i1 %exitcond76.not, label %._crit_edge62, label %.lr.ph61, !llvm.loop !25

._crit_edge65:                                    ; preds = %._crit_edge62, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #7

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #8

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14, !22, !21}


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