; LLVM IR from ravireddy07/cpp-book :: src/Code-Chef/MAR2021-Long/CCNF.ll (Z2dpiii)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@c = external dso_local global [150 x i32], align 16
@bit = external dso_local global [150 x i32], align 16
@siz = external dso_local global [150 x i32], align 16
@siz0 = external dso_local global [150 x i32], align 16
@vis = external dso_local global [150 x [513 x i32]], align 16
@f = external dso_local global [150 x [513 x i32]], align 16
@w = external dso_local global [150 x i32], align 16
@a = external dso_local global [150 x %"class.std::vector"], align 16
@b = external dso_local global [150 x %"class.std::vector"], align 16
@cl = external dso_local global [150 x %"class.std::vector"], align 16
@id = external dso_local global [150 x %"class.std::vector"], align 16
@tr = external dso_local global [150 x %"class.std::vector"], align 16
@has = external dso_local global [150 x %"class.std::vector"], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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)) #2

; 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)) #1 align 2

; 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z2dpiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %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 ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %27
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [513 x i32], ptr %28, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %42

34:                                               ; preds = %3
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %36
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [513 x i32], ptr %37, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  store i32 %41, ptr %4, align 4
  br label %318

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

43:                                               ; preds = %65, %42
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp slt i32 %44, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %68

51:                                               ; preds = %43
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = ashr i32 %52, %53
  %55 = and i32 %54, 1
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %57
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #4
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [150 x i32], ptr @w, i64 0, i64 %63
  store i32 %55, ptr %64, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %51
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %8, align 4, !tbaa !5
  br label %43, !llvm.loop !9

68:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %70
  store ptr %71, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %72 = load ptr, ptr %9, align 8, !tbaa !11
  %73 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #4
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %75 = load ptr, ptr %9, align 8, !tbaa !11
  %76 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #4
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  br label %78

78:                                               ; preds = %157, %68
  %79 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  br i1 %79, label %81, label %80

80:                                               ; preds = %78
  store i32 5, ptr %12, align 4
  br label %159

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %131, %81
  %85 = load i32, ptr %15, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %88
  %90 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #4
  %91 = icmp ult i64 %86, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %84
  store i32 7, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %134

93:                                               ; preds = %84
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %95
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #4
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %102, label %113

102:                                              ; preds = %93
  %103 = load i32, ptr %13, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %104
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #4
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [150 x i32], ptr @w, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  br label %127

113:                                              ; preds = %93
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %115
  %117 = load i32, ptr %15, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #4
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [150 x i32], ptr @w, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = icmp ne i32 %123, 0
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i32
  br label %127

127:                                              ; preds = %113, %102
  %128 = phi i32 [ %112, %102 ], [ %126, %113 ]
  %129 = load i32, ptr %14, align 4, !tbaa !5
  %130 = or i32 %129, %128
  store i32 %130, ptr %14, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %127
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %15, align 4, !tbaa !5
  br label %84, !llvm.loop !13

134:                                              ; preds = %92
  %135 = load i32, ptr %14, align 4, !tbaa !5
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %150

137:                                              ; preds = %134
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %139
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [513 x i32], ptr %140, i64 0, i64 %142
  store i32 1, ptr %143, align 4, !tbaa !5
  %144 = load i32, ptr %5, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %145
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [513 x i32], ptr %146, i64 0, i64 %148
  store i32 1000000000, ptr %149, align 4, !tbaa !5
  store i32 1000000000, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %151

150:                                              ; preds = %134
  store i32 0, ptr %12, align 4
  br label %151

151:                                              ; preds = %150, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %152 = load i32, ptr %12, align 4
  switch i32 %152, label %154 [
    i32 0, label %153
  ]

153:                                              ; preds = %151
  store i32 0, ptr %12, align 4
  br label %154

154:                                              ; preds = %153, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %155 = load i32, ptr %12, align 4
  switch i32 %155, label %159 [
    i32 0, label %156
  ]

156:                                              ; preds = %154
  br label %157

157:                                              ; preds = %156
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br label %78

