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

; 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 { i64, i64 }
%"struct.std::pair.0" = type { i32, i32 }
%"struct.std::pair.2" = type { i32, i64 }

@cnt = external dso_local global i32, align 4
@p = external dso_local global [65 x i64], align 16
@tot = external dso_local global i32, align 4
@sz = external dso_local global [2 x i32], align 4
@fact = external dso_local global [65 x %"struct.std::pair"], align 16
@ans = external dso_local global [2 x [65536 x %"struct.std::pair"]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13decompositionx(i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

33:                                               ; preds = %0
  %34 = call i32 @puts(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %390

35:                                               ; preds = %0
  %36 = load i64, ptr %2, align 8, !tbaa !5
  call void @_Z13decompositionx(i64 noundef %36)
  %37 = load i32, ptr @cnt, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i64, ptr @p, i64 %38
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @p, ptr noundef %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  br label %40

40:                                               ; preds = %79, %35
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = load i32, ptr @cnt, align 4, !tbaa !9
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 2, ptr %3, align 4
  br label %82

45:                                               ; preds = %40
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %62

48:                                               ; preds = %45
  %49 = load i32, ptr %4, align 4, !tbaa !9
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = icmp eq i64 %53, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %48
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %5, align 4, !tbaa !9
  br label %78

62:                                               ; preds = %48, %45
  %63 = load i32, ptr %4, align 4, !tbaa !9
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %68 = and i64 %67, 3
  %69 = icmp eq i64 %68, 3
  br i1 %69, label %70, label %76

70:                                               ; preds = %62
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = and i32 %71, 1
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = call i32 @puts(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %82

76:                                               ; preds = %70, %62
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %59
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %4, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %4, align 4, !tbaa !9
  br label %40, !llvm.loop !11

82:                                               ; preds = %74, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  %83 = load i32, ptr %3, align 4
  switch i32 %83, label %390 [
    i32 2, label %84
  ]

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %142, %84
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = load i32, ptr @cnt, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %145

90:                                               ; preds = %85
  %91 = load i32, ptr %6, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = icmp eq i64 %94, 2
  br i1 %95, label %96, label %103

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !9
  %97 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i64 %97, ptr %7, align 4
  %98 = load i32, ptr @tot, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr @tot, align 4, !tbaa !9
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %100
  %102 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %101, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %141

103:                                              ; preds = %90
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !5
  %108 = and i64 %107, 3
  %109 = icmp eq i64 %108, 3
  br i1 %109, label %110, label %125

110:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %6, align 4, !tbaa !9
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %113
  %115 = call { i32, i64 } @_ZSt9make_pairIiRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 8 dereferenceable(8) %114)
  %116 = getelementptr inbounds { i32, i64 }, ptr %10, i32 0, i32 0
  %117 = extractvalue { i32, i64 } %115, 0
  store i32 %117, ptr %116, align 8
  %118 = getelementptr inbounds { i32, i64 }, ptr %10, i32 0, i32 1
  %119 = extractvalue { i32, i64 } %115, 1
  store i64 %119, ptr %118, align 8
  %120 = load i32, ptr @tot, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr @tot, align 4, !tbaa !9
  %122 = sext i32 %120 to i64
  %123 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %122
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIixEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %140

125:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = call { i64, i64 } @_Z3gaox(i64 noundef %129)
  %131 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %132 = extractvalue { i64, i64 } %130, 0
  store i64 %132, ptr %131, align 8
  %133 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %134 = extractvalue { i64, i64 } %130, 1
  store i64 %134, ptr %133, align 8
  %135 = load i32, ptr @tot, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @tot, align 4, !tbaa !9
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %137
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %138, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %140

140:                                              ; preds = %125, %110
  br label %141

141:                                              ; preds = %140, %96
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %6, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %6, align 4, !tbaa !9
  br label %85, !llvm.loop !13

145:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %147
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %151, align 4, !tbaa !9
  %154 = sext i32 %152 to i64
  %155 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %148, i64 0, i64 %154
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %155, ptr noundef nonnull align 8 dereferenceable(16) @fact)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %356, %145
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr @tot, align 4, !tbaa !9
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %162, label %161

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

162:                                              ; preds = %157
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = xor i32 %163, 1
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = xor i32 %165, 1
  store i32 %166, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %168
  store i32 0, ptr %169, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %311, %162
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = icmp slt i32 %171, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %170
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %314

178:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %180
  %182 = load i32, ptr %16, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %181, i64 0, i64 %183
  %185 = getelementptr inbounds %"struct.std::pair", ptr %184, i32 0, i32 0
  %186 = load i64, ptr %185, align 16, !tbaa !14
  store i64 %186, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %188
  %190 = load i32, ptr %16, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %189, i64 0, i64 %191
  %193 = getelementptr inbounds %"struct.std::pair", ptr %192, i32 0, i32 1
  %194 = load i64, ptr %193, align 8, !tbaa !16
  store i64 %194, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %195 = load i32, ptr %15, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %196
  %198 = getelementptr inbounds %"struct.std::pair", ptr %197, i32 0, i32 0
  %199 = load i64, ptr %198, align 16, !tbaa !14
  store i64 %199, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %201
  %203 = getelementptr inbounds %"struct.std::pair", ptr %202, i32 0, i32 1
  %204 = load i64, ptr %203, align 8, !tbaa !16
  store i64 %204, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %205 = load i64, ptr %17, align 8, !tbaa !5
  %206 = load i64, ptr %19, align 8, !tbaa !5
  %207 = mul nsw i64 %205, %206
  %208 = load i64, ptr %18, align 8, !tbaa !5
  %209 = load i64, ptr %20, align 8, !tbaa !5
  %210 = mul nsw i64 %208, %209
  %211 = add nsw i64 %207, %210
  store i64 %211, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %212 = load i64, ptr %17, align 8, !tbaa !5
  %213 = load i64, ptr %20, align 8, !tbaa !5
  %214 = mul nsw i64 %212, %213
  %215 = load i64, ptr %18, align 8, !tbaa !5
  %216 = load i64, ptr %19, align 8, !tbaa !5
  %217 = mul nsw i64 %215, %216
  %218 = sub nsw i64 %214, %217
  %219 = call noundef i64 @_ZSt3absx(i64 noundef %218)
  store i64 %219, ptr %22, align 8, !tbaa !5
  %220 = load i64, ptr %21, align 8, !tbaa !5
  %221 = load i64, ptr %22, align 8, !tbaa !5
  %222 = icmp sle i64 %220, %221
  br i1 %222, label %223, label %240

223:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %224 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %225 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %226 = extractvalue { i64, i64 } %224, 0
  store i64 %226, ptr %225, align 8
  %227 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %228 = extractvalue { i64, i64 } %224, 1
  store i64 %228, ptr %227, align 8
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %230
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %234, align 4, !tbaa !9
  %237 = sext i32 %235 to i64
  %238 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %231, i64 0, i64 %237
  %239 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %238, ptr noundef nonnull align 8 dereferenceable(16) %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %257

240:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %241 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %242 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 0
  %243 = extractvalue { i64, i64 } %241, 0
  store i64 %243, ptr %242, align 8
  %244 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 1
  %245 = extractvalue { i64, i64 } %241, 1
  store i64 %245, ptr %244, align 8
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %247
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %251, align 4, !tbaa !9
  %254 = sext i32 %252 to i64
  %255 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %248, i64 0, i64 %254
  %256 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %255, ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %257

257:                                              ; preds = %240, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %258 = load i64, ptr %17, align 8, !tbaa !5
  %259 = load i64, ptr %19, align 8, !tbaa !5
  %260 = mul nsw i64 %258, %259
  %261 = load i64, ptr %18, align 8, !tbaa !5
  %262 = load i64, ptr %20, align 8, !tbaa !5
  %263 = mul nsw i64 %261, %262
  %264 = sub nsw i64 %260, %263
  %265 = call noundef i64 @_ZSt3absx(i64 noundef %264)
  store i64 %265, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %266 = load i64, ptr %17, align 8, !tbaa !5
  %267 = load i64, ptr %20, align 8, !tbaa !5
  %268 = mul nsw i64 %266, %267
  %269 = load i64, ptr %18, align 8, !tbaa !5
  %270 = load i64, ptr %19, align 8, !tbaa !5
  %271 = mul nsw i64 %269, %270
  %272 = add nsw i64 %268, %271
  store i64 %272, ptr %26, align 8, !tbaa !5
  %273 = load i64, ptr %25, align 8, !tbaa !5
  %274 = load i64, ptr %26, align 8, !tbaa !5
  %275 = icmp sle i64 %273, %274
  br i1 %275, label %276, label %293

276:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  %277 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26)
  %278 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %279 = extractvalue { i64, i64 } %277, 0
  store i64 %279, ptr %278, align 8
  %280 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %281 = extractvalue { i64, i64 } %277, 1
  store i64 %281, ptr %280, align 8
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %283
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %287, align 4, !tbaa !9
  %290 = sext i32 %288 to i64
  %291 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %284, i64 0, i64 %290
  %292 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %291, ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  br label %310

293:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %294 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %295 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 0
  %296 = extractvalue { i64, i64 } %294, 0
  store i64 %296, ptr %295, align 8
  %297 = getelementptr inbounds { i64, i64 }, ptr %28, i32 0, i32 1
  %298 = extractvalue { i64, i64 } %294, 1
  store i64 %298, ptr %297, align 8
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %300
  %302 = load i32, ptr %14, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !9
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %304, align 4, !tbaa !9
  %307 = sext i32 %305 to i64
  %308 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %301, i64 0, i64 %307
  %309 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %308, ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  br label %310

310:                                              ; preds = %293, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %16, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %16, align 4, !tbaa !9
  br label %170, !llvm.loop !17

314:                                              ; preds = %177
  %315 = load i32, ptr %14, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %316
  %318 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %317, i64 0, i64 0
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %320
  %322 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %321, i64 0, i64 0
  %323 = load i32, ptr %14, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds %"struct.std::pair", ptr %322, i64 %327
  call void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef %318, ptr noundef %328)
  %329 = load i32, ptr %14, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %330
  %332 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %331, i64 0, i64 0
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %334
  %336 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %335, i64 0, i64 0
  %337 = load i32, ptr %14, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %338
  %340 = load i32, ptr %339, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds %"struct.std::pair", ptr %336, i64 %341
  %343 = call noundef ptr @_ZSt6uniqueIPSt4pairIxxEET_S3_S3_(ptr noundef %332, ptr noundef %342)
  %344 = load i32, ptr %14, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %345
  %347 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %346, i64 0, i64 0
  %348 = ptrtoint ptr %343 to i64
  %349 = ptrtoint ptr %347 to i64
  %350 = sub i64 %348, %349
  %351 = sdiv exact i64 %350, 16
  %352 = trunc i64 %351 to i32
  %353 = load i32, ptr %14, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %354
  store i32 %352, ptr %355, align 4, !tbaa !9
  br label %356

