; LLVM IR from tangjz/acm-icpc :: codeforces/gym (100959A)

; 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.Exp = type { i32, i32, [15 x i32] }

@tot = external dso_local global i32, align 4
@pr = external dso_local global [101 x i32], align 16
@d = external dso_local global [101 x i32], align 16
@ctr = external dso_local global i32, align 4
@sz = external dso_local global i32, align 4
@ord = external dso_local global [32751 x i32], align 16
@osz = external dso_local global i32, align 4
@fir = external dso_local global [32751 x %"struct.std::pair"], align 16
@val = external dso_local global [32751 x %"struct.std::pair"], align 16
@plim = external dso_local global [101 x i64], align 16
@out = external dso_local global [32751 x i64], align 16
@seq = external dso_local global [32751 x %struct.Exp], align 16
@pat = external dso_local global %struct.Exp, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3pfsixi(i32 noundef, i64 noundef, i32 noundef) #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)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsixi(i32 noundef, i64 noundef, i32 noundef) #2

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

27:                                               ; preds = %80, %0
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 101
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %27
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %46, label %37

37:                                               ; preds = %31
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %40
  store i32 %38, ptr %41, align 4, !tbaa !5
  %42 = load i32, ptr @tot, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr @tot, align 4, !tbaa !5
  %44 = sext i32 %42 to i64
  %45 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %44
  store i32 %38, ptr %45, align 4, !tbaa !5
  br label %46

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

47:                                               ; preds = %75, %46
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = mul nsw i32 %48, %52
  store i32 %53, ptr %5, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 101
  br i1 %54, label %56, label %55

55:                                               ; preds = %47
  store i32 5, ptr %3, align 4
  br label %78

56:                                               ; preds = %47
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %62
  store i32 %60, ptr %63, align 4, !tbaa !5
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = icmp eq i32 %67, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %56
  store i32 5, ptr %3, align 4
  br label %78

74:                                               ; preds = %56
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %4, align 4, !tbaa !5
  br label %47, !llvm.loop !9

78:                                               ; preds = %73, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %2, align 4, !tbaa !5
  br label %27, !llvm.loop !11

83:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 68, ptr %6) #8
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 68, i1 false)
  %84 = getelementptr inbounds %struct.Exp, ptr %6, i32 0, i32 0
  store i32 1, ptr %84, align 4, !tbaa !12
  %85 = getelementptr inbounds %struct.Exp, ptr %6, i32 0, i32 1
  %86 = getelementptr inbounds %struct.Exp, ptr %6, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @pat, ptr align 4 %6, i64 68, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 68, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %102, %83
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = load i32, ptr @tot, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %87
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = sdiv i64 1000000000000000000, %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %100
  store i64 %98, ptr %101, align 8, !tbaa !16
  br label %102

102:                                              ; preds = %92
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !5
  br label %87, !llvm.loop !18

105:                                              ; preds = %91
  call void @_Z3pfsixi(i32 noundef 0, i64 noundef 1, i32 noundef 61)
  %106 = load i32, ptr @ctr, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr @ord, i64 %107
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef @ord, ptr noundef %108, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %219, %105
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = load i32, ptr @ctr, align 4, !tbaa !5
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

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

114:                                              ; preds = %109
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %119
  %121 = load i32, ptr @sz, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %122
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull align 8 dereferenceable(16) %120)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %125 = load i32, ptr @sz, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %126
  %128 = getelementptr inbounds %"struct.std::pair", ptr %127, i32 0, i32 0
  store ptr %128, ptr %9, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %129 = load i32, ptr @sz, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %130
  %132 = getelementptr inbounds %"struct.std::pair", ptr %131, i32 0, i32 1
  store ptr %132, ptr %10, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %8, align 4, !tbaa !5
  %135 = sext i32 %133 to i64
  %136 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %138
  %140 = getelementptr inbounds %struct.Exp, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 4, !tbaa !12
  %142 = sext i32 %141 to i64
  store i64 %142, ptr %11, align 8, !tbaa !16
  br label %143

143:                                              ; preds = %215, %114
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = load i32, ptr @ctr, align 4, !tbaa !5
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %147, label %159

147:                                              ; preds = %143
  %148 = load i32, ptr %8, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.Exp, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !12
  %156 = sext i32 %155 to i64
  %157 = load i64, ptr %11, align 8, !tbaa !16
  %158 = icmp eq i64 %156, %157
  br label %159