159:                                              ; preds = %154, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %160 = load i32, ptr %12, align 4
  switch i32 %160, label %320 [
    i32 5, label %161
    i32 1, label %318
  ]

161:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %163
  store ptr %164, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %165 = load ptr, ptr %17, align 8, !tbaa !11
  %166 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #4
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %168 = load ptr, ptr %17, align 8, !tbaa !11
  %169 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #4
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  br label %171

171:                                              ; preds = %300, %161
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #4
  br i1 %172, label %174, label %173

173:                                              ; preds = %171
  store i32 10, ptr %12, align 4
  br label %302

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  %176 = load i32, ptr %175, align 4, !tbaa !5
  store i32 %176, ptr %20, align 4, !tbaa !5
  %177 = load i32, ptr %20, align 4, !tbaa !5
  %178 = load i32, ptr %6, align 4, !tbaa !5
  %179 = icmp eq i32 %177, %178
  br i1 %179, label %180, label %181

180:                                              ; preds = %174
  store i32 11, ptr %12, align 4
  br label %297

181:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 1000000000, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %283, %181
  %183 = load i32, ptr %22, align 4, !tbaa !5
  %184 = load i32, ptr %20, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [150 x i32], ptr @siz0, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sub nsw i32 0, %187
  %189 = shl i32 1, %188
  %190 = icmp slt i32 %183, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %182
  store i32 12, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %286

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

193:                                              ; preds = %271, %192
  %194 = load i32, ptr %25, align 4, !tbaa !5
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = icmp slt i32 %194, %198
  br i1 %199, label %201, label %200

200:                                              ; preds = %193
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %274

201:                                              ; preds = %193
  %202 = load i32, ptr %20, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [150 x %"class.std::vector"], ptr @id, i64 0, i64 %203
  %205 = load i32, ptr %25, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %206) #4
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = icmp sge i32 %208, 0
  br i1 %209, label %210, label %225

210:                                              ; preds = %201
  %211 = load i32, ptr %7, align 4, !tbaa !5
  %212 = load i32, ptr %20, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [150 x %"class.std::vector"], ptr @id, i64 0, i64 %213
  %215 = load i32, ptr %25, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %214, i64 noundef %216) #4
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = ashr i32 %211, %218
  %220 = and i32 %219, 1
  %221 = load i32, ptr %25, align 4, !tbaa !5
  %222 = shl i32 %220, %221
  %223 = load i32, ptr %24, align 4, !tbaa !5
  %224 = or i32 %223, %222
  store i32 %224, ptr %24, align 4, !tbaa !5
  br label %270

225:                                              ; preds = %201
  %226 = load i32, ptr %22, align 4, !tbaa !5
  %227 = load i32, ptr %20, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [150 x %"class.std::vector"], ptr @id, i64 0, i64 %228
  %230 = load i32, ptr %25, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %231) #4
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  %235 = sub nsw i32 0, %234
  %236 = ashr i32 %226, %235
  %237 = and i32 %236, 1
  %238 = load i32, ptr %25, align 4, !tbaa !5
  %239 = shl i32 %237, %238
  %240 = load i32, ptr %24, align 4, !tbaa !5
  %241 = or i32 %240, %239
  store i32 %241, ptr %24, align 4, !tbaa !5
  %242 = load i32, ptr %20, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %243
  %245 = load i32, ptr %25, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246) #4
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = load i32, ptr %24, align 4, !tbaa !5
  %253 = load i32, ptr %25, align 4, !tbaa !5
  %254 = ashr i32 %252, %253
  %255 = and i32 %254, 1
  %256 = load i32, ptr %20, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %257
  %259 = load i32, ptr %25, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %260) #4
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = xor i32 %255, %265
  %267 = mul nsw i32 %251, %266
  %268 = load i32, ptr %23, align 4, !tbaa !5
  %269 = add nsw i32 %268, %267
  store i32 %269, ptr %23, align 4, !tbaa !5
  br label %270

270:                                              ; preds = %225, %210
  br label %271

