; LLVM IR from abeaumont/competitive-programming :: codejam/2008-round-2 (a)

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.node, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.node, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %38 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %39 = getelementptr i8, ptr %38, i64 -24
  %40 = load i64, ptr %39, align 8
  %41 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %40
  %42 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %41, ptr noundef null)
  %43 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 1, ptr %7, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %375, %0
  %46 = load i32, ptr %7, align 4, !tbaa !8
  %47 = load i32, ptr %2, align 4, !tbaa !8
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %380

50:                                               ; preds = %45
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %53 = load i32, ptr %3, align 4, !tbaa !8
  %54 = add nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  call void @_ZNSaI4nodeEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt6vectorI4nodeSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %56 unwind label %64

56:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %57

57:                                               ; preds = %82, %56
  %58 = load i32, ptr %13, align 4, !tbaa !8
  %59 = load i32, ptr %3, align 4, !tbaa !8
  %60 = sub nsw i32 %59, 1
  %61 = sdiv i32 %60, 2
  %62 = icmp sle i32 %58, %61
  br i1 %62, label %68, label %63

63:                                               ; preds = %57
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %89

64:                                               ; preds = %50
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %11, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %12, align 4
  call void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %379

68:                                               ; preds = %57
  %69 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %70 unwind label %85

70:                                               ; preds = %68
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %69, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %72 unwind label %85

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %73 = getelementptr inbounds %struct.node, ptr %14, i32 0, i32 0
  %74 = load i32, ptr %5, align 4, !tbaa !8
  store i32 %74, ptr %73, align 4, !tbaa !11
  %75 = getelementptr inbounds %struct.node, ptr %14, i32 0, i32 1
  %76 = load i32, ptr %6, align 4, !tbaa !8
  store i32 %76, ptr %75, align 4, !tbaa !13
  %77 = getelementptr inbounds %struct.node, ptr %14, i32 0, i32 2
  store i32 100000, ptr %77, align 4, !tbaa !14
  %78 = getelementptr inbounds %struct.node, ptr %14, i32 0, i32 3
  store i32 100000, ptr %78, align 4, !tbaa !15
  %79 = load i32, ptr %13, align 4, !tbaa !8
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %80) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %14, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %82

82:                                               ; preds = %72
  %83 = load i32, ptr %13, align 4, !tbaa !8
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %13, align 4, !tbaa !8
  br label %57, !llvm.loop !17

85:                                               ; preds = %70, %68
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %11, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %378

89:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %90 = load i32, ptr %3, align 4, !tbaa !8
  %91 = sub nsw i32 %90, 1
  %92 = sdiv i32 %91, 2
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %15, align 4, !tbaa !8
  br label %94

94:                                               ; preds = %118, %89
  %95 = load i32, ptr %15, align 4, !tbaa !8
  %96 = load i32, ptr %3, align 4, !tbaa !8
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %125

99:                                               ; preds = %94
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %101 unwind label %121

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %102 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 0
  store i32 0, ptr %102, align 4, !tbaa !11
  %103 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 1
  store i32 0, ptr %103, align 4, !tbaa !13
  %104 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 2
  %105 = load i32, ptr %5, align 4, !tbaa !8
  %106 = icmp ne i32 %105, 0
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, i32 100000, i32 0
  store i32 %108, ptr %104, align 4, !tbaa !14
  %109 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 3
  %110 = load i32, ptr %5, align 4, !tbaa !8
  %111 = icmp ne i32 %110, 0
  %112 = xor i1 %111, true
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 100000, i32 0
  store i32 %114, ptr %109, align 4, !tbaa !15
  %115 = load i32, ptr %15, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %116) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %117, ptr align 4 %16, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %118

118:                                              ; preds = %101
  %119 = load i32, ptr %15, align 4, !tbaa !8
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %15, align 4, !tbaa !8
  br label %94, !llvm.loop !19

