; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/359 Division 1/Problem A (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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@d1 = external dso_local global i32, align 4
@d2 = external dso_local global i32, align 4
@cntt = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 0, ptr %1, align 4
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) @m)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %24 = load i64, ptr @n, align 8, !tbaa !5
  %25 = sub nsw i64 %24, 1
  store i64 %25, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %26 = load i64, ptr @m, align 8, !tbaa !5
  %27 = sub nsw i64 %26, 1
  store i64 %27, ptr %3, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %31, %0
  %29 = load i64, ptr %2, align 8, !tbaa !5
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %31, label %36

31:                                               ; preds = %28
  %32 = load i32, ptr @d1, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr @d1, align 4, !tbaa !9
  %34 = load i64, ptr %2, align 8, !tbaa !5
  %35 = sdiv i64 %34, 7
  store i64 %35, ptr %2, align 8, !tbaa !5
  br label %28, !llvm.loop !11

36:                                               ; preds = %28
  br label %37

37:                                               ; preds = %40, %36
  %38 = load i64, ptr %3, align 8, !tbaa !5
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  %41 = load i32, ptr @d2, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr @d2, align 4, !tbaa !9
  %43 = load i64, ptr %3, align 8, !tbaa !5
  %44 = sdiv i64 %43, 7
  store i64 %44, ptr %3, align 8, !tbaa !5
  br label %37, !llvm.loop !13

45:                                               ; preds = %37
  %46 = load i64, ptr @n, align 8, !tbaa !5
  %47 = icmp eq i64 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store i32 1, ptr @d1, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %48, %45
  %50 = load i64, ptr @m, align 8, !tbaa !5
  %51 = icmp eq i64 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  store i32 1, ptr @d2, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %52, %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %54 = load i32, ptr @d1, align 4, !tbaa !9
  %55 = load i32, ptr @d2, align 4, !tbaa !9
  %56 = add nsw i32 %54, %55
  store i32 %56, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %199, %53
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = icmp slt i32 %58, 128
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 6, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %213

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %81, %61
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 7
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 9, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %84

66:                                               ; preds = %62
  %67 = load i32, ptr %5, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = shl i32 1, %68
  %70 = and i32 %67, %69
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %80

72:                                               ; preds = %66
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %75 unwind label %76

75:                                               ; preds = %72
  br label %80

76:                                               ; preds = %72
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %10, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %212

80:                                               ; preds = %75, %66
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !9
  br label %62, !llvm.loop !14

84:                                               ; preds = %65
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = load i32, ptr %4, align 4, !tbaa !9
  %87 = icmp ne i32 %85, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %84
  store i32 8, ptr %6, align 4
  br label %196

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

90:                                               ; preds = %97, %89
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %104

95:                                               ; preds = %90
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %96 unwind label %100

96:                                               ; preds = %95
  br label %97

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

100:                                              ; preds = %95
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %10, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %211

104:                                              ; preds = %94
  br label %105

105:                                              ; preds = %194, %104
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %106 unwind label %113

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %128, %106
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %111 = icmp ult i64 %109, %110
  br i1 %111, label %117, label %112

112:                                              ; preds = %107
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %131

113:                                              ; preds = %105
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  br label %206

117:                                              ; preds = %107
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %119) #5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %122) #5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %126) #5
  store i32 %124, ptr %127, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %117
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %15, align 4, !tbaa !9
  br label %107, !llvm.loop !16

131:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %147, %131
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr @d1, align 4, !tbaa !9
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %150

137:                                              ; preds = %132
  %138 = load i64, ptr %16, align 8, !tbaa !5
  %139 = mul nsw i64 %138, 7
  store i64 %139, ptr %16, align 8, !tbaa !5
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %141) #5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = load i64, ptr %16, align 8, !tbaa !5
  %146 = add nsw i64 %145, %144
  store i64 %146, ptr %16, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %137
  %148 = load i32, ptr %17, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %17, align 4, !tbaa !9
  br label %132, !llvm.loop !17

150:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %151 = load i32, ptr @d1, align 4, !tbaa !9
  store i32 %151, ptr %19, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %167, %150
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = load i32, ptr %4, align 4, !tbaa !9
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %170