271:                                              ; preds = %270
  %272 = load i32, ptr %25, align 4, !tbaa !5
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %25, align 4, !tbaa !5
  br label %193, !llvm.loop !14

274:                                              ; preds = %200
  %275 = load i32, ptr %20, align 4, !tbaa !5
  %276 = load i32, ptr %5, align 4, !tbaa !5
  %277 = load i32, ptr %24, align 4, !tbaa !5
  %278 = call noundef i32 @_Z2dpiii(i32 noundef %275, i32 noundef %276, i32 noundef %277)
  %279 = load i32, ptr %23, align 4, !tbaa !5
  %280 = add nsw i32 %279, %278
  store i32 %280, ptr %23, align 4, !tbaa !5
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %282 = load i32, ptr %281, align 4, !tbaa !5
  store i32 %282, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %283

283:                                              ; preds = %274
  %284 = load i32, ptr %22, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %22, align 4, !tbaa !5
  br label %182, !llvm.loop !15

286:                                              ; preds = %191
  %287 = load i32, ptr %21, align 4, !tbaa !5
  %288 = load i32, ptr %16, align 4, !tbaa !5
  %289 = add nsw i32 %288, %287
  store i32 %289, ptr %16, align 4, !tbaa !5
  %290 = load i32, ptr %16, align 4, !tbaa !5
  %291 = icmp sge i32 %290, 1000000000
  br i1 %291, label %292, label %293

292:                                              ; preds = %286
  store i32 1000000000, ptr %16, align 4, !tbaa !5
  store i32 10, ptr %12, align 4
  br label %294

293:                                              ; preds = %286
  store i32 0, ptr %12, align 4
  br label %294

294:                                              ; preds = %293, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %295 = load i32, ptr %12, align 4
  switch i32 %295, label %297 [
    i32 0, label %296
  ]

296:                                              ; preds = %294
  store i32 0, ptr %12, align 4
  br label %297

297:                                              ; preds = %296, %294, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %298 = load i32, ptr %12, align 4
  switch i32 %298, label %302 [
    i32 0, label %299
    i32 11, label %300
  ]

299:                                              ; preds = %297
  br label %300

300:                                              ; preds = %299, %297
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br label %171

302:                                              ; preds = %297, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %5, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %305
  %307 = load i32, ptr %7, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [513 x i32], ptr %306, i64 0, i64 %308
  store i32 1, ptr %309, align 4, !tbaa !5
  %310 = load i32, ptr %16, align 4, !tbaa !5
  %311 = load i32, ptr %5, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %312
  %314 = load i32, ptr %7, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [513 x i32], ptr %313, i64 0, i64 %315
  store i32 %310, ptr %316, align 4, !tbaa !5
  %317 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %317, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %318

318:                                              ; preds = %303, %159, %34
  %319 = load i32, ptr %4, align 4
  ret i32 %319

320:                                              ; preds = %159
  unreachable
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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" = 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.__gnu_cxx::__normal_iterator" = type { ptr }

@c = external dso_local local_unnamed_addr global [150 x i32], align 16
@bit = external dso_local local_unnamed_addr global [150 x i32], align 16
@siz = external dso_local local_unnamed_addr global [150 x i32], align 16
@siz0 = external dso_local local_unnamed_addr global [150 x i32], align 16
@vis = external dso_local local_unnamed_addr global [150 x [513 x i32]], align 16
@f = external dso_local local_unnamed_addr global [150 x [513 x i32]], align 16
@w = external dso_local local_unnamed_addr global [150 x i32], align 16
@a = external dso_local global [150 x %"class.std::vector"], align 16
@b = external dso_local global [150 x %"class.std::vector"], align 16
@cl = external dso_local global [150 x %"class.std::vector"], align 16
@id = external dso_local global [150 x %"class.std::vector"], align 16
@tr = external dso_local global [150 x %"class.std::vector"], align 16
@has = external dso_local global [150 x %"class.std::vector"], align 16

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

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

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

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

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

; 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z2dpiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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 i32, align 4
  %9 = alloca i32, align 4
  %10 = sext i32 %0 to i64
  %11 = sext i32 %2 to i64
  %12 = getelementptr inbounds [150 x [513 x i32]], ptr @vis, i64 0, i64 %10, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %.preheader, label %18

.preheader:                                       ; preds = %3
  %14 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %10
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %17 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %10
  br label %25

18:                                               ; preds = %3
  %19 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %10, i64 %11
  %20 = load i32, ptr %19, align 4, !tbaa !5
  br label %131

._crit_edge:                                      ; preds = %25, %.preheader
  %21 = getelementptr inbounds [150 x %"class.std::vector"], ptr @has, i64 0, i64 %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %22 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  store ptr %22, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %23 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #3
  store ptr %23, ptr %5, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %24, label %.lr.ph112, label %._crit_edge113

25:                                               ; preds = %.lr.ph, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %25 ]
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  %27 = lshr i32 %2, %26
  %28 = and i32 %27, 1
  %29 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #3
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [150 x i32], ptr @w, i64 0, i64 %31
  store i32 %28, ptr %32, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next, %34
  br i1 %35, label %25, label %._crit_edge, !llvm.loop !9

.lr.ph112:                                        ; preds = %._crit_edge, %.critedge
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [150 x %"class.std::vector"], ptr @a, i64 0, i64 %38
  %40 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %.not131 = icmp eq i64 %40, 0
  br i1 %.not131, label %._crit_edge110.thread, label %.lr.ph109

.lr.ph109:                                        ; preds = %.lr.ph112
  %41 = getelementptr inbounds [150 x %"class.std::vector"], ptr @b, i64 0, i64 %38
  br label %42

._crit_edge110:                                   ; preds = %42
  %.not95 = icmp eq i32 %53, 0
  br i1 %.not95, label %._crit_edge110.thread, label %.critedge

42:                                               ; preds = %.lr.ph109, %42
  %indvars.iv134 = phi i64 [ 0, %.lr.ph109 ], [ %indvars.iv.next135, %42 ]
  %.087106 = phi i32 [ 0, %.lr.ph109 ], [ %53, %42 ]
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %indvars.iv134) #3
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 0
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv134) #3
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [150 x i32], ptr @w, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.not96 = icmp eq i32 %50, 0
  %51 = zext i1 %.not96 to i32
  %52 = select i1 %45, i32 %50, i32 %51
  %53 = or i32 %52, %.087106
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %54 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #3
  %55 = icmp ugt i64 %54, %indvars.iv.next135
  br i1 %55, label %42, label %._crit_edge110, !llvm.loop !11

.critedge:                                        ; preds = %._crit_edge110
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %57, label %.lr.ph112, label %._crit_edge113

._crit_edge110.thread:                            ; preds = %.lr.ph112, %._crit_edge110
  store i32 1, ptr %12, align 4, !tbaa !5
  %58 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %10, i64 %11
  store i32 1000000000, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br label %131

._crit_edge113:                                   ; preds = %.critedge, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  %59 = getelementptr inbounds [150 x %"class.std::vector"], ptr @tr, i64 0, i64 %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %60 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #3
  store ptr %60, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %61 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #3
  store ptr %61, ptr %7, align 8
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %62, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %._crit_edge113, %127
  %.082124 = phi i32 [ %.284.ph, %127 ], [ 0, %._crit_edge113 ]
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp eq i32 %64, %1
  br i1 %65, label %127, label %66

66:                                               ; preds = %.lr.ph126
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  store i32 1000000000, ptr %8, align 4, !tbaa !5
  %67 = sext i32 %64 to i64
  %68 = getelementptr inbounds [150 x i32], ptr @siz0, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %.not132 = icmp eq i32 %69, -31
  br i1 %.not132, label %._crit_edge123, label %.lr.ph122

.lr.ph122:                                        ; preds = %66
  %70 = getelementptr inbounds [150 x i32], ptr @siz, i64 0, i64 %67
  %71 = getelementptr inbounds [150 x %"class.std::vector"], ptr @id, i64 0, i64 %67
  %72 = getelementptr inbounds [150 x %"class.std::vector"], ptr @cl, i64 0, i64 %67
  br label %76

._crit_edge123:                                   ; preds = %._crit_edge118, %66
  %73 = phi i32 [ 1000000000, %66 ], [ %83, %._crit_edge118 ]
  %74 = add nsw i32 %73, %.082124
  %75 = icmp sgt i32 %74, 999999999
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  br i1 %75, label %._crit_edge127, label %127

76:                                               ; preds = %.lr.ph122, %._crit_edge118
  %.078120 = phi i32 [ 0, %.lr.ph122 ], [ %84, %._crit_edge118 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store i32 0, ptr %9, align 4, !tbaa !5
  %77 = load i32, ptr %70, align 4, !tbaa !5
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph117, label %._crit_edge118

._crit_edge118:                                   ; preds = %123, %76
  %.077.lcssa = phi i32 [ 0, %76 ], [ %.1, %123 ]
  %79 = call noundef i32 @_Z2dpiii(i32 noundef %64, i32 noundef %0, i32 noundef %.077.lcssa)
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %9, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  %84 = add nuw nsw i32 %.078120, 1
  %85 = load i32, ptr %68, align 4, !tbaa !5
  %86 = sub nsw i32 0, %85
  %87 = shl nuw i32 1, %86
  %88 = icmp slt i32 %84, %87
  br i1 %88, label %76, label %._crit_edge123, !llvm.loop !12

.lr.ph117:                                        ; preds = %76, %123
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %123 ], [ 0, %76 ]
  %.077114 = phi i32 [ %.1, %123 ], [ 0, %76 ]
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv137) #3
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = icmp sgt i32 %90, -1
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv137) #3
  %93 = load i32, ptr %92, align 4, !tbaa !5
  br i1 %91, label %94, label %100

94:                                               ; preds = %.lr.ph117
  %95 = lshr i32 %2, %93
  %96 = and i32 %95, 1
  %97 = trunc nuw nsw i64 %indvars.iv137 to i32
  %98 = shl nuw i32 %96, %97
  %99 = or i32 %98, %.077114
  br label %123

100:                                              ; preds = %.lr.ph117
  %101 = xor i32 %93, -1
  %102 = lshr i32 %.078120, %101
  %103 = and i32 %102, 1
  %104 = trunc nuw nsw i64 %indvars.iv137 to i32
  %105 = shl nuw i32 %103, %104
  %106 = or i32 %105, %.077114
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %indvars.iv137) #3
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [150 x i32], ptr @c, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = lshr i32 %106, %104
  %113 = and i32 %112, 1
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %indvars.iv137) #3
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [150 x i32], ptr @bit, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = xor i32 %113, %118
  %120 = mul nsw i32 %119, %111
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = add nsw i32 %120, %121
  store i32 %122, ptr %9, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %94, %100
  %.1 = phi i32 [ %99, %94 ], [ %106, %100 ]
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %124 = load i32, ptr %70, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next138, %125
  br i1 %126, label %.lr.ph117, label %._crit_edge118, !llvm.loop !13

127:                                              ; preds = %._crit_edge123, %.lr.ph126
  %.284.ph = phi i32 [ %.082124, %.lr.ph126 ], [ %74, %._crit_edge123 ]
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br i1 %129, label %.lr.ph126, label %._crit_edge127

._crit_edge127:                                   ; preds = %127, %._crit_edge123, %._crit_edge113
  %.385 = phi i32 [ 0, %._crit_edge113 ], [ 1000000000, %._crit_edge123 ], [ %.284.ph, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  store i32 1, ptr %12, align 4, !tbaa !5
  %130 = getelementptr inbounds [150 x [513 x i32]], ptr @f, i64 0, i64 %10, i64 %11
  store i32 %.385, ptr %130, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %._crit_edge110.thread, %._crit_edge127, %18
  %.3 = phi i32 [ %20, %18 ], [ 1000000000, %._crit_edge110.thread ], [ %.385, %._crit_edge127 ]
  ret i32 %.3
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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