; LLVM IR from reyadussalahin/problem-solving :: ad_hoc/constructive_algorithm/codeforces/F1504D (Solution)

; 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 { i32, i32 }

@x = external dso_local global [10010 x %"struct.std::pair"], align 16
@y = external dso_local global [10010 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@stdout = external global ptr, align 8

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

29:                                               ; preds = %109, %0
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

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

34:                                               ; preds = %29
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = and i32 %35, 1
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %73, label %38

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

39:                                               ; preds = %69, %38
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %39
  %45 = load i32, ptr %7, align 4, !tbaa !5
  %46 = and i32 %45, 1
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %58, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %10, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %53 to i64
  %56 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %55
  %57 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %56, ptr noundef nonnull align 4 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %68

58:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %13, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %4, align 4, !tbaa !5
  %65 = sext i32 %63 to i64
  %66 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %65
  %67 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %68

68:                                               ; preds = %58, %48
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %7, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %7, align 4, !tbaa !5
  br label %39, !llvm.loop !9

72:                                               ; preds = %43
  br label %108

73:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %104, %73
  %75 = load i32, ptr %14, align 4, !tbaa !5
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %107

79:                                               ; preds = %74
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = and i32 %80, 1
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %93, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %17, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %4, align 4, !tbaa !5
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %90
  %92 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %91, ptr noundef nonnull align 4 dereferenceable(8) %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %103

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %20, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %3, align 4, !tbaa !5
  %100 = sext i32 %98 to i64
  %101 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %100
  %102 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %101, ptr noundef nonnull align 4 dereferenceable(8) %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %103

103:                                              ; preds = %93, %83
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %14, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %14, align 4, !tbaa !5
  br label %74, !llvm.loop !11

107:                                              ; preds = %78
  br label %108

108:                                              ; preds = %107, %72
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %5, align 4, !tbaa !5
  br label %29, !llvm.loop !12

112:                                              ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = load i32, ptr %2, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  store i32 %115, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %218, %112
  %117 = load i32, ptr %24, align 4, !tbaa !5
  %118 = load i32, ptr %21, align 4, !tbaa !5
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %221

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %122 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %25)
  %123 = load i32, ptr %22, align 4, !tbaa !5
  %124 = load i32, ptr %3, align 4, !tbaa !5
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %126, label %166

126:                                              ; preds = %121
  %127 = load i32, ptr %23, align 4, !tbaa !5
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %130, label %166

130:                                              ; preds = %126
  %131 = load i32, ptr %25, align 4, !tbaa !5
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %149

133:                                              ; preds = %130
  %134 = load i32, ptr %23, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %135
  %137 = getelementptr inbounds %"struct.std::pair", ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !13
  %139 = load i32, ptr %23, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %140
  %142 = getelementptr inbounds %"struct.std::pair", ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 4, !tbaa !15
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 2, i32 noundef %138, i32 noundef %143)
  %145 = load i32, ptr %23, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %23, align 4, !tbaa !5
  %147 = load ptr, ptr @stdout, align 8, !tbaa !16
  %148 = call i32 @fflush(ptr noundef %147)
  br label %165

149:                                              ; preds = %130
  %150 = load i32, ptr %22, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %151
  %153 = getelementptr inbounds %"struct.std::pair", ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 8, !tbaa !13
  %155 = load i32, ptr %22, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %156
  %158 = getelementptr inbounds %"struct.std::pair", ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !15
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 1, i32 noundef %154, i32 noundef %159)
  %161 = load i32, ptr %22, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %22, align 4, !tbaa !5
  %163 = load ptr, ptr @stdout, align 8, !tbaa !16
  %164 = call i32 @fflush(ptr noundef %163)
  br label %165

165:                                              ; preds = %149, %133
  br label %217

