; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/IPC/IPC15FLA/ASYAPATH/D.ll (Z5solvev)

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

@x = external dso_local global [110 x i32], align 16
@y = external dso_local global [110 x i32], align 16
@id = external dso_local global [110 x i32], align 16
@dp1 = external dso_local global [110 x [110 x i64]], align 16
@dp2 = external dso_local global [110 x [110 x i64]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3getii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2okii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %1, ptr noundef %2, ptr noundef %3)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %4, align 4, !tbaa !5
  store i32 1, ptr @x, align 16, !tbaa !5
  store i32 1, ptr @y, align 16, !tbaa !5
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [110 x i32], ptr @x, i64 0, i64 %26
  store i32 %24, ptr %27, align 4, !tbaa !5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [110 x i32], ptr @y, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %42, %0
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %45

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [110 x i32], ptr @x, i64 0, i64 %39
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %40)
  br label %42

42:                                               ; preds = %37
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %5, align 4, !tbaa !5
  br label %32, !llvm.loop !9

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

46:                                               ; preds = %56, %45
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = icmp sle i32 %47, %48
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %46
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [110 x i32], ptr @y, i64 0, i64 %53
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %54)
  br label %56

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

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

60:                                               ; preds = %71, %59
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  %64 = icmp sle i32 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %74

66:                                               ; preds = %60
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %69
  store i32 %67, ptr %70, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %66
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %7, align 4, !tbaa !5
  br label %60, !llvm.loop !12

