; LLVM IR from tangjz/acm-icpc :: 51nod (1501)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@r = external dso_local global i32, align 4
@a = external dso_local global [500001 x i32], align 16
@b = external dso_local global [500001 x i32], align 16
@szN = external dso_local global i32, align 4
@szM = external dso_local global i32, align 4
@fir = external dso_local global [500001 x i32], align 16
@pos = external dso_local global [500001 x i32], align 16
@q = external dso_local global i64, align 8
@seq = external dso_local global [500001 x %"class.std::vector"], align 16
@s = external dso_local global [3 x [500001 x %"class.std::vector"]], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 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 i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @_ZN6fastIO4readERx(ptr noundef nonnull align 8 dereferenceable(8) @q)
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = load i32, ptr @m, align 4, !tbaa !5
  %27 = call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %25, i32 noundef %26)
  store i32 %27, ptr @r, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = load i32, ptr @r, align 4, !tbaa !5
  %30 = sdiv i32 %28, %29
  store i32 %30, ptr @szN, align 4, !tbaa !5
  %31 = load i32, ptr @m, align 4, !tbaa !5
  %32 = load i32, ptr @r, align 4, !tbaa !5
  %33 = sdiv i32 %31, %32
  store i32 %33, ptr @szM, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %43, %0
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %46

39:                                               ; preds = %34
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %41
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %42)
  br label %43

43:                                               ; preds = %39
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %2, align 4, !tbaa !5
  br label %34, !llvm.loop !9

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

47:                                               ; preds = %56, %46
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = load i32, ptr @m, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %59

52:                                               ; preds = %47
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %54
  call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %55)
  br label %56

56:                                               ; preds = %52
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %3, align 4, !tbaa !5
  br label %47, !llvm.loop !11

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

60:                                               ; preds = %131, %59
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = load i32, ptr @r, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

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

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

67:                                               ; preds = %83, %65
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr @szM, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %91

72:                                               ; preds = %67
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %78
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %81
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 4 dereferenceable(4) %82)
  br label %83

83:                                               ; preds = %72
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = add nsw i32 %86, %87
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = srem i32 %88, %89
  store i32 %90, ptr %7, align 4, !tbaa !5
  br label %67, !llvm.loop !12

91:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %92 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %92, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %93 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %93, ptr %10, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %128, %91
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = load i32, ptr @szN, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %130

99:                                               ; preds = %94
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %105
  store i32 %103, ptr %106, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %99
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %8, align 4, !tbaa !5
  %110 = load i32, ptr @r, align 4, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = add nsw i32 %111, %110
  store i32 %112, ptr %9, align 4, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr @r, align 4, !tbaa !5
  %115 = add nsw i32 %113, %114
  %116 = load i32, ptr @m, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %122

118:                                              ; preds = %107
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = load i32, ptr @r, align 4, !tbaa !5
  %121 = add nsw i32 %119, %120
  br label %128

122:                                              ; preds = %107
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = load i32, ptr @r, align 4, !tbaa !5
  %125 = add nsw i32 %123, %124
  %126 = load i32, ptr @m, align 4, !tbaa !5
  %127 = sub nsw i32 %125, %126
  br label %128

128:                                              ; preds = %122, %118
  %129 = phi i32 [ %121, %118 ], [ %127, %122 ]
  store i32 %129, ptr %10, align 4, !tbaa !5
  br label %94, !llvm.loop !13

130:                                              ; preds = %98
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %4, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %4, align 4, !tbaa !5
  br label %60, !llvm.loop !14

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

135:                                              ; preds = %212, %134
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = icmp slt i32 %136, 3
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %215

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

140:                                              ; preds = %208, %139
  %141 = load i32, ptr %12, align 4, !tbaa !5
  %142 = load i32, ptr @r, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %211

145:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %147
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %148, i64 0, i64 %150
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %176, %145
  %153 = load i32, ptr %14, align 4, !tbaa !5
  %154 = load i32, ptr @szM, align 4, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

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

157:                                              ; preds = %152
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %159
  %161 = load i32, ptr %14, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #6
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = load i32, ptr %11, align 4, !tbaa !5
  %166 = icmp eq i32 %164, %165
  %167 = zext i1 %166 to i32
  %168 = load i32, ptr %13, align 4, !tbaa !5
  %169 = add nsw i32 %168, %167
  store i32 %169, ptr %13, align 4, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %171
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %172, i64 0, i64 %174
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 4 dereferenceable(4) %13)
  br label %176

176:                                              ; preds = %157
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %14, align 4, !tbaa !5
  br label %152, !llvm.loop !15

179:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %204, %179
  %181 = load i32, ptr %15, align 4, !tbaa !5
  %182 = load i32, ptr @szM, align 4, !tbaa !5
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %180
  store i32 26, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %207

185:                                              ; preds = %180
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %187
  %189 = load i32, ptr %15, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #6
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = load i32, ptr %11, align 4, !tbaa !5
  %194 = icmp eq i32 %192, %193
  %195 = zext i1 %194 to i32
  %196 = load i32, ptr %13, align 4, !tbaa !5
  %197 = add nsw i32 %196, %195
  store i32 %197, ptr %13, align 4, !tbaa !5
  %198 = load i32, ptr %11, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %199
  %201 = load i32, ptr %12, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %200, i64 0, i64 %202
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 4 dereferenceable(4) %13)
  br label %204

204:                                              ; preds = %185
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %15, align 4, !tbaa !5
  br label %180, !llvm.loop !16

207:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %12, align 4, !tbaa !5
  br label %140, !llvm.loop !17

211:                                              ; preds = %144
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %11, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %11, align 4, !tbaa !5
  br label %135, !llvm.loop !18

215:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store i64 0, ptr %17, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %367, %215
  %217 = load i32, ptr %18, align 4, !tbaa !5
  %218 = load i32, ptr @n, align 4, !tbaa !5
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 29, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %369

221:                                              ; preds = %216
  %222 = load i64, ptr @q, align 8, !tbaa !19
  %223 = load i32, ptr %18, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = icmp sle i64 %222, %224
  br i1 %225, label %226, label %227

226:                                              ; preds = %221
  br label %356

227:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %228 = load i64, ptr @q, align 8, !tbaa !19
  %229 = load i32, ptr %18, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = sub nsw i64 %228, %230
  %232 = sub nsw i64 %231, 1
  %233 = load i32, ptr @n, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = sdiv i64 %232, %234
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %20, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %237 = load i64, ptr %20, align 8, !tbaa !19
  %238 = load i32, ptr @szM, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = sdiv i64 %237, %239
  store i64 %240, ptr %21, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %241 = load i64, ptr %20, align 8, !tbaa !19
  %242 = load i32, ptr @szM, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = srem i64 %241, %243
  %245 = trunc i64 %244 to i32
  store i32 %245, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %246 = load i32, ptr %18, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  %251 = srem i32 %250, 3
  store i32 %251, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %252 = load i32, ptr %18, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = add nsw i32 %255, 2
  %257 = srem i32 %256, 3
  store i32 %257, ptr %24, align 4, !tbaa !5
  %258 = load i32, ptr %23, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %259
  %261 = load i32, ptr %19, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %260, i64 0, i64 %262
  %264 = load i32, ptr @szM, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %263, i64 noundef %265) #6
  %267 = load i32, ptr %266, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = load i64, ptr %21, align 8, !tbaa !19
  %270 = mul nsw i64 %268, %269
  %271 = load i64, ptr %16, align 8, !tbaa !19
  %272 = add nsw i64 %271, %270
  store i64 %272, ptr %16, align 8, !tbaa !19
  %273 = load i32, ptr %24, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %274
  %276 = load i32, ptr %19, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %275, i64 0, i64 %277
  %279 = load i32, ptr @szM, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #6
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = load i64, ptr %21, align 8, !tbaa !19
  %285 = mul nsw i64 %283, %284
  %286 = load i64, ptr %17, align 8, !tbaa !19
  %287 = add nsw i64 %286, %285
  store i64 %287, ptr %17, align 8, !tbaa !19
  %288 = load i32, ptr %22, align 4, !tbaa !5
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %355

290:                                              ; preds = %227
  %291 = load i32, ptr %23, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %292
  %294 = load i32, ptr %19, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %293, i64 0, i64 %295
  %297 = load i32, ptr %18, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %298
  %300 = load i32, ptr %299, align 4, !tbaa !5
  %301 = load i32, ptr %22, align 4, !tbaa !5
  %302 = add nsw i32 %300, %301
  %303 = sext i32 %302 to i64
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %296, i64 noundef %303) #6
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = load i32, ptr %23, align 4, !tbaa !5
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %307
  %309 = load i32, ptr %19, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %308, i64 0, i64 %310
  %312 = load i32, ptr %18, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %313
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %311, i64 noundef %316) #6
  %318 = load i32, ptr %317, align 4, !tbaa !5
  %319 = sub nsw i32 %305, %318
  %320 = sext i32 %319 to i64
  %321 = load i64, ptr %16, align 8, !tbaa !19
  %322 = add nsw i64 %321, %320
  store i64 %322, ptr %16, align 8, !tbaa !19
  %323 = load i32, ptr %24, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %324
  %326 = load i32, ptr %19, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %325, i64 0, i64 %327
  %329 = load i32, ptr %18, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %330
  %332 = load i32, ptr %331, align 4, !tbaa !5
  %333 = load i32, ptr %22, align 4, !tbaa !5
  %334 = add nsw i32 %332, %333
  %335 = sext i32 %334 to i64
  %336 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %328, i64 noundef %335) #6
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = load i32, ptr %24, align 4, !tbaa !5
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %339
  %341 = load i32, ptr %19, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [500001 x %"class.std::vector"], ptr %340, i64 0, i64 %342
  %344 = load i32, ptr %18, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %345
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %343, i64 noundef %348) #6
  %350 = load i32, ptr %349, align 4, !tbaa !5
  %351 = sub nsw i32 %337, %350
  %352 = sext i32 %351 to i64
  %353 = load i64, ptr %17, align 8, !tbaa !19
  %354 = add nsw i64 %353, %352
  store i64 %354, ptr %17, align 8, !tbaa !19
  br label %355

355:                                              ; preds = %290, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %356

356:                                              ; preds = %355, %226
  %357 = load i32, ptr %18, align 4, !tbaa !5
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %18, align 4, !tbaa !5
  %359 = load i32, ptr %19, align 4, !tbaa !5
  %360 = add nsw i32 %359, 1
  %361 = load i32, ptr @r, align 4, !tbaa !5
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %363, label %366

363:                                              ; preds = %356
  %364 = load i32, ptr %19, align 4, !tbaa !5
  %365 = add nsw i32 %364, 1
  br label %367

366:                                              ; preds = %356
  br label %367

367:                                              ; preds = %366, %363
  %368 = phi i32 [ %365, %363 ], [ 0, %366 ]
  store i32 %368, ptr %19, align 4, !tbaa !5
  br label %216, !llvm.loop !21

369:                                              ; preds = %220
  %370 = load i64, ptr %16, align 8, !tbaa !19
  %371 = load i64, ptr %17, align 8, !tbaa !19
  %372 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %370, i64 noundef %371)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %373 = load i32, ptr %1, align 4
  ret i32 %373
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERx(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) #2

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

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

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

declare i32 @printf(ptr noundef, ...) #5

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@r = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [500001 x i32], align 16
@b = external dso_local global [500001 x i32], align 16
@szN = external dso_local local_unnamed_addr global i32, align 4
@szM = external dso_local local_unnamed_addr global i32, align 4
@fir = external dso_local local_unnamed_addr global [500001 x i32], align 16
@pos = external dso_local local_unnamed_addr global [500001 x i32], align 16
@q = external dso_local global i64, align 8
@seq = external dso_local global [500001 x %"class.std::vector"], align 16
@s = external dso_local global [3 x [500001 x %"class.std::vector"]], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @n)
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) @m)
  tail call void @_ZN6fastIO4readERx(ptr noundef nonnull align 8 dereferenceable(8) @q)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %3 = load i32, ptr @m, align 4, !tbaa !5
  %4 = tail call noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef %2, i32 noundef %3)
  store i32 %4, ptr @r, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = sdiv i32 %5, %4
  store i32 %6, ptr @szN, align 4, !tbaa !5
  %7 = load i32, ptr @m, align 4, !tbaa !5
  %8 = sdiv i32 %7, %4
  store i32 %8, ptr @szM, align 4, !tbaa !5
  %9 = icmp sgt i32 %5, 0
  br i1 %9, label %.lr.ph, label %.preheader115

.preheader115.loopexit:                           ; preds = %.lr.ph
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %.preheader115

.preheader115:                                    ; preds = %.preheader115.loopexit, %0
  %10 = phi i32 [ %.pre, %.preheader115.loopexit ], [ %7, %0 ]
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph118, label %.preheader114

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %indvars.iv
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = icmp slt i64 %indvars.iv.next, %14
  br i1 %15, label %.lr.ph, label %.preheader115.loopexit, !llvm.loop !9

.preheader114:                                    ; preds = %.lr.ph118, %.preheader115
  %16 = phi i32 [ %10, %.preheader115 ], [ %20, %.lr.ph118 ]
  %17 = load i32, ptr @r, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.preheader113.preheader, label %.preheader

.preheader113.preheader:                          ; preds = %.preheader114
  %.pre171 = load i32, ptr @szM, align 4, !tbaa !5
  br label %.preheader113

.lr.ph118:                                        ; preds = %.preheader115, %.lr.ph118
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph118 ], [ 0, %.preheader115 ]
  %19 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %indvars.iv146
  tail call void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4) %19)
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %20 = load i32, ptr @m, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next147, %21
  br i1 %22, label %.lr.ph118, label %.preheader114, !llvm.loop !11

.preheader113:                                    ; preds = %.preheader113.preheader, %._crit_edge
  %.pre172173 = phi i32 [ %17, %.preheader113.preheader ], [ %.pre172, %._crit_edge ]
  %23 = phi i32 [ %16, %.preheader113.preheader ], [ %29, %._crit_edge ]
  %24 = phi i32 [ %.pre171, %.preheader113.preheader ], [ %30, %._crit_edge ]
  %indvars.iv149 = phi i64 [ 0, %.preheader113.preheader ], [ %indvars.iv.next150, %._crit_edge ]
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph121, label %.preheader112

.lr.ph121:                                        ; preds = %.preheader113
  %26 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv149
  %27 = trunc nuw nsw i64 %indvars.iv149 to i32
  br label %36

.preheader111:                                    ; preds = %._crit_edge
  %28 = icmp sgt i32 %.pre172, 0
  br i1 %28, label %.lr.ph134, label %.preheader

.preheader112.loopexit:                           ; preds = %36
  %.pre172.pre = load i32, ptr @r, align 4, !tbaa !5
  br label %.preheader112

.preheader112:                                    ; preds = %.preheader112.loopexit, %.preheader113
  %.pre172 = phi i32 [ %.pre172.pre, %.preheader112.loopexit ], [ %.pre172173, %.preheader113 ]
  %29 = phi i32 [ %43, %.preheader112.loopexit ], [ %23, %.preheader113 ]
  %30 = phi i32 [ %45, %.preheader112.loopexit ], [ %24, %.preheader113 ]
  %31 = load i32, ptr @szN, align 4, !tbaa !5
  %32 = icmp sgt i32 %31, 0
  %33 = sext i32 %.pre172 to i64
  br i1 %32, label %.lr.ph125, label %._crit_edge

.lr.ph125:                                        ; preds = %.preheader112
  %34 = trunc nuw nsw i64 %indvars.iv149 to i32
  %xtraiter = and i32 %31, 1
  %35 = icmp eq i32 %31, 1
  br i1 %35, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph125.new

.lr.ph125.new:                                    ; preds = %.lr.ph125
  %unroll_iter = and i32 %31, 2147483646
  br label %52

36:                                               ; preds = %.lr.ph121, %36
  %.099120 = phi i32 [ %27, %.lr.ph121 ], [ %44, %36 ]
  %.0100119 = phi i32 [ 0, %.lr.ph121 ], [ %40, %36 ]
  %37 = sext i32 %.099120 to i64
  %38 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %37
  store i32 %.0100119, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds [500001 x i32], ptr @b, i64 0, i64 %37
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %40 = add nuw nsw i32 %.0100119, 1
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = add nsw i32 %41, %.099120
  %43 = load i32, ptr @m, align 4, !tbaa !5
  %44 = srem i32 %42, %43
  %45 = load i32, ptr @szM, align 4, !tbaa !5
  %46 = icmp slt i32 %40, %45
  br i1 %46, label %36, label %.preheader112.loopexit, !llvm.loop !12

._crit_edge.loopexit.unr-lcssa:                   ; preds = %52, %.lr.ph125
  %indvars.iv151.unr = phi i64 [ %indvars.iv149, %.lr.ph125 ], [ %indvars.iv.next152.1, %52 ]
  %.096124.unr = phi i32 [ %34, %.lr.ph125 ], [ %68, %52 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %47 = sext i32 %.096124.unr to i64
  %48 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %indvars.iv151.unr
  store i32 %49, ptr %50, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.preheader112
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %51 = icmp slt i64 %indvars.iv.next150, %33
  br i1 %51, label %.preheader113, label %.preheader111, !llvm.loop !13

52:                                               ; preds = %52, %.lr.ph125.new
  %indvars.iv151 = phi i64 [ %indvars.iv149, %.lr.ph125.new ], [ %indvars.iv.next152.1, %52 ]
  %.096124 = phi i32 [ %34, %.lr.ph125.new ], [ %68, %52 ]
  %niter = phi i32 [ 0, %.lr.ph125.new ], [ %niter.next.1, %52 ]
  %53 = sext i32 %.096124 to i64
  %54 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %indvars.iv151
  store i32 %55, ptr %56, align 4, !tbaa !5
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, %33
  %57 = add nsw i32 %.pre172, %.096124
  %58 = icmp slt i32 %57, %29
  %59 = select i1 %58, i32 0, i32 %29
  %60 = sub nsw i32 %57, %59
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [500001 x i32], ptr @pos, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %indvars.iv.next152
  store i32 %63, ptr %64, align 4, !tbaa !5
  %indvars.iv.next152.1 = add nsw i64 %indvars.iv.next152, %33
  %65 = add nsw i32 %.pre172, %60
  %66 = icmp slt i32 %65, %29
  %67 = select i1 %66, i32 0, i32 %29
  %68 = sub nsw i32 %65, %67
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %52, !llvm.loop !14

.preheader:                                       ; preds = %._crit_edge132.2, %._crit_edge135, %.preheader114, %._crit_edge135.1, %.preheader111
  %69 = load i32, ptr @n, align 4, !tbaa !5
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.lr.ph141, label %._crit_edge142

._crit_edge135:                                   ; preds = %._crit_edge132
  %71 = icmp sgt i32 %147, 0
  br i1 %71, label %.lr.ph134.1, label %.preheader

.lr.ph134.1:                                      ; preds = %._crit_edge135, %._crit_edge132.1
  %indvars.iv161.1 = phi i64 [ %indvars.iv.next162.1, %._crit_edge132.1 ], [ 0, %._crit_edge135 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  %72 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 1, i64 %indvars.iv161.1
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %73 = load i32, ptr @szM, align 4, !tbaa !5
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph129.1, label %._crit_edge132.1

.lr.ph129.1:                                      ; preds = %.lr.ph134.1
  %75 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161.1
  br label %76

76:                                               ; preds = %76, %.lr.ph129.1
  %indvars.iv155.1 = phi i64 [ 0, %.lr.ph129.1 ], [ %indvars.iv.next156.1, %76 ]
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %indvars.iv155.1) #6
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 1
  %80 = zext i1 %79 to i32
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = add nsw i32 %81, %80
  store i32 %82, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next156.1 = add nuw nsw i64 %indvars.iv155.1, 1
  %83 = load i32, ptr @szM, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next156.1, %84
  br i1 %85, label %76, label %.preheader109.1, !llvm.loop !15

.preheader109.1:                                  ; preds = %76
  %86 = icmp sgt i32 %83, 0
  br i1 %86, label %.lr.ph131.1, label %._crit_edge132.1

.lr.ph131.1:                                      ; preds = %.preheader109.1
  %87 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161.1
  br label %88

88:                                               ; preds = %88, %.lr.ph131.1
  %indvars.iv158.1 = phi i64 [ 0, %.lr.ph131.1 ], [ %indvars.iv.next159.1, %88 ]
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %indvars.iv158.1) #6
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = icmp eq i32 %90, 1
  %92 = zext i1 %91 to i32
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = add nsw i32 %93, %92
  store i32 %94, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158.1, 1
  %95 = load i32, ptr @szM, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next159.1, %96
  br i1 %97, label %88, label %._crit_edge132.1, !llvm.loop !16

._crit_edge132.1:                                 ; preds = %88, %.lr.ph134.1, %.preheader109.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %indvars.iv.next162.1 = add nuw nsw i64 %indvars.iv161.1, 1
  %98 = load i32, ptr @r, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = icmp slt i64 %indvars.iv.next162.1, %99
  br i1 %100, label %.lr.ph134.1, label %._crit_edge135.1, !llvm.loop !17

._crit_edge135.1:                                 ; preds = %._crit_edge132.1
  %101 = icmp sgt i32 %98, 0
  br i1 %101, label %.lr.ph134.2, label %.preheader

.lr.ph134.2:                                      ; preds = %._crit_edge135.1, %._crit_edge132.2
  %indvars.iv161.2 = phi i64 [ %indvars.iv.next162.2, %._crit_edge132.2 ], [ 0, %._crit_edge135.1 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  %102 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 2, i64 %indvars.iv161.2
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %103 = load i32, ptr @szM, align 4, !tbaa !5
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %.lr.ph129.2, label %._crit_edge132.2

.lr.ph129.2:                                      ; preds = %.lr.ph134.2
  %105 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161.2
  br label %106

106:                                              ; preds = %106, %.lr.ph129.2
  %indvars.iv155.2 = phi i64 [ 0, %.lr.ph129.2 ], [ %indvars.iv.next156.2, %106 ]
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %indvars.iv155.2) #6
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = icmp eq i32 %108, 2
  %110 = zext i1 %109 to i32
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = add nsw i32 %111, %110
  store i32 %112, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next156.2 = add nuw nsw i64 %indvars.iv155.2, 1
  %113 = load i32, ptr @szM, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next156.2, %114
  br i1 %115, label %106, label %.preheader109.2, !llvm.loop !15

.preheader109.2:                                  ; preds = %106
  %116 = icmp sgt i32 %113, 0
  br i1 %116, label %.lr.ph131.2, label %._crit_edge132.2

.lr.ph131.2:                                      ; preds = %.preheader109.2
  %117 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161.2
  br label %118

118:                                              ; preds = %118, %.lr.ph131.2
  %indvars.iv158.2 = phi i64 [ 0, %.lr.ph131.2 ], [ %indvars.iv.next159.2, %118 ]
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %indvars.iv158.2) #6
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = icmp eq i32 %120, 2
  %122 = zext i1 %121 to i32
  %123 = load i32, ptr %1, align 4, !tbaa !5
  %124 = add nsw i32 %123, %122
  store i32 %124, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next159.2 = add nuw nsw i64 %indvars.iv158.2, 1
  %125 = load i32, ptr @szM, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next159.2, %126
  br i1 %127, label %118, label %._crit_edge132.2, !llvm.loop !16

._crit_edge132.2:                                 ; preds = %118, %.lr.ph134.2, %.preheader109.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %indvars.iv.next162.2 = add nuw nsw i64 %indvars.iv161.2, 1
  %128 = load i32, ptr @r, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = icmp slt i64 %indvars.iv.next162.2, %129
  br i1 %130, label %.lr.ph134.2, label %.preheader, !llvm.loop !17

.lr.ph134:                                        ; preds = %.preheader111, %._crit_edge132
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %._crit_edge132 ], [ 0, %.preheader111 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  %131 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 0, i64 %indvars.iv161
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %132 = load i32, ptr @szM, align 4, !tbaa !5
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %.lr.ph129, label %._crit_edge132

.lr.ph129:                                        ; preds = %.lr.ph134
  %134 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161
  br label %137

.preheader109:                                    ; preds = %137
  %135 = icmp sgt i32 %144, 0
  br i1 %135, label %.lr.ph131, label %._crit_edge132

.lr.ph131:                                        ; preds = %.preheader109
  %136 = getelementptr inbounds [500001 x %"class.std::vector"], ptr @seq, i64 0, i64 %indvars.iv161
  br label %150

137:                                              ; preds = %.lr.ph129, %137
  %indvars.iv155 = phi i64 [ 0, %.lr.ph129 ], [ %indvars.iv.next156, %137 ]
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %indvars.iv155) #6
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp eq i32 %139, 0
  %141 = zext i1 %140 to i32
  %142 = load i32, ptr %1, align 4, !tbaa !5
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %144 = load i32, ptr @szM, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = icmp slt i64 %indvars.iv.next156, %145
  br i1 %146, label %137, label %.preheader109, !llvm.loop !15

._crit_edge132:                                   ; preds = %150, %.lr.ph134, %.preheader109
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %147 = load i32, ptr @r, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = icmp slt i64 %indvars.iv.next162, %148
  br i1 %149, label %.lr.ph134, label %._crit_edge135, !llvm.loop !17

150:                                              ; preds = %.lr.ph131, %150
  %indvars.iv158 = phi i64 [ 0, %.lr.ph131 ], [ %indvars.iv.next159, %150 ]
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %indvars.iv158) #6
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = icmp eq i32 %152, 0
  %154 = zext i1 %153 to i32
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = add nsw i32 %155, %154
  store i32 %156, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %131, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %157 = load i32, ptr @szM, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = icmp slt i64 %indvars.iv.next159, %158
  br i1 %159, label %150, label %._crit_edge132, !llvm.loop !16

._crit_edge142:                                   ; preds = %223, %.preheader
  %.089.lcssa = phi i64 [ 0, %.preheader ], [ %.291, %223 ]
  %.088.lcssa = phi i64 [ 0, %.preheader ], [ %.2, %223 ]
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %.089.lcssa, i64 noundef %.088.lcssa)
  ret i32 0

.lr.ph141:                                        ; preds = %.preheader, %223
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %223 ], [ 0, %.preheader ]
  %161 = phi i32 [ %228, %223 ], [ %69, %.preheader ]
  %.086140 = phi i32 [ %227, %223 ], [ 0, %.preheader ]
  %.088138 = phi i64 [ %.2, %223 ], [ 0, %.preheader ]
  %.089137 = phi i64 [ %.291, %223 ], [ 0, %.preheader ]
  %162 = load i64, ptr @q, align 8, !tbaa !18
  %.not = icmp sgt i64 %162, %indvars.iv168
  br i1 %.not, label %163, label %223

163:                                              ; preds = %.lr.ph141
  %164 = xor i64 %indvars.iv168, -1
  %165 = add nsw i64 %162, %164
  %166 = sext i32 %161 to i64
  %167 = sdiv i64 %165, %166
  %168 = add nsw i64 %167, 1
  %169 = load i32, ptr @szM, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = sdiv i64 %168, %170
  %172 = srem i64 %168, %170
  %173 = getelementptr inbounds [500001 x i32], ptr @a, i64 0, i64 %indvars.iv168
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = add nsw i32 %174, 1
  %176 = srem i32 %175, 3
  %177 = add nsw i32 %174, 2
  %178 = srem i32 %177, 3
  %179 = sext i32 %176 to i64
  %180 = sext i32 %.086140 to i64
  %181 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %179, i64 %180
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %170) #6
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = mul nsw i64 %171, %184
  %186 = add nsw i64 %185, %.089137
  %187 = sext i32 %178 to i64
  %188 = getelementptr inbounds [3 x [500001 x %"class.std::vector"]], ptr @s, i64 0, i64 %187, i64 %180
  %189 = load i32, ptr @szM, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #6
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = mul nsw i64 %171, %193
  %195 = add nsw i64 %194, %.088138
  %.not108 = icmp eq i64 %172, 0
  br i1 %.not108, label %223, label %196

196:                                              ; preds = %163
  %197 = trunc nsw i64 %172 to i32
  %198 = getelementptr inbounds [500001 x i32], ptr @fir, i64 0, i64 %indvars.iv168
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = add nsw i32 %199, %197
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %201) #6
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %198, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %205) #6
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = sub nsw i32 %203, %207
  %209 = sext i32 %208 to i64
  %210 = add nsw i64 %186, %209
  %211 = load i32, ptr %198, align 4, !tbaa !5
  %212 = add nsw i32 %211, %197
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %213) #6
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = load i32, ptr %198, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %217) #6
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = sub nsw i32 %215, %219
  %221 = sext i32 %220 to i64
  %222 = add nsw i64 %195, %221
  br label %223

223:                                              ; preds = %163, %196, %.lr.ph141
  %.291 = phi i64 [ %.089137, %.lr.ph141 ], [ %210, %196 ], [ %186, %163 ]
  %.2 = phi i64 [ %.088138, %.lr.ph141 ], [ %222, %196 ], [ %195, %163 ]
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %224 = add nsw i32 %.086140, 1
  %225 = load i32, ptr @r, align 4, !tbaa !5
  %226 = icmp slt i32 %224, %225
  %227 = select i1 %226, i32 %224, i32 0
  %228 = load i32, ptr @n, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = icmp slt i64 %indvars.iv.next169, %229
  br i1 %230, label %.lr.ph141, label %._crit_edge142, !llvm.loop !20
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERi(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6fastIO4readERx(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZSt5__gcdIiET_S0_S0_(i32 noundef, i32 noundef) 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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 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 #2 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

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

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


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