166:                                              ; preds = %126, %121
  %167 = load i32, ptr %22, align 4, !tbaa !5
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %170, label %191

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %171 = load i32, ptr %25, align 4, !tbaa !5
  %172 = icmp eq i32 %171, 1
  %173 = zext i1 %172 to i64
  %174 = select i1 %172, i32 3, i32 1
  store i32 %174, ptr %26, align 4, !tbaa !5
  %175 = load i32, ptr %26, align 4, !tbaa !5
  %176 = load i32, ptr %22, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %177
  %179 = getelementptr inbounds %"struct.std::pair", ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !13
  %181 = load i32, ptr %22, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %182
  %184 = getelementptr inbounds %"struct.std::pair", ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 4, !tbaa !15
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %175, i32 noundef %180, i32 noundef %185)
  %187 = load i32, ptr %22, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %22, align 4, !tbaa !5
  %189 = load ptr, ptr @stdout, align 8, !tbaa !16
  %190 = call i32 @fflush(ptr noundef %189)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %191

191:                                              ; preds = %170, %166
  %192 = load i32, ptr %23, align 4, !tbaa !5
  %193 = load i32, ptr %4, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %195, label %216

195:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %196 = load i32, ptr %25, align 4, !tbaa !5
  %197 = icmp eq i32 %196, 2
  %198 = zext i1 %197 to i64
  %199 = select i1 %197, i32 3, i32 2
  store i32 %199, ptr %27, align 4, !tbaa !5
  %200 = load i32, ptr %27, align 4, !tbaa !5
  %201 = load i32, ptr %23, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %202
  %204 = getelementptr inbounds %"struct.std::pair", ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 8, !tbaa !13
  %206 = load i32, ptr %23, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %207
  %209 = getelementptr inbounds %"struct.std::pair", ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !15
  %211 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %200, i32 noundef %205, i32 noundef %210)
  %212 = load i32, ptr %23, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %23, align 4, !tbaa !5
  %214 = load ptr, ptr @stdout, align 8, !tbaa !16
  %215 = call i32 @fflush(ptr noundef %214)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %216

216:                                              ; preds = %195, %191
  br label %217

217:                                              ; preds = %216, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %24, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %24, align 4, !tbaa !5
  br label %116, !llvm.loop !18

221:                                              ; preds = %120
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  %222 = load i32, ptr %1, align 4
  ret i32 %222
}

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

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

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

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

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

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

declare i32 @fflush(ptr noundef) #2

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

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

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

