; LLVM IR from Tunghohin/Competitive_Coding :: Daimayuan/327.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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@L = external dso_local global i32, align 4
@R = external dso_local global i32, align 4
@a = external dso_local global [110 x i32], align 16
@dp = external dso_local global [110 x [110 x [110 x i32]]], align 16
@s = external dso_local global [110 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %36, %0
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %39

18:                                               ; preds = %13
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [110 x i32], ptr @a, i64 0, i64 %20
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sub nsw i32 %23, 1
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [110 x i32], ptr @a, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %27, %31
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %34
  store i32 %32, ptr %35, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %18
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %1, align 4, !tbaa !5
  br label %13, !llvm.loop !9

39:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %75, %39
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr @n, align 4, !tbaa !5
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %78

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

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

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

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

52:                                               ; preds = %67, %51
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %70

57:                                               ; preds = %52
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %59
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [110 x [110 x i32]], ptr %60, i64 0, i64 %62
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [110 x i32], ptr %63, i64 0, i64 %65
  store i32 1061109567, ptr %66, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %57
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !11

70:                                               ; preds = %56
  br label %71

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

74:                                               ; preds = %50
  br label %75

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

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

79:                                               ; preds = %228, %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = load i32, ptr @n, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %231

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

85:                                               ; preds = %224, %84
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = add nsw i32 %86, %87
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %92, label %91

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

92:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %93 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %93, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = add nsw i32 %94, %95
  store i32 %96, ptr %9, align 4, !tbaa !5
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %107

99:                                               ; preds = %92
  %100 = load i32, ptr %8, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %101
  %103 = load i32, ptr %9, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [110 x [110 x i32]], ptr %102, i64 0, i64 %104
  %106 = getelementptr inbounds [110 x i32], ptr %105, i64 0, i64 1
  store i32 0, ptr %106, align 4, !tbaa !5
  br label %223

107:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 2, ptr %10, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %200, %107
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = load i32, ptr @n, align 4, !tbaa !5
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %203

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %114 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %114, ptr %11, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %162, %113
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %165

120:                                              ; preds = %115
  %121 = load i32, ptr %8, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %122
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [110 x [110 x i32]], ptr %123, i64 0, i64 %125
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [110 x i32], ptr %126, i64 0, i64 %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %131
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [110 x [110 x i32]], ptr %132, i64 0, i64 %134
  %136 = getelementptr inbounds [110 x i32], ptr %135, i64 0, i64 1
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %140
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [110 x [110 x i32]], ptr %141, i64 0, i64 %143
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [110 x i32], ptr %144, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = add nsw i32 %137, %149
  store i32 %150, ptr %12, align 4, !tbaa !5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %129, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %154
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [110 x [110 x i32]], ptr %155, i64 0, i64 %157
  %159 = load i32, ptr %10, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [110 x i32], ptr %158, i64 0, i64 %160
  store i32 %152, ptr %161, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %162

162:                                              ; preds = %120
  %163 = load i32, ptr %11, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %11, align 4, !tbaa !5
  br label %115, !llvm.loop !14

165:                                              ; preds = %119
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = load i32, ptr @L, align 4, !tbaa !5
  %168 = icmp sge i32 %166, %167
  br i1 %168, label %169, label %199

169:                                              ; preds = %165
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = load i32, ptr @R, align 4, !tbaa !5
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %173, label %199

173:                                              ; preds = %169
  %174 = load i32, ptr %8, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %175
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [110 x [110 x i32]], ptr %176, i64 0, i64 %178
  %180 = getelementptr inbounds [110 x i32], ptr %179, i64 0, i64 1
  %181 = load i32, ptr %8, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %182
  %184 = load i32, ptr %9, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [110 x [110 x i32]], ptr %183, i64 0, i64 %185
  %187 = load i32, ptr %10, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [110 x i32], ptr %186, i64 0, i64 %188
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %180, ptr noundef nonnull align 4 dereferenceable(4) %189)
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %193
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [110 x [110 x i32]], ptr %194, i64 0, i64 %196
  %198 = getelementptr inbounds [110 x i32], ptr %197, i64 0, i64 1
  store i32 %191, ptr %198, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %173, %169, %165
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %10, align 4, !tbaa !5
  br label %108, !llvm.loop !15

