; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SNACKDOWN/17/Pre-Elimination A/D (D)

; 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"

%"struct.std::pair" = type { %"struct.std::pair.0", %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4doitRSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 4
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca %"struct.std::pair", align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca %"struct.std::pair", align 4
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair", align 4
  %23 = alloca %"struct.std::pair", align 4
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca %"struct.std::pair", align 4
  %26 = alloca %"struct.std::pair", align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.std::pair", align 4
  %29 = alloca %"struct.std::pair", align 4
  %30 = alloca %"struct.std::pair", align 4
  %31 = alloca %"struct.std::pair", align 4
  %32 = alloca %"struct.std::pair", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %33 = load i32, ptr @m, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %74

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

36:                                               ; preds = %70, %35
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = load i32, ptr @n, align 4, !tbaa !9
  %39 = icmp sle i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %73

41:                                               ; preds = %36
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #3
  %43 = load i32, ptr %3, align 4, !tbaa !9
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = sub nsw i32 %44, 2
  %46 = call { i64, i64 } @_Z2mmiiii(i32 noundef %43, i32 noundef 1, i32 noundef %45, i32 noundef 1)
  %47 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 0
  %48 = extractvalue { i64, i64 } %46, 0
  store i64 %48, ptr %47, align 4
  %49 = getelementptr inbounds { i64, i64 }, ptr %4, i32 0, i32 1
  %50 = extractvalue { i64, i64 } %46, 1
  store i64 %50, ptr %49, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #3
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = sub nsw i32 %52, 2
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  %56 = call { i64, i64 } @_Z2mmiiii(i32 noundef %53, i32 noundef 1, i32 noundef %55, i32 noundef 1)
  %57 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  %58 = extractvalue { i64, i64 } %56, 0
  store i64 %58, ptr %57, align 4
  %59 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  %60 = extractvalue { i64, i64 } %56, 1
  store i64 %60, ptr %59, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #3
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  %64 = load i32, ptr %3, align 4, !tbaa !9
  %65 = call { i64, i64 } @_Z2mmiiii(i32 noundef %63, i32 noundef 1, i32 noundef %64, i32 noundef 1)
  %66 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %67 = extractvalue { i64, i64 } %65, 0
  store i64 %67, ptr %66, align 4
  %68 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %69 = extractvalue { i64, i64 } %65, 1
  store i64 %69, ptr %68, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  br label %70

70:                                               ; preds = %41
  %71 = load i32, ptr %3, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %3, align 4, !tbaa !9
  br label %36, !llvm.loop !11

73:                                               ; preds = %40
  br label %352

74:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %213, %74
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = load i32, ptr @m, align 4, !tbaa !9
  %78 = icmp sle i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %216

80:                                               ; preds = %75
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = load i32, ptr @m, align 4, !tbaa !9
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %84, label %162

84:                                               ; preds = %80
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = call { i64, i64 } @_Z2mmiiii(i32 noundef 3, i32 noundef %86, i32 noundef 1, i32 noundef %87)
  %89 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %90 = extractvalue { i64, i64 } %88, 0
  store i64 %90, ptr %89, align 4
  %91 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %92 = extractvalue { i64, i64 } %88, 1
  store i64 %92, ptr %91, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %94, i32 noundef 2, i32 noundef %95)
  %97 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %98 = extractvalue { i64, i64 } %96, 0
  store i64 %98, ptr %97, align 4
  %99 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %100 = extractvalue { i64, i64 } %96, 1
  store i64 %100, ptr %99, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %103, i32 noundef 1, i32 noundef %104)
  %106 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %107 = extractvalue { i64, i64 } %105, 0
  store i64 %107, ptr %106, align 4
  %108 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %109 = extractvalue { i64, i64 } %105, 1
  store i64 %109, ptr %108, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %111, i32 noundef 3, i32 noundef %112)
  %114 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %115 = extractvalue { i64, i64 } %113, 0
  store i64 %115, ptr %114, align 4
  %116 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %117 = extractvalue { i64, i64 } %113, 1
  store i64 %117, ptr %116, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 4, ptr %13, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %158, %84
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr @n, align 4, !tbaa !9
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %161