74:                                               ; preds = %65
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr @id, i64 %76
  %78 = getelementptr inbounds i32, ptr %77, i64 1
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef @id, ptr noundef %78, ptr noundef @_Z3cmpRKiS0_)
  call void @llvm.memset.p0.i64(ptr align 16 @dp1, i8 0, i64 96800, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @dp2, i8 0, i64 96800, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %188, %74
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = icmp sle i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %191

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  store i32 %88, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %11, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %184, %84
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %187

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  store i32 %100, ptr %12, align 4, !tbaa !5
  %101 = load i32, ptr %10, align 4, !tbaa !5
  %102 = load i32, ptr %12, align 4, !tbaa !5
  %103 = call noundef zeroext i1 @_Z2okii(i32 noundef %101, i32 noundef %102)
  br i1 %103, label %105, label %104

104:                                              ; preds = %96
  store i32 16, ptr %9, align 4
  br label %181

105:                                              ; preds = %96
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = call noundef i64 @_Z3getii(i32 noundef %106, i32 noundef %107)
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %110
  %112 = load i32, ptr %12, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [110 x i64], ptr %111, i64 0, i64 %113
  store i64 %108, ptr %114, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %177, %105
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = load i32, ptr %11, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 17, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %180

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  store i32 %126, ptr %14, align 4, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = call noundef zeroext i1 @_Z2okii(i32 noundef %127, i32 noundef %128)
  br i1 %129, label %130, label %134

130:                                              ; preds = %122
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = load i32, ptr %12, align 4, !tbaa !5
  %133 = call noundef zeroext i1 @_Z2okii(i32 noundef %131, i32 noundef %132)
  br i1 %133, label %135, label %134

134:                                              ; preds = %130, %122
  store i32 19, ptr %9, align 4
  br label %174

135:                                              ; preds = %130
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %137
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [110 x i64], ptr %138, i64 0, i64 %140
  %142 = load i64, ptr %141, align 8, !tbaa !13
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = load i32, ptr %12, align 4, !tbaa !5
  %145 = call noundef i64 @_Z3getii(i32 noundef %143, i32 noundef %144)
  %146 = mul nsw i64 %142, %145
  %147 = srem i64 %146, 1000000007
  %148 = load i32, ptr %10, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %149
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [110 x i64], ptr %150, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !13
  %155 = sub nsw i64 %154, %147
  store i64 %155, ptr %153, align 8, !tbaa !13
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %157
  %159 = load i32, ptr %12, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [110 x i64], ptr %158, i64 0, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !13
  %163 = icmp slt i64 %162, 0
  br i1 %163, label %164, label %173

164:                                              ; preds = %135
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %166
  %168 = load i32, ptr %12, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [110 x i64], ptr %167, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !13
  %172 = add nsw i64 %171, 1000000007
  store i64 %172, ptr %170, align 8, !tbaa !13
  br label %173

173:                                              ; preds = %164, %135
  store i32 0, ptr %9, align 4
  br label %174

174:                                              ; preds = %173, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %175 = load i32, ptr %9, align 4
  switch i32 %175, label %304 [
    i32 0, label %176
    i32 19, label %177
  ]

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176, %174
  %178 = load i32, ptr %13, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %13, align 4, !tbaa !5
  br label %117, !llvm.loop !15

180:                                              ; preds = %121
  store i32 0, ptr %9, align 4
  br label %181

181:                                              ; preds = %180, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %182 = load i32, ptr %9, align 4
  switch i32 %182, label %304 [
    i32 0, label %183
    i32 16, label %184
  ]

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183, %181
  %185 = load i32, ptr %11, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %11, align 4, !tbaa !5
  br label %91, !llvm.loop !16

187:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %8, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %8, align 4, !tbaa !5
  br label %79, !llvm.loop !17

191:                                              ; preds = %83
  store i64 1, ptr @dp2, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %281, %191
  %193 = load i32, ptr %15, align 4, !tbaa !5
  %194 = load i32, ptr %3, align 4, !tbaa !5
  %195 = icmp sle i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %284

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

198:                                              ; preds = %277, %197
  %199 = load i32, ptr %16, align 4, !tbaa !5
  %200 = load i32, ptr %4, align 4, !tbaa !5
  %201 = icmp sle i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %280

203:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %204 = load i32, ptr %16, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  store i32 %207, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %18, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %273, %203
  %211 = load i32, ptr %18, align 4, !tbaa !5
  %212 = load i32, ptr %4, align 4, !tbaa !5
  %213 = icmp sle i32 %211, %212
  br i1 %213, label %215, label %214

214:                                              ; preds = %210
  store i32 26, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %276

215:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %216 = load i32, ptr %18, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  store i32 %219, ptr %19, align 4, !tbaa !5
  %220 = load i32, ptr %19, align 4, !tbaa !5
  %221 = load i32, ptr %17, align 4, !tbaa !5
  %222 = icmp sle i32 %220, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %215
  store i32 28, ptr %9, align 4
  br label %270

224:                                              ; preds = %215
  %225 = load i32, ptr %15, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %226
  %228 = load i32, ptr %17, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [110 x i64], ptr %227, i64 0, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !13
  %232 = load i32, ptr %17, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %233
  %235 = load i32, ptr %19, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [110 x i64], ptr %234, i64 0, i64 %236
  %238 = load i64, ptr %237, align 8, !tbaa !13
  %239 = mul nsw i64 %231, %238
  %240 = srem i64 %239, 1000000007
  %241 = load i32, ptr %15, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %243
  %245 = load i32, ptr %19, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [110 x i64], ptr %244, i64 0, i64 %246
  %248 = load i64, ptr %247, align 8, !tbaa !13
  %249 = add nsw i64 %248, %240
  store i64 %249, ptr %247, align 8, !tbaa !13
  %250 = load i32, ptr %15, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %252
  %254 = load i32, ptr %19, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [110 x i64], ptr %253, i64 0, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !13
  %258 = icmp sge i64 %257, 1000000007
  br i1 %258, label %259, label %269

259:                                              ; preds = %224
  %260 = load i32, ptr %15, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %262
  %264 = load i32, ptr %19, align 4, !tbaa !5
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [110 x i64], ptr %263, i64 0, i64 %265
  %267 = load i64, ptr %266, align 8, !tbaa !13
  %268 = sub nsw i64 %267, 1000000007
  store i64 %268, ptr %266, align 8, !tbaa !13
  br label %269

269:                                              ; preds = %259, %224
  store i32 0, ptr %9, align 4
  br label %270

270:                                              ; preds = %269, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %271 = load i32, ptr %9, align 4
  switch i32 %271, label %304 [
    i32 0, label %272
    i32 28, label %273
  ]

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272, %270
  %274 = load i32, ptr %18, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %18, align 4, !tbaa !5
  br label %210, !llvm.loop !18

276:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %16, align 4, !tbaa !5
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %16, align 4, !tbaa !5
  br label %198, !llvm.loop !19

280:                                              ; preds = %202
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %15, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %15, align 4, !tbaa !5
  br label %192, !llvm.loop !20

284:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %285

285:                                              ; preds = %299, %284
  %286 = load i32, ptr %20, align 4, !tbaa !5
  %287 = load i32, ptr %4, align 4, !tbaa !5
  %288 = icmp sle i32 %286, %287
  br i1 %288, label %290, label %289

289:                                              ; preds = %285
  store i32 29, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %302

290:                                              ; preds = %285
  %291 = load i32, ptr %20, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %292
  %294 = load i32, ptr %4, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [110 x i64], ptr %293, i64 0, i64 %295
  %297 = load i64, ptr %296, align 8, !tbaa !13
  %298 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %297)
  br label %299