356:                                              ; preds = %314
  %357 = load i32, ptr %15, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %15, align 4, !tbaa !9
  br label %157, !llvm.loop !18

359:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %360

360:                                              ; preds = %386, %359
  %361 = load i32, ptr %29, align 4, !tbaa !9
  %362 = load i32, ptr %14, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %363
  %365 = load i32, ptr %364, align 4, !tbaa !9
  %366 = icmp slt i32 %361, %365
  br i1 %366, label %368, label %367

367:                                              ; preds = %360
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %389

368:                                              ; preds = %360
  %369 = load i32, ptr %14, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %370
  %372 = load i32, ptr %29, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %371, i64 0, i64 %373
  %375 = getelementptr inbounds %"struct.std::pair", ptr %374, i32 0, i32 0
  %376 = load i64, ptr %375, align 16, !tbaa !14
  %377 = load i32, ptr %14, align 4, !tbaa !9
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %378
  %380 = load i32, ptr %29, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr %379, i64 0, i64 %381
  %383 = getelementptr inbounds %"struct.std::pair", ptr %382, i32 0, i32 1
  %384 = load i64, ptr %383, align 8, !tbaa !16
  %385 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %376, i64 noundef %384)
  br label %386

386:                                              ; preds = %368
  %387 = load i32, ptr %29, align 4, !tbaa !9
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %29, align 4, !tbaa !9
  br label %360, !llvm.loop !19