157:                                              ; preds = %152
  %158 = load i64, ptr %18, align 8, !tbaa !5
  %159 = mul nsw i64 %158, 7
  store i64 %159, ptr %18, align 8, !tbaa !5
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %161) #5
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = load i64, ptr %18, align 8, !tbaa !5
  %166 = add nsw i64 %165, %164
  store i64 %166, ptr %18, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %157
  %168 = load i32, ptr %19, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %19, align 4, !tbaa !9
  br label %152, !llvm.loop !18

170:                                              ; preds = %156
  %171 = load i64, ptr %16, align 8, !tbaa !5
  %172 = load i64, ptr @n, align 8, !tbaa !5
  %173 = icmp slt i64 %171, %172
  br i1 %173, label %174, label %181

174:                                              ; preds = %170
  %175 = load i64, ptr %18, align 8, !tbaa !5
  %176 = load i64, ptr @m, align 8, !tbaa !5
  %177 = icmp slt i64 %175, %176
  br i1 %177, label %178, label %181

178:                                              ; preds = %174
  %179 = load i64, ptr @cntt, align 8, !tbaa !5
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr @cntt, align 8, !tbaa !5
  br label %181

181:                                              ; preds = %178, %174, %170
  %182 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %183 unwind label %202

183:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %184

184:                                              ; preds = %183
  %185 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %185, ptr %186, align 8
  %187 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8
  %193 = invoke noundef zeroext i1 @_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbT_S7_(ptr %190, ptr %192)
          to label %194 unwind label %207

194:                                              ; preds = %184
  br i1 %193, label %105, label %195, !llvm.loop !19

195:                                              ; preds = %194
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  store i32 0, ptr %6, align 4
  br label %196

196:                                              ; preds = %195, %88
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %197 = load i32, ptr %6, align 4
  switch i32 %197, label %221 [
    i32 0, label %198
    i32 8, label %199
  ]

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198, %196
  %200 = load i32, ptr %5, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %5, align 4, !tbaa !9
  br label %57, !llvm.loop !20

202:                                              ; preds = %181
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %10, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  br label %206

206:                                              ; preds = %202, %113
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #5
  br label %211

207:                                              ; preds = %184
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %10, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %11, align 4
  br label %211

211:                                              ; preds = %207, %206, %100
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %212

212:                                              ; preds = %211, %76
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %216

213:                                              ; preds = %60
  %214 = load i64, ptr @cntt, align 8, !tbaa !5
  call void @_Z2trIxJEEvT_DpRKT0_(i64 noundef %214)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %215 = load i32, ptr %1, align 4
  ret i32 %215

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

221:                                              ; preds = %196
  unreachable
}

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

; 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 @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbT_S7_(ptr, ptr) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2trIxJEEvT_DpRKT0_(i64 noundef) #1

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

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

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


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@d1 = external dso_local local_unnamed_addr global i32, align 4
@d2 = external dso_local local_unnamed_addr global i32, align 4
@cntt = external dso_local local_unnamed_addr global i64, align 8
@n = external dso_local global i64, align 8
@m = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) @m)
  %8 = load i64, ptr @n, align 8, !tbaa !5
  %9 = add nsw i64 %8, -1
  %10 = load i64, ptr @m, align 8, !tbaa !5
  %11 = add nsw i64 %10, -1
  %d1.promoted = load i32, ptr @d1, align 4, !tbaa !9
  %.not62 = icmp eq i64 %9, 0
  br i1 %.not62, label %.preheader60, label %.lr.ph

..preheader60_crit_edge:                          ; preds = %.lr.ph
  store i32 %14, ptr @d1, align 4, !tbaa !9
  br label %.preheader60