123:                                              ; preds = %118
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = load i32, ptr %7, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sub nsw i32 %127, 2
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = call { i64, i64 } @_Z2mmiiii(i32 noundef %125, i32 noundef %126, i32 noundef %128, i32 noundef %129)
  %131 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %132 = extractvalue { i64, i64 } %130, 0
  store i64 %132, ptr %131, align 4
  %133 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %134 = extractvalue { i64, i64 } %130, 1
  store i64 %134, ptr %133, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 4 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = sub nsw i32 %136, 2
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = sub nsw i32 %139, 1
  %141 = load i32, ptr %7, align 4, !tbaa !9
  %142 = call { i64, i64 } @_Z2mmiiii(i32 noundef %137, i32 noundef %138, i32 noundef %140, i32 noundef %141)
  %143 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %144 = extractvalue { i64, i64 } %142, 0
  store i64 %144, ptr %143, align 4
  %145 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %146 = extractvalue { i64, i64 } %142, 1
  store i64 %146, ptr %145, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %135, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = sub nsw i32 %148, 1
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = call { i64, i64 } @_Z2mmiiii(i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  %154 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %155 = extractvalue { i64, i64 } %153, 0
  store i64 %155, ptr %154, align 4
  %156 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %157 = extractvalue { i64, i64 } %153, 1
  store i64 %157, ptr %156, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull align 4 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  br label %158

158:                                              ; preds = %123
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %13, align 4, !tbaa !9
  br label %118, !llvm.loop !13

161:                                              ; preds = %122
  br label %212

162:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 3, ptr %17, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %208, %162
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = load i32, ptr @n, align 4, !tbaa !9
  %166 = icmp sle i32 %164, %165
  br i1 %166, label %168, label %167

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

168:                                              ; preds = %163
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = sub nsw i32 %172, 2
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = call { i64, i64 } @_Z2mmiiii(i32 noundef %170, i32 noundef %171, i32 noundef %173, i32 noundef %174)
  %176 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %177 = extractvalue { i64, i64 } %175, 0
  store i64 %177, ptr %176, align 4
  %178 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %179 = extractvalue { i64, i64 } %175, 1
  store i64 %179, ptr %178, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 4 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = load i32, ptr @n, align 4, !tbaa !9
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %183, label %207

183:                                              ; preds = %168
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 2
  %187 = load i32, ptr %7, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = sub nsw i32 %188, 1
  %190 = load i32, ptr %7, align 4, !tbaa !9
  %191 = call { i64, i64 } @_Z2mmiiii(i32 noundef %186, i32 noundef %187, i32 noundef %189, i32 noundef %190)
  %192 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %193 = extractvalue { i64, i64 } %191, 0
  store i64 %193, ptr %192, align 4
  %194 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %195 = extractvalue { i64, i64 } %191, 1
  store i64 %195, ptr %194, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 4 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  %199 = load i32, ptr %7, align 4, !tbaa !9
  %200 = load i32, ptr %17, align 4, !tbaa !9
  %201 = load i32, ptr %7, align 4, !tbaa !9
  %202 = call { i64, i64 } @_Z2mmiiii(i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201)
  %203 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %204 = extractvalue { i64, i64 } %202, 0
  store i64 %204, ptr %203, align 4
  %205 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %206 = extractvalue { i64, i64 } %202, 1
  store i64 %206, ptr %205, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %196, ptr noundef nonnull align 4 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  br label %207

207:                                              ; preds = %183, %168
  br label %208

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

211:                                              ; preds = %167
  br label %212

212:                                              ; preds = %211, %161
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %7, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %7, align 4, !tbaa !9
  br label %75, !llvm.loop !15

216:                                              ; preds = %79
  %217 = load i32, ptr @m, align 4, !tbaa !9
  %218 = icmp sgt i32 %217, 2
  br i1 %218, label %219, label %317

219:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %220 = load i32, ptr @m, align 4, !tbaa !9
  %221 = sub nsw i32 %220, 2
  store i32 %221, ptr %21, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %261, %219
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = icmp sge i32 %223, 1
  br i1 %224, label %226, label %225

225:                                              ; preds = %222
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %264

226:                                              ; preds = %222
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  %228 = load i32, ptr @n, align 4, !tbaa !9
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = load i32, ptr @n, align 4, !tbaa !9
  %231 = load i32, ptr %21, align 4, !tbaa !9
  %232 = add nsw i32 %231, 2
  %233 = call { i64, i64 } @_Z2mmiiii(i32 noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %232)
  %234 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 0
  %235 = extractvalue { i64, i64 } %233, 0
  store i64 %235, ptr %234, align 4
  %236 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 1
  %237 = extractvalue { i64, i64 } %233, 1
  store i64 %237, ptr %236, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %227, ptr noundef nonnull align 4 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #3
  %239 = load i32, ptr @n, align 4, !tbaa !9
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = add nsw i32 %240, 2
  %242 = load i32, ptr @n, align 4, !tbaa !9
  %243 = load i32, ptr %21, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  %245 = call { i64, i64 } @_Z2mmiiii(i32 noundef %239, i32 noundef %241, i32 noundef %242, i32 noundef %244)
  %246 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %247 = extractvalue { i64, i64 } %245, 0
  store i64 %247, ptr %246, align 4
  %248 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %249 = extractvalue { i64, i64 } %245, 1
  store i64 %249, ptr %248, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %238, ptr noundef nonnull align 4 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #3
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #3
  %251 = load i32, ptr @n, align 4, !tbaa !9
  %252 = load i32, ptr %21, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  %254 = load i32, ptr @n, align 4, !tbaa !9
  %255 = load i32, ptr %21, align 4, !tbaa !9
  %256 = call { i64, i64 } @_Z2mmiiii(i32 noundef %251, i32 noundef %253, i32 noundef %254, i32 noundef %255)
  %257 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 0
  %258 = extractvalue { i64, i64 } %256, 0
  store i64 %258, ptr %257, align 4
  %259 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 1
  %260 = extractvalue { i64, i64 } %256, 1
  store i64 %260, ptr %259, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %250, ptr noundef nonnull align 4 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #3
  br label %261

261:                                              ; preds = %226
  %262 = load i32, ptr %21, align 4, !tbaa !9
  %263 = add nsw i32 %262, -1
  store i32 %263, ptr %21, align 4, !tbaa !9
  br label %222, !llvm.loop !16

264:                                              ; preds = %225
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  %266 = load i32, ptr @n, align 4, !tbaa !9
  %267 = sub nsw i32 %266, 2
  %268 = load i32, ptr @m, align 4, !tbaa !9
  %269 = load i32, ptr @n, align 4, !tbaa !9
  %270 = sub nsw i32 %269, 1
  %271 = load i32, ptr @m, align 4, !tbaa !9
  %272 = call { i64, i64 } @_Z2mmiiii(i32 noundef %267, i32 noundef %268, i32 noundef %270, i32 noundef %271)
  %273 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %274 = extractvalue { i64, i64 } %272, 0
  store i64 %274, ptr %273, align 4
  %275 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %276 = extractvalue { i64, i64 } %272, 1
  store i64 %276, ptr %275, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %265, ptr noundef nonnull align 4 dereferenceable(16) %25)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  %277 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #3
  %278 = load i32, ptr @n, align 4, !tbaa !9
  %279 = sub nsw i32 %278, 1
  %280 = load i32, ptr @m, align 4, !tbaa !9
  %281 = load i32, ptr @n, align 4, !tbaa !9
  %282 = load i32, ptr @m, align 4, !tbaa !9
  %283 = call { i64, i64 } @_Z2mmiiii(i32 noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282)
  %284 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %285 = extractvalue { i64, i64 } %283, 0
  store i64 %285, ptr %284, align 4
  %286 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %287 = extractvalue { i64, i64 } %283, 1
  store i64 %287, ptr %286, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %277, ptr noundef nonnull align 4 dereferenceable(16) %26)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %288 = load i32, ptr @m, align 4, !tbaa !9
  store i32 %288, ptr %27, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %305, %264
  %290 = load i32, ptr %27, align 4, !tbaa !9
  %291 = icmp sgt i32 %290, 2
  br i1 %291, label %293, label %292