389:                                              ; preds = %367
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %390

390:                                              ; preds = %389, %82, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %391 = load i32, ptr %1, align 4
  ret i32 %391
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #4

declare i32 @puts(ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i32, i64 } @_ZSt9make_pairIiRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIixEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPSt4pairIxxEET_S3_S3_(ptr noundef, ptr noundef) #5

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

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

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

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

@cnt = external dso_local local_unnamed_addr global i32, align 4
@p = external dso_local global [65 x i64], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local local_unnamed_addr global [2 x i32], align 4
@fact = external dso_local global [65 x %"struct.std::pair"], align 16
@ans = external dso_local global [2 x [65536 x %"struct.std::pair"]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 x i8], align 1

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i64, align 8
  %2 = alloca %"struct.std::pair.0", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair.2", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %17 = load i64, ptr %1, align 8, !tbaa !5
  %18 = icmp eq i64 %17, 1
  br i1 %18, label %.loopexit.sink.split, label %19

19:                                               ; preds = %0
  call void @_Z13decompositionx(i64 noundef %17)
  %20 = load i32, ptr @cnt, align 4, !tbaa !9
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i64, ptr @p, i64 %21
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @p, ptr noundef nonnull %22)
  %23 = load i32, ptr @cnt, align 4, !tbaa !9
  %.not88 = icmp slt i32 %23, 0
  br i1 %.not88, label %.critedge._crit_edge, label %24