@x = external dso_local global [10010 x %"struct.std::pair"], align 16
@y = external dso_local global [10010 x %"struct.std::pair"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

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

._crit_edge:                                      ; preds = %.loopexit, %0
  %.053.lcssa = phi i32 [ 0, %0 ], [ %.558, %.loopexit ]
  %.0.lcssa = phi i32 [ 0, %0 ], [ %.5, %.loopexit ]
  %.lcssa = phi i32 [ %16, %0 ], [ %58, %.loopexit ]
  %.not91 = icmp eq i32 %.lcssa, 0
  br i1 %.not91, label %._crit_edge90, label %.lr.ph89.preheader

.lr.ph89.preheader:                               ; preds = %._crit_edge
  %18 = mul i32 %.lcssa, %.lcssa
  %umax = call i32 @llvm.umax.i32(i32 %18, i32 1)
  br label %.lr.ph89

.lr.ph81:                                         ; preds = %0, %.loopexit
  %19 = phi i32 [ %58, %.loopexit ], [ %16, %0 ]
  %.080 = phi i32 [ %.5, %.loopexit ], [ 0, %0 ]
  %.05379 = phi i32 [ %.558, %.loopexit ], [ 0, %0 ]
  %.06177 = phi i32 [ %59, %.loopexit ], [ 0, %0 ]
  %20 = and i32 %.06177, 1
  %.not = icmp eq i32 %20, 0
  %21 = icmp sgt i32 %19, 0
  br i1 %.not, label %.preheader, label %.preheader65

.preheader65:                                     ; preds = %.lr.ph81
  br i1 %21, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader65
  %22 = add nuw nsw i32 %.06177, 1
  br label %41

.preheader:                                       ; preds = %.lr.ph81
  br i1 %21, label %.lr.ph74, label %.loopexit

.lr.ph74:                                         ; preds = %.preheader
  %23 = or disjoint i32 %.06177, 1
  br label %24

24:                                               ; preds = %.lr.ph74, %38
  %.173 = phi i32 [ %.080, %.lr.ph74 ], [ %.2, %38 ]
  %.15472 = phi i32 [ %.05379, %.lr.ph74 ], [ %.255, %38 ]
  %.06071 = phi i32 [ 0, %.lr.ph74 ], [ %.pre-phi, %38 ]
  %25 = and i32 %.06071, 1
  %.not63 = icmp eq i32 %25, 0
  br i1 %.not63, label %26, label %32

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 %23, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %27 = or disjoint i32 %.06071, 1
  store i32 %27, ptr %4, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %28 = add nsw i32 %.173, 1
  %29 = sext i32 %.173 to i64
  %30 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %29
  %31 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(8) %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %.pre = or disjoint i32 %.06071, 1
  br label %38

32:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 %23, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %33 = add nuw nsw i32 %.06071, 1
  store i32 %33, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %34 = add nsw i32 %.15472, 1
  %35 = sext i32 %.15472 to i64
  %36 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %35
  %37 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %36, ptr noundef nonnull align 4 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %38

38:                                               ; preds = %26, %32
  %.pre-phi = phi i32 [ %.pre, %26 ], [ %33, %32 ]
  %.255 = phi i32 [ %.15472, %26 ], [ %34, %32 ]
  %.2 = phi i32 [ %28, %26 ], [ %.173, %32 ]
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = icmp slt i32 %.pre-phi, %39
  br i1 %40, label %24, label %.loopexit, !llvm.loop !9

41:                                               ; preds = %.lr.ph, %55
  %.369 = phi i32 [ %.080, %.lr.ph ], [ %.4, %55 ]
  %.35668 = phi i32 [ %.05379, %.lr.ph ], [ %.457, %55 ]
  %.05967 = phi i32 [ 0, %.lr.ph ], [ %.pre-phi95, %55 ]
  %42 = and i32 %.05967, 1
  %.not64 = icmp eq i32 %42, 0
  br i1 %.not64, label %43, label %49

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 %22, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %44 = or disjoint i32 %.05967, 1
  store i32 %44, ptr %10, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %45 = add nsw i32 %.35668, 1
  %46 = sext i32 %.35668 to i64
  %47 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %46
  %48 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %.pre94 = or disjoint i32 %.05967, 1
  br label %55

49:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 %22, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %50 = add nuw nsw i32 %.05967, 1
  store i32 %50, ptr %13, align 4, !tbaa !5
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %51 = add nsw i32 %.369, 1
  %52 = sext i32 %.369 to i64
  %53 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %52
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIiiEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %55

55:                                               ; preds = %43, %49
  %.pre-phi95 = phi i32 [ %.pre94, %43 ], [ %50, %49 ]
  %.457 = phi i32 [ %45, %43 ], [ %.35668, %49 ]
  %.4 = phi i32 [ %.369, %43 ], [ %51, %49 ]
  %56 = load i32, ptr %1, align 4, !tbaa !5
  %57 = icmp slt i32 %.pre-phi95, %56
  br i1 %57, label %41, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %55, %38, %.preheader65, %.preheader
  %58 = phi i32 [ %19, %.preheader ], [ %19, %.preheader65 ], [ %39, %38 ], [ %56, %55 ]
  %.558 = phi i32 [ %.05379, %.preheader ], [ %.05379, %.preheader65 ], [ %.255, %38 ], [ %.457, %55 ]
  %.5 = phi i32 [ %.080, %.preheader ], [ %.080, %.preheader65 ], [ %.2, %38 ], [ %.4, %55 ]
  %59 = add nuw nsw i32 %.06177, 1
  %60 = icmp slt i32 %59, %58
  br i1 %60, label %.lr.ph81, label %._crit_edge, !llvm.loop !12

._crit_edge90:                                    ; preds = %111, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0

.lr.ph89:                                         ; preds = %.lr.ph89.preheader, %111
  %.04787 = phi i32 [ %112, %111 ], [ 0, %.lr.ph89.preheader ]
  %.04886 = phi i32 [ %.149, %111 ], [ 0, %.lr.ph89.preheader ]
  %.05085 = phi i32 [ %.252, %111 ], [ 0, %.lr.ph89.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %61 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %14)
  %62 = icmp slt i32 %.05085, %.0.lcssa
  %63 = icmp slt i32 %.04886, %.053.lcssa
  %or.cond = select i1 %62, i1 %63, i1 false
  br i1 %or.cond, label %64, label %83

64:                                               ; preds = %.lr.ph89
  %65 = load i32, ptr %14, align 4, !tbaa !5
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %75

67:                                               ; preds = %64
  %68 = sext i32 %.04886 to i64
  %69 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %68
  %70 = load i32, ptr %69, align 8, !tbaa !13
  %71 = getelementptr inbounds i8, ptr %69, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 2, i32 noundef %70, i32 noundef %72)
  %74 = add nsw i32 %.04886, 1
  br label %.sink.split

75:                                               ; preds = %64
  %76 = sext i32 %.05085 to i64
  %77 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %76
  %78 = load i32, ptr %77, align 8, !tbaa !13
  %79 = getelementptr inbounds i8, ptr %77, i64 4
  %80 = load i32, ptr %79, align 4, !tbaa !15
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef 1, i32 noundef %78, i32 noundef %80)
  %82 = add nsw i32 %.05085, 1
  br label %.sink.split

83:                                               ; preds = %.lr.ph89
  br i1 %62, label %84, label %97

84:                                               ; preds = %83
  %85 = load i32, ptr %14, align 4, !tbaa !5
  %86 = icmp eq i32 %85, 1
  %87 = select i1 %86, i32 3, i32 1
  %88 = sext i32 %.05085 to i64
  %89 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @x, i64 0, i64 %88
  %90 = load i32, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %89, i64 4
  %92 = load i32, ptr %91, align 4, !tbaa !15
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %87, i32 noundef %90, i32 noundef %92)
  %94 = add nsw i32 %.05085, 1
  %95 = load ptr, ptr @stdout, align 8, !tbaa !16
  %96 = call i32 @fflush(ptr noundef %95)
  br label %97

97:                                               ; preds = %84, %83
  %.151 = phi i32 [ %94, %84 ], [ %.05085, %83 ]
  br i1 %63, label %98, label %111

98:                                               ; preds = %97
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = icmp eq i32 %99, 2
  %101 = select i1 %100, i32 3, i32 2
  %102 = sext i32 %.04886 to i64
  %103 = getelementptr inbounds [10010 x %"struct.std::pair"], ptr @y, i64 0, i64 %102
  %104 = load i32, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds i8, ptr %103, i64 4
  %106 = load i32, ptr %105, align 4, !tbaa !15
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %101, i32 noundef %104, i32 noundef %106)
  %108 = add nsw i32 %.04886, 1
  br label %.sink.split

.sink.split:                                      ; preds = %75, %67, %98
  %.252.ph = phi i32 [ %.151, %98 ], [ %82, %75 ], [ %.05085, %67 ]
  %.149.ph = phi i32 [ %108, %98 ], [ %.04886, %75 ], [ %74, %67 ]
  %109 = load ptr, ptr @stdout, align 8, !tbaa !16
  %110 = call i32 @fflush(ptr noundef %109)
  br label %111

111:                                              ; preds = %.sink.split, %97
  %.252 = phi i32 [ %.151, %97 ], [ %.252.ph, %.sink.split ]
  %.149 = phi i32 [ %.04886, %97 ], [ %.149.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  %112 = add nuw i32 %.04787, 1
  %exitcond.not = icmp eq i32 %112, %umax
  br i1 %exitcond.not, label %._crit_edge90, label %.lr.ph89, !llvm.loop !18
}

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

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

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

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


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