121:                                              ; preds = %99
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %11, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %378

125:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %126 = load i32, ptr %3, align 4, !tbaa !8
  %127 = sub nsw i32 %126, 1
  %128 = sdiv i32 %127, 2
  store i32 %128, ptr %17, align 4, !tbaa !8
  br label %129

129:                                              ; preds = %327, %125
  %130 = load i32, ptr %17, align 4, !tbaa !8
  %131 = icmp sgt i32 %130, 0
  br i1 %131, label %133, label %132

132:                                              ; preds = %129
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %335

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %134 = load i32, ptr %17, align 4, !tbaa !8
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %135) #8
  store ptr %136, ptr %18, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %137 = load i32, ptr %17, align 4, !tbaa !8
  %138 = mul nsw i32 %137, 2
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139) #8
  store ptr %140, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %141 = load i32, ptr %17, align 4, !tbaa !8
  %142 = mul nsw i32 %141, 2
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %144) #8
  store ptr %145, ptr %20, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 100000, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 100000, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 100000, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 100000, ptr %24, align 4, !tbaa !8
  %146 = load ptr, ptr %18, align 8, !tbaa !20
  %147 = getelementptr inbounds %struct.node, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 4, !tbaa !11
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %233

150:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %151 = load ptr, ptr %19, align 8, !tbaa !20
  %152 = getelementptr inbounds %struct.node, ptr %151, i32 0, i32 2
  %153 = load i32, ptr %152, align 4, !tbaa !14
  %154 = load ptr, ptr %20, align 8, !tbaa !20
  %155 = getelementptr inbounds %struct.node, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !14
  %157 = add nsw i32 %153, %156
  store i32 %157, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %158 = load ptr, ptr %19, align 8, !tbaa !20
  %159 = getelementptr inbounds %struct.node, ptr %158, i32 0, i32 2
  %160 = load i32, ptr %159, align 4, !tbaa !14
  %161 = load ptr, ptr %20, align 8, !tbaa !20
  %162 = getelementptr inbounds %struct.node, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 4, !tbaa !15
  %164 = add nsw i32 %160, %163
  store i32 %164, ptr %26, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %165 = load ptr, ptr %19, align 8, !tbaa !20
  %166 = getelementptr inbounds %struct.node, ptr %165, i32 0, i32 3
  %167 = load i32, ptr %166, align 4, !tbaa !15
  %168 = load ptr, ptr %20, align 8, !tbaa !20
  %169 = getelementptr inbounds %struct.node, ptr %168, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !14
  %171 = add nsw i32 %167, %170
  store i32 %171, ptr %27, align 4, !tbaa !8
  %172 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %173 unwind label %224

173:                                              ; preds = %150
  %174 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %172)
          to label %175 unwind label %224

175:                                              ; preds = %173
  %176 = load i32, ptr %174, align 4, !tbaa !8
  store i32 %176, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %177 = load ptr, ptr %19, align 8, !tbaa !20
  %178 = getelementptr inbounds %struct.node, ptr %177, i32 0, i32 3
  %179 = load i32, ptr %178, align 4, !tbaa !15
  %180 = load ptr, ptr %20, align 8, !tbaa !20
  %181 = getelementptr inbounds %struct.node, ptr %180, i32 0, i32 3
  %182 = load i32, ptr %181, align 4, !tbaa !15
  %183 = add nsw i32 %179, %182
  store i32 %183, ptr %22, align 4, !tbaa !8
  %184 = load ptr, ptr %18, align 8, !tbaa !20
  %185 = getelementptr inbounds %struct.node, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !13
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %232