24:                                               ; preds = %19
  %25 = add nuw i32 %23, 1
  %wide.trip.count = zext i32 %25 to i64
  %exitcond.peel.not = icmp eq i32 %23, 0
  br i1 %exitcond.peel.not, label %.critedge._crit_edge, label %.lr.ph.peel.next

.lr.ph92:                                         ; preds = %40
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  %27 = getelementptr inbounds i8, ptr %5, i64 8
  br label %52

.lr.ph.peel.next:                                 ; preds = %24, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 1, %24 ]
  %.07489 = phi i32 [ %.175, %40 ], [ 1, %24 ]
  %28 = add nsw i64 %indvars.iv, -1
  %29 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %indvars.iv
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = icmp eq i64 %30, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %.lr.ph.peel.next
  %35 = add nsw i32 %.07489, 1
  br label %40

36:                                               ; preds = %.lr.ph.peel.next
  %37 = and i64 %30, 3
  %38 = icmp ne i64 %37, 3
  %39 = and i32 %.07489, 1
  %.not85 = icmp eq i32 %39, 0
  %or.cond = select i1 %38, i1 true, i1 %.not85
  br i1 %or.cond, label %40, label %.loopexit.sink.split

40:                                               ; preds = %36, %34
  %.175 = phi i32 [ %35, %34 ], [ 1, %36 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.lr.ph92, label %.lr.ph.peel.next, !llvm.loop !11

.critedge._crit_edge:                             ; preds = %.critedge, %19, %24
  %41 = load i32, ptr @sz, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr @sz, align 4, !tbaa !9
  %43 = sext i32 %41 to i64
  %44 = getelementptr inbounds [65536 x %"struct.std::pair"], ptr @ans, i64 0, i64 %43
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) @fact)
  %46 = load i32, ptr @tot, align 4, !tbaa !9
  %47 = icmp sgt i32 %46, 1
  br i1 %47, label %.lr.ph99, label %.critedge._crit_edge..preheader_crit_edge

.critedge._crit_edge..preheader_crit_edge:        ; preds = %.critedge._crit_edge
  %.pre119 = load i32, ptr @sz, align 4, !tbaa !9
  br label %.preheader

.lr.ph99:                                         ; preds = %.critedge._crit_edge
  %48 = getelementptr inbounds i8, ptr %10, i64 8
  %49 = getelementptr inbounds i8, ptr %11, i64 8
  %50 = getelementptr inbounds i8, ptr %14, i64 8
  %51 = getelementptr inbounds i8, ptr %15, i64 8
  br label %93

52:                                               ; preds = %.lr.ph92, %.critedge
  %.08091 = phi i32 [ 0, %.lr.ph92 ], [ %86, %.critedge ]
  %53 = sext i32 %.08091 to i64
  %54 = getelementptr inbounds [65 x i64], ptr @p, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = icmp eq i64 %55, 2
  br i1 %56, label %57, label %64

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 1, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 1, ptr %4, align 4, !tbaa !9
  %58 = call i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %58, ptr %2, align 8
  %59 = load i32, ptr @tot, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr @tot, align 4, !tbaa !9
  %61 = sext i32 %59 to i64
  %62 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %61
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %62, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %.critedge