299:                                              ; preds = %290
  %300 = load i32, ptr %20, align 4, !tbaa !5
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %20, align 4, !tbaa !5
  br label %285, !llvm.loop !21

302:                                              ; preds = %289
  %303 = call i32 @puts(ptr noundef @.str.3)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

304:                                              ; preds = %270, %181, %174
  unreachable
}

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

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

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

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

declare i32 @puts(ptr noundef) #3

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

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

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


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

@x = external dso_local global [110 x i32], align 16
@y = external dso_local global [110 x i32], align 16
@id = external dso_local global [110 x i32], align 16
@dp1 = external dso_local local_unnamed_addr global [110 x [110 x i64]], align 16
@dp2 = external dso_local local_unnamed_addr global [110 x [110 x i64]], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3getii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z2okii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %5 = load i32, ptr %3, align 4, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 1, ptr @x, align 16, !tbaa !5
  store i32 1, ptr @y, align 16, !tbaa !5
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = sext i32 %6 to i64
  %9 = getelementptr inbounds [110 x i32], ptr @x, i64 0, i64 %8
  store i32 %7, ptr %9, align 4, !tbaa !5
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = getelementptr inbounds [110 x i32], ptr @y, i64 0, i64 %8
  store i32 %10, ptr %11, align 4, !tbaa !5
  %.not105 = icmp slt i32 %5, 1
  br i1 %.not105, label %.preheader103, label %.lr.ph

.preheader104:                                    ; preds = %.lr.ph
  %.not89107 = icmp slt i32 %14, 1
  br i1 %.not89107, label %.preheader103, label %.lr.ph109

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %12 = getelementptr inbounds [110 x i32], ptr @x, i64 0, i64 %indvars.iv
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not.not = icmp slt i64 %indvars.iv, %15
  br i1 %.not.not, label %.lr.ph, label %.preheader104, !llvm.loop !9

.preheader103:                                    ; preds = %.lr.ph109, %0, %.preheader104
  %.lcssa = phi i32 [ %14, %.preheader104 ], [ %5, %0 ], [ %22, %.lr.ph109 ]
  %.not90110 = icmp slt i32 %.lcssa, -1
  br i1 %.not90110, label %._crit_edge, label %.lr.ph112.preheader

.lr.ph112.preheader:                              ; preds = %.preheader103
  %16 = add i32 %.lcssa, 2
  %wide.trip.count = zext i32 %16 to i64
  %min.iters.check = icmp ult i32 %16, 8
  br i1 %min.iters.check, label %.lr.ph112.preheader191, label %vector.ph

.lr.ph112.preheader191:                           ; preds = %middle.block, %.lr.ph112.preheader
  %indvars.iv146.ph = phi i64 [ 0, %.lr.ph112.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph112

vector.ph:                                        ; preds = %.lr.ph112.preheader
  %n.vec = and i64 %wide.trip.count, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %17 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <4 x i32> %vec.ind, ptr %17, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %18, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph112.preheader191

.lr.ph109:                                        ; preds = %.preheader104, %.lr.ph109
  %indvars.iv143 = phi i64 [ %indvars.iv.next144, %.lr.ph109 ], [ 1, %.preheader104 ]
  %20 = getelementptr inbounds [110 x i32], ptr @y, i64 0, i64 %indvars.iv143
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %20)
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %.not89.not = icmp slt i64 %indvars.iv143, %23
  br i1 %.not89.not, label %.lr.ph109, label %.preheader103, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph112, %middle.block, %.preheader103
  %24 = getelementptr inbounds i32, ptr @id, i64 %8
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  call void @_ZSt4sortIPiPFbRKiS2_EEvT_S5_T0_(ptr noundef nonnull @id, ptr noundef nonnull %25, ptr noundef nonnull @_Z3cmpRKiS0_)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(96800) @dp1, i8 0, i64 96800, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(96800) @dp2, i8 0, i64 96800, i1 false)
  %.not91121 = icmp slt i32 %5, -1
  br i1 %.not91121, label %._crit_edge125.thread, label %.lr.ph124.preheader

.lr.ph124.preheader:                              ; preds = %._crit_edge
  %26 = sext i32 %5 to i64
  %27 = add i32 %5, 2
  %wide.trip.count161 = zext i32 %27 to i64
  br label %.lr.ph124

.lr.ph112:                                        ; preds = %.lr.ph112.preheader191, %.lr.ph112
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph112 ], [ %indvars.iv146.ph, %.lr.ph112.preheader191 ]
  %28 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv146
  %29 = trunc nuw nsw i64 %indvars.iv146 to i32
  store i32 %29, ptr %28, align 4, !tbaa !5
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond = icmp eq i64 %indvars.iv.next147, %wide.trip.count
  br i1 %exitcond, label %._crit_edge, label %.lr.ph112, !llvm.loop !15

.loopexit102:                                     ; preds = %.loopexit101, %.lr.ph124
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond162 = icmp eq i64 %indvars.iv.next159, %wide.trip.count161
  br i1 %exitcond162, label %._crit_edge125, label %.lr.ph124, !llvm.loop !16

._crit_edge125:                                   ; preds = %.loopexit102
  store i64 1, ptr @dp2, align 16, !tbaa !17
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %.not92134 = icmp slt i32 %30, 0
  br i1 %.not92134, label %.preheader, label %.preheader100.lr.ph

._crit_edge125.thread:                            ; preds = %._crit_edge
  store i64 1, ptr @dp2, align 16, !tbaa !17
  br label %._crit_edge139

.preheader100.lr.ph:                              ; preds = %._crit_edge125
  br i1 %.not91121, label %._crit_edge139, label %.preheader100.preheader

.preheader100.preheader:                          ; preds = %.preheader100.lr.ph
  %31 = sext i32 %5 to i64
  %32 = add i32 %5, 2
  %33 = add nuw i32 %30, 1
  %wide.trip.count176 = zext i32 %33 to i64
  %wide.trip.count171 = zext i32 %32 to i64
  br label %.preheader100

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %.loopexit102
  %indvars.iv158 = phi i64 [ 0, %.lr.ph124.preheader ], [ %indvars.iv.next159, %.loopexit102 ]
  %indvars.iv149 = phi i64 [ 1, %.lr.ph124.preheader ], [ %indvars.iv.next150, %.loopexit102 ]
  %34 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv158
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %.not97116 = icmp sgt i64 %indvars.iv158, %26
  br i1 %.not97116, label %.loopexit102, label %.lr.ph120

.lr.ph120:                                        ; preds = %.lr.ph124
  %36 = sext i32 %35 to i64
  br label %37

37:                                               ; preds = %.lr.ph120, %.loopexit101
  %indvars.iv155 = phi i64 [ %indvars.iv149, %.lr.ph120 ], [ %indvars.iv.next156, %.loopexit101 ]
  %38 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv155
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = call noundef zeroext i1 @_Z2okii(i32 noundef %35, i32 noundef %39)
  br i1 %40, label %41, label %.loopexit101

41:                                               ; preds = %37
  %42 = call noundef i64 @_Z3getii(i32 noundef %35, i32 noundef %39)
  %43 = sext i32 %39 to i64
  %44 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %36, i64 %43
  store i64 %42, ptr %44, align 8, !tbaa !17
  %45 = icmp ult i64 %indvars.iv.next159, %indvars.iv155
  br i1 %45, label %.lr.ph115, label %.loopexit101

.lr.ph115:                                        ; preds = %41, %62
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %62 ], [ %indvars.iv149, %41 ]
  %46 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv151
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = call noundef zeroext i1 @_Z2okii(i32 noundef %35, i32 noundef %47)
  br i1 %48, label %49, label %62

49:                                               ; preds = %.lr.ph115
  %50 = call noundef zeroext i1 @_Z2okii(i32 noundef %47, i32 noundef %39)
  br i1 %50, label %51, label %62

51:                                               ; preds = %49
  %52 = sext i32 %47 to i64
  %53 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %36, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !17
  %55 = call noundef i64 @_Z3getii(i32 noundef %47, i32 noundef %39)
  %56 = mul nsw i64 %55, %54
  %57 = srem i64 %56, 1000000007
  %58 = load i64, ptr %44, align 8, !tbaa !17
  %59 = sub nsw i64 %58, %57
  %60 = icmp slt i64 %59, 0
  %61 = add nsw i64 %59, 1000000007
  %spec.select = select i1 %60, i64 %61, i64 %59
  store i64 %spec.select, ptr %44, align 8, !tbaa !17
  br label %62

62:                                               ; preds = %.lr.ph115, %49, %51
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %63 = and i64 %indvars.iv.next152, 4294967295
  %exitcond154.not = icmp eq i64 %63, %indvars.iv155
  br i1 %exitcond154.not, label %.loopexit101, label %.lr.ph115, !llvm.loop !19