292:                                              ; preds = %289
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %308

293:                                              ; preds = %289
  %294 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #3
  %295 = load i32, ptr @n, align 4, !tbaa !9
  %296 = load i32, ptr %27, align 4, !tbaa !9
  %297 = load i32, ptr @n, align 4, !tbaa !9
  %298 = load i32, ptr %27, align 4, !tbaa !9
  %299 = sub nsw i32 %298, 1
  %300 = call { i64, i64 } @_Z2mmiiii(i32 noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %299)
  %301 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %302 = extractvalue { i64, i64 } %300, 0
  store i64 %302, ptr %301, align 4
  %303 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %304 = extractvalue { i64, i64 } %300, 1
  store i64 %304, ptr %303, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %294, ptr noundef nonnull align 4 dereferenceable(16) %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #3
  br label %305

305:                                              ; preds = %293
  %306 = load i32, ptr %27, align 4, !tbaa !9
  %307 = add nsw i32 %306, -1
  store i32 %307, ptr %27, align 4, !tbaa !9
  br label %289, !llvm.loop !17

308:                                              ; preds = %292
  %309 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #3
  %310 = load i32, ptr @n, align 4, !tbaa !9
  %311 = load i32, ptr @n, align 4, !tbaa !9
  %312 = call { i64, i64 } @_Z2mmiiii(i32 noundef %310, i32 noundef 1, i32 noundef %311, i32 noundef 3)
  %313 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %314 = extractvalue { i64, i64 } %312, 0
  store i64 %314, ptr %313, align 4
  %315 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %316 = extractvalue { i64, i64 } %312, 1
  store i64 %316, ptr %315, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %309, ptr noundef nonnull align 4 dereferenceable(16) %29)
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #3
  br label %352