64:                                               ; preds = %52
  %65 = and i64 %55, 3
  %66 = icmp eq i64 %65, 3
  br i1 %66, label %67, label %77

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !9
  %68 = add nsw i32 %.08091, 1
  %69 = call { i32, i64 } @_ZSt9make_pairIiRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %54)
  %70 = extractvalue { i32, i64 } %69, 0
  store i32 %70, ptr %5, align 8
  %71 = extractvalue { i32, i64 } %69, 1
  store i64 %71, ptr %27, align 8
  %72 = load i32, ptr @tot, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr @tot, align 4, !tbaa !9
  %74 = sext i32 %72 to i64
  %75 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %74
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIixEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %.critedge

77:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %78 = call { i64, i64 } @_Z3gaox(i64 noundef %55)
  %79 = extractvalue { i64, i64 } %78, 0
  store i64 %79, ptr %7, align 8
  %80 = extractvalue { i64, i64 } %78, 1
  store i64 %80, ptr %26, align 8
  %81 = load i32, ptr @tot, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr @tot, align 4, !tbaa !9
  %83 = sext i32 %81 to i64
  %84 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %83
  %85 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %.critedge

.critedge:                                        ; preds = %57, %77, %67
  %.181 = phi i32 [ %.08091, %57 ], [ %68, %67 ], [ %.08091, %77 ]
  %86 = add nsw i32 %.181, 1
  %87 = load i32, ptr @cnt, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %52, label %.critedge._crit_edge, !llvm.loop !14

.preheader.loopexit:                              ; preds = %._crit_edge
  %89 = zext nneg i32 %95 to i64
  br label %.preheader

.preheader:                                       ; preds = %.critedge._crit_edge..preheader_crit_edge, %.preheader.loopexit
  %90 = phi i32 [ %.pre119, %.critedge._crit_edge..preheader_crit_edge ], [ %116, %.preheader.loopexit ]
  %.078.lcssa = phi i64 [ 0, %.critedge._crit_edge..preheader_crit_edge ], [ %89, %.preheader.loopexit ]
  %91 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %.078.lcssa
  %92 = icmp sgt i32 %90, 0
  br i1 %92, label %.lr.ph101, label %.loopexit

93:                                               ; preds = %.lr.ph99, %._crit_edge
  %indvars.iv108 = phi i64 [ 1, %.lr.ph99 ], [ %indvars.iv.next109, %._crit_edge ]
  %.07896 = phi i32 [ 0, %.lr.ph99 ], [ %95, %._crit_edge ]
  %.07995 = phi i32 [ 1, %.lr.ph99 ], [ %94, %._crit_edge ]
  %94 = xor i32 %.07995, 1
  %95 = xor i32 %.07896, 1
  %96 = zext nneg i32 %95 to i64
  %97 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %96
  store i32 0, ptr %97, align 4, !tbaa !9
  %98 = zext nneg i32 %94 to i64
  %99 = getelementptr inbounds [2 x i32], ptr @sz, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph94, label %._crit_edge

.lr.ph94:                                         ; preds = %93
  %102 = getelementptr inbounds [65 x %"struct.std::pair"], ptr @fact, i64 0, i64 %indvars.iv108
  %103 = getelementptr inbounds i8, ptr %102, i64 8
  br label %120

._crit_edge.loopexit:                             ; preds = %175
  %.pre118 = load i32, ptr %97, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %93
  %104 = phi i32 [ %.pre118, %._crit_edge.loopexit ], [ 0, %93 ]
  %105 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %96
  %106 = sext i32 %104 to i64
  %107 = getelementptr inbounds %"struct.std::pair", ptr %105, i64 %106
  call void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef nonnull %105, ptr noundef nonnull %107)
  %108 = load i32, ptr %97, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %"struct.std::pair", ptr %105, i64 %109
  %111 = call noundef ptr @_ZSt6uniqueIPSt4pairIxxEET_S3_S3_(ptr noundef nonnull %105, ptr noundef nonnull %110)
  %112 = ptrtoint ptr %111 to i64
  %113 = ptrtoint ptr %105 to i64
  %114 = sub i64 %112, %113
  %115 = lshr exact i64 %114, 4
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %97, align 4, !tbaa !9
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %117 = load i32, ptr @tot, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = icmp slt i64 %indvars.iv.next109, %118
  br i1 %119, label %93, label %.preheader.loopexit, !llvm.loop !15

