; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/树算法/限定距离的子树问题.ll (Z4initv)

; 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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@w = external dso_local global [1010000 x i32], align 16
@head = external dso_local global [1010000 x i32], align 16
@nxt = external dso_local global [2020000 x i32], align 16
@to = external dso_local global [2020000 x i32], align 16
@id = external dso_local global [1010000 x i32], align 16
@l = external dso_local global [1010000 x i32], align 16
@r = external dso_local global [1010000 x i32], align 16
@father = external dso_local global [1010000 x i32], align 16
@depth = external dso_local global [1010000 x i32], align 16
@seq = external dso_local global [1010000 x i32], align 16
@sum = external dso_local global [1010000 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::queue", align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %2) #4
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %14
  store i32 0, ptr %15, align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([1010000 x i32], ptr @depth, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([1010000 x i32], ptr @father, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %16 unwind label %49

16:                                               ; preds = %0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %17

17:                                               ; preds = %120, %16
  %18 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
          to label %19 unwind label %53

19:                                               ; preds = %17
  %20 = xor i1 %18, true
  br i1 %20, label %21, label %122

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %22 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
          to label %23 unwind label %57

23:                                               ; preds = %21
  %24 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %24, ptr %6, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
          to label %25 unwind label %57

25:                                               ; preds = %23
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %1, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %29
  store i32 %26, ptr %30, align 4, !tbaa !5
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [1010000 x i32], ptr @id, i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %36
  store i32 0, ptr %37, align 4, !tbaa !5
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %39
  store i32 0, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [1010000 x i32], ptr @head, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %44, ptr %7, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %115, %25
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %61, label %48

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

49:                                               ; preds = %0
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %4, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %218

53:                                               ; preds = %17
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %4, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %5, align 4
  br label %218

57:                                               ; preds = %23, %21
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %4, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %5, align 4
  br label %121

61:                                               ; preds = %45
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [2020000 x i32], ptr @to, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [1010000 x i32], ptr @father, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp ne i32 %65, %69
  br i1 %70, label %71, label %114

71:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [2020000 x i32], ptr @to, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr %8, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %86

81:                                               ; preds = %71
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  br label %88

86:                                               ; preds = %71
  %87 = load i32, ptr %8, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %86, %81
  %89 = phi i32 [ %85, %81 ], [ %87, %86 ]
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %91
  store i32 %89, ptr %92, align 4, !tbaa !5
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %95
  store i32 %93, ptr %96, align 4, !tbaa !5
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1010000 x i32], ptr @father, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1010000 x i32], ptr @depth, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  %106 = load i32, ptr %8, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1010000 x i32], ptr @depth, i64 0, i64 %107
  store i32 %105, ptr %108, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %109 unwind label %110

109:                                              ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %114

110:                                              ; preds = %88
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %4, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %121

114:                                              ; preds = %109, %61
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [2020000 x i32], ptr @nxt, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  store i32 %119, ptr %7, align 4, !tbaa !5
  br label %45, !llvm.loop !9

120:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %17, !llvm.loop !11

121:                                              ; preds = %110, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %218

122:                                              ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %146, %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = icmp sle i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %149

128:                                              ; preds = %123
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = sub nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %131
  %133 = load i64, ptr %132, align 8, !tbaa !12
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = add nsw i64 %133, %141
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %144
  store i64 %142, ptr %145, align 8, !tbaa !12
  br label %146

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

149:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %180, %149
  %151 = load i32, ptr %10, align 4, !tbaa !5
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %183

155:                                              ; preds = %150
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %179, label %164

164:                                              ; preds = %155
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sub nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = load i32, ptr %10, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %177
  store i32 %172, ptr %178, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %164, %155
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %10, align 4, !tbaa !5
  br label %150, !llvm.loop !15

183:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %184 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %184, ptr %11, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %214, %183
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = icmp sge i32 %186, 1
  br i1 %187, label %189, label %188

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

189:                                              ; preds = %185
  %190 = load i32, ptr %11, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %213, label %198

198:                                              ; preds = %189
  %199 = load i32, ptr %11, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = load i32, ptr %11, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %211
  store i32 %206, ptr %212, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %198, %189
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = add nsw i32 %215, -1
  store i32 %216, ptr %11, align 4, !tbaa !5
  br label %185, !llvm.loop !16

217:                                              ; preds = %188
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void

218:                                              ; preds = %121, %53, %49
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %219

219:                                              ; preds = %218
  %220 = load ptr, ptr %4, align 8
  %221 = load i32, ptr %5, align 4
  %222 = insertvalue { ptr, i32 } poison, ptr %220, 0
  %223 = insertvalue { ptr, i32 } %222, i32 %221, 1
  resume { ptr, i32 } %223
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

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

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

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


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

%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@w = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@head = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@nxt = external dso_local local_unnamed_addr global [2020000 x i32], align 16
@to = external dso_local local_unnamed_addr global [2020000 x i32], align 16
@id = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@l = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@r = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@father = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@depth = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@seq = external dso_local local_unnamed_addr global [1010000 x i32], align 16
@sum = external dso_local local_unnamed_addr global [1010000 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4initv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = add nsw i32 %4, 1
  %6 = sext i32 %5 to i64
  %7 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %6
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @depth, i64 4), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @father, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %8 unwind label %25

8:                                                ; preds = %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  %9 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %9, label %.preheader50, label %.lr.ph55

.loopexit:                                        ; preds = %42, %.lr.ph55
  %10 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %10, label %.preheader50, label %.lr.ph55, !llvm.loop !9

.preheader50:                                     ; preds = %.loopexit, %8
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %.not56 = icmp slt i32 %11, 1
  br i1 %.not56, label %._crit_edge, label %.lr.ph58.preheader

.lr.ph58.preheader:                               ; preds = %.preheader50
  %.pre = load i64, ptr @sum, align 16, !tbaa !11
  %12 = zext nneg i32 %11 to i64
  %xtraiter = and i64 %12, 3
  %13 = icmp ult i32 %11, 4
  br i1 %13, label %.preheader49.unr-lcssa, label %.lr.ph58.preheader.new

.lr.ph58.preheader.new:                           ; preds = %.lr.ph58.preheader
  %unroll_iter = and i64 %12, 2147483644
  br label %.lr.ph58

.lr.ph55:                                         ; preds = %8, %.loopexit
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit ], [ 0, %8 ]
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %15 = load i32, ptr %14, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv.next
  store i32 %15, ptr %16, align 4, !tbaa !5
  %17 = sext i32 %15 to i64
  %18 = getelementptr inbounds [1010000 x i32], ptr @id, i64 0, i64 %17
  %19 = trunc nuw i64 %indvars.iv.next to i32
  store i32 %19, ptr %18, align 4, !tbaa !5
  %20 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %17
  store i32 0, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %17
  store i32 0, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds [1010000 x i32], ptr @head, i64 0, i64 %17
  %.03651 = load i32, ptr %22, align 4, !tbaa !5
  %.not4552 = icmp eq i32 %.03651, 0
  br i1 %.not4552, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph55
  %23 = getelementptr inbounds [1010000 x i32], ptr @father, i64 0, i64 %17
  %24 = getelementptr inbounds [1010000 x i32], ptr @depth, i64 0, i64 %17
  br label %27

25:                                               ; preds = %0
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %136

27:                                               ; preds = %.lr.ph, %42
  %.03653 = phi i32 [ %.03651, %.lr.ph ], [ %.036, %42 ]
  %28 = sext i32 %.03653 to i64
  %29 = getelementptr inbounds [2020000 x i32], ptr @to, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = load i32, ptr %23, align 4, !tbaa !5
  %.not46 = icmp eq i32 %30, %31
  br i1 %.not46, label %42, label %32

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store i32 %30, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr %21, align 4, !tbaa !5
  %.not47 = icmp eq i32 %33, 0
  %. = select i1 %.not47, i32 %30, i32 %33
  store i32 %., ptr %21, align 4, !tbaa !5
  store i32 %30, ptr %20, align 4, !tbaa !5
  %34 = sext i32 %30 to i64
  %35 = getelementptr inbounds [1010000 x i32], ptr @father, i64 0, i64 %34
  store i32 %15, ptr %35, align 4, !tbaa !5
  %36 = load i32, ptr %24, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  %38 = getelementptr inbounds [1010000 x i32], ptr @depth, i64 0, i64 %34
  store i32 %37, ptr %38, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %39 unwind label %40

39:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %42

40:                                               ; preds = %32
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %136

42:                                               ; preds = %27, %39
  %43 = getelementptr inbounds [2020000 x i32], ptr @nxt, i64 0, i64 %28
  %.036 = load i32, ptr %43, align 4, !tbaa !5
  %.not45 = icmp eq i32 %.036, 0
  br i1 %.not45, label %.loopexit, label %27, !llvm.loop !13

.preheader49.unr-lcssa:                           ; preds = %.lr.ph58, %.lr.ph58.preheader
  %.unr = phi i64 [ %.pre, %.lr.ph58.preheader ], [ %85, %.lr.ph58 ]
  %indvars.iv65.unr = phi i64 [ 1, %.lr.ph58.preheader ], [ %indvars.iv.next66.3, %.lr.ph58 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader49, label %.lr.ph58.epil

.lr.ph58.epil:                                    ; preds = %.preheader49.unr-lcssa, %.lr.ph58.epil
  %44 = phi i64 [ %51, %.lr.ph58.epil ], [ %.unr, %.preheader49.unr-lcssa ]
  %indvars.iv65.epil = phi i64 [ %indvars.iv.next66.epil, %.lr.ph58.epil ], [ %indvars.iv65.unr, %.preheader49.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph58.epil ], [ 0, %.preheader49.unr-lcssa ]
  %45 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv65.epil
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = add nsw i64 %44, %50
  %52 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %indvars.iv65.epil
  store i64 %51, ptr %52, align 8, !tbaa !11
  %indvars.iv.next66.epil = add nuw nsw i64 %indvars.iv65.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader49, label %.lr.ph58.epil, !llvm.loop !14

.preheader49:                                     ; preds = %.lr.ph58.epil, %.preheader49.unr-lcssa
  br i1 %.not56, label %._crit_edge, label %.lr.ph61.preheader

.lr.ph61.preheader:                               ; preds = %.preheader49
  %xtraiter76 = and i64 %12, 1
  %53 = icmp eq i32 %11, 1
  br i1 %53, label %.lr.ph63.preheader.unr-lcssa, label %.lr.ph61.preheader.new

.lr.ph61.preheader.new:                           ; preds = %.lr.ph61.preheader
  %unroll_iter79 = and i64 %12, 2147483646
  br label %.lr.ph61

.lr.ph58:                                         ; preds = %.lr.ph58, %.lr.ph58.preheader.new
  %54 = phi i64 [ %.pre, %.lr.ph58.preheader.new ], [ %85, %.lr.ph58 ]
  %indvars.iv65 = phi i64 [ 1, %.lr.ph58.preheader.new ], [ %indvars.iv.next66.3, %.lr.ph58 ]
  %niter = phi i64 [ 0, %.lr.ph58.preheader.new ], [ %niter.next.3, %.lr.ph58 ]
  %55 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv65
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = add nsw i64 %54, %60
  %62 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %indvars.iv65
  store i64 %61, ptr %62, align 8, !tbaa !11
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %63 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv.next66
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = add nsw i64 %61, %68
  %70 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %indvars.iv.next66
  store i64 %69, ptr %70, align 8, !tbaa !11
  %indvars.iv.next66.1 = add nuw nsw i64 %indvars.iv65, 2
  %71 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv.next66.1
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = add nsw i64 %69, %76
  %78 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %indvars.iv.next66.1
  store i64 %77, ptr %78, align 8, !tbaa !11
  %indvars.iv.next66.2 = add nuw nsw i64 %indvars.iv65, 3
  %79 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv.next66.2
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1010000 x i32], ptr @w, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = add nsw i64 %77, %84
  %86 = getelementptr inbounds [1010000 x i64], ptr @sum, i64 0, i64 %indvars.iv.next66.2
  store i64 %85, ptr %86, align 8, !tbaa !11
  %indvars.iv.next66.3 = add nuw nsw i64 %indvars.iv65, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader49.unr-lcssa, label %.lr.ph58, !llvm.loop !16

.lr.ph63.preheader.unr-lcssa:                     ; preds = %121, %.lr.ph61.preheader
  %indvars.iv68.unr = phi i64 [ 1, %.lr.ph61.preheader ], [ %indvars.iv.next69.1, %121 ]
  %lcmp.mod78.not = icmp eq i64 %xtraiter76, 0
  br i1 %lcmp.mod78.not, label %.lr.ph63.preheader, label %.lr.ph61.epil

.lr.ph61.epil:                                    ; preds = %.lr.ph63.preheader.unr-lcssa
  %87 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv68.unr
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %.not44.epil = icmp eq i32 %91, 0
  br i1 %.not44.epil, label %92, label %.lr.ph63.preheader

92:                                               ; preds = %.lr.ph61.epil
  %93 = add nsw i64 %indvars.iv68.unr, -1
  %94 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  store i32 %98, ptr %90, align 4, !tbaa !5
  br label %.lr.ph63.preheader

.lr.ph63.preheader:                               ; preds = %.lr.ph61.epil, %92, %.lr.ph63.preheader.unr-lcssa
  %99 = zext nneg i32 %11 to i64
  br label %.lr.ph63

.lr.ph61:                                         ; preds = %121, %.lr.ph61.preheader.new
  %indvars.iv68 = phi i64 [ 1, %.lr.ph61.preheader.new ], [ %indvars.iv.next69.1, %121 ]
  %niter80 = phi i64 [ 0, %.lr.ph61.preheader.new ], [ %niter80.next.1, %121 ]
  %100 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv68
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %.not44 = icmp eq i32 %104, 0
  br i1 %.not44, label %105, label %.lr.ph61.1

105:                                              ; preds = %.lr.ph61
  %106 = add nsw i64 %indvars.iv68, -1
  %107 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  store i32 %111, ptr %103, align 4, !tbaa !5
  br label %.lr.ph61.1

.lr.ph61.1:                                       ; preds = %.lr.ph61, %105
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %112 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv.next69
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %.not44.1 = icmp eq i32 %116, 0
  br i1 %.not44.1, label %117, label %121

117:                                              ; preds = %.lr.ph61.1
  %118 = sext i32 %101 to i64
  %119 = getelementptr inbounds [1010000 x i32], ptr @r, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  store i32 %120, ptr %115, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %117, %.lr.ph61.1
  %indvars.iv.next69.1 = add nuw nsw i64 %indvars.iv68, 2
  %niter80.next.1 = add i64 %niter80, 2
  %niter80.ncmp.1 = icmp eq i64 %niter80.next.1, %unroll_iter79
  br i1 %niter80.ncmp.1, label %.lr.ph63.preheader.unr-lcssa, label %.lr.ph61, !llvm.loop !17

._crit_edge:                                      ; preds = %134, %.preheader50, %.preheader49
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  ret void

.lr.ph63:                                         ; preds = %.lr.ph63.preheader, %134
  %indvars.iv73 = phi i64 [ %99, %.lr.ph63.preheader ], [ %indvars.iv.next74, %134 ]
  %122 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %indvars.iv73
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %.not43 = icmp eq i32 %126, 0
  br i1 %.not43, label %127, label %134

127:                                              ; preds = %.lr.ph63
  %128 = add nuw nsw i64 %indvars.iv73, 1
  %129 = getelementptr inbounds [1010000 x i32], ptr @seq, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [1010000 x i32], ptr @l, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  store i32 %133, ptr %125, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %.lr.ph63, %127
  %indvars.iv.next74 = add nsw i64 %indvars.iv73, -1
  %135 = icmp sgt i64 %indvars.iv73, 1
  br i1 %135, label %.lr.ph63, label %._crit_edge, !llvm.loop !18

136:                                              ; preds = %40, %25
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %26, %25 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushEOi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

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

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

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


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