.preheader60:                                     ; preds = %..preheader60_crit_edge, %0
  %12 = phi i32 [ %14, %..preheader60_crit_edge ], [ %d1.promoted, %0 ]
  %d2.promoted = load i32, ptr @d2, align 4, !tbaa !9
  %.not4865 = icmp eq i64 %11, 0
  br i1 %.not4865, label %19, label %.lr.ph67

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.063 = phi i64 [ %15, %.lr.ph ], [ %9, %0 ]
  %13 = phi i32 [ %14, %.lr.ph ], [ %d1.promoted, %0 ]
  %14 = add nsw i32 %13, 1
  %15 = sdiv i64 %.063, 7
  %.063.off = add i64 %.063, 6
  %.not = icmp ult i64 %.063.off, 13
  br i1 %.not, label %..preheader60_crit_edge, label %.lr.ph, !llvm.loop !11

.lr.ph67:                                         ; preds = %.preheader60, %.lr.ph67
  %.04366 = phi i64 [ %18, %.lr.ph67 ], [ %11, %.preheader60 ]
  %16 = phi i32 [ %17, %.lr.ph67 ], [ %d2.promoted, %.preheader60 ]
  %17 = add nsw i32 %16, 1
  %18 = sdiv i64 %.04366, 7
  %.04366.off = add i64 %.04366, 6
  %.not48 = icmp ult i64 %.04366.off, 13
  br i1 %.not48, label %._crit_edge, label %.lr.ph67, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph67
  store i32 %17, ptr @d2, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %._crit_edge, %.preheader60
  %20 = phi i32 [ %17, %._crit_edge ], [ %d2.promoted, %.preheader60 ]
  %21 = icmp eq i64 %8, 1
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  store i32 1, ptr @d1, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %22, %19
  %24 = phi i32 [ 1, %22 ], [ %12, %19 ]
  %25 = icmp eq i64 %10, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  store i32 1, ptr @d2, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %26, %23
  %28 = phi i32 [ 1, %26 ], [ %20, %23 ]
  %29 = add i32 %28, %24
  %30 = icmp sgt i32 %29, 0
  br label %33

31:                                               ; preds = %97
  %32 = load i64, ptr @cntt, align 8, !tbaa !5
  call void @_Z2trIxJEEvT_DpRKT0_(i64 noundef %32)
  ret i32 0

33:                                               ; preds = %27, %97
  %.04285 = phi i32 [ 0, %27 ], [ %98, %97 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %35

34:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %.not49 = icmp eq i32 %.141, %29
  br i1 %.not49, label %46, label %97

35:                                               ; preds = %33, %42
  %.04070 = phi i32 [ 0, %33 ], [ %.141, %42 ]
  %storemerge69 = phi i32 [ 0, %33 ], [ %44, %42 ]
  %36 = shl nuw nsw i32 1, %storemerge69
  %37 = and i32 %36, %.04285
  %.not54 = icmp eq i32 %37, 0
  br i1 %.not54, label %42, label %38

38:                                               ; preds = %35
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %._crit_edge100 unwind label %40

._crit_edge100:                                   ; preds = %38
  %39 = add nsw i32 %.04070, 1
  %.pre = load i32, ptr %2, align 4, !tbaa !9
  br label %42

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

42:                                               ; preds = %._crit_edge100, %35
  %43 = phi i32 [ %.pre, %._crit_edge100 ], [ %storemerge69, %35 ]
  %.141 = phi i32 [ %39, %._crit_edge100 ], [ %.04070, %35 ]
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !9
  %45 = icmp slt i32 %43, 6
  br i1 %45, label %35, label %34, !llvm.loop !14

46:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br i1 %30, label %.lr.ph72, label %._crit_edge73

._crit_edge73:                                    ; preds = %47, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %53

.lr.ph72:                                         ; preds = %46, %47
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %47 unwind label %51

47:                                               ; preds = %.lr.ph72
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %4, align 4, !tbaa !9
  %50 = icmp slt i32 %49, %29
  br i1 %50, label %.lr.ph72, label %._crit_edge73, !llvm.loop !15

51:                                               ; preds = %.lr.ph72
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %104

53:                                               ; preds = %95, %._crit_edge73
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %.preheader59 unwind label %57

.preheader59:                                     ; preds = %53
  %54 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %.not86 = icmp eq i64 %54, 0
  br i1 %.not86, label %.preheader58, label %.lr.ph75

.preheader58:                                     ; preds = %.lr.ph75, %.preheader59
  %55 = load i32, ptr @d1, align 4, !tbaa !9
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph78, label %.preheader

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %101

.lr.ph75:                                         ; preds = %.preheader59, %.lr.ph75
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph75 ], [ 0, %.preheader59 ]
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %61) #5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  store i32 %63, ptr %64, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %65 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %66 = icmp ugt i64 %65, %indvars.iv.next
  br i1 %66, label %.lr.ph75, label %.preheader58, !llvm.loop !16

.preheader:                                       ; preds = %.lr.ph78, %.preheader58
  %.034.lcssa = phi i64 [ 0, %.preheader58 ], [ %73, %.lr.ph78 ]
  %.lcssa = phi i32 [ %55, %.preheader58 ], [ %74, %.lr.ph78 ]
  %67 = icmp slt i32 %.lcssa, %29
  br i1 %67, label %.lr.ph82.preheader, label %._crit_edge83

.lr.ph82.preheader:                               ; preds = %.preheader
  %68 = sext i32 %.lcssa to i64
  br label %.lr.ph82

.lr.ph78:                                         ; preds = %.preheader58, %.lr.ph78
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph78 ], [ 0, %.preheader58 ]
  %.03476 = phi i64 [ %73, %.lr.ph78 ], [ 0, %.preheader58 ]
  %69 = mul nsw i64 %.03476, 7
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv93) #5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = add nsw i64 %69, %72
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %74 = load i32, ptr @d1, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next94, %75
  br i1 %76, label %.lr.ph78, label %.preheader, !llvm.loop !17

._crit_edge83:                                    ; preds = %.lr.ph82, %.preheader
  %.032.lcssa = phi i64 [ 0, %.preheader ], [ %85, %.lr.ph82 ]
  %77 = load i64, ptr @n, align 8, !tbaa !5
  %78 = icmp slt i64 %.034.lcssa, %77
  %79 = load i64, ptr @m, align 8
  %80 = icmp slt i64 %.032.lcssa, %79
  %or.cond = select i1 %78, i1 %80, i1 false
  br i1 %or.cond, label %86, label %89

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %.lr.ph82
  %indvars.iv96 = phi i64 [ %68, %.lr.ph82.preheader ], [ %indvars.iv.next97, %.lr.ph82 ]
  %.03280 = phi i64 [ 0, %.lr.ph82.preheader ], [ %85, %.lr.ph82 ]
  %81 = mul nsw i64 %.03280, 7
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv96) #5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = add nsw i64 %81, %84
  %indvars.iv.next97 = add nsw i64 %indvars.iv96, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next97 to i32
  %exitcond.not = icmp eq i32 %29, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge83, label %.lr.ph82, !llvm.loop !18

86:                                               ; preds = %._crit_edge83
  %87 = load i64, ptr @cntt, align 8, !tbaa !5
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr @cntt, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %86, %._crit_edge83
  %90 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %91 unwind label %99

91:                                               ; preds = %89
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  %92 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %93 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %94 = invoke noundef zeroext i1 @_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbT_S7_(ptr %92, ptr %93)
          to label %95 unwind label %102

95:                                               ; preds = %91
  br i1 %94, label %53, label %96, !llvm.loop !19

96:                                               ; preds = %95
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %97

97:                                               ; preds = %34, %96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  %98 = add nuw nsw i32 %.04285, 1
  %exitcond99.not = icmp eq i32 %98, 128
  br i1 %exitcond99.not, label %31, label %33, !llvm.loop !20

99:                                               ; preds = %89
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %101

101:                                              ; preds = %99, %57
  %.pn = phi { ptr, i32 } [ %100, %99 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %104

102:                                              ; preds = %91
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %104

104:                                              ; preds = %102, %101, %51
  %.pn52 = phi { ptr, i32 } [ %52, %51 ], [ %103, %102 ], [ %.pn, %101 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %105

105:                                              ; preds = %104, %40
  %.pn55 = phi { ptr, i32 } [ %41, %40 ], [ %.pn52, %104 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn55
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbT_S7_(ptr, ptr) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2trIxJEEvT_DpRKT0_(i64 noundef) local_unnamed_addr #1

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

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

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


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