188:                                              ; preds = %175
  %189 = load ptr, ptr %19, align 8, !tbaa !20
  %190 = getelementptr inbounds %struct.node, ptr %189, i32 0, i32 2
  %191 = load i32, ptr %190, align 4, !tbaa !14
  %192 = add nsw i32 1, %191
  %193 = load ptr, ptr %20, align 8, !tbaa !20
  %194 = getelementptr inbounds %struct.node, ptr %193, i32 0, i32 2
  %195 = load i32, ptr %194, align 4, !tbaa !14
  %196 = add nsw i32 %192, %195
  store i32 %196, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %197 = load ptr, ptr %19, align 8, !tbaa !20
  %198 = getelementptr inbounds %struct.node, ptr %197, i32 0, i32 3
  %199 = load i32, ptr %198, align 4, !tbaa !15
  %200 = load ptr, ptr %20, align 8, !tbaa !20
  %201 = getelementptr inbounds %struct.node, ptr %200, i32 0, i32 3
  %202 = load i32, ptr %201, align 4, !tbaa !15
  %203 = add nsw i32 %199, %202
  store i32 %203, ptr %28, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %204 = load ptr, ptr %19, align 8, !tbaa !20
  %205 = getelementptr inbounds %struct.node, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 4, !tbaa !14
  %207 = load ptr, ptr %20, align 8, !tbaa !20
  %208 = getelementptr inbounds %struct.node, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !15
  %210 = add nsw i32 %206, %209
  store i32 %210, ptr %29, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %211 = load ptr, ptr %19, align 8, !tbaa !20
  %212 = getelementptr inbounds %struct.node, ptr %211, i32 0, i32 3
  %213 = load i32, ptr %212, align 4, !tbaa !15
  %214 = load ptr, ptr %20, align 8, !tbaa !20
  %215 = getelementptr inbounds %struct.node, ptr %214, i32 0, i32 2
  %216 = load i32, ptr %215, align 4, !tbaa !14
  %217 = add nsw i32 %213, %216
  store i32 %217, ptr %30, align 4, !tbaa !8
  %218 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %219 unwind label %228

219:                                              ; preds = %188
  %220 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %218)
          to label %221 unwind label %228

221:                                              ; preds = %219
  %222 = load i32, ptr %220, align 4, !tbaa !8
  %223 = add nsw i32 1, %222
  store i32 %223, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %232

224:                                              ; preds = %173, %150
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %11, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %334

228:                                              ; preds = %219, %188
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %11, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %334

232:                                              ; preds = %221, %175
  br label %316

233:                                              ; preds = %133
  %234 = load ptr, ptr %19, align 8, !tbaa !20
  %235 = getelementptr inbounds %struct.node, ptr %234, i32 0, i32 2
  %236 = load i32, ptr %235, align 4, !tbaa !14
  %237 = load ptr, ptr %20, align 8, !tbaa !20
  %238 = getelementptr inbounds %struct.node, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 4, !tbaa !14
  %240 = add nsw i32 %236, %239
  store i32 %240, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %241 = load ptr, ptr %19, align 8, !tbaa !20
  %242 = getelementptr inbounds %struct.node, ptr %241, i32 0, i32 3
  %243 = load i32, ptr %242, align 4, !tbaa !15
  %244 = load ptr, ptr %20, align 8, !tbaa !20
  %245 = getelementptr inbounds %struct.node, ptr %244, i32 0, i32 3
  %246 = load i32, ptr %245, align 4, !tbaa !15
  %247 = add nsw i32 %243, %246
  store i32 %247, ptr %31, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %248 = load ptr, ptr %19, align 8, !tbaa !20
  %249 = getelementptr inbounds %struct.node, ptr %248, i32 0, i32 2
  %250 = load i32, ptr %249, align 4, !tbaa !14
  %251 = load ptr, ptr %20, align 8, !tbaa !20
  %252 = getelementptr inbounds %struct.node, ptr %251, i32 0, i32 3
  %253 = load i32, ptr %252, align 4, !tbaa !15
  %254 = add nsw i32 %250, %253
  store i32 %254, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %255 = load ptr, ptr %19, align 8, !tbaa !20
  %256 = getelementptr inbounds %struct.node, ptr %255, i32 0, i32 3
  %257 = load i32, ptr %256, align 4, !tbaa !15
  %258 = load ptr, ptr %20, align 8, !tbaa !20
  %259 = getelementptr inbounds %struct.node, ptr %258, i32 0, i32 2
  %260 = load i32, ptr %259, align 4, !tbaa !14
  %261 = add nsw i32 %257, %260
  store i32 %261, ptr %33, align 4, !tbaa !8
  %262 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %263 unwind label %307