120:                                              ; preds = %.lr.ph94, %175
  %indvars.iv105 = phi i64 [ 0, %.lr.ph94 ], [ %indvars.iv.next106, %175 ]
  %121 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %98, i64 %indvars.iv105
  %122 = load i64, ptr %121, align 16, !tbaa !16
  %123 = getelementptr inbounds i8, ptr %121, i64 8
  %124 = load i64, ptr %123, align 8, !tbaa !18
  %125 = load i64, ptr %102, align 16, !tbaa !16
  %126 = load i64, ptr %103, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %127 = mul nsw i64 %125, %122
  %128 = mul nsw i64 %126, %124
  %129 = add nsw i64 %128, %127
  store i64 %129, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %130 = mul nsw i64 %126, %122
  %131 = mul nsw i64 %125, %124
  %132 = sub nsw i64 %130, %131
  %133 = call noundef i64 @_ZSt3absx(i64 noundef %132)
  store i64 %133, ptr %9, align 8, !tbaa !5
  %134 = load i64, ptr %8, align 8, !tbaa !5
  %.not86 = icmp sgt i64 %134, %133
  br i1 %.not86, label %144, label %135

135:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %136 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %137 = extractvalue { i64, i64 } %136, 0
  store i64 %137, ptr %10, align 8
  %138 = extractvalue { i64, i64 } %136, 1
  store i64 %138, ptr %48, align 8
  %139 = load i32, ptr %97, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %97, align 4, !tbaa !9
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %96, i64 %141
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %142, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %153

144:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %145 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %146 = extractvalue { i64, i64 } %145, 0
  store i64 %146, ptr %11, align 8
  %147 = extractvalue { i64, i64 } %145, 1
  store i64 %147, ptr %49, align 8
  %148 = load i32, ptr %97, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %97, align 4, !tbaa !9
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %96, i64 %150
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %151, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %153

153:                                              ; preds = %144, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %154 = sub nsw i64 %127, %128
  %155 = call noundef i64 @_ZSt3absx(i64 noundef %154)
  store i64 %155, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %156 = add nsw i64 %130, %131
  store i64 %156, ptr %13, align 8, !tbaa !5
  %.not87 = icmp sgt i64 %155, %156
  br i1 %.not87, label %166, label %157

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #7
  %158 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %159 = extractvalue { i64, i64 } %158, 0
  store i64 %159, ptr %14, align 8
  %160 = extractvalue { i64, i64 } %158, 1
  store i64 %160, ptr %50, align 8
  %161 = load i32, ptr %97, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %97, align 4, !tbaa !9
  %163 = sext i32 %161 to i64
  %164 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %96, i64 %163
  %165 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %164, ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #7
  br label %175

166:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  %167 = call { i64, i64 } @_ZSt9make_pairIRxS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %168 = extractvalue { i64, i64 } %167, 0
  store i64 %168, ptr %15, align 8
  %169 = extractvalue { i64, i64 } %167, 1
  store i64 %169, ptr %51, align 8
  %170 = load i32, ptr %97, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %97, align 4, !tbaa !9
  %172 = sext i32 %170 to i64
  %173 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %96, i64 %172
  %174 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %173, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %175

175:                                              ; preds = %166, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %176 = load i32, ptr %99, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = icmp slt i64 %indvars.iv.next106, %177
  br i1 %178, label %120, label %._crit_edge.loopexit, !llvm.loop !19

.lr.ph101:                                        ; preds = %.preheader, %.lr.ph101
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph101 ], [ 0, %.preheader ]
  %179 = getelementptr inbounds [2 x [65536 x %"struct.std::pair"]], ptr @ans, i64 0, i64 %.078.lcssa, i64 %indvars.iv111
  %180 = load i64, ptr %179, align 16, !tbaa !16
  %181 = getelementptr inbounds i8, ptr %179, i64 8
  %182 = load i64, ptr %181, align 8, !tbaa !18
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %180, i64 noundef %182)
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %184 = load i32, ptr %91, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = icmp slt i64 %indvars.iv.next112, %185
  br i1 %186, label %.lr.ph101, label %.loopexit, !llvm.loop !20

.loopexit.sink.split:                             ; preds = %36, %0
  %.str.2.sink = phi ptr [ @.str.1, %0 ], [ @.str.2, %36 ]
  %187 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph101, %.loopexit.sink.split, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i32, i64 } @_ZSt9make_pairIiRxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSIixEENSt9enable_ifIXsr6__and_ISt13is_assignableIRxOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPSt4pairIxxEEvT_S3_(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPSt4pairIxxEET_S3_S3_(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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

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


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