.loopexit101:                                     ; preds = %62, %41, %37
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %64 = trunc nuw i64 %indvars.iv155 to i32
  %.not97 = icmp slt i32 %5, %64
  br i1 %.not97, label %.loopexit102, label %37, !llvm.loop !20

.preheader100:                                    ; preds = %.preheader100.preheader, %._crit_edge133
  %indvars.iv173 = phi i64 [ 0, %.preheader100.preheader ], [ %indvars.iv.next174, %._crit_edge133 ]
  %indvars.iv.next174 = add nuw nsw i64 %indvars.iv173, 1
  br label %66

.preheader:                                       ; preds = %._crit_edge133, %._crit_edge125
  %.not93136 = icmp slt i32 %5, 0
  br i1 %.not93136, label %._crit_edge139, label %.lr.ph138.preheader

.lr.ph138.preheader:                              ; preds = %.preheader
  %65 = add nuw i32 %5, 2
  %wide.trip.count181 = zext i32 %65 to i64
  br label %.lr.ph138

.loopexit:                                        ; preds = %86, %66
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond172 = icmp eq i64 %indvars.iv.next169, %wide.trip.count171
  br i1 %exitcond172, label %._crit_edge133, label %66, !llvm.loop !21

._crit_edge133:                                   ; preds = %.loopexit
  %exitcond177.not = icmp eq i64 %indvars.iv.next174, %wide.trip.count176
  br i1 %exitcond177.not, label %.preheader, label %.preheader100, !llvm.loop !22

66:                                               ; preds = %.preheader100, %.loopexit
  %indvars.iv168 = phi i64 [ 0, %.preheader100 ], [ %indvars.iv.next169, %.loopexit ]
  %indvars.iv163 = phi i64 [ 1, %.preheader100 ], [ %indvars.iv.next164, %.loopexit ]
  %67 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv168
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %.not95126 = icmp sgt i64 %indvars.iv168, %31
  br i1 %.not95126, label %.loopexit, label %.lr.ph129

.lr.ph129:                                        ; preds = %66
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %indvars.iv173, i64 %69
  br label %71

71:                                               ; preds = %.lr.ph129, %86
  %indvars.iv165 = phi i64 [ %indvars.iv163, %.lr.ph129 ], [ %indvars.iv.next166, %86 ]
  %72 = getelementptr inbounds [110 x i32], ptr @id, i64 0, i64 %indvars.iv165
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %.not96 = icmp sgt i32 %73, %68
  br i1 %.not96, label %74, label %86

74:                                               ; preds = %71
  %75 = load i64, ptr %70, align 8, !tbaa !17
  %76 = sext i32 %73 to i64
  %77 = getelementptr inbounds [110 x [110 x i64]], ptr @dp1, i64 0, i64 %69, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !17
  %79 = mul nsw i64 %78, %75
  %80 = srem i64 %79, 1000000007
  %81 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %indvars.iv.next174, i64 %76
  %82 = load i64, ptr %81, align 8, !tbaa !17
  %83 = add nsw i64 %80, %82
  %84 = icmp sgt i64 %83, 1000000006
  %85 = add nsw i64 %83, -1000000007
  %spec.select99 = select i1 %84, i64 %85, i64 %83
  store i64 %spec.select99, ptr %81, align 8, !tbaa !17
  br label %86

86:                                               ; preds = %71, %74
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %87 = trunc nuw i64 %indvars.iv165 to i32
  %.not95 = icmp slt i32 %5, %87
  br i1 %.not95, label %.loopexit, label %71, !llvm.loop !23

._crit_edge139:                                   ; preds = %.lr.ph138, %._crit_edge125.thread, %.preheader100.lr.ph, %.preheader
  %88 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret void

.lr.ph138:                                        ; preds = %.lr.ph138.preheader, %.lr.ph138
  %indvars.iv178 = phi i64 [ 1, %.lr.ph138.preheader ], [ %indvars.iv.next179, %.lr.ph138 ]
  %89 = getelementptr inbounds [110 x [110 x i64]], ptr @dp2, i64 0, i64 %indvars.iv178, i64 %8
  %90 = load i64, ptr %89, align 8, !tbaa !17
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %90)
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %exitcond182 = icmp eq i64 %indvars.iv.next179, %wide.trip.count181
  br i1 %exitcond182, label %._crit_edge139, label %.lr.ph138, !llvm.loop !24
}

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

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

; 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass