; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/ANDROUND (and2)

; 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_ostream" = type { ptr, %"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 }

@A = external dso_local global [22000 x i32], align 16
@Anew = external dso_local global [22000 x i32], align 16
@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@COUNT = external dso_local global [32 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", 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 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
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %28

28:                                               ; preds = %256, %105, %84, %0
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = add nsw i32 %29, -1
  store i32 %30, ptr %2, align 4, !tbaa !5
  %31 = icmp ne i32 %29, 0
  br i1 %31, label %32, label %258

32:                                               ; preds = %28
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @N, ptr noundef @K)
  call void @llvm.memset.p0.i64(ptr align 16 @COUNT, i8 0, i64 128, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %34 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %34, ptr %4, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %45, %32
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %48

40:                                               ; preds = %35
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %42
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %43)
  br label %45

45:                                               ; preds = %40
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %3, align 4, !tbaa !5
  br label %35, !llvm.loop !9

48:                                               ; preds = %39
  %49 = load i32, ptr @K, align 4, !tbaa !5
  %50 = load i32, ptr @N, align 4, !tbaa !5
  %51 = sdiv i32 %50, 2
  %52 = icmp sge i32 %49, %51
  br i1 %52, label %53, label %86

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %54 = load i32, ptr @A, align 16, !tbaa !5
  store i32 %54, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %55 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %55, ptr %7, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %68, %53
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

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

61:                                               ; preds = %56
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = and i32 %62, %66
  store i32 %67, ptr %5, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %61
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %6, align 4, !tbaa !5
  br label %56, !llvm.loop !11

71:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %72 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %72, ptr %9, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %81, %71
  %74 = load i32, ptr %8, align 4, !tbaa !5
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %84

78:                                               ; preds = %73
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %79)
  br label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %8, align 4, !tbaa !5
  br label %73, !llvm.loop !12

84:                                               ; preds = %77
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %28

86:                                               ; preds = %48
  %87 = load i32, ptr @K, align 4, !tbaa !5
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %107

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %90 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %90, ptr %11, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %102, %89
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

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

96:                                               ; preds = %91
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %100)
  br label %102

102:                                              ; preds = %96
  %103 = load i32, ptr %10, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %10, align 4, !tbaa !5
  br label %91, !llvm.loop !13

105:                                              ; preds = %95
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %28, !llvm.loop !14

107:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 -2147483648, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %108 = load i32, ptr @K, align 4, !tbaa !5
  %109 = sub nsw i32 0, %108
  store i32 %109, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %110 = load i32, ptr @K, align 4, !tbaa !5
  store i32 %110, ptr %14, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %153, %107
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !5
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 16, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %156

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %117 = load i32, ptr @N, align 4, !tbaa !5
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = add nsw i32 %117, %118
  %120 = load i32, ptr @N, align 4, !tbaa !5
  %121 = srem i32 %119, %120
  store i32 %121, ptr %16, align 4, !tbaa !5
  %122 = load i32, ptr %16, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = and i32 %125, %126
  store i32 %127, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 32, ptr %18, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %149, %116
  %129 = load i32, ptr %17, align 4, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 19, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %152

133:                                              ; preds = %128
  %134 = load i32, ptr %16, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = shl i32 1, %138
  %140 = and i32 %137, %139
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %148

142:                                              ; preds = %133
  %143 = load i32, ptr %17, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %142, %133
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %17, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %17, align 4, !tbaa !5
  br label %128, !llvm.loop !15

152:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %13, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %13, align 4, !tbaa !5
  br label %111, !llvm.loop !16

156:                                              ; preds = %115
  %157 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %157, ptr @Anew, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %158 = load i32, ptr @N, align 4, !tbaa !5
  %159 = sub nsw i32 %158, 1
  store i32 %159, ptr %20, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %237, %156
  %161 = load i32, ptr %19, align 4, !tbaa !5
  %162 = load i32, ptr %20, align 4, !tbaa !5
  %163 = icmp sle i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 22, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %240

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %166 = load i32, ptr %19, align 4, !tbaa !5
  %167 = load i32, ptr @K, align 4, !tbaa !5
  %168 = add nsw i32 %166, %167
  %169 = load i32, ptr @N, align 4, !tbaa !5
  %170 = srem i32 %168, %169
  store i32 %170, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %171 = load i32, ptr @N, align 4, !tbaa !5
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = add nsw i32 %171, %172
  %174 = load i32, ptr @K, align 4, !tbaa !5
  %175 = sub nsw i32 %173, %174
  %176 = sub nsw i32 %175, 1
  %177 = load i32, ptr @N, align 4, !tbaa !5
  %178 = srem i32 %176, %177
  store i32 %178, ptr %22, align 4, !tbaa !5
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 32, ptr %24, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %229, %165
  %180 = load i32, ptr %23, align 4, !tbaa !5
  %181 = load i32, ptr %24, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 25, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %232