317:                                              ; preds = %216
  %318 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #3
  %319 = load i32, ptr @n, align 4, !tbaa !9
  %320 = sub nsw i32 %319, 2
  %321 = load i32, ptr @m, align 4, !tbaa !9
  %322 = load i32, ptr @n, align 4, !tbaa !9
  %323 = sub nsw i32 %322, 1
  %324 = load i32, ptr @m, align 4, !tbaa !9
  %325 = call { i64, i64 } @_Z2mmiiii(i32 noundef %320, i32 noundef %321, i32 noundef %323, i32 noundef %324)
  %326 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %327 = extractvalue { i64, i64 } %325, 0
  store i64 %327, ptr %326, align 4
  %328 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %329 = extractvalue { i64, i64 } %325, 1
  store i64 %329, ptr %328, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %318, ptr noundef nonnull align 4 dereferenceable(16) %30)
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #3
  %330 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #3
  %331 = load i32, ptr @n, align 4, !tbaa !9
  %332 = sub nsw i32 %331, 1
  %333 = load i32, ptr @m, align 4, !tbaa !9
  %334 = load i32, ptr @n, align 4, !tbaa !9
  %335 = sub nsw i32 %334, 1
  %336 = load i32, ptr @m, align 4, !tbaa !9
  %337 = sub nsw i32 %336, 1
  %338 = call { i64, i64 } @_Z2mmiiii(i32 noundef %332, i32 noundef %333, i32 noundef %335, i32 noundef %337)
  %339 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %340 = extractvalue { i64, i64 } %338, 0
  store i64 %340, ptr %339, align 4
  %341 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %342 = extractvalue { i64, i64 } %338, 1
  store i64 %342, ptr %341, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %330, ptr noundef nonnull align 4 dereferenceable(16) %31)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #3
  %343 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #3
  %344 = load i32, ptr @n, align 4, !tbaa !9
  %345 = load i32, ptr @n, align 4, !tbaa !9
  %346 = sub nsw i32 %345, 2
  %347 = call { i64, i64 } @_Z2mmiiii(i32 noundef %344, i32 noundef 1, i32 noundef %346, i32 noundef 1)
  %348 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 0
  %349 = extractvalue { i64, i64 } %347, 0
  store i64 %349, ptr %348, align 4
  %350 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 1
  %351 = extractvalue { i64, i64 } %347, 1
  store i64 %351, ptr %350, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %343, ptr noundef nonnull align 4 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #3
  br label %352

352:                                              ; preds = %317, %308, %73
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_Z2mmiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 = !{!"any pointer", !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}


; 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"

%"struct.std::pair" = type { %"struct.std::pair.0", %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, i32 }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4doitRSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %0) local_unnamed_addr #1 {
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = load i32, ptr @m, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %.preheader, label %.preheader94

.preheader94:                                     ; preds = %1
  %.not100 = icmp slt i32 %25, 1
  br i1 %.not100, label %._crit_edge.thread, label %.lr.ph103

.lr.ph103:                                        ; preds = %.preheader94
  %27 = getelementptr inbounds i8, ptr %12, i64 8
  %28 = getelementptr inbounds i8, ptr %13, i64 8
  %29 = getelementptr inbounds i8, ptr %14, i64 8
  %30 = getelementptr inbounds i8, ptr %5, i64 8
  %31 = getelementptr inbounds i8, ptr %6, i64 8
  %32 = getelementptr inbounds i8, ptr %7, i64 8
  %33 = getelementptr inbounds i8, ptr %8, i64 8
  %34 = getelementptr inbounds i8, ptr %9, i64 8
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  %36 = getelementptr inbounds i8, ptr %11, i64 8
  br label %56

.preheader:                                       ; preds = %1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %.not90112 = icmp slt i32 %37, 3
  br i1 %.not90112, label %.loopexit, label %.lr.ph114

.lr.ph114:                                        ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %2, i64 8
  %39 = getelementptr inbounds i8, ptr %3, i64 8
  %40 = getelementptr inbounds i8, ptr %4, i64 8
  br label %41

41:                                               ; preds = %.lr.ph114, %41
  %.086113 = phi i32 [ 3, %.lr.ph114 ], [ %53, %41 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  %42 = add nsw i32 %.086113, -2
  %43 = call { i64, i64 } @_Z2mmiiii(i32 noundef %.086113, i32 noundef 1, i32 noundef %42, i32 noundef 1)
  %44 = extractvalue { i64, i64 } %43, 0
  store i64 %44, ptr %2, align 8
  %45 = extractvalue { i64, i64 } %43, 1
  store i64 %45, ptr %38, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %46 = add nsw i32 %.086113, -1
  %47 = call { i64, i64 } @_Z2mmiiii(i32 noundef %42, i32 noundef 1, i32 noundef %46, i32 noundef 1)
  %48 = extractvalue { i64, i64 } %47, 0
  store i64 %48, ptr %3, align 8
  %49 = extractvalue { i64, i64 } %47, 1
  store i64 %49, ptr %39, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %50 = call { i64, i64 } @_Z2mmiiii(i32 noundef %46, i32 noundef 1, i32 noundef %.086113, i32 noundef 1)
  %51 = extractvalue { i64, i64 } %50, 0
  store i64 %51, ptr %4, align 8
  %52 = extractvalue { i64, i64 } %50, 1
  store i64 %52, ptr %40, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  %53 = add nuw nsw i32 %.086113, 1
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %.not90.not = icmp slt i32 %.086113, %54
  br i1 %.not90.not, label %41, label %.loopexit, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit91
  %55 = icmp sgt i32 %.pr, 2
  br i1 %55, label %.lr.ph106, label %._crit_edge.thread

56:                                               ; preds = %.lr.ph103, %.loopexit91
  %.085101 = phi i32 [ 1, %.lr.ph103 ], [ %105, %.loopexit91 ]
  %57 = phi i32 [ %25, %.lr.ph103 ], [ %.pr, %.loopexit91 ]
  %58 = icmp slt i32 %.085101, %57
  br i1 %58, label %60, label %.preheader92

.preheader92:                                     ; preds = %56
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %.not8895 = icmp slt i32 %59, 3
  br i1 %.not8895, label %.loopexit91, label %.lr.ph

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  %61 = call { i64, i64 } @_Z2mmiiii(i32 noundef 3, i32 noundef %.085101, i32 noundef 1, i32 noundef %.085101)
  %62 = extractvalue { i64, i64 } %61, 0
  store i64 %62, ptr %5, align 8
  %63 = extractvalue { i64, i64 } %61, 1
  store i64 %63, ptr %30, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %64 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %.085101, i32 noundef 2, i32 noundef %.085101)
  %65 = extractvalue { i64, i64 } %64, 0
  store i64 %65, ptr %6, align 8
  %66 = extractvalue { i64, i64 } %64, 1
  store i64 %66, ptr %31, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  %67 = add nuw nsw i32 %.085101, 1
  %68 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %67, i32 noundef 1, i32 noundef %.085101)
  %69 = extractvalue { i64, i64 } %68, 0
  store i64 %69, ptr %7, align 8
  %70 = extractvalue { i64, i64 } %68, 1
  store i64 %70, ptr %32, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %71 = call { i64, i64 } @_Z2mmiiii(i32 noundef 1, i32 noundef %.085101, i32 noundef 3, i32 noundef %.085101)
  %72 = extractvalue { i64, i64 } %71, 0
  store i64 %72, ptr %8, align 8
  %73 = extractvalue { i64, i64 } %71, 1
  store i64 %73, ptr %33, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %.not8997 = icmp slt i32 %74, 4
  br i1 %.not8997, label %.loopexit91, label %.lr.ph99

.lr.ph99:                                         ; preds = %60, %.lr.ph99
  %.08498 = phi i32 [ %86, %.lr.ph99 ], [ 4, %60 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %75 = add nsw i32 %.08498, -2
  %76 = call { i64, i64 } @_Z2mmiiii(i32 noundef %.08498, i32 noundef %.085101, i32 noundef %75, i32 noundef %.085101)
  %77 = extractvalue { i64, i64 } %76, 0
  store i64 %77, ptr %9, align 8
  %78 = extractvalue { i64, i64 } %76, 1
  store i64 %78, ptr %34, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  %79 = add nsw i32 %.08498, -1
  %80 = call { i64, i64 } @_Z2mmiiii(i32 noundef %75, i32 noundef %.085101, i32 noundef %79, i32 noundef %.085101)
  %81 = extractvalue { i64, i64 } %80, 0
  store i64 %81, ptr %10, align 8
  %82 = extractvalue { i64, i64 } %80, 1
  store i64 %82, ptr %35, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %83 = call { i64, i64 } @_Z2mmiiii(i32 noundef %79, i32 noundef %.085101, i32 noundef %.08498, i32 noundef %.085101)
  %84 = extractvalue { i64, i64 } %83, 0
  store i64 %84, ptr %11, align 8
  %85 = extractvalue { i64, i64 } %83, 1
  store i64 %85, ptr %36, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  %86 = add nuw nsw i32 %.08498, 1
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %.not89.not = icmp slt i32 %.08498, %87
  br i1 %.not89.not, label %.lr.ph99, label %.loopexit91, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader92, %102
  %.08396 = phi i32 [ %104, %102 ], [ 3, %.preheader92 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  %88 = add nsw i32 %.08396, -2
  %89 = call { i64, i64 } @_Z2mmiiii(i32 noundef %.08396, i32 noundef %.085101, i32 noundef %88, i32 noundef %.085101)
  %90 = extractvalue { i64, i64 } %89, 0
  store i64 %90, ptr %12, align 8
  %91 = extractvalue { i64, i64 } %89, 1
  store i64 %91, ptr %27, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp slt i32 %.08396, %92
  br i1 %93, label %94, label %102

94:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  %95 = add nsw i32 %.08396, -1
  %96 = call { i64, i64 } @_Z2mmiiii(i32 noundef %88, i32 noundef %.085101, i32 noundef %95, i32 noundef %.085101)
  %97 = extractvalue { i64, i64 } %96, 0
  store i64 %97, ptr %13, align 8
  %98 = extractvalue { i64, i64 } %96, 1
  store i64 %98, ptr %28, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  %99 = call { i64, i64 } @_Z2mmiiii(i32 noundef %95, i32 noundef %.085101, i32 noundef %.08396, i32 noundef %.085101)
  %100 = extractvalue { i64, i64 } %99, 0
  store i64 %100, ptr %14, align 8
  %101 = extractvalue { i64, i64 } %99, 1
  store i64 %101, ptr %29, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %.lr.ph, %94
  %103 = phi i32 [ %92, %.lr.ph ], [ %.pre, %94 ]
  %104 = add nuw nsw i32 %.08396, 1
  %.not88.not = icmp slt i32 %.08396, %103
  br i1 %.not88.not, label %.lr.ph, label %.loopexit91, !llvm.loop !12

.loopexit91:                                      ; preds = %102, %.lr.ph99, %.preheader92, %60
  %105 = add nuw nsw i32 %.085101, 1
  %.pr = load i32, ptr @m, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.085101, %.pr
  br i1 %.not.not, label %56, label %._crit_edge, !llvm.loop !13

.lr.ph106:                                        ; preds = %._crit_edge
  %106 = add nsw i32 %.pr, -2
  %107 = getelementptr inbounds i8, ptr %15, i64 8
  %108 = getelementptr inbounds i8, ptr %16, i64 8
  %109 = getelementptr inbounds i8, ptr %17, i64 8
  br label %127

._crit_edge107:                                   ; preds = %127
  %.pre116 = load i32, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #3
  %110 = load i32, ptr @n, align 4, !tbaa !5
  %111 = add nsw i32 %110, -2
  %112 = add nsw i32 %110, -1
  %113 = call { i64, i64 } @_Z2mmiiii(i32 noundef %111, i32 noundef %.pre116, i32 noundef %112, i32 noundef %.pre116)
  %114 = extractvalue { i64, i64 } %113, 0
  store i64 %114, ptr %18, align 8
  %115 = getelementptr inbounds i8, ptr %18, i64 8
  %116 = extractvalue { i64, i64 } %113, 1
  store i64 %116, ptr %115, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %18)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #3
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = add nsw i32 %117, -1
  %119 = load i32, ptr @m, align 4, !tbaa !5
  %120 = call { i64, i64 } @_Z2mmiiii(i32 noundef %118, i32 noundef %119, i32 noundef %117, i32 noundef %119)
  %121 = extractvalue { i64, i64 } %120, 0
  store i64 %121, ptr %19, align 8
  %122 = getelementptr inbounds i8, ptr %19, i64 8
  %123 = extractvalue { i64, i64 } %120, 1
  store i64 %123, ptr %122, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #3
  %124 = load i32, ptr @m, align 4, !tbaa !5
  %125 = icmp sgt i32 %124, 2
  br i1 %125, label %.lr.ph110, label %._crit_edge111

.lr.ph110:                                        ; preds = %._crit_edge107
  %126 = getelementptr inbounds i8, ptr %20, i64 8
  br label %149

127:                                              ; preds = %.lr.ph106, %127
  %.082104 = phi i32 [ %106, %.lr.ph106 ], [ %142, %127 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #3
  %128 = load i32, ptr @n, align 4, !tbaa !5
  %129 = add nuw nsw i32 %.082104, 2
  %130 = call { i64, i64 } @_Z2mmiiii(i32 noundef %128, i32 noundef %.082104, i32 noundef %128, i32 noundef %129)
  %131 = extractvalue { i64, i64 } %130, 0
  store i64 %131, ptr %15, align 8
  %132 = extractvalue { i64, i64 } %130, 1
  store i64 %132, ptr %107, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %15)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #3
  %133 = load i32, ptr @n, align 4, !tbaa !5
  %134 = add nuw nsw i32 %.082104, 1
  %135 = call { i64, i64 } @_Z2mmiiii(i32 noundef %133, i32 noundef %129, i32 noundef %133, i32 noundef %134)
  %136 = extractvalue { i64, i64 } %135, 0
  store i64 %136, ptr %16, align 8
  %137 = extractvalue { i64, i64 } %135, 1
  store i64 %137, ptr %108, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %16)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #3
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = call { i64, i64 } @_Z2mmiiii(i32 noundef %138, i32 noundef %134, i32 noundef %138, i32 noundef %.082104)
  %140 = extractvalue { i64, i64 } %139, 0
  store i64 %140, ptr %17, align 8
  %141 = extractvalue { i64, i64 } %139, 1
  store i64 %141, ptr %109, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #3
  %142 = add nsw i32 %.082104, -1
  %143 = icmp ugt i32 %.082104, 1
  br i1 %143, label %127, label %._crit_edge107, !llvm.loop !14