263:                                              ; preds = %233
  %264 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %262)
          to label %265 unwind label %307

265:                                              ; preds = %263
  %266 = load i32, ptr %264, align 4, !tbaa !8
  store i32 %266, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  %267 = load ptr, ptr %18, align 8, !tbaa !20
  %268 = getelementptr inbounds %struct.node, ptr %267, i32 0, i32 1
  %269 = load i32, ptr %268, align 4, !tbaa !13
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %315

271:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %272 = load ptr, ptr %19, align 8, !tbaa !20
  %273 = getelementptr inbounds %struct.node, ptr %272, i32 0, i32 2
  %274 = load i32, ptr %273, align 4, !tbaa !14
  %275 = load ptr, ptr %20, align 8, !tbaa !20
  %276 = getelementptr inbounds %struct.node, ptr %275, i32 0, i32 2
  %277 = load i32, ptr %276, align 4, !tbaa !14
  %278 = add nsw i32 %274, %277
  store i32 %278, ptr %34, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %279 = load ptr, ptr %19, align 8, !tbaa !20
  %280 = getelementptr inbounds %struct.node, ptr %279, i32 0, i32 2
  %281 = load i32, ptr %280, align 4, !tbaa !14
  %282 = load ptr, ptr %20, align 8, !tbaa !20
  %283 = getelementptr inbounds %struct.node, ptr %282, i32 0, i32 3
  %284 = load i32, ptr %283, align 4, !tbaa !15
  %285 = add nsw i32 %281, %284
  store i32 %285, ptr %35, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %286 = load ptr, ptr %19, align 8, !tbaa !20
  %287 = getelementptr inbounds %struct.node, ptr %286, i32 0, i32 3
  %288 = load i32, ptr %287, align 4, !tbaa !15
  %289 = load ptr, ptr %20, align 8, !tbaa !20
  %290 = getelementptr inbounds %struct.node, ptr %289, i32 0, i32 2
  %291 = load i32, ptr %290, align 4, !tbaa !14
  %292 = add nsw i32 %288, %291
  store i32 %292, ptr %36, align 4, !tbaa !8
  %293 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %294 unwind label %311

294:                                              ; preds = %271
  %295 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %293)
          to label %296 unwind label %311

296:                                              ; preds = %294
  %297 = load i32, ptr %295, align 4, !tbaa !8
  %298 = add nsw i32 1, %297
  store i32 %298, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  %299 = load ptr, ptr %19, align 8, !tbaa !20
  %300 = getelementptr inbounds %struct.node, ptr %299, i32 0, i32 3
  %301 = load i32, ptr %300, align 4, !tbaa !15
  %302 = add nsw i32 1, %301
  %303 = load ptr, ptr %20, align 8, !tbaa !20
  %304 = getelementptr inbounds %struct.node, ptr %303, i32 0, i32 3
  %305 = load i32, ptr %304, align 4, !tbaa !15
  %306 = add nsw i32 %302, %305
  store i32 %306, ptr %22, align 4, !tbaa !8
  br label %315

307:                                              ; preds = %263, %233
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %11, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %334

311:                                              ; preds = %294, %271
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %11, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %334

315:                                              ; preds = %296, %265
  br label %316

316:                                              ; preds = %315, %232
  %317 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %318 unwind label %330

318:                                              ; preds = %316
  %319 = load i32, ptr %317, align 4, !tbaa !8
  %320 = load ptr, ptr %18, align 8, !tbaa !20
  %321 = getelementptr inbounds %struct.node, ptr %320, i32 0, i32 2
  store i32 %319, ptr %321, align 4, !tbaa !14
  %322 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %323 unwind label %330

323:                                              ; preds = %318
  %324 = load i32, ptr %322, align 4, !tbaa !8
  %325 = load ptr, ptr %18, align 8, !tbaa !20
  %326 = getelementptr inbounds %struct.node, ptr %325, i32 0, i32 3
  store i32 %324, ptr %326, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %327

327:                                              ; preds = %323
  %328 = load i32, ptr %17, align 4, !tbaa !8
  %329 = add nsw i32 %328, -1
  store i32 %329, ptr %17, align 4, !tbaa !8
  br label %129, !llvm.loop !22

330:                                              ; preds = %318, %316
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %11, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %12, align 4
  br label %334

334:                                              ; preds = %330, %311, %307, %228, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %378

335:                                              ; preds = %132
  %336 = 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 %337 unwind label %363

337:                                              ; preds = %335
  %338 = load i32, ptr %7, align 4, !tbaa !8
  %339 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %336, i32 noundef %338)
          to label %340 unwind label %363

340:                                              ; preds = %337
  %341 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %339, ptr noundef @.str.1)
          to label %342 unwind label %363

342:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %343 = load i32, ptr %4, align 4, !tbaa !8
  %344 = icmp ne i32 %343, 0
  br i1 %344, label %345, label %349

345:                                              ; preds = %342
  %346 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1) #8
  %347 = getelementptr inbounds %struct.node, ptr %346, i32 0, i32 3
  %348 = load i32, ptr %347, align 4, !tbaa !15
  br label %353

349:                                              ; preds = %342
  %350 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1) #8
  %351 = getelementptr inbounds %struct.node, ptr %350, i32 0, i32 2
  %352 = load i32, ptr %351, align 4, !tbaa !14
  br label %353

353:                                              ; preds = %349, %345
  %354 = phi i32 [ %348, %345 ], [ %352, %349 ]
  store i32 %354, ptr %37, align 4, !tbaa !8
  %355 = load i32, ptr %37, align 4, !tbaa !8
  %356 = icmp slt i32 %355, 100000
  br i1 %356, label %357, label %371

357:                                              ; preds = %353
  %358 = load i32, ptr %37, align 4, !tbaa !8
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %358)
          to label %360 unwind label %367

360:                                              ; preds = %357
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %359, i8 noundef signext 10)
          to label %362 unwind label %367

362:                                              ; preds = %360
  br label %374

363:                                              ; preds = %340, %337, %335
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %11, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %12, align 4
  br label %378

367:                                              ; preds = %371, %360, %357
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %11, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %378

371:                                              ; preds = %353
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
          to label %373 unwind label %367

373:                                              ; preds = %371
  br label %374

374:                                              ; preds = %373, %362
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @_ZNSt6vectorI4nodeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %7, align 4, !tbaa !8
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %7, align 4, !tbaa !8
  br label %45, !llvm.loop !23

378:                                              ; preds = %367, %363, %334, %121, %85
  call void @_ZNSt6vectorI4nodeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %379

379:                                              ; preds = %378, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %382

380:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %381 = load i32, ptr %1, align 4
  ret i32 %381

382:                                              ; preds = %379
  %383 = load ptr, ptr %11, align 8
  %384 = load i32, ptr %12, align 4
  %385 = insertvalue { ptr, i32 } poison, ptr %383, 0
  %386 = insertvalue { ptr, i32 } %385, i32 %384, 1
  resume { ptr, i32 } %386
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4nodeEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4nodeSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 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) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #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) #7

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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


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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %26
  %28 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %27, ptr noundef null)
  %29 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %31 = load i32, ptr %1, align 4, !tbaa !8
  %.not91 = icmp slt i32 %31, 1
  br i1 %.not91, label %._crit_edge95, label %.lr.ph94

._crit_edge95:                                    ; preds = %173, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph94:                                         ; preds = %0, %173
  %.092 = phi i32 [ %174, %173 ], [ 1, %0 ]
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  %34 = load i32, ptr %2, align 4, !tbaa !8
  %35 = add nsw i32 %34, 1
  %36 = sext i32 %35 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaI4nodeEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorI4nodeSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %37 unwind label %43

37:                                               ; preds = %.lr.ph94
  call void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  %38 = load i32, ptr %2, align 4, !tbaa !8
  %39 = add nsw i32 %38, -1
  %40 = sdiv i32 %39, 2
  %.not6880 = icmp slt i32 %38, 3
  br i1 %.not6880, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %48, %37
  %41 = phi i32 [ %38, %37 ], [ %52, %48 ]
  %.lcssa = phi i32 [ %40, %37 ], [ %54, %48 ]
  %.not69.not83 = icmp slt i32 %.lcssa, %41
  br i1 %.not69.not83, label %.lr.ph85.preheader, label %._crit_edge

.lr.ph85.preheader:                               ; preds = %.preheader
  %42 = sext i32 %.lcssa to i64
  br label %.lr.ph85

43:                                               ; preds = %.lr.ph94
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %177

.lr.ph:                                           ; preds = %37, %48
  %indvars.iv = phi i64 [ %indvars.iv.next, %48 ], [ 1, %37 ]
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %46 unwind label %56

46:                                               ; preds = %.lr.ph
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = load i32, ptr %4, align 4, !tbaa !8
  %50 = load i32, ptr %5, align 4, !tbaa !8
  %51 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #7
  store i32 %49, ptr %51, align 4, !tbaa !8
  %.sroa.447.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 4
  store i32 %50, ptr %.sroa.447.0..sroa_idx, align 4, !tbaa !8
  %.sroa.548.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 8
  store i32 100000, ptr %.sroa.548.0..sroa_idx, align 4, !tbaa !8
  %.sroa.649.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 12
  store i32 100000, ptr %.sroa.649.0..sroa_idx, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = load i32, ptr %2, align 4, !tbaa !8
  %53 = add nsw i32 %52, -1
  %54 = sdiv i32 %53, 2
  %55 = sext i32 %54 to i64
  %.not68.not = icmp slt i64 %indvars.iv, %55
  br i1 %.not68.not, label %.lr.ph, label %.preheader, !llvm.loop !11

56:                                               ; preds = %46, %.lr.ph
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %176

._crit_edge:                                      ; preds = %63, %.preheader
  %.lcssa78 = phi i32 [ %41, %.preheader ], [ %68, %63 ]
  %58 = icmp sgt i32 %.lcssa78, 2
  br i1 %58, label %.lr.ph89.preheader, label %._crit_edge90

.lr.ph89.preheader:                               ; preds = %._crit_edge
  %59 = add nsw i32 %.lcssa78, -1
  %60 = lshr i32 %59, 1
  %61 = zext nneg i32 %60 to i64
  br label %.lr.ph89

.lr.ph85:                                         ; preds = %.lr.ph85.preheader, %63
  %indvars.iv99 = phi i64 [ %42, %.lr.ph85.preheader ], [ %indvars.iv.next100, %63 ]
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %63 unwind label %70

63:                                               ; preds = %.lr.ph85
  %indvars.iv.next100 = add nsw i64 %indvars.iv99, 1
  %64 = load i32, ptr %4, align 4, !tbaa !8
  %.not74 = icmp eq i32 %64, 0
  %65 = select i1 %.not74, i32 0, i32 100000
  %66 = select i1 %.not74, i32 100000, i32 0
  %67 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next100) #7
  store i32 0, ptr %67, align 4, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 4
  store i32 0, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 8
  store i32 %65, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !8
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %67, i64 12
  store i32 %66, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !8
  %68 = load i32, ptr %2, align 4, !tbaa !8
  %69 = sext i32 %68 to i64
  %.not69.not = icmp slt i64 %indvars.iv.next100, %69
  br i1 %.not69.not, label %.lr.ph85, label %._crit_edge, !llvm.loop !13

70:                                               ; preds = %.lr.ph85
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %176

._crit_edge90:                                    ; preds = %144, %._crit_edge
  %72 = 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 %153 unwind label %167

.lr.ph89:                                         ; preds = %.lr.ph89.preheader, %144
  %indvars.iv102 = phi i64 [ %61, %.lr.ph89.preheader ], [ %indvars.iv.next103, %144 ]
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv102) #7
  %74 = shl nuw nsw i64 %indvars.iv102, 1
  %75 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %74) #7
  %76 = or disjoint i64 %74, 1
  %77 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %76) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 100000, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 100000, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 100000, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store i32 100000, ptr %11, align 4, !tbaa !8
  %78 = load i32, ptr %73, align 4, !tbaa !14
  %.not71 = icmp eq i32 %78, 0
  br i1 %.not71, label %110, label %79

79:                                               ; preds = %.lr.ph89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %80 = getelementptr inbounds i8, ptr %75, i64 8
  %81 = load i32, ptr %80, align 4, !tbaa !16
  %82 = getelementptr inbounds i8, ptr %77, i64 8
  %83 = load i32, ptr %82, align 4, !tbaa !16
  %84 = add nsw i32 %83, %81
  store i32 %84, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %85 = getelementptr inbounds i8, ptr %77, i64 12
  %86 = load i32, ptr %85, align 4, !tbaa !17
  %87 = add nsw i32 %86, %81
  store i32 %87, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %88 = getelementptr inbounds i8, ptr %75, i64 12
  %89 = load i32, ptr %88, align 4, !tbaa !17
  %90 = add nsw i32 %89, %83
  store i32 %90, ptr %14, align 4, !tbaa !8
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %92 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = load i32, ptr %92, align 4, !tbaa !8
  store i32 %93, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %94 = load i32, ptr %88, align 4, !tbaa !17
  %95 = load i32, ptr %85, align 4, !tbaa !17
  %96 = add nsw i32 %95, %94
  store i32 %96, ptr %9, align 4, !tbaa !8
  %97 = getelementptr inbounds i8, ptr %73, i64 4
  %98 = load i32, ptr %97, align 4, !tbaa !18
  %.not73 = icmp eq i32 %98, 0
  br i1 %.not73, label %144, label %99

99:                                               ; preds = %79
  %100 = load i32, ptr %80, align 4, !tbaa !16
  %101 = add nsw i32 %100, 1
  %102 = load i32, ptr %82, align 4, !tbaa !16
  %103 = add nsw i32 %101, %102
  store i32 %103, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  store i32 %96, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %104 = add nsw i32 %100, %95
  store i32 %104, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %105 = add nsw i32 %102, %94
  store i32 %105, ptr %17, align 4, !tbaa !8
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %106)
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  br label %144

110:                                              ; preds = %.lr.ph89
  %111 = getelementptr inbounds i8, ptr %75, i64 8
  %112 = load i32, ptr %111, align 4, !tbaa !16
  %113 = getelementptr inbounds i8, ptr %77, i64 8
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = add nsw i32 %114, %112
  store i32 %115, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %116 = getelementptr inbounds i8, ptr %75, i64 12
  %117 = load i32, ptr %116, align 4, !tbaa !17
  %118 = getelementptr inbounds i8, ptr %77, i64 12
  %119 = load i32, ptr %118, align 4, !tbaa !17
  %120 = add nsw i32 %119, %117
  store i32 %120, ptr %18, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %121 = add nsw i32 %119, %112
  store i32 %121, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %122 = add nsw i32 %117, %114
  store i32 %122, ptr %20, align 4, !tbaa !8
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %123)
  %125 = load i32, ptr %124, align 4, !tbaa !8
  store i32 %125, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  %126 = getelementptr inbounds i8, ptr %73, i64 4
  %127 = load i32, ptr %126, align 4, !tbaa !18
  %.not72 = icmp eq i32 %127, 0
  br i1 %.not72, label %144, label %128

128:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %129 = load i32, ptr %111, align 4, !tbaa !16
  %130 = load i32, ptr %113, align 4, !tbaa !16
  %131 = add nsw i32 %130, %129
  store i32 %131, ptr %21, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %132 = load i32, ptr %118, align 4, !tbaa !17
  %133 = add nsw i32 %132, %129
  store i32 %133, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %134 = load i32, ptr %116, align 4, !tbaa !17
  %135 = add nsw i32 %134, %130
  store i32 %135, ptr %23, align 4, !tbaa !8
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %136)
  %138 = load i32, ptr %137, align 4, !tbaa !8
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  %140 = load i32, ptr %116, align 4, !tbaa !17
  %141 = add nsw i32 %140, 1
  %142 = load i32, ptr %118, align 4, !tbaa !17
  %143 = add nsw i32 %141, %142
  store i32 %143, ptr %9, align 4, !tbaa !8
  br label %144

144:                                              ; preds = %110, %128, %79, %99
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %146 = load i32, ptr %145, align 4, !tbaa !8
  %147 = getelementptr inbounds i8, ptr %73, i64 8
  store i32 %146, ptr %147, align 4, !tbaa !16
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %149 = load i32, ptr %148, align 4, !tbaa !8
  %150 = getelementptr inbounds i8, ptr %73, i64 12
  store i32 %149, ptr %150, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %indvars.iv.next103 = add nsw i64 %indvars.iv102, -1
  %151 = trunc nuw i64 %indvars.iv102 to i32
  %152 = icmp sgt i32 %151, 1
  br i1 %152, label %.lr.ph89, label %._crit_edge90, !llvm.loop !19

153:                                              ; preds = %._crit_edge90
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %72, i32 noundef %.092)
          to label %155 unwind label %167

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @.str.1)
          to label %157 unwind label %167

157:                                              ; preds = %155
  %158 = load i32, ptr %3, align 4, !tbaa !8
  %.not70 = icmp eq i32 %158, 0
  %159 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI4nodeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1) #7
  %. = select i1 %.not70, i64 8, i64 12
  %160 = getelementptr inbounds i8, ptr %159, i64 %.
  %161 = load i32, ptr %160, align 4, !tbaa !8
  %162 = icmp slt i32 %161, 100000
  br i1 %162, label %163, label %171

163:                                              ; preds = %157
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %161)
          to label %165 unwind label %169

165:                                              ; preds = %163
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %164, i8 noundef signext 10)
          to label %173 unwind label %169

167:                                              ; preds = %155, %153, %._crit_edge90
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %176

169:                                              ; preds = %171, %165, %163
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %176

171:                                              ; preds = %157
  %172 = 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.2)
          to label %173 unwind label %169

173:                                              ; preds = %171, %165
  call void @_ZNSt6vectorI4nodeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  %174 = add nuw nsw i32 %.092, 1
  %175 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.092, %175
  br i1 %.not.not, label %.lr.ph94, label %._crit_edge95, !llvm.loop !20

176:                                              ; preds = %169, %167, %70, %56
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %71, %70 ], [ %170, %169 ], [ %168, %167 ]
  call void @_ZNSt6vectorI4nodeSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %177

177:                                              ; preds = %176, %43
  %.pn.pn = phi { ptr, i32 } [ %.pn, %176 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaI4nodeEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4nodeSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #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 #6

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI4nodeED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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


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