184:                                              ; preds = %179
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = load i32, ptr %23, align 4, !tbaa !5
  %190 = shl i32 1, %189
  %191 = and i32 %188, %190
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %199

193:                                              ; preds = %184
  %194 = load i32, ptr %23, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = add nsw i32 %197, -1
  store i32 %198, ptr %196, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %193, %184
  %200 = load i32, ptr %21, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = load i32, ptr %23, align 4, !tbaa !5
  %205 = shl i32 1, %204
  %206 = and i32 %203, %205
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %214

208:                                              ; preds = %199
  %209 = load i32, ptr %23, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %211, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %208, %199
  %215 = load i32, ptr %23, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = load i32, ptr @K, align 4, !tbaa !5
  %220 = mul nsw i32 2, %219
  %221 = add nsw i32 %220, 1
  %222 = icmp eq i32 %218, %221
  br i1 %222, label %223, label %228

223:                                              ; preds = %214
  %224 = load i32, ptr %12, align 4, !tbaa !5
  %225 = load i32, ptr %23, align 4, !tbaa !5
  %226 = shl i32 1, %225
  %227 = or i32 %224, %226
  store i32 %227, ptr %12, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %223, %214
  br label %229

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

232:                                              ; preds = %183
  %233 = load i32, ptr %12, align 4, !tbaa !5
  %234 = load i32, ptr %19, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [22000 x i32], ptr @Anew, i64 0, i64 %235
  store i32 %233, ptr %236, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %237

237:                                              ; preds = %232
  %238 = load i32, ptr %19, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %19, align 4, !tbaa !5
  br label %160, !llvm.loop !18

240:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %241 = load i32, ptr @N, align 4, !tbaa !5
  store i32 %241, ptr %26, align 4, !tbaa !5
  br label %242

242:                                              ; preds = %253, %240
  %243 = load i32, ptr %25, align 4, !tbaa !5
  %244 = load i32, ptr %26, align 4, !tbaa !5
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %242
  store i32 28, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %256

247:                                              ; preds = %242
  %248 = load i32, ptr %25, align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [22000 x i32], ptr @Anew, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %251)
  br label %253

253:                                              ; preds = %247
  %254 = load i32, ptr %25, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %25, align 4, !tbaa !5
  br label %242, !llvm.loop !19

256:                                              ; preds = %246
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %28, !llvm.loop !14

258:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %259 = load i32, ptr %1, align 4
  ret i32 %259
}

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

@A = external dso_local global [22000 x i32], align 16
@Anew = external dso_local local_unnamed_addr global [22000 x i32], align 16
@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@COUNT = external dso_local local_unnamed_addr global [32 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr %1, align 4, !tbaa !5
  %.not101 = icmp eq i32 %3, 0
  br i1 %.not101, label %._crit_edge104, label %.lr.ph103

.lr.ph103:                                        ; preds = %0, %.backedge
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @N, ptr noundef nonnull @K)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) @COUNT, i8 0, i64 128, i1 false)
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph103
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @N, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph103
  %8 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %6, %.lr.ph103 ]
  %9 = load i32, ptr @K, align 4, !tbaa !5
  %10 = sdiv i32 %8, 2
  %.not65 = icmp slt i32 %9, %10
  br i1 %.not65, label %31, label %13

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %11 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %indvars.iv
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !9

13:                                               ; preds = %._crit_edge
  %14 = icmp sgt i32 %8, 0
  br i1 %14, label %.lr.ph77.preheader, label %.backedge

.lr.ph77.preheader:                               ; preds = %13
  %15 = load i32, ptr @A, align 16, !tbaa !5
  %wide.trip.count110 = zext nneg i32 %8 to i64
  %min.iters.check = icmp ult i32 %8, 8
  br i1 %min.iters.check, label %.lr.ph77.preheader148, label %vector.ph

.lr.ph77.preheader148:                            ; preds = %middle.block, %.lr.ph77.preheader
  %indvars.iv107.ph = phi i64 [ 0, %.lr.ph77.preheader ], [ %n.vec, %middle.block ]
  %.05575.ph = phi i32 [ %15, %.lr.ph77.preheader ], [ %22, %middle.block ]
  br label %.lr.ph77

vector.ph:                                        ; preds = %.lr.ph77.preheader
  %n.vec = and i64 %wide.trip.count110, 2147483640
  %16 = insertelement <4 x i32> <i32 poison, i32 -1, i32 -1, i32 -1>, i32 %15, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %16, %vector.ph ], [ %19, %vector.body ]
  %vec.phi144 = phi <4 x i32> [ <i32 -1, i32 -1, i32 -1, i32 -1>, %vector.ph ], [ %20, %vector.body ]
  %17 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %wide.load = load <4 x i32>, ptr %17, align 16, !tbaa !5
  %wide.load145 = load <4 x i32>, ptr %18, align 16, !tbaa !5
  %19 = and <4 x i32> %wide.load, %vec.phi
  %20 = and <4 x i32> %wide.load145, %vec.phi144
  %index.next = add nuw i64 %index, 8
  %21 = icmp eq i64 %index.next, %n.vec
  br i1 %21, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = and <4 x i32> %20, %19
  %22 = call i32 @llvm.vector.reduce.and.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count110
  br i1 %cmp.n, label %.preheader72, label %.lr.ph77.preheader148

.preheader72:                                     ; preds = %.lr.ph77, %middle.block
  %.lcssa = phi i32 [ %22, %middle.block ], [ %25, %.lr.ph77 ]
  br i1 %14, label %.lr.ph79, label %.backedge

.lr.ph77:                                         ; preds = %.lr.ph77.preheader148, %.lr.ph77
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.lr.ph77 ], [ %indvars.iv107.ph, %.lr.ph77.preheader148 ]
  %.05575 = phi i32 [ %25, %.lr.ph77 ], [ %.05575.ph, %.lr.ph77.preheader148 ]
  %23 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %indvars.iv107
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = and i32 %24, %.05575
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next108, %wide.trip.count110
  br i1 %exitcond111.not, label %.preheader72, label %.lr.ph77, !llvm.loop !14

.backedge:                                        ; preds = %.lr.ph79, %.lr.ph96, %.lr.ph99, %.preheader72, %13, %.preheader71, %.preheader
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %._crit_edge104, label %.lr.ph103, !llvm.loop !15

.lr.ph79:                                         ; preds = %.preheader72, %.lr.ph79
  %.05878 = phi i32 [ %30, %.lr.ph79 ], [ 0, %.preheader72 ]
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.lcssa)
  %30 = add nuw nsw i32 %.05878, 1
  %exitcond112.not = icmp eq i32 %30, %8
  br i1 %exitcond112.not, label %.backedge, label %.lr.ph79, !llvm.loop !16

31:                                               ; preds = %._crit_edge
  %32 = icmp eq i32 %9, 0
  br i1 %32, label %.preheader, label %37

.preheader:                                       ; preds = %31
  %33 = icmp sgt i32 %8, 0
  br i1 %33, label %.lr.ph99.preheader, label %.backedge

.lr.ph99.preheader:                               ; preds = %.preheader
  %wide.trip.count135 = zext nneg i32 %8 to i64
  br label %.lr.ph99

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.lr.ph99
  %indvars.iv132 = phi i64 [ 0, %.lr.ph99.preheader ], [ %indvars.iv.next133, %.lr.ph99 ]
  %34 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %indvars.iv132
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %35)
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count135
  br i1 %exitcond136.not, label %.backedge, label %.lr.ph99, !llvm.loop !17

37:                                               ; preds = %31
  %.not6682 = icmp slt i32 %9, 0
  br i1 %.not6682, label %._crit_edge87, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %37
  %38 = sub nsw i32 0, %9
  br label %.lr.ph86

._crit_edge87:                                    ; preds = %48, %37
  %.061.lcssa = phi i32 [ -2147483648, %37 ], [ %49, %48 ]
  store i32 %.061.lcssa, ptr @Anew, align 16, !tbaa !5
  %.not67.not91 = icmp sgt i32 %8, 1
  br i1 %.not67.not91, label %.lr.ph94, label %.preheader71

.lr.ph94:                                         ; preds = %._crit_edge87
  %39 = xor i32 %9, -1
  %40 = add i32 %8, %39
  %41 = shl nsw i32 %9, 1
  %42 = or disjoint i32 %41, 1
  %wide.trip.count125 = zext nneg i32 %8 to i64
  br label %69

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %48
  %.06184 = phi i32 [ %49, %48 ], [ -2147483648, %.lr.ph86.preheader ]
  %.06383 = phi i32 [ %50, %48 ], [ %38, %.lr.ph86.preheader ]
  %43 = add nsw i32 %.06383, %8
  %44 = srem i32 %43, %8
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  br label %51

48:                                               ; preds = %67
  %49 = and i32 %47, %.06184
  %50 = add i32 %.06383, 1
  %exitcond117.not = icmp eq i32 %.06383, %9
  br i1 %exitcond117.not, label %._crit_edge87, label %.lr.ph86, !llvm.loop !18

51:                                               ; preds = %67, %.lr.ph86
  %indvars.iv113 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next114.1, %67 ]
  %52 = trunc nuw nsw i64 %indvars.iv113 to i32
  %53 = shl nuw i32 1, %52
  %54 = and i32 %53, %47
  %.not70 = icmp eq i32 %54, 0
  br i1 %.not70, label %59, label %55

55:                                               ; preds = %51
  %56 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %indvars.iv113
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %51, %55
  %indvars.iv.next114 = or disjoint i64 %indvars.iv113, 1
  %60 = trunc nuw nsw i64 %indvars.iv.next114 to i32
  %61 = shl nuw i32 1, %60
  %62 = and i32 %61, %47
  %.not70.1 = icmp eq i32 %62, 0
  br i1 %.not70.1, label %67, label %63

63:                                               ; preds = %59
  %64 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %indvars.iv.next114
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %63, %59
  %indvars.iv.next114.1 = add nuw nsw i64 %indvars.iv113, 2
  %exitcond116.not.1 = icmp eq i64 %indvars.iv.next114.1, 32
  br i1 %exitcond116.not.1, label %48, label %51, !llvm.loop !19

.preheader71:                                     ; preds = %82, %._crit_edge87
  %68 = icmp sgt i32 %8, 0
  br i1 %68, label %.lr.ph96.preheader, label %.backedge

.lr.ph96.preheader:                               ; preds = %.preheader71
  %wide.trip.count130 = zext nneg i32 %8 to i64
  br label %.lr.ph96

69:                                               ; preds = %.lr.ph94, %82
  %indvars.iv122 = phi i64 [ 1, %.lr.ph94 ], [ %indvars.iv.next123, %82 ]
  %70 = trunc i64 %indvars.iv122 to i32
  %71 = add i32 %9, %70
  %72 = srem i32 %71, %8
  %73 = trunc nuw nsw i64 %indvars.iv122 to i32
  %74 = add i32 %40, %73
  %75 = srem i32 %74, %8
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %72 to i64
  %80 = getelementptr inbounds [22000 x i32], ptr @A, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  br label %84

82:                                               ; preds = %._crit_edge137
  %83 = getelementptr inbounds [22000 x i32], ptr @Anew, i64 0, i64 %indvars.iv122
  store i32 %spec.select, ptr %83, align 4, !tbaa !5
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count125
  br i1 %exitcond126.not, label %.preheader71, label %69, !llvm.loop !20

84:                                               ; preds = %69, %._crit_edge137
  %indvars.iv118 = phi i64 [ 0, %69 ], [ %indvars.iv.next119, %._crit_edge137 ]
  %.189 = phi i32 [ 0, %69 ], [ %spec.select, %._crit_edge137 ]
  %85 = trunc nuw nsw i64 %indvars.iv118 to i32
  %86 = shl nuw i32 1, %85
  %87 = and i32 %78, %86
  %.not68 = icmp eq i32 %87, 0
  br i1 %.not68, label %92, label %88

88:                                               ; preds = %84
  %89 = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %indvars.iv118
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %89, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %88, %84
  %93 = and i32 %81, %86
  %.not69 = icmp eq i32 %93, 0
  %.phi.trans.insert = getelementptr inbounds [32 x i32], ptr @COUNT, i64 0, i64 %indvars.iv118
  %.pre138 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br i1 %.not69, label %._crit_edge137, label %94

94:                                               ; preds = %92
  %95 = add nsw i32 %.pre138, 1
  store i32 %95, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %._crit_edge137

._crit_edge137:                                   ; preds = %92, %94
  %96 = phi i32 [ %95, %94 ], [ %.pre138, %92 ]
  %97 = icmp eq i32 %96, %42
  %98 = select i1 %97, i32 %86, i32 0
  %spec.select = or i32 %98, %.189
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next119, 32
  br i1 %exitcond121.not, label %82, label %84, !llvm.loop !21

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %.lr.ph96
  %indvars.iv127 = phi i64 [ 0, %.lr.ph96.preheader ], [ %indvars.iv.next128, %.lr.ph96 ]
  %99 = getelementptr inbounds [22000 x i32], ptr @Anew, i64 0, i64 %indvars.iv127
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %100)
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next128, %wide.trip.count130
  br i1 %exitcond131.not, label %.backedge, label %.lr.ph96, !llvm.loop !22

._crit_edge104:                                   ; preds = %.backedge, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

; 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: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.and.v4i32(<4 x i32>) #6

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 = { 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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
!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}
!22 = distinct !{!22, !10}


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