._crit_edge111:                                   ; preds = %149, %._crit_edge107
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #3
  %144 = load i32, ptr @n, align 4, !tbaa !5
  %145 = call { i64, i64 } @_Z2mmiiii(i32 noundef %144, i32 noundef 1, i32 noundef %144, i32 noundef 3)
  %146 = extractvalue { i64, i64 } %145, 0
  store i64 %146, ptr %21, align 8
  %147 = getelementptr inbounds i8, ptr %21, i64 8
  %148 = extractvalue { i64, i64 } %145, 1
  store i64 %148, ptr %147, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #3
  br label %.loopexit

149:                                              ; preds = %.lr.ph110, %149
  %.0108 = phi i32 [ %124, %.lr.ph110 ], [ %151, %149 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #3
  %150 = load i32, ptr @n, align 4, !tbaa !5
  %151 = add nsw i32 %.0108, -1
  %152 = call { i64, i64 } @_Z2mmiiii(i32 noundef %150, i32 noundef %.0108, i32 noundef %150, i32 noundef %151)
  %153 = extractvalue { i64, i64 } %152, 0
  store i64 %153, ptr %20, align 8
  %154 = extractvalue { i64, i64 } %152, 1
  store i64 %154, ptr %126, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #3
  %155 = icmp ugt i32 %.0108, 3
  br i1 %155, label %149, label %._crit_edge111, !llvm.loop !15

._crit_edge.thread:                               ; preds = %.preheader94, %._crit_edge
  %.lcssa118 = phi i32 [ %.pr, %._crit_edge ], [ %25, %.preheader94 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #3
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = add nsw i32 %156, -2
  %158 = add nsw i32 %156, -1
  %159 = call { i64, i64 } @_Z2mmiiii(i32 noundef %157, i32 noundef %.lcssa118, i32 noundef %158, i32 noundef %.lcssa118)
  %160 = extractvalue { i64, i64 } %159, 0
  store i64 %160, ptr %22, align 8
  %161 = getelementptr inbounds i8, ptr %22, i64 8
  %162 = extractvalue { i64, i64 } %159, 1
  store i64 %162, ptr %161, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #3
  %163 = load i32, ptr @n, align 4, !tbaa !5
  %164 = add nsw i32 %163, -1
  %165 = load i32, ptr @m, align 4, !tbaa !5
  %166 = add nsw i32 %165, -1
  %167 = call { i64, i64 } @_Z2mmiiii(i32 noundef %164, i32 noundef %165, i32 noundef %164, i32 noundef %166)
  %168 = extractvalue { i64, i64 } %167, 0
  store i64 %168, ptr %23, align 8
  %169 = getelementptr inbounds i8, ptr %23, i64 8
  %170 = extractvalue { i64, i64 } %167, 1
  store i64 %170, ptr %169, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #3
  %171 = load i32, ptr @n, align 4, !tbaa !5
  %172 = add nsw i32 %171, -2
  %173 = call { i64, i64 } @_Z2mmiiii(i32 noundef %171, i32 noundef 1, i32 noundef %172, i32 noundef 1)
  %174 = extractvalue { i64, i64 } %173, 0
  store i64 %174, ptr %24, align 8
  %175 = getelementptr inbounds i8, ptr %24, i64 8
  %176 = extractvalue { i64, i64 } %173, 1
  store i64 %176, ptr %175, align 8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #3
  br label %.loopexit

.loopexit:                                        ; preds = %41, %.preheader, %._crit_edge.thread, %._crit_edge111
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_Z2mmiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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}


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