159:                                              ; preds = %147, %143
  %160 = phi i1 [ false, %143 ], [ %158, %147 ]
  br i1 %160, label %162, label %161

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

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %167
  %169 = getelementptr inbounds %"struct.std::pair", ptr %168, i32 0, i32 0
  %170 = load i64, ptr %169, align 16, !tbaa !21
  store i64 %170, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %175
  %177 = getelementptr inbounds %"struct.std::pair", ptr %176, i32 0, i32 1
  %178 = load i64, ptr %177, align 8, !tbaa !23
  store i64 %178, ptr %13, align 8, !tbaa !16
  %179 = load i64, ptr %12, align 8, !tbaa !16
  %180 = load ptr, ptr %9, align 8, !tbaa !19
  %181 = load i64, ptr %180, align 8, !tbaa !16
  %182 = icmp slt i64 %179, %181
  br i1 %182, label %183, label %193

183:                                              ; preds = %162
  %184 = load i64, ptr %13, align 8, !tbaa !16
  %185 = load ptr, ptr %9, align 8, !tbaa !19
  %186 = load i64, ptr %185, align 8, !tbaa !16
  %187 = icmp slt i64 %184, %186
  br i1 %187, label %188, label %193

188:                                              ; preds = %183
  %189 = load i64, ptr %12, align 8, !tbaa !16
  %190 = load ptr, ptr %9, align 8, !tbaa !19
  store i64 %189, ptr %190, align 8, !tbaa !16
  %191 = load i64, ptr %13, align 8, !tbaa !16
  %192 = load ptr, ptr %10, align 8, !tbaa !19
  store i64 %191, ptr %192, align 8, !tbaa !16
  br label %214

193:                                              ; preds = %183, %162
  %194 = load i64, ptr %12, align 8, !tbaa !16
  %195 = load ptr, ptr %9, align 8, !tbaa !19
  %196 = load i64, ptr %195, align 8, !tbaa !16
  %197 = icmp slt i64 %194, %196
  br i1 %197, label %198, label %204

198:                                              ; preds = %193
  %199 = load ptr, ptr %9, align 8, !tbaa !19
  %200 = load i64, ptr %199, align 8, !tbaa !16
  %201 = load ptr, ptr %10, align 8, !tbaa !19
  store i64 %200, ptr %201, align 8, !tbaa !16
  %202 = load i64, ptr %12, align 8, !tbaa !16
  %203 = load ptr, ptr %9, align 8, !tbaa !19
  store i64 %202, ptr %203, align 8, !tbaa !16
  br label %213

204:                                              ; preds = %193
  %205 = load i64, ptr %12, align 8, !tbaa !16
  %206 = load ptr, ptr %10, align 8, !tbaa !19
  %207 = load i64, ptr %206, align 8, !tbaa !16
  %208 = icmp slt i64 %205, %207
  br i1 %208, label %209, label %212

209:                                              ; preds = %204
  %210 = load i64, ptr %12, align 8, !tbaa !16
  %211 = load ptr, ptr %10, align 8, !tbaa !19
  store i64 %210, ptr %211, align 8, !tbaa !16
  br label %212

212:                                              ; preds = %209, %204
  br label %213

213:                                              ; preds = %212, %198
  br label %214

214:                                              ; preds = %213, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %8, align 4, !tbaa !5
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %8, align 4, !tbaa !5
  br label %143, !llvm.loop !24

218:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr @sz, align 4, !tbaa !5
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr @sz, align 4, !tbaa !5
  br label %109, !llvm.loop !25

222:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 1000000000000000000, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 1000000000000000001, ptr %16, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 1000000000000000001, ptr %17, align 8, !tbaa !16
  %223 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %224 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %225 = extractvalue { i64, i64 } %223, 0
  store i64 %225, ptr %224, align 8
  %226 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %227 = extractvalue { i64, i64 } %223, 1
  store i64 %227, ptr %226, align 8
  %228 = load i32, ptr @sz, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %229
  %231 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %230, ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %232 = load i32, ptr @sz, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %233
  %235 = getelementptr inbounds %"struct.std::pair", ptr %234, i32 0, i32 0
  store ptr %235, ptr %18, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %236 = load i32, ptr @sz, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %237
  %239 = getelementptr inbounds %"struct.std::pair", ptr %238, i32 0, i32 1
  store ptr %239, ptr %19, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %240 = load i32, ptr @sz, align 4, !tbaa !5
  %241 = sub nsw i32 %240, 1
  store i32 %241, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %242 = load i32, ptr @ctr, align 4, !tbaa !5
  %243 = sub nsw i32 %242, 1
  store i32 %243, ptr %21, align 4, !tbaa !5
  br label %244

