; LLVM IR from bqi343/cp-notebook :: Contests/USACO Training/Ch 6/6.5 clocks.ll (Z6searchi)

; 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 }

@ans = external dso_local global %"class.std::vector", align 8
@add = external dso_local global [9 x [9 x i32]], align 16
@ori1 = external dso_local global [9 x i32], align 16
@cur = external dso_local global [9 x i32], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6searchi(i32 noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [9 x i32], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 9
  br i1 %23, label %24, label %44

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

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

28:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %40

29:                                               ; preds = %25
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  call void @_Z6searchi(i32 noundef %31)
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %29
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %3, align 4, !tbaa !5
  br label %25, !llvm.loop !9

40:                                               ; preds = %28
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %42
  store i32 0, ptr %43, align 4, !tbaa !5
  br label %215

44:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %57, %44
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 9
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %60

49:                                               ; preds = %45
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [9 x i32], ptr @ori1, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %55
  store i32 %53, ptr %56, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %49
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  br label %45, !llvm.loop !11

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

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

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

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

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

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

70:                                               ; preds = %66
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [9 x [9 x i32]], ptr @add, i64 0, i64 %76
  %78 = load i32, ptr %10, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [9 x i32], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = mul nsw i32 %74, %81
  %83 = load i32, ptr %10, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, %82
  store i32 %87, ptr %85, align 4, !tbaa !5
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = srem i32 %91, 4
  store i32 %92, ptr %90, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %70
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %10, align 4, !tbaa !5
  br label %66, !llvm.loop !12

96:                                               ; preds = %69
  br label %97

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

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

101:                                              ; preds = %118, %100
  %102 = load i32, ptr %11, align 4, !tbaa !5
  %103 = icmp slt i32 %102, 9
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %121

105:                                              ; preds = %101
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = add nsw i32 %110, %109
  store i32 %111, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = add nsw i32 %116, %115
  store i32 %117, ptr %5, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %105
  %119 = load i32, ptr %11, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %11, align 4, !tbaa !5
  br label %101, !llvm.loop !14

121:                                              ; preds = %104
  %122 = load i32, ptr %4, align 4, !tbaa !5
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %214

124:                                              ; preds = %121
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @ans) #4
  %128 = icmp ult i64 %126, %127
  br i1 %128, label %129, label %166

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %155, %129
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = icmp slt i32 %131, 9
  br i1 %132, label %134, label %133

133:                                              ; preds = %130
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %158

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %147, %134
  %136 = load i32, ptr %14, align 4, !tbaa !5
  %137 = load i32, ptr %13, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = icmp slt i32 %136, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %135
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %154

143:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %144 = load i32, ptr %13, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %146 unwind label %150

146:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %14, align 4, !tbaa !5
  br label %135, !llvm.loop !15

150:                                              ; preds = %143
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %16, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %165

154:                                              ; preds = %142
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %13, align 4, !tbaa !5
  br label %130, !llvm.loop !16

158:                                              ; preds = %133
  %159 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @ans, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %160 unwind label %161

160:                                              ; preds = %158
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  br label %213

161:                                              ; preds = %158
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %16, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %17, align 4
  br label %165

165:                                              ; preds = %161, %150
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #4
  br label %216

166:                                              ; preds = %124
  %167 = load i32, ptr %5, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @ans) #4
  %170 = icmp eq i64 %168, %169
  br i1 %170, label %171, label %212

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %197, %171
  %173 = load i32, ptr %19, align 4, !tbaa !5
  %174 = icmp slt i32 %173, 9
  br i1 %174, label %176, label %175

175:                                              ; preds = %172
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %200

176:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %189, %176
  %178 = load i32, ptr %20, align 4, !tbaa !5
  %179 = load i32, ptr %19, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = icmp slt i32 %178, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %177
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %196

185:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %186 = load i32, ptr %19, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %21, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %188 unwind label %192

188:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %20, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %20, align 4, !tbaa !5
  br label %177, !llvm.loop !17

192:                                              ; preds = %185
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %16, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %211

196:                                              ; preds = %184
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %19, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %19, align 4, !tbaa !5
  br label %172, !llvm.loop !18

200:                                              ; preds = %175
  %201 = invoke noundef zeroext i1 @_ZStltIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) @ans)
          to label %202 unwind label %206

202:                                              ; preds = %200
  br i1 %201, label %203, label %210

203:                                              ; preds = %202
  %204 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @ans, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %205 unwind label %206

205:                                              ; preds = %203
  br label %210

206:                                              ; preds = %203, %200
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %16, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %17, align 4
  br label %211

210:                                              ; preds = %205, %202
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %212

211:                                              ; preds = %206, %192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %216

212:                                              ; preds = %210, %166
  br label %213

213:                                              ; preds = %212, %160
  br label %214

214:                                              ; preds = %213, %121
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %215

215:                                              ; preds = %214, %40
  ret void

216:                                              ; preds = %211, %165
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %217

217:                                              ; preds = %216
  %218 = load ptr, ptr %16, align 8
  %219 = load i32, ptr %17, align 4
  %220 = insertvalue { ptr, i32 } poison, ptr %218, 0
  %221 = insertvalue { ptr, i32 } %220, i32 %219, 1
  resume { ptr, i32 } %221
}

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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 = { 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 #4 = { nounwind }

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

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

@ans = external dso_local global %"class.std::vector", align 8
@add = external dso_local local_unnamed_addr global [9 x [9 x i32]], align 16
@ori1 = external dso_local local_unnamed_addr global [9 x i32], align 16
@cur = external dso_local local_unnamed_addr global [9 x i32], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6searchi(i32 noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = icmp slt i32 %0, 9
  br i1 %6, label %.preheader, label %.preheader64.preheader

common.ret:                                       ; preds = %111, %178, %115, %.preheader63.preheader, %.preheader
  ret void

.preheader:                                       ; preds = %1
  %7 = add nsw i32 %0, 1
  %8 = sext i32 %0 to i64
  %9 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %8
  tail call void @_Z6searchi(i32 noundef %7)
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %9, align 4, !tbaa !5
  tail call void @_Z6searchi(i32 noundef %7)
  %12 = load i32, ptr %9, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr %9, align 4, !tbaa !5
  tail call void @_Z6searchi(i32 noundef %7)
  %14 = load i32, ptr %9, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr %9, align 4, !tbaa !5
  tail call void @_Z6searchi(i32 noundef %7)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %common.ret

.preheader64.preheader:                           ; preds = %1
  %.sroa.0.0.copyload = load i32, ptr @ori1, align 16, !tbaa !5
  %16 = load <8 x i32>, ptr getelementptr inbounds (i8, ptr @ori1, i64 4), align 4, !tbaa !5
  br label %.preheader64

.preheader64:                                     ; preds = %.preheader64.preheader, %.preheader64
  %.sroa.0.0 = phi i32 [ %.sroa.0.0.copyload, %.preheader64.preheader ], [ %24, %.preheader64 ]
  %indvars.iv = phi i64 [ 0, %.preheader64.preheader ], [ %indvars.iv.next, %.preheader64 ]
  %17 = phi <8 x i32> [ %16, %.preheader64.preheader ], [ %31, %.preheader64 ]
  %18 = getelementptr inbounds [9 x i32], ptr @cur, i64 0, i64 %indvars.iv
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = getelementptr inbounds [9 x [9 x i32]], ptr @add, i64 0, i64 %indvars.iv, i64 0
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = mul nsw i32 %21, %19
  %23 = add nsw i32 %.sroa.0.0, %22
  %24 = srem i32 %23, 4
  %25 = getelementptr inbounds [9 x [9 x i32]], ptr @add, i64 0, i64 %indvars.iv, i64 1
  %26 = load <8 x i32>, ptr %25, align 4, !tbaa !5
  %27 = insertelement <8 x i32> poison, i32 %19, i64 0
  %28 = shufflevector <8 x i32> %27, <8 x i32> poison, <8 x i32> zeroinitializer
  %29 = mul nsw <8 x i32> %26, %28
  %30 = add nsw <8 x i32> %17, %29
  %31 = srem <8 x i32> %30, <i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4>
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 9
  br i1 %exitcond.not, label %.preheader63.preheader, label %.preheader64, !llvm.loop !9

.preheader63.preheader:                           ; preds = %.preheader64
  %32 = extractelement <8 x i32> %31, i64 0
  %33 = add nsw i32 %32, %24
  %34 = extractelement <8 x i32> %31, i64 1
  %35 = add nsw i32 %34, %33
  %36 = extractelement <8 x i32> %31, i64 2
  %37 = add nsw i32 %36, %35
  %38 = extractelement <8 x i32> %31, i64 3
  %39 = add nsw i32 %38, %37
  %40 = extractelement <8 x i32> %31, i64 4
  %41 = add nsw i32 %40, %39
  %42 = extractelement <8 x i32> %31, i64 5
  %43 = add nsw i32 %42, %41
  %44 = extractelement <8 x i32> %31, i64 6
  %45 = add nsw i32 %44, %43
  %46 = sub nsw i32 0, %45
  %47 = extractelement <8 x i32> %31, i64 7
  %48 = icmp eq i32 %47, %46
  br i1 %48, label %49, label %common.ret

49:                                               ; preds = %.preheader63.preheader
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 32), align 16, !tbaa !5
  %51 = load <8 x i32>, ptr @cur, align 16, !tbaa !5
  %52 = tail call i32 @llvm.vector.reduce.add.v8i32(<8 x i32> %51)
  %op.rdx = add i32 %52, %50
  %53 = sext i32 %op.rdx to i64
  %54 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @ans) #5
  %55 = icmp ugt i64 %54, %53
  br i1 %55, label %.preheader61, label %115

.preheader61:                                     ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %56 = load i32, ptr @cur, align 16, !tbaa !5
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph75, label %._crit_edge76

._crit_edge76:                                    ; preds = %107, %.preheader61
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 4), align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph75.1, label %._crit_edge76.1

.lr.ph75.1:                                       ; preds = %._crit_edge76, %60
  %.04674.1 = phi i32 [ %61, %60 ], [ 0, %._crit_edge76 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 2, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %60 unwind label %.loopexit.split-lp114.loopexit

60:                                               ; preds = %.lr.ph75.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %61 = add nuw nsw i32 %.04674.1, 1
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 4), align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %.lr.ph75.1, label %._crit_edge76.1, !llvm.loop !11

._crit_edge76.1:                                  ; preds = %60, %._crit_edge76
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 8), align 8, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph75.2, label %._crit_edge76.2

.lr.ph75.2:                                       ; preds = %._crit_edge76.1, %66
  %.04674.2 = phi i32 [ %67, %66 ], [ 0, %._crit_edge76.1 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 3, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %66 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit

66:                                               ; preds = %.lr.ph75.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %67 = add nuw nsw i32 %.04674.2, 1
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 8), align 8, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %.lr.ph75.2, label %._crit_edge76.2, !llvm.loop !11

._crit_edge76.2:                                  ; preds = %66, %._crit_edge76.1
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 12), align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph75.3, label %._crit_edge76.3

.lr.ph75.3:                                       ; preds = %._crit_edge76.2, %72
  %.04674.3 = phi i32 [ %73, %72 ], [ 0, %._crit_edge76.2 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 4, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %72 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit

72:                                               ; preds = %.lr.ph75.3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %73 = add nuw nsw i32 %.04674.3, 1
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 12), align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.lr.ph75.3, label %._crit_edge76.3, !llvm.loop !11

._crit_edge76.3:                                  ; preds = %72, %._crit_edge76.2
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 16), align 16, !tbaa !5
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph75.4, label %._crit_edge76.4

.lr.ph75.4:                                       ; preds = %._crit_edge76.3, %78
  %.04674.4 = phi i32 [ %79, %78 ], [ 0, %._crit_edge76.3 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 5, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %78 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

78:                                               ; preds = %.lr.ph75.4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %79 = add nuw nsw i32 %.04674.4, 1
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 16), align 16, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %.lr.ph75.4, label %._crit_edge76.4, !llvm.loop !11

._crit_edge76.4:                                  ; preds = %78, %._crit_edge76.3
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 20), align 4, !tbaa !5
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %.lr.ph75.5, label %._crit_edge76.5

.lr.ph75.5:                                       ; preds = %._crit_edge76.4, %84
  %.04674.5 = phi i32 [ %85, %84 ], [ 0, %._crit_edge76.4 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 6, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %84 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

84:                                               ; preds = %.lr.ph75.5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %85 = add nuw nsw i32 %.04674.5, 1
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 20), align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %.lr.ph75.5, label %._crit_edge76.5, !llvm.loop !11

._crit_edge76.5:                                  ; preds = %84, %._crit_edge76.4
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 24), align 8, !tbaa !5
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph75.6, label %._crit_edge76.6

.lr.ph75.6:                                       ; preds = %._crit_edge76.5, %90
  %.04674.6 = phi i32 [ %91, %90 ], [ 0, %._crit_edge76.5 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 7, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %90 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

90:                                               ; preds = %.lr.ph75.6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %91 = add nuw nsw i32 %.04674.6, 1
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 24), align 8, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph75.6, label %._crit_edge76.6, !llvm.loop !11

._crit_edge76.6:                                  ; preds = %90, %._crit_edge76.5
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 28), align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph75.7, label %._crit_edge76.7

.lr.ph75.7:                                       ; preds = %._crit_edge76.6, %96
  %.04674.7 = phi i32 [ %97, %96 ], [ 0, %._crit_edge76.6 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 8, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %96 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

96:                                               ; preds = %.lr.ph75.7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %97 = add nuw nsw i32 %.04674.7, 1
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 28), align 4, !tbaa !5
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %.lr.ph75.7, label %._crit_edge76.7, !llvm.loop !11

._crit_edge76.7:                                  ; preds = %96, %._crit_edge76.6
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 32), align 16, !tbaa !5
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph75.8, label %._crit_edge76.8

.lr.ph75.8:                                       ; preds = %._crit_edge76.7, %102
  %.04674.8 = phi i32 [ %103, %102 ], [ 0, %._crit_edge76.7 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 9, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %102 unwind label %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

102:                                              ; preds = %.lr.ph75.8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %103 = add nuw nsw i32 %.04674.8, 1
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 32), align 16, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %.lr.ph75.8, label %._crit_edge76.8, !llvm.loop !11

._crit_edge76.8:                                  ; preds = %102, %._crit_edge76.7
  %106 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @ans, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %111 unwind label %112

.lr.ph75:                                         ; preds = %.preheader61, %107
  %.04674 = phi i32 [ %108, %107 ], [ 0, %.preheader61 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %107 unwind label %.loopexit113

107:                                              ; preds = %.lr.ph75
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %108 = add nuw nsw i32 %.04674, 1
  %109 = load i32, ptr @cur, align 16, !tbaa !5
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %.lr.ph75, label %._crit_edge76, !llvm.loop !11

.loopexit113:                                     ; preds = %.lr.ph75
  %lpad.loopexit115 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit:                   ; preds = %.lr.ph75.1
  %lpad.loopexit117 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.2
  %lpad.loopexit120 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.3
  %lpad.loopexit122 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.4
  %lpad.loopexit125 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.5
  %lpad.loopexit127 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.6
  %lpad.loopexit130 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph75.7
  %lpad.loopexit132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.lr.ph75.8
  %lpad.loopexit.split-lp133 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp114

.loopexit.split-lp114:                            ; preds = %.loopexit.split-lp114.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp114.loopexit.split-lp.loopexit, %.loopexit113
  %lpad.phi116 = phi { ptr, i32 } [ %lpad.loopexit115, %.loopexit113 ], [ %lpad.loopexit117, %.loopexit.split-lp114.loopexit ], [ %lpad.loopexit120, %.loopexit.split-lp114.loopexit.split-lp.loopexit ], [ %lpad.loopexit122, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit125, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit127, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit130, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit132, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp133, %.loopexit.split-lp114.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %114

111:                                              ; preds = %._crit_edge76.8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %common.ret

112:                                              ; preds = %._crit_edge76.8
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %114

114:                                              ; preds = %112, %.loopexit.split-lp114
  %.pn58 = phi { ptr, i32 } [ %lpad.phi116, %.loopexit.split-lp114 ], [ %113, %112 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  br label %180

115:                                              ; preds = %49
  %116 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @ans) #5
  %117 = icmp eq i64 %116, %53
  br i1 %117, label %.preheader62, label %common.ret

.preheader62:                                     ; preds = %115
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %118 = load i32, ptr @cur, align 16, !tbaa !5
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %169, %.preheader62
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 4), align 4, !tbaa !5
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %122
  %.072.1 = phi i32 [ %123, %122 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 2, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %122 unwind label %.loopexit.split-lp.loopexit

122:                                              ; preds = %.lr.ph.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %123 = add nuw nsw i32 %.072.1, 1
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 4), align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !12

._crit_edge.1:                                    ; preds = %122, %._crit_edge
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 8), align 8, !tbaa !5
  %127 = icmp sgt i32 %126, 0
  br i1 %127, label %.lr.ph.2, label %._crit_edge.2

.lr.ph.2:                                         ; preds = %._crit_edge.1, %128
  %.072.2 = phi i32 [ %129, %128 ], [ 0, %._crit_edge.1 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 3, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %128 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

128:                                              ; preds = %.lr.ph.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %129 = add nuw nsw i32 %.072.2, 1
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 8), align 8, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !12

._crit_edge.2:                                    ; preds = %128, %._crit_edge.1
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 12), align 4, !tbaa !5
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %.lr.ph.3, label %._crit_edge.3

.lr.ph.3:                                         ; preds = %._crit_edge.2, %134
  %.072.3 = phi i32 [ %135, %134 ], [ 0, %._crit_edge.2 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 4, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %134 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

134:                                              ; preds = %.lr.ph.3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %135 = add nuw nsw i32 %.072.3, 1
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 12), align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %.lr.ph.3, label %._crit_edge.3, !llvm.loop !12

._crit_edge.3:                                    ; preds = %134, %._crit_edge.2
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 16), align 16, !tbaa !5
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph.4, label %._crit_edge.4

.lr.ph.4:                                         ; preds = %._crit_edge.3, %140
  %.072.4 = phi i32 [ %141, %140 ], [ 0, %._crit_edge.3 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 5, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %140 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

140:                                              ; preds = %.lr.ph.4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %141 = add nuw nsw i32 %.072.4, 1
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 16), align 16, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %.lr.ph.4, label %._crit_edge.4, !llvm.loop !12

._crit_edge.4:                                    ; preds = %140, %._crit_edge.3
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 20), align 4, !tbaa !5
  %145 = icmp sgt i32 %144, 0
  br i1 %145, label %.lr.ph.5, label %._crit_edge.5

.lr.ph.5:                                         ; preds = %._crit_edge.4, %146
  %.072.5 = phi i32 [ %147, %146 ], [ 0, %._crit_edge.4 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 6, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %146 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

146:                                              ; preds = %.lr.ph.5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %147 = add nuw nsw i32 %.072.5, 1
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 20), align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %.lr.ph.5, label %._crit_edge.5, !llvm.loop !12

._crit_edge.5:                                    ; preds = %146, %._crit_edge.4
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 24), align 8, !tbaa !5
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %.lr.ph.6, label %._crit_edge.6

.lr.ph.6:                                         ; preds = %._crit_edge.5, %152
  %.072.6 = phi i32 [ %153, %152 ], [ 0, %._crit_edge.5 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 7, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %152 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

152:                                              ; preds = %.lr.ph.6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %153 = add nuw nsw i32 %.072.6, 1
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 24), align 8, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %.lr.ph.6, label %._crit_edge.6, !llvm.loop !12

._crit_edge.6:                                    ; preds = %152, %._crit_edge.5
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 28), align 4, !tbaa !5
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph.7, label %._crit_edge.7

.lr.ph.7:                                         ; preds = %._crit_edge.6, %158
  %.072.7 = phi i32 [ %159, %158 ], [ 0, %._crit_edge.6 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 8, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

158:                                              ; preds = %.lr.ph.7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %159 = add nuw nsw i32 %.072.7, 1
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 28), align 4, !tbaa !5
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %.lr.ph.7, label %._crit_edge.7, !llvm.loop !12

._crit_edge.7:                                    ; preds = %158, %._crit_edge.6
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 32), align 16, !tbaa !5
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %.lr.ph.8, label %._crit_edge.8

.lr.ph.8:                                         ; preds = %._crit_edge.7, %164
  %.072.8 = phi i32 [ %165, %164 ], [ 0, %._crit_edge.7 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 9, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %164 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

164:                                              ; preds = %.lr.ph.8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %165 = add nuw nsw i32 %.072.8, 1
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @cur, i64 32), align 16, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %.lr.ph.8, label %._crit_edge.8, !llvm.loop !12

._crit_edge.8:                                    ; preds = %164, %._crit_edge.7
  %168 = invoke noundef zeroext i1 @_ZStltIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @ans)
          to label %173 unwind label %176

.lr.ph:                                           ; preds = %.preheader62, %169
  %.072 = phi i32 [ %170, %169 ], [ 0, %.preheader62 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %169 unwind label %.loopexit

169:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %170 = add nuw nsw i32 %.072, 1
  %171 = load i32, ptr @cur, align 16, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %.lr.ph, label %._crit_edge, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.lr.ph.1
  %lpad.loopexit91 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph.2
  %lpad.loopexit94 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph.3
  %lpad.loopexit96 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph.4
  %lpad.loopexit99 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph.5
  %lpad.loopexit101 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph.6
  %lpad.loopexit104 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph.7
  %lpad.loopexit106 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.lr.ph.8
  %lpad.loopexit.split-lp107 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit91, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit94, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit96, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit99, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit101, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit104, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit106, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp107, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %179

173:                                              ; preds = %._crit_edge.8
  br i1 %168, label %174, label %178

174:                                              ; preds = %173
  %175 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) @ans, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %178 unwind label %176

176:                                              ; preds = %174, %._crit_edge.8
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %179

178:                                              ; preds = %174, %173
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %common.ret

179:                                              ; preds = %176, %.loopexit.split-lp
  %.pn = phi { ptr, i32 } [ %lpad.phi, %.loopexit.split-lp ], [ %177, %176 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %180

180:                                              ; preds = %179, %114
  %.pn58.pn = phi { ptr, i32 } [ %.pn58, %114 ], [ %.pn, %179 ]
  resume { ptr, i32 } %.pn58.pn
}

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v8i32(<8 x i32>) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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}


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