203:                                              ; preds = %112
  %204 = load i32, ptr %9, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = load i32, ptr %8, align 4, !tbaa !5
  %209 = sub nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = sub nsw i32 %207, %212
  %214 = load i32, ptr %8, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %215
  %217 = load i32, ptr %9, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [110 x [110 x i32]], ptr %216, i64 0, i64 %218
  %220 = getelementptr inbounds [110 x i32], ptr %219, i64 0, i64 1
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = add nsw i32 %221, %213
  store i32 %222, ptr %220, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %203, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %7, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %7, align 4, !tbaa !5
  br label %85, !llvm.loop !16

227:                                              ; preds = %91
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %6, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %6, align 4, !tbaa !5
  br label %79, !llvm.loop !17

231:                                              ; preds = %83
  %232 = load i32, ptr @n, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [110 x [110 x i32]], ptr getelementptr inbounds ([110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 1), i64 0, i64 %233
  %235 = getelementptr inbounds [110 x i32], ptr %234, i64 0, i64 1
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = icmp slt i32 %236, 530554783
  br i1 %237, label %238, label %246

238:                                              ; preds = %231
  %239 = load i32, ptr @n, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [110 x [110 x i32]], ptr getelementptr inbounds ([110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 1), i64 0, i64 %240
  %242 = getelementptr inbounds [110 x i32], ptr %241, i64 0, i64 1
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %243)
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %244, i8 noundef signext 10)
  br label %249

246:                                              ; preds = %231
  %247 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %247, i8 noundef signext 10)
  br label %249

249:                                              ; preds = %246, %238
  ret void
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

attributes #0 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nounwind }

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

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local local_unnamed_addr global i32, align 4
@L = external dso_local local_unnamed_addr global i32, align 4
@R = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [110 x i32], align 16
@dp = external dso_local global [110 x [110 x [110 x i32]]], align 16
@s = external dso_local local_unnamed_addr global [110 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not80 = icmp slt i32 %2, 1
  br i1 %.not80, label %.preheader75.._crit_edge103_crit_edge, label %.lr.ph

.preheader78:                                     ; preds = %.lr.ph
  %.not6688 = icmp slt i32 %14, 1
  br i1 %.not6688, label %.preheader75.._crit_edge103_crit_edge, label %.preheader77.preheader

.preheader77.preheader:                           ; preds = %.preheader78
  %3 = zext nneg i32 %14 to i64
  %4 = shl nuw nsw i64 %3, 2
  %xtraiter = and i64 %3, 7
  %5 = icmp ult i32 %14, 8
  %unroll_iter = and i64 %3, 2147483640
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader77

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %6 = getelementptr inbounds [110 x i32], ptr @a, i64 0, i64 %indvars.iv
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %8 = add nsw i64 %indvars.iv, -1
  %9 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = load i32, ptr %6, align 4, !tbaa !5
  %12 = add nsw i32 %11, %10
  %13 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %indvars.iv
  store i32 %12, ptr %13, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr @n, 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 %.preheader78, !llvm.loop !9

.preheader77:                                     ; preds = %.preheader77.preheader, %._crit_edge87.split
  %indvar = phi i64 [ 0, %.preheader77.preheader ], [ %indvar.next, %._crit_edge87.split ]
  %16 = mul nuw nsw i64 %indvar, 48400
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @dp, i64 48844), i64 %16
  br i1 %5, label %._crit_edge87.split.unr-lcssa, label %.preheader77.new

.preheader77.new:                                 ; preds = %.preheader77
  %invariant.gep = getelementptr i8, ptr %gep, i64 440
  %invariant.gep167 = getelementptr i8, ptr %gep, i64 880
  %invariant.gep169 = getelementptr i8, ptr %gep, i64 1320
  %invariant.gep171 = getelementptr i8, ptr %gep, i64 1760
  %invariant.gep173 = getelementptr i8, ptr %gep, i64 2200
  %invariant.gep175 = getelementptr i8, ptr %gep, i64 2640
  %invariant.gep177 = getelementptr i8, ptr %gep, i64 3080
  br label %.preheader76

.preheader75.._crit_edge103_crit_edge:            ; preds = %0, %.preheader78
  %17 = phi i32 [ %14, %.preheader78 ], [ %2, %0 ]
  %.pre137 = sext i32 %17 to i64
  br label %._crit_edge103

