; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x26-广搜变形/176. 装满的油箱.ll (Z5solveiii)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.P = type { i32, i32, i32 }

@p = external dso_local global [1010 x i32], align 16
@v = external dso_local global [1010 x [110 x i32]], align 16
@d = external dso_local global [1010 x [110 x i32]], align 16
@head = external dso_local global [1010 x i32], align 16
@ver = external dso_local global [20020 x i32], align 16
@edge = external dso_local global [20020 x i32], align 16
@Next = external dso_local global [20020 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::priority_queue", align 8
  %8 = alloca %struct.P, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.P, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.P, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.P, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @v, i8 0, i64 444400, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @d, i8 127, i64 444400, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #8
  %19 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 0
  %20 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %20, ptr %19, align 4, !tbaa !9
  %21 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 1
  store i32 0, ptr %21, align 4, !tbaa !11
  %22 = getelementptr inbounds %struct.P, ptr %8, i32 0, i32 2
  store i32 0, ptr %22, align 4, !tbaa !12
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %23 unwind label %47

23:                                               ; preds = %3
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #8
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %25
  %27 = getelementptr inbounds [110 x i32], ptr %26, i64 0, i64 0
  store i32 0, ptr %27, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %216, %214, %23
  %29 = invoke noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %30 unwind label %51

30:                                               ; preds = %28
  %31 = icmp ne i64 %29, 0
  br i1 %31, label %32, label %218

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %33 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %34 unwind label %55

34:                                               ; preds = %32
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !13
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %35 unwind label %55

35:                                               ; preds = %34
  %36 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %59

40:                                               ; preds = %35
  %41 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %42)
          to label %44 unwind label %55

44:                                               ; preds = %40
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %46 unwind label %55

46:                                               ; preds = %44
  store i32 1, ptr %12, align 4
  br label %214

47:                                               ; preds = %3
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %9, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #8
  br label %226

51:                                               ; preds = %220, %218, %28
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %9, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %10, align 4
  br label %226

55:                                               ; preds = %44, %40, %34, %32
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  br label %217

59:                                               ; preds = %35
  %60 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1010 x [110 x i32]], ptr @v, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [110 x i32], ptr %63, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %59
  store i32 2, ptr %12, align 4
  br label %214, !llvm.loop !14

71:                                               ; preds = %59
  %72 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1010 x [110 x i32]], ptr @v, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [110 x i32], ptr %75, i64 0, i64 %78
  store i32 1, ptr %79, align 4, !tbaa !5
  %80 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %84, label %143

84:                                               ; preds = %71
  %85 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [110 x i32], ptr %88, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !12
  %97 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = add nsw i32 %96, %101
  %103 = icmp sgt i32 %94, %102
  br i1 %103, label %104, label %143

104:                                              ; preds = %84
  %105 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !12
  %107 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %106, %111
  %113 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %115
  %117 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [110 x i32], ptr %116, i64 0, i64 %120
  store i32 %112, ptr %121, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %122 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 0
  %123 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %124 = load i32, ptr %123, align 4, !tbaa !9
  store i32 %124, ptr %122, align 4, !tbaa !9
  %125 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 1
  %126 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %125, align 4, !tbaa !11
  %129 = getelementptr inbounds %struct.P, ptr %13, i32 0, i32 2
  %130 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !12
  %132 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = add nsw i32 %131, %136
  store i32 %137, ptr %129, align 4, !tbaa !12
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %138 unwind label %139

138:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  br label %143

139:                                              ; preds = %104
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  br label %217

143:                                              ; preds = %138, %84, %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %144 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 0
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1010 x i32], ptr @head, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  store i32 %148, ptr %15, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %208, %143
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %213

153:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %154 = load i32, ptr %15, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [20020 x i32], ptr @ver, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !5
  store i32 %157, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %158 = load i32, ptr %15, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [20020 x i32], ptr @edge, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  store i32 %161, ptr %17, align 4, !tbaa !5
  %162 = load i32, ptr %17, align 4, !tbaa !5
  %163 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !11
  %165 = icmp sle i32 %162, %164
  br i1 %165, label %166, label %207

166:                                              ; preds = %153
  %167 = load i32, ptr %16, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %168
  %170 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %171 = load i32, ptr %170, align 4, !tbaa !11
  %172 = load i32, ptr %17, align 4, !tbaa !5
  %173 = sub nsw i32 %171, %172
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [110 x i32], ptr %169, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !12
  %179 = icmp sgt i32 %176, %178
  br i1 %179, label %180, label %207

180:                                              ; preds = %166
  %181 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !12
  %183 = load i32, ptr %16, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %184
  %186 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !11
  %188 = load i32, ptr %17, align 4, !tbaa !5
  %189 = sub nsw i32 %187, %188
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [110 x i32], ptr %185, i64 0, i64 %190
  store i32 %182, ptr %191, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  %192 = getelementptr inbounds %struct.P, ptr %18, i32 0, i32 0
  %193 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %193, ptr %192, align 4, !tbaa !9
  %194 = getelementptr inbounds %struct.P, ptr %18, i32 0, i32 1
  %195 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !11
  %197 = load i32, ptr %17, align 4, !tbaa !5
  %198 = sub nsw i32 %196, %197
  store i32 %198, ptr %194, align 4, !tbaa !11
  %199 = getelementptr inbounds %struct.P, ptr %18, i32 0, i32 2
  %200 = getelementptr inbounds %struct.P, ptr %11, i32 0, i32 2
  %201 = load i32, ptr %200, align 4, !tbaa !12
  store i32 %201, ptr %199, align 4, !tbaa !12
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %202 unwind label %203

202:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  br label %207

203:                                              ; preds = %180
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %217

207:                                              ; preds = %202, %166, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %15, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [20020 x i32], ptr @Next, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  store i32 %212, ptr %15, align 4, !tbaa !5
  br label %149, !llvm.loop !16

213:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  store i32 0, ptr %12, align 4
  br label %214

214:                                              ; preds = %213, %70, %46
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  %215 = load i32, ptr %12, align 4
  switch i32 %215, label %223 [
    i32 0, label %216
    i32 2, label %28
  ]

216:                                              ; preds = %214
  br label %28, !llvm.loop !14

217:                                              ; preds = %203, %139, %55
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  br label %226

218:                                              ; preds = %30
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %220 unwind label %51

220:                                              ; preds = %218
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %222 unwind label %51

222:                                              ; preds = %220
  store i32 0, ptr %12, align 4
  br label %223

223:                                              ; preds = %222, %214
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  %224 = load i32, ptr %12, align 4
  switch i32 %224, label %232 [
    i32 0, label %225
    i32 1, label %225
  ]

225:                                              ; preds = %223, %223
  ret void

226:                                              ; preds = %217, %51, %47
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %9, align 8
  %229 = load i32, ptr %10, align 4
  %230 = insertvalue { ptr, i32 } poison, ptr %228, 0
  %231 = insertvalue { ptr, i32 } %230, i32 %229, 1
  resume { ptr, i32 } %231

232:                                              ; preds = %223
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(12)) #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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #7 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { 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 #7 = { 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 #8 = { nounwind }

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

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


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl" = type { %"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" }
%"struct.std::_Vector_base<P, std::allocator<P>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.P = type { i32, i32, i32 }

@p = external dso_local local_unnamed_addr global [1010 x i32], align 16
@v = external dso_local local_unnamed_addr global [1010 x [110 x i32]], align 16
@d = external dso_local local_unnamed_addr global [1010 x [110 x i32]], align 16
@head = external dso_local local_unnamed_addr global [1010 x i32], align 16
@ver = external dso_local local_unnamed_addr global [20020 x i32], align 16
@edge = external dso_local local_unnamed_addr global [20020 x i32], align 16
@Next = external dso_local local_unnamed_addr global [20020 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::priority_queue", align 8
  %5 = alloca %struct.P, align 4
  %6 = alloca %struct.P, align 4
  %7 = alloca %struct.P, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(444400) @v, i8 0, i64 444400, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(444400) @d, i8 127, i64 444400, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  store i32 %1, ptr %5, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 0, ptr %8, align 4, !tbaa !10
  %9 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 0, ptr %9, align 4, !tbaa !11
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %10 unwind label %26

10:                                               ; preds = %3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  %11 = sext i32 %1 to i64
  %12 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %11
  store i32 0, ptr %12, align 8, !tbaa !12
  %13 = call noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  %.not60 = icmp eq i64 %13, 0
  br i1 %.not60, label %._crit_edge, label %.lr.ph61

.lr.ph61:                                         ; preds = %10
  %14 = getelementptr inbounds i8, ptr %6, i64 4
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = getelementptr inbounds i8, ptr %7, i64 4
  %17 = getelementptr inbounds i8, ptr %7, i64 8
  br label %18

18:                                               ; preds = %.lr.ph61, %.loopexit
  %19 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  %.sroa.0.0.copyload = load i32, ptr %19, align 4, !tbaa !12
  %.sroa.14.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 4
  %.sroa.14.0.copyload = load i32, ptr %.sroa.14.0..sroa_idx, align 4, !tbaa !12
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.24.0.copyload = load i32, ptr %.sroa.24.0..sroa_idx, align 4, !tbaa !12
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
          to label %20 unwind label %.loopexit53

20:                                               ; preds = %18
  %21 = icmp eq i32 %.sroa.0.0.copyload, %2
  br i1 %21, label %22, label %30

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.24.0.copyload)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread unwind label %.loopexit.split-lp

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  br label %74

28:                                               ; preds = %72, %._crit_edge
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %74

.loopexit53:                                      ; preds = %18
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %74

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

30:                                               ; preds = %20
  %31 = sext i32 %.sroa.0.0.copyload to i64
  %32 = sext i32 %.sroa.14.0.copyload to i64
  %33 = getelementptr inbounds [1010 x [110 x i32]], ptr @v, i64 0, i64 %31, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !12
  %.not47 = icmp eq i32 %34, 0
  br i1 %.not47, label %35, label %.loopexit, !llvm.loop !13

35:                                               ; preds = %30
  store i32 1, ptr %33, align 4, !tbaa !12
  %36 = icmp slt i32 %.sroa.14.0.copyload, %0
  br i1 %36, label %37, label %50

37:                                               ; preds = %35
  %38 = add nsw i32 %.sroa.14.0.copyload, 1
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %31, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !12
  %42 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %31
  %43 = load i32, ptr %42, align 4, !tbaa !12
  %44 = add nsw i32 %43, %.sroa.24.0.copyload
  %45 = icmp sgt i32 %41, %44
  br i1 %45, label %46, label %50

46:                                               ; preds = %37
  store i32 %44, ptr %40, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  store i32 %.sroa.0.0.copyload, ptr %6, align 4, !tbaa !5
  store i32 %38, ptr %14, align 4, !tbaa !10
  store i32 %44, ptr %15, align 4, !tbaa !11
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %47 unwind label %48

47:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br label %50

48:                                               ; preds = %46
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br label %74

50:                                               ; preds = %47, %37, %35
  %51 = getelementptr inbounds [1010 x i32], ptr @head, i64 0, i64 %31
  %.04357 = load i32, ptr %51, align 4, !tbaa !12
  %.not4858 = icmp eq i32 %.04357, 0
  br i1 %.not4858, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %50, %68
  %.04359 = phi i32 [ %.043, %68 ], [ %.04357, %50 ]
  %52 = sext i32 %.04359 to i64
  %53 = getelementptr inbounds [20020 x i32], ptr @ver, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !12
  %55 = getelementptr inbounds [20020 x i32], ptr @edge, i64 0, i64 %52
  %56 = load i32, ptr %55, align 4, !tbaa !12
  %.not49 = icmp sgt i32 %56, %.sroa.14.0.copyload
  br i1 %.not49, label %68, label %57

57:                                               ; preds = %.lr.ph
  %58 = sext i32 %54 to i64
  %59 = sub nsw i32 %.sroa.14.0.copyload, %56
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [1010 x [110 x i32]], ptr @d, i64 0, i64 %58, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !12
  %63 = icmp sgt i32 %62, %.sroa.24.0.copyload
  br i1 %63, label %64, label %68

64:                                               ; preds = %57
  store i32 %.sroa.24.0.copyload, ptr %61, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  store i32 %54, ptr %7, align 4, !tbaa !5
  store i32 %59, ptr %16, align 4, !tbaa !10
  store i32 %.sroa.24.0.copyload, ptr %17, align 4, !tbaa !11
  invoke void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %65 unwind label %66

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %68

66:                                               ; preds = %64
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br label %74

68:                                               ; preds = %65, %57, %.lr.ph
  %69 = getelementptr inbounds [20020 x i32], ptr @Next, i64 0, i64 %52
  %.043 = load i32, ptr %69, align 4, !tbaa !12
  %.not48 = icmp eq i32 %.043, 0
  br i1 %.not48, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %68, %50, %30
  %70 = call noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %4)
  %.not = icmp eq i64 %70, 0
  br i1 %.not, label %._crit_edge, label %18

._crit_edge:                                      ; preds = %.loopexit, %10
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %72 unwind label %28

72:                                               ; preds = %._crit_edge
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.thread unwind label %28

.thread:                                          ; preds = %24, %72
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  ret void

74:                                               ; preds = %.loopexit53, %.loopexit.split-lp, %48, %66, %28, %26
  %.pn.pn = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ], [ %67, %66 ], [ %49, %48 ], [ %lpad.loopexit, %.loopexit53 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4pushEOS0_(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 4 dereferenceable(12)) 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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14priority_queueI1PSt6vectorIS0_SaIS0_EESt4lessIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25)) unnamed_addr #6 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 nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !7, i64 0}
!6 = !{!"_ZTS1P", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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