244:                                              ; preds = %380, %222
  %245 = load i32, ptr %20, align 4, !tbaa !5
  %246 = icmp sge i32 %245, 0
  br i1 %246, label %248, label %247

247:                                              ; preds = %244
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %383

248:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %249 = load i32, ptr %21, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %253
  %255 = getelementptr inbounds %struct.Exp, ptr %254, i32 0, i32 0
  %256 = load i32, ptr %255, align 4, !tbaa !12
  %257 = sext i32 %256 to i64
  store i64 %257, ptr %22, align 8, !tbaa !16
  br label %258

258:                                              ; preds = %296, %248
  %259 = load i32, ptr %21, align 4, !tbaa !5
  %260 = icmp sge i32 %259, 0
  br i1 %260, label %261, label %273

261:                                              ; preds = %258
  %262 = load i32, ptr %21, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %266
  %268 = getelementptr inbounds %struct.Exp, ptr %267, i32 0, i32 0
  %269 = load i32, ptr %268, align 4, !tbaa !12
  %270 = sext i32 %269 to i64
  %271 = load i64, ptr %22, align 8, !tbaa !16
  %272 = icmp eq i64 %270, %271
  br label %273

273:                                              ; preds = %261, %258
  %274 = phi i1 [ false, %258 ], [ %272, %261 ]
  br i1 %274, label %276, label %275

275:                                              ; preds = %273
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %299

276:                                              ; preds = %273
  %277 = load i32, ptr %21, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %281
  %283 = getelementptr inbounds %"struct.std::pair", ptr %282, i32 0, i32 0
  %284 = load i64, ptr %283, align 16, !tbaa !21
  %285 = load i64, ptr %14, align 8, !tbaa !16
  %286 = icmp sle i64 %284, %285
  br i1 %286, label %287, label %295

287:                                              ; preds = %276
  %288 = load i32, ptr %21, align 4, !tbaa !5
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %289
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %292
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @pat, ptr align 4 %293, i64 68, i1 false), !tbaa.struct !14
  %294 = call noundef zeroext i1 @_Z3dfsixi(i32 noundef 0, i64 noundef 1, i32 noundef 0)
  br label %295

295:                                              ; preds = %287, %276
  br label %296

296:                                              ; preds = %295
  %297 = load i32, ptr %21, align 4, !tbaa !5
  %298 = add nsw i32 %297, -1
  store i32 %298, ptr %21, align 4, !tbaa !5
  br label %258, !llvm.loop !26

299:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %300 = load i32, ptr %20, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %301
  %303 = getelementptr inbounds %"struct.std::pair", ptr %302, i32 0, i32 0
  %304 = load i64, ptr %303, align 16, !tbaa !21
  store i64 %304, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %305 = load i32, ptr %20, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %306
  %308 = getelementptr inbounds %"struct.std::pair", ptr %307, i32 0, i32 1
  %309 = load i64, ptr %308, align 8, !tbaa !23
  store i64 %309, ptr %24, align 8, !tbaa !16
  %310 = load i64, ptr %23, align 8, !tbaa !16
  %311 = load ptr, ptr %18, align 8, !tbaa !19
  %312 = load i64, ptr %311, align 8, !tbaa !16
  %313 = icmp slt i64 %310, %312
  br i1 %313, label %314, label %324

314:                                              ; preds = %299
  %315 = load i64, ptr %24, align 8, !tbaa !16
  %316 = load ptr, ptr %18, align 8, !tbaa !19
  %317 = load i64, ptr %316, align 8, !tbaa !16
  %318 = icmp slt i64 %315, %317
  br i1 %318, label %319, label %324

319:                                              ; preds = %314
  %320 = load i64, ptr %23, align 8, !tbaa !16
  %321 = load ptr, ptr %18, align 8, !tbaa !19
  store i64 %320, ptr %321, align 8, !tbaa !16
  %322 = load i64, ptr %24, align 8, !tbaa !16
  %323 = load ptr, ptr %19, align 8, !tbaa !19
  store i64 %322, ptr %323, align 8, !tbaa !16
  br label %345

324:                                              ; preds = %314, %299
  %325 = load i64, ptr %23, align 8, !tbaa !16
  %326 = load ptr, ptr %18, align 8, !tbaa !19
  %327 = load i64, ptr %326, align 8, !tbaa !16
  %328 = icmp slt i64 %325, %327
  br i1 %328, label %329, label %335

329:                                              ; preds = %324
  %330 = load ptr, ptr %18, align 8, !tbaa !19
  %331 = load i64, ptr %330, align 8, !tbaa !16
  %332 = load ptr, ptr %19, align 8, !tbaa !19
  store i64 %331, ptr %332, align 8, !tbaa !16
  %333 = load i64, ptr %23, align 8, !tbaa !16
  %334 = load ptr, ptr %18, align 8, !tbaa !19
  store i64 %333, ptr %334, align 8, !tbaa !16
  br label %344

335:                                              ; preds = %324
  %336 = load i64, ptr %23, align 8, !tbaa !16
  %337 = load ptr, ptr %19, align 8, !tbaa !19
  %338 = load i64, ptr %337, align 8, !tbaa !16
  %339 = icmp slt i64 %336, %338
  br i1 %339, label %340, label %343

340:                                              ; preds = %335
  %341 = load i64, ptr %23, align 8, !tbaa !16
  %342 = load ptr, ptr %19, align 8, !tbaa !19
  store i64 %341, ptr %342, align 8, !tbaa !16
  br label %343

343:                                              ; preds = %340, %335
  br label %344

344:                                              ; preds = %343, %329
  br label %345

345:                                              ; preds = %344, %319
  %346 = load i64, ptr %14, align 8, !tbaa !16
  %347 = load i32, ptr @sz, align 4, !tbaa !5
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %348
  %350 = getelementptr inbounds %"struct.std::pair", ptr %349, i32 0, i32 1
  %351 = load i64, ptr %350, align 8, !tbaa !23
  %352 = icmp sgt i64 %346, %351
  br i1 %352, label %353, label %379

353:                                              ; preds = %345
  %354 = load i32, ptr @sz, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %355
  %357 = getelementptr inbounds %"struct.std::pair", ptr %356, i32 0, i32 1
  %358 = load i64, ptr %357, align 8, !tbaa !23
  store i64 %358, ptr %14, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %359

359:                                              ; preds = %375, %353
  %360 = load i32, ptr %25, align 4, !tbaa !5
  %361 = load i32, ptr @tot, align 4, !tbaa !5
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %378

364:                                              ; preds = %359
  %365 = load i64, ptr %14, align 8, !tbaa !16
  %366 = load i32, ptr %25, align 4, !tbaa !5
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !5
  %370 = sext i32 %369 to i64
  %371 = sdiv i64 %365, %370
  %372 = load i32, ptr %25, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %373
  store i64 %371, ptr %374, align 8, !tbaa !16
  br label %375

375:                                              ; preds = %364
  %376 = load i32, ptr %25, align 4, !tbaa !5
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %25, align 4, !tbaa !5
  br label %359, !llvm.loop !27

378:                                              ; preds = %363
  br label %379

379:                                              ; preds = %378, %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %380

380:                                              ; preds = %379
  %381 = load i32, ptr %20, align 4, !tbaa !5
  %382 = add nsw i32 %381, -1
  store i32 %382, ptr %20, align 4, !tbaa !5
  br label %244, !llvm.loop !28

383:                                              ; preds = %247
  %384 = load i32, ptr @osz, align 4, !tbaa !5
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds i64, ptr @out, i64 %385
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @out, ptr noundef %386)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %387 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %26)
  %388 = load i32, ptr %26, align 4, !tbaa !5
  %389 = load i32, ptr @osz, align 4, !tbaa !5
  %390 = icmp sle i32 %388, %389
  br i1 %390, label %391, label %397

391:                                              ; preds = %383
  %392 = load i32, ptr %26, align 4, !tbaa !5
  %393 = sub nsw i32 %392, 1
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [32751 x i64], ptr @out, i64 0, i64 %394
  %396 = load i64, ptr %395, align 8, !tbaa !16
  br label %398

397:                                              ; preds = %383
  br label %398

398:                                              ; preds = %397, %391
  %399 = phi i64 [ %396, %391 ], [ -1, %397 ]
  %400 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %399)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %401 = load i32, ptr %1, align 4
  ret i32 %401
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; 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)) #0 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!13, !6, i64 0}
!13 = !{!"_ZTS3Exp", !6, i64 0, !6, i64 4, !7, i64 8}
!14 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 60, !15}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!22, !17, i64 0}
!22 = !{!"_ZTSSt4pairIxxE", !17, i64 0, !17, i64 8}
!23 = !{!22, !17, i64 8}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


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

%"struct.std::pair" = type { i64, i64 }
%struct.Exp = type { i32, i32, [15 x i32] }

@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [101 x i32], align 16
@d = external dso_local local_unnamed_addr global [101 x i32], align 16
@ctr = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local global [32751 x i32], align 16
@osz = external dso_local local_unnamed_addr global i32, align 4
@fir = external dso_local global [32751 x %"struct.std::pair"], align 16
@val = external dso_local global [32751 x %"struct.std::pair"], align 16
@plim = external dso_local local_unnamed_addr global [101 x i64], align 16
@out = external dso_local global [32751 x i64], align 16
@seq = external dso_local local_unnamed_addr global [32751 x %struct.Exp], align 16
@pat = external dso_local local_unnamed_addr global %struct.Exp, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKiS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3pfsixi(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #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 #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3dfsixi(i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %"struct.std::pair", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %8

5:                                                ; preds = %._crit_edge
  store i32 1, ptr @pat, align 4, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (i8, ptr @pat, i64 4), i8 0, i64 64, i1 false)
  %6 = icmp sgt i32 %17, 0
  br i1 %6, label %.lr.ph112.preheader, label %._crit_edge113

.lr.ph112.preheader:                              ; preds = %5
  %wide.trip.count = zext nneg i32 %17 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %7 = icmp eq i32 %17, 1
  br i1 %7, label %._crit_edge113.loopexit.unr-lcssa, label %.lr.ph112.preheader.new

.lr.ph112.preheader.new:                          ; preds = %.lr.ph112.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph112

8:                                                ; preds = %0, %._crit_edge
  %indvars.iv140 = phi i64 [ 2, %0 ], [ %indvars.iv.next141, %._crit_edge ]
  %9 = phi i32 [ %tot.promoted, %0 ], [ %17, %._crit_edge ]
  %10 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %indvars.iv140
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %.not105 = icmp eq i32 %11, 0
  %12 = trunc nuw nsw i64 %indvars.iv140 to i32
  br i1 %.not105, label %13, label %._crit_edge159

13:                                               ; preds = %8
  store i32 %12, ptr %10, align 4, !tbaa !5
  %14 = add nsw i32 %9, 1
  store i32 %14, ptr @tot, align 4, !tbaa !5
  %15 = sext i32 %9 to i64
  %16 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %15
  store i32 %12, ptr %16, align 4, !tbaa !5
  br label %._crit_edge159

._crit_edge159:                                   ; preds = %8, %13
  %17 = phi i32 [ %14, %13 ], [ %9, %8 ]
  %18 = load i32, ptr @pr, align 16, !tbaa !5
  %19 = mul nsw i32 %18, %12
  %20 = icmp slt i32 %19, 101
  br i1 %20, label %.lr.ph, label %._crit_edge

21:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = mul nsw i32 %23, %12
  %25 = icmp slt i32 %24, 101
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph:                                           ; preds = %._crit_edge159, %21
  %indvars.iv = phi i64 [ %indvars.iv.next, %21 ], [ 0, %._crit_edge159 ]
  %26 = phi i32 [ %24, %21 ], [ %19, %._crit_edge159 ]
  %27 = phi i32 [ %23, %21 ], [ %18, %._crit_edge159 ]
  %28 = sext i32 %26 to i64
  %29 = getelementptr inbounds [101 x i32], ptr @d, i64 0, i64 %28
  store i32 %27, ptr %29, align 4, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !5
  %31 = icmp eq i32 %30, %27
  br i1 %31, label %._crit_edge, label %21

._crit_edge:                                      ; preds = %21, %.lr.ph, %._crit_edge159
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next141, 101
  br i1 %exitcond.not, label %5, label %8, !llvm.loop !11

._crit_edge113.loopexit.unr-lcssa:                ; preds = %.lr.ph112, %.lr.ph112.preheader
  %indvars.iv143.unr = phi i64 [ 0, %.lr.ph112.preheader ], [ %indvars.iv.next144.1, %.lr.ph112 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge113, label %.lr.ph112.epil

.lr.ph112.epil:                                   ; preds = %._crit_edge113.loopexit.unr-lcssa
  %32 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv143.unr
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = sdiv i64 1000000000000000000, %34
  %36 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv143.unr
  store i64 %35, ptr %36, align 8, !tbaa !12
  br label %._crit_edge113

._crit_edge113:                                   ; preds = %.lr.ph112.epil, %._crit_edge113.loopexit.unr-lcssa, %5
  tail call void @_Z3pfsixi(i32 noundef 0, i64 noundef 1, i32 noundef 61)
  %37 = load i32, ptr @ctr, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr @ord, i64 %38
  tail call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull @ord, ptr noundef nonnull %39, ptr noundef nonnull @_Z3cmpRKiS0_)
  %40 = load i32, ptr @ctr, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph122.preheader, label %._crit_edge123

.lr.ph122.preheader:                              ; preds = %._crit_edge113
  %.pre = load i32, ptr @sz, align 4, !tbaa !5
  br label %.lr.ph122

.lr.ph112:                                        ; preds = %.lr.ph112, %.lr.ph112.preheader.new
  %indvars.iv143 = phi i64 [ 0, %.lr.ph112.preheader.new ], [ %indvars.iv.next144.1, %.lr.ph112 ]
  %niter = phi i64 [ 0, %.lr.ph112.preheader.new ], [ %niter.next.1, %.lr.ph112 ]
  %42 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv143
  %43 = load i32, ptr %42, align 8, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = sdiv i64 1000000000000000000, %44
  %46 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv143
  store i64 %45, ptr %46, align 16, !tbaa !12
  %indvars.iv.next144 = or disjoint i64 %indvars.iv143, 1
  %47 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv.next144
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = sdiv i64 1000000000000000000, %49
  %51 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv.next144
  store i64 %50, ptr %51, align 8, !tbaa !12
  %indvars.iv.next144.1 = add nuw nsw i64 %indvars.iv143, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge113.loopexit.unr-lcssa, label %.lr.ph112, !llvm.loop !14

._crit_edge123:                                   ; preds = %.critedge, %.critedge.thread, %._crit_edge113
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store i64 1000000000000000001, ptr %2, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store i64 1000000000000000001, ptr %3, align 8, !tbaa !12
  %52 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %53 = extractvalue { i64, i64 } %52, 0
  store i64 %53, ptr %1, align 8
  %54 = getelementptr inbounds i8, ptr %1, i64 8
  %55 = extractvalue { i64, i64 } %52, 1
  store i64 %55, ptr %54, align 8
  %56 = load i32, ptr @sz, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %57
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %1) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #8
  %60 = load i32, ptr @sz, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = icmp sgt i32 %60, 0
  br i1 %64, label %.lr.ph137.preheader, label %._crit_edge138

.lr.ph137.preheader:                              ; preds = %._crit_edge123
  %65 = load i32, ptr @ctr, align 4, !tbaa !5
  %66 = add nsw i32 %65, -1
  %67 = zext nneg i32 %60 to i64
  br label %.lr.ph137

.lr.ph122:                                        ; preds = %.lr.ph122.preheader, %.critedge
  %68 = phi i32 [ %96, %.critedge ], [ %.pre, %.lr.ph122.preheader ]
  %.088120 = phi i32 [ %.189.lcssa, %.critedge ], [ 0, %.lr.ph122.preheader ]
  %69 = sext i32 %.088120 to i64
  %70 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %72
  %74 = sext i32 %68 to i64
  %75 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %74
  %76 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %73)
  %77 = load i32, ptr @sz, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %78
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load i32, ptr %70, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = load i32, ptr @ctr, align 4, !tbaa !5
  %.189114 = add nsw i32 %.088120, 1
  %86 = icmp slt i32 %.189114, %85
  br i1 %86, label %.lr.ph117.preheader, label %.critedge

.lr.ph117.preheader:                              ; preds = %.lr.ph122
  %87 = sext i32 %.189114 to i64
  %88 = sext i32 %85 to i64
  br label %.lr.ph117

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %113
  %indvars.iv147 = phi i64 [ %87, %.lr.ph117.preheader ], [ %indvars.iv.next148, %113 ]
  %89 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %indvars.iv147
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !15
  %94 = icmp eq i32 %93, %84
  br i1 %94, label %98, label %.critedge.loopexit

.critedge.loopexit:                               ; preds = %.lr.ph117
  %95 = trunc nsw i64 %indvars.iv147 to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph122
  %.189.lcssa = phi i32 [ %.189114, %.lr.ph122 ], [ %95, %.critedge.loopexit ]
  %96 = add nsw i32 %77, 1
  store i32 %96, ptr @sz, align 4, !tbaa !5
  %97 = icmp slt i32 %.189.lcssa, %85
  br i1 %97, label %.lr.ph122, label %._crit_edge123, !llvm.loop !17

98:                                               ; preds = %.lr.ph117
  %99 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %91
  %100 = load i64, ptr %99, align 16, !tbaa !18
  %101 = getelementptr inbounds i8, ptr %99, i64 8
  %102 = load i64, ptr %101, align 8, !tbaa !20
  %103 = load i64, ptr %79, align 16, !tbaa !12
  %104 = icmp slt i64 %100, %103
  %105 = icmp slt i64 %102, %103
  %or.cond = select i1 %104, i1 %105, i1 false
  br i1 %or.cond, label %106, label %107

106:                                              ; preds = %98
  store i64 %100, ptr %79, align 16, !tbaa !12
  store i64 %102, ptr %80, align 8, !tbaa !12
  br label %113

107:                                              ; preds = %98
  br i1 %104, label %108, label %109

108:                                              ; preds = %107
  store i64 %103, ptr %80, align 8, !tbaa !12
  store i64 %100, ptr %79, align 16, !tbaa !12
  br label %113

109:                                              ; preds = %107
  %110 = load i64, ptr %80, align 8, !tbaa !12
  %111 = icmp slt i64 %100, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  store i64 %100, ptr %80, align 8, !tbaa !12
  br label %113

113:                                              ; preds = %108, %112, %109, %106
  %indvars.iv.next148 = add nsw i64 %indvars.iv147, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next148, %88
  br i1 %exitcond150.not, label %.critedge.thread, label %.lr.ph117, !llvm.loop !21

.critedge.thread:                                 ; preds = %113
  %114 = add nsw i32 %77, 1
  store i32 %114, ptr @sz, align 4, !tbaa !5
  br label %._crit_edge123

._crit_edge138:                                   ; preds = %.loopexit, %._crit_edge123
  %115 = load i32, ptr @osz, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i64, ptr @out, i64 %116
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @out, ptr noundef nonnull %117)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %118 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %119 = load i32, ptr %4, align 4, !tbaa !5
  %120 = load i32, ptr @osz, align 4, !tbaa !5
  %.not = icmp sgt i32 %119, %120
  br i1 %.not, label %187, label %182

.lr.ph137:                                        ; preds = %.lr.ph137.preheader, %.loopexit
  %indvars.iv156 = phi i64 [ %67, %.lr.ph137.preheader ], [ %indvars.iv.next157, %.loopexit ]
  %.082134 = phi i32 [ %66, %.lr.ph137.preheader ], [ %.1.lcssa, %.loopexit ]
  %.085133 = phi i64 [ 1000000000000000000, %.lr.ph137.preheader ], [ %.186, %.loopexit ]
  %indvars.iv.next157 = add nsw i64 %indvars.iv156, -1
  %121 = sext i32 %.082134 to i64
  %122 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !15
  %127 = icmp sgt i32 %.082134, -1
  br i1 %127, label %.lr.ph126, label %.critedge2

.lr.ph126:                                        ; preds = %.lr.ph137, %147
  %.1124 = phi i32 [ %148, %147 ], [ %.082134, %.lr.ph137 ]
  %128 = zext nneg i32 %.1124 to i64
  %129 = getelementptr inbounds [32751 x i32], ptr @ord, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [32751 x %struct.Exp], ptr @seq, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !15
  %134 = icmp eq i32 %133, %126
  br i1 %134, label %142, label %.critedge2

.critedge2:                                       ; preds = %.lr.ph126, %147, %.lr.ph137
  %.1.lcssa = phi i32 [ %.082134, %.lr.ph137 ], [ -1, %147 ], [ %.1124, %.lr.ph126 ]
  %135 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %indvars.iv.next157
  %136 = load i64, ptr %135, align 16, !tbaa !18
  %137 = getelementptr inbounds i8, ptr %135, i64 8
  %138 = load i64, ptr %137, align 8, !tbaa !20
  %139 = load i64, ptr %62, align 16, !tbaa !12
  %140 = icmp slt i64 %136, %139
  %141 = icmp slt i64 %138, %139
  %or.cond106 = select i1 %140, i1 %141, i1 false
  br i1 %or.cond106, label %150, label %151

142:                                              ; preds = %.lr.ph126
  %143 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @fir, i64 0, i64 %131
  %144 = load i64, ptr %143, align 16, !tbaa !18
  %.not104 = icmp sgt i64 %144, %.085133
  br i1 %.not104, label %147, label %145

145:                                              ; preds = %142
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(68) @pat, ptr noundef nonnull align 4 dereferenceable(68) %132, i64 68, i1 false), !tbaa.struct !22
  %146 = call noundef zeroext i1 @_Z3dfsixi(i32 noundef 0, i64 noundef 1, i32 noundef 0)
  br label %147

147:                                              ; preds = %142, %145
  %148 = add nsw i32 %.1124, -1
  %149 = icmp sgt i32 %.1124, 0
  br i1 %149, label %.lr.ph126, label %.critedge2, !llvm.loop !24

150:                                              ; preds = %.critedge2
  store i64 %136, ptr %62, align 16, !tbaa !12
  store i64 %138, ptr %63, align 8, !tbaa !12
  br label %157

151:                                              ; preds = %.critedge2
  br i1 %140, label %152, label %153

152:                                              ; preds = %151
  store i64 %139, ptr %63, align 8, !tbaa !12
  store i64 %136, ptr %62, align 16, !tbaa !12
  br label %157

153:                                              ; preds = %151
  %154 = load i64, ptr %63, align 8, !tbaa !12
  %155 = icmp slt i64 %136, %154
  br i1 %155, label %156, label %157

156:                                              ; preds = %153
  store i64 %136, ptr %63, align 8, !tbaa !12
  br label %157

157:                                              ; preds = %152, %156, %153, %150
  %158 = load i32, ptr @sz, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [32751 x %"struct.std::pair"], ptr @val, i64 0, i64 %159, i32 1
  %161 = load i64, ptr %160, align 8, !tbaa !20
  %162 = icmp sgt i64 %.085133, %161
  br i1 %162, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %157
  %163 = load i32, ptr @tot, align 4, !tbaa !5
  %164 = icmp sgt i32 %163, 0
  br i1 %164, label %.lr.ph131.preheader, label %.loopexit

.lr.ph131.preheader:                              ; preds = %.preheader
  %wide.trip.count154 = zext nneg i32 %163 to i64
  %xtraiter170 = and i64 %wide.trip.count154, 1
  %165 = icmp eq i32 %163, 1
  br i1 %165, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph131.preheader.new

.lr.ph131.preheader.new:                          ; preds = %.lr.ph131.preheader
  %unroll_iter172 = and i64 %wide.trip.count154, 2147483646
  br label %.lr.ph131

.lr.ph131:                                        ; preds = %.lr.ph131, %.lr.ph131.preheader.new
  %indvars.iv151 = phi i64 [ 0, %.lr.ph131.preheader.new ], [ %indvars.iv.next152.1, %.lr.ph131 ]
  %niter173 = phi i64 [ 0, %.lr.ph131.preheader.new ], [ %niter173.next.1, %.lr.ph131 ]
  %166 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv151
  %167 = load i32, ptr %166, align 8, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = sdiv i64 %161, %168
  %170 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv151
  store i64 %169, ptr %170, align 16, !tbaa !12
  %indvars.iv.next152 = or disjoint i64 %indvars.iv151, 1
  %171 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv.next152
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = sdiv i64 %161, %173
  %175 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv.next152
  store i64 %174, ptr %175, align 8, !tbaa !12
  %indvars.iv.next152.1 = add nuw nsw i64 %indvars.iv151, 2
  %niter173.next.1 = add i64 %niter173, 2
  %niter173.ncmp.1 = icmp eq i64 %niter173.next.1, %unroll_iter172
  br i1 %niter173.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph131, !llvm.loop !25

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph131, %.lr.ph131.preheader
  %indvars.iv151.unr = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next152.1, %.lr.ph131 ]
  %lcmp.mod171.not = icmp eq i64 %xtraiter170, 0
  br i1 %lcmp.mod171.not, label %.loopexit, label %.lr.ph131.epil

.lr.ph131.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa
  %176 = getelementptr inbounds [101 x i32], ptr @pr, i64 0, i64 %indvars.iv151.unr
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = sdiv i64 %161, %178
  %180 = getelementptr inbounds [101 x i64], ptr @plim, i64 0, i64 %indvars.iv151.unr
  store i64 %179, ptr %180, align 8, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph131.epil, %.loopexit.loopexit.unr-lcssa, %.preheader, %157
  %.186 = phi i64 [ %.085133, %157 ], [ %161, %.preheader ], [ %161, %.loopexit.loopexit.unr-lcssa ], [ %161, %.lr.ph131.epil ]
  %181 = icmp sgt i64 %indvars.iv156, 1
  br i1 %181, label %.lr.ph137, label %._crit_edge138, !llvm.loop !26

182:                                              ; preds = %._crit_edge138
  %183 = add nsw i32 %119, -1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [32751 x i64], ptr @out, i64 0, i64 %184
  %186 = load i64, ptr %185, align 8, !tbaa !12
  br label %187

187:                                              ; preds = %._crit_edge138, %182
  %188 = phi i64 [ %186, %182 ], [ -1, %._crit_edge138 ]
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %188)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

; 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 #0 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS3Exp", !6, i64 0, !6, i64 4, !7, i64 8}
!17 = distinct !{!17, !10}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTSSt4pairIxxE", !13, i64 0, !13, i64 8}
!20 = !{!19, !13, i64 8}
!21 = distinct !{!21, !10}
!22 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 60, !23}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}


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