.preheader76:                                     ; preds = %.preheader76, %.preheader77.new
  %indvar110 = phi i64 [ 0, %.preheader77.new ], [ %indvar.next111.7, %.preheader76 ]
  %niter = phi i64 [ 0, %.preheader77.new ], [ %niter.next.7, %.preheader76 ]
  %18 = mul nuw nsw i64 %indvar110, 440
  %scevgep = getelementptr i8, ptr %gep, i64 %18
  tail call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 63, i64 %4, i1 false), !tbaa !5
  %19 = mul nuw i64 %indvar110, 440
  %gep166 = getelementptr i8, ptr %invariant.gep, i64 %19
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep166, i8 63, i64 %4, i1 false), !tbaa !5
  %20 = mul nuw i64 %indvar110, 440
  %gep168 = getelementptr i8, ptr %invariant.gep167, i64 %20
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep168, i8 63, i64 %4, i1 false), !tbaa !5
  %21 = mul nuw i64 %indvar110, 440
  %gep170 = getelementptr i8, ptr %invariant.gep169, i64 %21
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep170, i8 63, i64 %4, i1 false), !tbaa !5
  %22 = mul nuw i64 %indvar110, 440
  %gep172 = getelementptr i8, ptr %invariant.gep171, i64 %22
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep172, i8 63, i64 %4, i1 false), !tbaa !5
  %23 = mul nuw i64 %indvar110, 440
  %gep174 = getelementptr i8, ptr %invariant.gep173, i64 %23
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep174, i8 63, i64 %4, i1 false), !tbaa !5
  %24 = mul nuw i64 %indvar110, 440
  %gep176 = getelementptr i8, ptr %invariant.gep175, i64 %24
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep176, i8 63, i64 %4, i1 false), !tbaa !5
  %25 = mul nuw i64 %indvar110, 440
  %gep178 = getelementptr i8, ptr %invariant.gep177, i64 %25
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep178, i8 63, i64 %4, i1 false), !tbaa !5
  %indvar.next111.7 = add nuw nsw i64 %indvar110, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge87.split.unr-lcssa, label %.preheader76, !llvm.loop !11

._crit_edge87.split.unr-lcssa:                    ; preds = %.preheader76, %.preheader77
  %indvar110.unr = phi i64 [ 0, %.preheader77 ], [ %indvar.next111.7, %.preheader76 ]
  br i1 %lcmp.mod.not, label %._crit_edge87.split, label %.preheader76.epil

.preheader76.epil:                                ; preds = %._crit_edge87.split.unr-lcssa, %.preheader76.epil
  %indvar110.epil = phi i64 [ %indvar.next111.epil, %.preheader76.epil ], [ %indvar110.unr, %._crit_edge87.split.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader76.epil ], [ 0, %._crit_edge87.split.unr-lcssa ]
  %26 = mul nuw nsw i64 %indvar110.epil, 440
  %scevgep.epil = getelementptr i8, ptr %gep, i64 %26
  tail call void @llvm.memset.p0.i64(ptr align 4 %scevgep.epil, i8 63, i64 %4, i1 false), !tbaa !5
  %indvar.next111.epil = add nuw nsw i64 %indvar110.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge87.split, label %.preheader76.epil, !llvm.loop !12

._crit_edge87.split:                              ; preds = %.preheader76.epil, %._crit_edge87.split.unr-lcssa
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond116.not = icmp eq i64 %indvar.next, %3
  br i1 %exitcond116.not, label %.preheader74, label %.preheader77, !llvm.loop !14

.preheader74:                                     ; preds = %._crit_edge87.split, %._crit_edge97
  %27 = phi i32 [ %60, %._crit_edge97 ], [ %14, %._crit_edge87.split ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %._crit_edge97 ], [ 0, %._crit_edge87.split ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %28 = sext i32 %27 to i64
  %.not6794.not = icmp slt i64 %indvars.iv134, %28
  br i1 %.not6794.not, label %.lr.ph96, label %._crit_edge97

.lr.ph96:                                         ; preds = %.preheader74
  %29 = icmp eq i64 %indvars.iv134, 0
  br i1 %29, label %.lr.ph96.split.us, label %.lr.ph96.split

.lr.ph96.split.us:                                ; preds = %.lr.ph96
  %smax = call i32 @llvm.smax.i32(i32 %27, i32 1)
  %30 = zext nneg i32 %smax to i64
  %xtraiter158 = and i64 %30, 3
  %31 = icmp slt i32 %27, 4
  br i1 %31, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96.split.us.new

.lr.ph96.split.us.new:                            ; preds = %.lr.ph96.split.us
  %unroll_iter161 = and i64 %30, 2147483644
  br label %32

32:                                               ; preds = %32, %.lr.ph96.split.us.new
  %indvars.iv129 = phi i64 [ 1, %.lr.ph96.split.us.new ], [ %indvars.iv.next130.3, %32 ]
  %niter162 = phi i64 [ 0, %.lr.ph96.split.us.new ], [ %niter162.next.3, %32 ]
  %33 = and i64 %indvars.iv129, 4294967295
  %34 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv129, i64 %33, i64 1
  store i32 0, ptr %34, align 4, !tbaa !5
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %35 = and i64 %indvars.iv.next130, 4294967295
  %36 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next130, i64 %35, i64 1
  store i32 0, ptr %36, align 4, !tbaa !5
  %indvars.iv.next130.1 = add nuw nsw i64 %indvars.iv129, 2
  %37 = and i64 %indvars.iv.next130.1, 4294967295
  %38 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next130.1, i64 %37, i64 1
  store i32 0, ptr %38, align 4, !tbaa !5
  %indvars.iv.next130.2 = add nuw nsw i64 %indvars.iv129, 3
  %39 = and i64 %indvars.iv.next130.2, 4294967295
  %40 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next130.2, i64 %39, i64 1
  store i32 0, ptr %40, align 4, !tbaa !5
  %indvars.iv.next130.3 = add nuw nsw i64 %indvars.iv129, 4
  %niter162.next.3 = add i64 %niter162, 4
  %niter162.ncmp.3 = icmp eq i64 %niter162.next.3, %unroll_iter161
  br i1 %niter162.ncmp.3, label %._crit_edge97.loopexit.unr-lcssa, label %32, !llvm.loop !15

.lr.ph96.split:                                   ; preds = %.lr.ph96
  %41 = icmp slt i32 %27, 2
  br i1 %41, label %.preheader73.us, label %.preheader73

.preheader73.us:                                  ; preds = %.lr.ph96.split, %.preheader73.us
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.preheader73.us ], [ 1, %.lr.ph96.split ]
  %.in143 = phi i64 [ %52, %.preheader73.us ], [ %indvars.iv.next135, %.lr.ph96.split ]
  %42 = and i64 %.in143, 4294967295
  %43 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = add nsw i64 %indvars.iv126, -1
  %46 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = sub i32 %44, %47
  %49 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv126, i64 %42, i64 1
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = add nsw i32 %48, %50
  store i32 %51, ptr %49, align 4, !tbaa !5
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %52 = add nuw nsw i64 %indvars.iv.next127, %indvars.iv134
  %.not67.us99 = icmp sgt i64 %52, %28
  br i1 %.not67.us99, label %._crit_edge97, label %.preheader73.us, !llvm.loop !15

._crit_edge103:                                   ; preds = %._crit_edge97, %.preheader75.._crit_edge103_crit_edge
  %.pre-phi138 = phi i64 [ %.pre137, %.preheader75.._crit_edge103_crit_edge ], [ %.pre-phi, %._crit_edge97 ]
  %53 = getelementptr inbounds [110 x [110 x i32]], ptr getelementptr inbounds (i8, ptr @dp, i64 48400), i64 0, i64 %.pre-phi138, i64 1
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 530554783
  %. = select i1 %55, i32 %54, i32 0
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %56, i8 noundef signext 10)
  ret void

._crit_edge97.loopexit106:                        ; preds = %._crit_edge93
  %.pre = sext i32 %67 to i64
  br label %._crit_edge97

._crit_edge97.loopexit.unr-lcssa:                 ; preds = %32, %.lr.ph96.split.us
  %indvars.iv129.unr = phi i64 [ 1, %.lr.ph96.split.us ], [ %indvars.iv.next130.3, %32 ]
  %lcmp.mod160.not = icmp eq i64 %xtraiter158, 0
  br i1 %lcmp.mod160.not, label %._crit_edge97, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv129.epil = phi i64 [ %indvars.iv.next130.epil, %.epil.preheader ], [ %indvars.iv129.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %epil.iter159 = phi i64 [ %epil.iter159.next, %.epil.preheader ], [ 0, %._crit_edge97.loopexit.unr-lcssa ]
  %58 = and i64 %indvars.iv129.epil, 4294967295
  %59 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv129.epil, i64 %58, i64 1
  store i32 0, ptr %59, align 4, !tbaa !5
  %indvars.iv.next130.epil = add nuw nsw i64 %indvars.iv129.epil, 1
  %epil.iter159.next = add i64 %epil.iter159, 1
  %epil.iter159.cmp.not = icmp eq i64 %epil.iter159.next, %xtraiter158
  br i1 %epil.iter159.cmp.not, label %._crit_edge97, label %.epil.preheader, !llvm.loop !16

._crit_edge97:                                    ; preds = %.preheader73.us, %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge97.loopexit106, %.preheader74
  %.pre-phi = phi i64 [ %.pre, %._crit_edge97.loopexit106 ], [ %28, %.preheader74 ], [ %28, %.epil.preheader ], [ %28, %._crit_edge97.loopexit.unr-lcssa ], [ %28, %.preheader73.us ]
  %60 = phi i32 [ %67, %._crit_edge97.loopexit106 ], [ %27, %.preheader74 ], [ %27, %.epil.preheader ], [ %27, %._crit_edge97.loopexit.unr-lcssa ], [ %27, %.preheader73.us ]
  %61 = icmp slt i64 %indvars.iv.next135, %.pre-phi
  br i1 %61, label %.preheader74, label %._crit_edge103, !llvm.loop !17

.preheader73:                                     ; preds = %.lr.ph96.split, %._crit_edge93
  %62 = phi i32 [ %67, %._crit_edge93 ], [ %27, %.lr.ph96.split ]
  %63 = phi i32 [ %68, %._crit_edge93 ], [ %27, %.lr.ph96.split ]
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %._crit_edge93 ], [ 1, %.lr.ph96.split ]
  %.in = phi i64 [ %78, %._crit_edge93 ], [ %indvars.iv.next135, %.lr.ph96.split ]
  %.not6891 = icmp slt i32 %63, 2
  %.pre139 = and i64 %.in, 4294967295
  br i1 %.not6891, label %.preheader73.._crit_edge93_crit_edge, label %.preheader.lr.ph

.preheader73.._crit_edge93_crit_edge:             ; preds = %.preheader73
  %.pre141 = sext i32 %63 to i64
  br label %._crit_edge93

.preheader.lr.ph:                                 ; preds = %.preheader73
  %64 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv117, i64 %.pre139, i64 1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %96
  %indvars.iv122 = phi i64 [ 2, %.preheader.lr.ph ], [ %indvars.iv.next123, %96 ]
  %65 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv117, i64 %.pre139, i64 %indvars.iv122
  %66 = add nsw i64 %indvars.iv122, -1
  br label %84

._crit_edge93:                                    ; preds = %96, %.preheader73.._crit_edge93_crit_edge
  %.pre-phi142 = phi i64 [ %.pre141, %.preheader73.._crit_edge93_crit_edge ], [ %98, %96 ]
  %67 = phi i32 [ %62, %.preheader73.._crit_edge93_crit_edge ], [ %97, %96 ]
  %68 = phi i32 [ %63, %.preheader73.._crit_edge93_crit_edge ], [ %97, %96 ]
  %69 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %.pre139
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add nsw i64 %indvars.iv117, -1
  %72 = getelementptr inbounds [110 x i32], ptr @s, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sub i32 %70, %73
  %75 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv117, i64 %.pre139, i64 1
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = add nsw i32 %74, %76
  store i32 %77, ptr %75, align 4, !tbaa !5
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %78 = add nuw nsw i64 %indvars.iv.next118, %indvars.iv134
  %.not67 = icmp sgt i64 %78, %.pre-phi142
  br i1 %.not67, label %._crit_edge97.loopexit106, label %.preheader73, !llvm.loop !18

79:                                               ; preds = %84
  %80 = load i32, ptr @L, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %.not69 = icmp slt i64 %indvars.iv122, %81
  %82 = load i32, ptr @R, align 4
  %83 = sext i32 %82 to i64
  %.not70 = icmp sgt i64 %indvars.iv122, %83
  %or.cond = select i1 %.not69, i1 true, i1 %.not70
  br i1 %or.cond, label %96, label %93

84:                                               ; preds = %.preheader, %84
  %indvars.iv119 = phi i64 [ %indvars.iv117, %.preheader ], [ %indvars.iv.next120, %84 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %85 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv117, i64 %indvars.iv119, i64 1
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %87 = getelementptr inbounds [110 x [110 x [110 x i32]]], ptr @dp, i64 0, i64 %indvars.iv.next120, i64 %.pre139, i64 %66
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, %86
  store i32 %89, ptr %1, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %65, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  store i32 %91, ptr %65, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %92 = icmp ult i64 %indvars.iv.next120, %.pre139
  br i1 %92, label %84, label %79, !llvm.loop !20

93:                                               ; preds = %79
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %65)
  %95 = load i32, ptr %94, align 4, !tbaa !5
  store i32 %95, ptr %64, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %79, %93
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %97 = load i32, ptr @n, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %.not68.not = icmp slt i64 %indvars.iv122, %98
  br i1 %.not68.not, label %.preheader, label %._crit_edge93, !llvm.loop !21
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !19}
!19 = !{!"llvm.loop.unswitch.partial.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass