; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/143 Division 2/Problem B (B)

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

@n = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@cards = external dso_local global [100 x i32], align 16
@s = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; 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
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @d, ptr noundef @l)
  %11 = load i32, ptr @d, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %52

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

16:                                               ; preds = %13
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %232

19:                                               ; preds = %13
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = srem i32 %20, 2
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %36

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %32, %23
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %35

29:                                               ; preds = %24
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.1)
  br label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %24, !llvm.loop !9

35:                                               ; preds = %28
  br label %50

36:                                               ; preds = %19
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 2, ptr %3, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %46, %36
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %49

43:                                               ; preds = %38
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @.str.1)
  br label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !5
  br label %38, !llvm.loop !11

49:                                               ; preds = %42
  br label %50

50:                                               ; preds = %49, %35
  %51 = 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_)
  store i32 0, ptr %1, align 4
  br label %232

52:                                               ; preds = %0
  %53 = load i32, ptr @d, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %55, label %135

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

56:                                               ; preds = %80, %55
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = load i32, ptr @n, 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 %4) #5
  br label %83

61:                                               ; preds = %56
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = srem i32 %62, 2
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %61
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %67
  store i32 1, ptr %68, align 4, !tbaa !5
  %69 = load i32, ptr @s, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr @s, align 4, !tbaa !5
  br label %79

71:                                               ; preds = %61
  %72 = load i32, ptr @l, align 4, !tbaa !5
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %74
  store i32 %72, ptr %75, align 4, !tbaa !5
  %76 = load i32, ptr @l, align 4, !tbaa !5
  %77 = load i32, ptr @s, align 4, !tbaa !5
  %78 = sub nsw i32 %77, %76
  store i32 %78, ptr @s, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %71, %65
  br label %80

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

83:                                               ; preds = %60
  %84 = load i32, ptr @d, align 4, !tbaa !5
  %85 = load i32, ptr @s, align 4, !tbaa !5
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %90

87:                                               ; preds = %83
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %232

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

91:                                               ; preds = %123, %90
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = load i32, ptr @n, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 11, ptr %6, align 4
  br label %126

96:                                               ; preds = %91
  %97 = load i32, ptr @s, align 4, !tbaa !5
  %98 = load i32, ptr @l, align 4, !tbaa !5
  %99 = add nsw i32 %97, %98
  %100 = sub nsw i32 %99, 1
  %101 = load i32, ptr @d, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %112

103:                                              ; preds = %96
  %104 = load i32, ptr @l, align 4, !tbaa !5
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %106
  store i32 %104, ptr %107, align 4, !tbaa !5
  %108 = load i32, ptr @s, align 4, !tbaa !5
  %109 = load i32, ptr @l, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  %111 = sub nsw i32 %110, 1
  store i32 %111, ptr @s, align 4, !tbaa !5
  br label %122

112:                                              ; preds = %96
  %113 = load i32, ptr @d, align 4, !tbaa !5
  %114 = load i32, ptr @s, align 4, !tbaa !5
  %115 = sub nsw i32 %113, %114
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %119, %115
  store i32 %120, ptr %118, align 4, !tbaa !5
  %121 = load i32, ptr @d, align 4, !tbaa !5
  store i32 %121, ptr @s, align 4, !tbaa !5
  store i32 11, ptr %6, align 4
  br label %126

122:                                              ; preds = %103
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = add nsw i32 %124, 2
  store i32 %125, ptr %5, align 4, !tbaa !5
  br label %91, !llvm.loop !13

126:                                              ; preds = %112, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr @s, align 4, !tbaa !5
  %129 = load i32, ptr @d, align 4, !tbaa !5
  %130 = icmp ne i32 %128, %129
  br i1 %130, label %131, label %134

131:                                              ; preds = %127
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %232

134:                                              ; preds = %127
  br label %214

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

136:                                              ; preds = %160, %135
  %137 = load i32, ptr %7, align 4, !tbaa !5
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

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

141:                                              ; preds = %136
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = srem i32 %142, 2
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %153

145:                                              ; preds = %141
  %146 = load i32, ptr @l, align 4, !tbaa !5
  %147 = load i32, ptr %7, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %148
  store i32 %146, ptr %149, align 4, !tbaa !5
  %150 = load i32, ptr @l, align 4, !tbaa !5
  %151 = load i32, ptr @s, align 4, !tbaa !5
  %152 = add nsw i32 %151, %150
  store i32 %152, ptr @s, align 4, !tbaa !5
  br label %159

153:                                              ; preds = %141
  %154 = load i32, ptr %7, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %155
  store i32 1, ptr %156, align 4, !tbaa !5
  %157 = load i32, ptr @s, align 4, !tbaa !5
  %158 = sub nsw i32 %157, 1
  store i32 %158, ptr @s, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %153, %145
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %7, align 4, !tbaa !5
  br label %136, !llvm.loop !14

163:                                              ; preds = %140
  %164 = load i32, ptr @d, align 4, !tbaa !5
  %165 = load i32, ptr @s, align 4, !tbaa !5
  %166 = icmp sgt i32 %164, %165
  br i1 %166, label %167, label %170

167:                                              ; preds = %163
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %232

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

171:                                              ; preds = %202, %170
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = load i32, ptr @n, align 4, !tbaa !5
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  store i32 17, ptr %6, align 4
  br label %205

176:                                              ; preds = %171
  %177 = load i32, ptr @s, align 4, !tbaa !5
  %178 = load i32, ptr @l, align 4, !tbaa !5
  %179 = sub nsw i32 %177, %178
  %180 = add nsw i32 %179, 1
  %181 = load i32, ptr @d, align 4, !tbaa !5
  %182 = icmp sgt i32 %180, %181
  br i1 %182, label %183, label %191

183:                                              ; preds = %176
  %184 = load i32, ptr %8, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %185
  store i32 1, ptr %186, align 4, !tbaa !5
  %187 = load i32, ptr @s, align 4, !tbaa !5
  %188 = load i32, ptr @l, align 4, !tbaa !5
  %189 = sub nsw i32 %187, %188
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr @s, align 4, !tbaa !5
  br label %201

191:                                              ; preds = %176
  %192 = load i32, ptr @s, align 4, !tbaa !5
  %193 = load i32, ptr @d, align 4, !tbaa !5
  %194 = sub nsw i32 %192, %193
  %195 = load i32, ptr %8, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = sub nsw i32 %198, %194
  store i32 %199, ptr %197, align 4, !tbaa !5
  %200 = load i32, ptr @d, align 4, !tbaa !5
  store i32 %200, ptr @s, align 4, !tbaa !5
  store i32 17, ptr %6, align 4
  br label %205

201:                                              ; preds = %183
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = add nsw i32 %203, 2
  store i32 %204, ptr %8, align 4, !tbaa !5
  br label %171, !llvm.loop !15

205:                                              ; preds = %191, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr @s, align 4, !tbaa !5
  %208 = load i32, ptr @d, align 4, !tbaa !5
  %209 = icmp ne i32 %207, %208
  br i1 %209, label %210, label %213

210:                                              ; preds = %206
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  br label %232

213:                                              ; preds = %206
  br label %214

214:                                              ; preds = %213, %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %215

215:                                              ; preds = %227, %214
  %216 = load i32, ptr %9, align 4, !tbaa !5
  %217 = load i32, ptr @n, align 4, !tbaa !5
  %218 = icmp slt i32 %216, %217
  br i1 %218, label %220, label %219

219:                                              ; preds = %215
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %230

220:                                              ; preds = %215
  %221 = load i32, ptr %9, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %224)
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef @.str.1)
  br label %227

227:                                              ; preds = %220
  %228 = load i32, ptr %9, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %9, align 4, !tbaa !5
  br label %215, !llvm.loop !16

230:                                              ; preds = %219
  %231 = 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_)
  store i32 0, ptr %1, align 4
  br label %232

232:                                              ; preds = %230, %210, %167, %131, %87, %50, %16
  %233 = load i32, ptr %1, align 4
  ret i32 %233
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

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

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 = { "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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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}


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

@n = external dso_local global i32, align 4
@d = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@cards = external dso_local local_unnamed_addr global [100 x i32], align 16
@s = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @d, ptr noundef nonnull @l)
  %2 = load i32, ptr @d, align 4, !tbaa !5
  %3 = icmp eq i32 %2, 0
  br i1 %3, label %4, label %25

4:                                                ; preds = %0
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %6 = icmp eq i32 %5, 1
  br i1 %6, label %.loopexit.sink.split, label %7

7:                                                ; preds = %4
  %8 = and i32 %5, 1
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %.preheader, label %16

.preheader:                                       ; preds = %7
  %10 = icmp sgt i32 %5, 0
  br i1 %10, label %.lr.ph79, label %.loopexit

.lr.ph79:                                         ; preds = %.preheader, %.lr.ph79
  %.03178 = phi i32 [ %13, %.lr.ph79 ], [ 0, %.preheader ]
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @.str.1)
  %13 = add nuw nsw i32 %.03178, 1
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %.lr.ph79, label %.loopexit, !llvm.loop !9

16:                                               ; preds = %7
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 2
  br i1 %19, label %.lr.ph77, label %.loopexit

.lr.ph77:                                         ; preds = %16, %.lr.ph77
  %.03075 = phi i32 [ %22, %.lr.ph77 ], [ 2, %16 ]
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 1)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.1)
  %22 = add nuw nsw i32 %.03075, 1
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %.lr.ph77, label %.loopexit, !llvm.loop !11

25:                                               ; preds = %0
  %26 = icmp slt i32 %2, 0
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  %s.promoted61 = load i32, ptr @s, align 4, !tbaa !5
  br i1 %26, label %.preheader46, label %.preheader49

.preheader49:                                     ; preds = %25
  br i1 %28, label %.lr.ph, label %.thread107

.lr.ph:                                           ; preds = %.preheader49
  %29 = load i32, ptr @l, align 4
  %wide.trip.count = zext nneg i32 %27 to i64
  %min.iters.check = icmp ult i32 %27, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %storemerge5556.ph = phi i32 [ %s.promoted61, %.lr.ph ], [ %44, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483640
  %30 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %s.promoted61, i64 0
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %29, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  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 i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %30, %vector.ph ], [ %39, %vector.body ]
  %vec.phi139 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %40, %vector.body ]
  %31 = and <4 x i64> %vec.ind, <i64 1, i64 1, i64 1, i64 1>
  %32 = and <4 x i64> %vec.ind, <i64 1, i64 1, i64 1, i64 1>
  %33 = icmp eq <4 x i64> %31, zeroinitializer
  %34 = icmp eq <4 x i64> %32, zeroinitializer
  %35 = select <4 x i1> %33, <4 x i32> %broadcast.splat, <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>
  %36 = select <4 x i1> %34, <4 x i32> %broadcast.splat, <4 x i32> <i32 -1, i32 -1, i32 -1, i32 -1>
  %37 = select <4 x i1> %33, <4 x i32> %broadcast.splat, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  %38 = select <4 x i1> %34, <4 x i32> %broadcast.splat, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
  %39 = add <4 x i32> %vec.phi, %35
  %40 = add <4 x i32> %vec.phi139, %36
  %41 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <4 x i32> %37, ptr %41, align 16
  store <4 x i32> %38, ptr %42, align 16
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %40, %39
  %44 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit162, label %scalar.ph.preheader

.preheader46:                                     ; preds = %25
  br i1 %28, label %.lr.ph65, label %.thread

.lr.ph65:                                         ; preds = %.preheader46
  %45 = load i32, ptr @l, align 4
  %wide.trip.count93 = zext nneg i32 %27 to i64
  %min.iters.check142 = icmp ult i32 %27, 8
  br i1 %min.iters.check142, label %scalar.ph141.preheader, label %vector.ph143

scalar.ph141.preheader:                           ; preds = %middle.block140, %.lr.ph65
  %indvars.iv90.ph = phi i64 [ 0, %.lr.ph65 ], [ %n.vec145, %middle.block140 ]
  %storemerge406263.ph = phi i32 [ %s.promoted61, %.lr.ph65 ], [ %63, %middle.block140 ]
  %46 = sub i32 0, %45
  br label %scalar.ph141

vector.ph143:                                     ; preds = %.lr.ph65
  %n.vec145 = and i64 %wide.trip.count93, 2147483640
  %47 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %s.promoted61, i64 0
  %broadcast.splatinsert155 = insertelement <4 x i32> poison, i32 %45, i64 0
  %broadcast.splat156 = shufflevector <4 x i32> %broadcast.splatinsert155, <4 x i32> poison, <4 x i32> zeroinitializer
  %48 = sub <4 x i32> zeroinitializer, %broadcast.splat156
  %49 = sub <4 x i32> zeroinitializer, %broadcast.splat156
  br label %vector.body147

vector.body147:                                   ; preds = %vector.body147, %vector.ph143
  %index148 = phi i64 [ 0, %vector.ph143 ], [ %index.next157, %vector.body147 ]
  %vec.ind149 = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph143 ], [ %vec.ind.next152, %vector.body147 ]
  %vec.phi153 = phi <4 x i32> [ %47, %vector.ph143 ], [ %58, %vector.body147 ]
  %vec.phi154 = phi <4 x i32> [ zeroinitializer, %vector.ph143 ], [ %59, %vector.body147 ]
  %50 = and <4 x i64> %vec.ind149, <i64 1, i64 1, i64 1, i64 1>
  %51 = and <4 x i64> %vec.ind149, <i64 1, i64 1, i64 1, i64 1>
  %52 = icmp eq <4 x i64> %50, zeroinitializer
  %53 = icmp eq <4 x i64> %51, zeroinitializer
  %54 = select <4 x i1> %52, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %broadcast.splat156
  %55 = select <4 x i1> %53, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %broadcast.splat156
  %56 = select <4 x i1> %52, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %48
  %57 = select <4 x i1> %53, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %49
  %58 = add <4 x i32> %vec.phi153, %56
  %59 = add <4 x i32> %vec.phi154, %57
  %60 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %index148
  %61 = getelementptr inbounds i8, ptr %60, i64 16
  store <4 x i32> %54, ptr %60, align 16
  store <4 x i32> %55, ptr %61, align 16
  %index.next157 = add nuw i64 %index148, 8
  %vec.ind.next152 = add <4 x i64> %vec.ind149, <i64 8, i64 8, i64 8, i64 8>
  %62 = icmp eq i64 %index.next157, %n.vec145
  br i1 %62, label %middle.block140, label %vector.body147, !llvm.loop !15

middle.block140:                                  ; preds = %vector.body147
  %bin.rdx158 = add <4 x i32> %59, %58
  %63 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx158)
  %cmp.n159 = icmp eq i64 %n.vec145, %wide.trip.count93
  br i1 %cmp.n159, label %.loopexit161, label %scalar.ph141.preheader

.loopexit161:                                     ; preds = %scalar.ph141, %middle.block140
  %storemerge40.lcssa = phi i32 [ %63, %middle.block140 ], [ %storemerge40, %scalar.ph141 ]
  store i32 %storemerge40.lcssa, ptr @s, align 4, !tbaa !5
  %64 = icmp slt i32 %2, %storemerge40.lcssa
  br i1 %64, label %.loopexit.sink.split, label %.preheader44

.thread:                                          ; preds = %.preheader46
  %65 = icmp slt i32 %2, %s.promoted61
  br i1 %65, label %.loopexit.sink.split, label %.loopexit45

.preheader44:                                     ; preds = %.loopexit161
  br i1 %28, label %.lr.ph70, label %.loopexit45

.lr.ph70:                                         ; preds = %.preheader44
  %66 = load i32, ptr @l, align 4, !tbaa !5
  br label %70

scalar.ph141:                                     ; preds = %scalar.ph141.preheader, %scalar.ph141
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %scalar.ph141 ], [ %indvars.iv90.ph, %scalar.ph141.preheader ]
  %storemerge406263 = phi i32 [ %storemerge40, %scalar.ph141 ], [ %storemerge406263.ph, %scalar.ph141.preheader ]
  %67 = and i64 %indvars.iv90, 1
  %68 = icmp eq i64 %67, 0
  %.sink = select i1 %68, i32 1, i32 %45
  %storemerge40.p = select i1 %68, i32 1, i32 %46
  %storemerge40 = add i32 %storemerge406263, %storemerge40.p
  %69 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %indvars.iv90
  store i32 %.sink, ptr %69, align 4
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next91, %wide.trip.count93
  br i1 %exitcond94.not, label %.loopexit161, label %scalar.ph141, !llvm.loop !16

70:                                               ; preds = %.lr.ph70, %73
  %indvars.iv95 = phi i64 [ 0, %.lr.ph70 ], [ %indvars.iv.next96, %73 ]
  %71 = phi i32 [ %storemerge40.lcssa, %.lr.ph70 ], [ %75, %73 ]
  %72 = add nsw i32 %66, %71
  %.not38 = icmp sgt i32 %72, %2
  br i1 %.not38, label %.sink.split, label %73

73:                                               ; preds = %70
  %74 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %indvars.iv95
  store i32 %66, ptr %74, align 8, !tbaa !5
  %75 = add nsw i32 %72, -1
  store i32 %75, ptr @s, align 4, !tbaa !5
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 2
  %76 = trunc nuw i64 %indvars.iv.next96 to i32
  %77 = icmp sgt i32 %27, %76
  br i1 %77, label %70, label %.loopexit45, !llvm.loop !17

.loopexit45:                                      ; preds = %73, %.thread, %.preheader44
  %78 = phi i32 [ %storemerge40.lcssa, %.preheader44 ], [ %s.promoted61, %.thread ], [ %75, %73 ]
  %.not39 = icmp eq i32 %78, %2
  br i1 %.not39, label %99, label %.loopexit.sink.split

.loopexit162:                                     ; preds = %scalar.ph, %middle.block
  %.lcssa137 = phi i32 [ %44, %middle.block ], [ %84, %scalar.ph ]
  store i32 %.lcssa137, ptr @s, align 4, !tbaa !5
  %79 = icmp sgt i32 %2, %.lcssa137
  br i1 %79, label %.loopexit.sink.split, label %.preheader47

.thread107:                                       ; preds = %.preheader49
  %80 = icmp sgt i32 %2, %s.promoted61
  br i1 %80, label %.loopexit.sink.split, label %.loopexit48

.preheader47:                                     ; preds = %.loopexit162
  br i1 %28, label %.lr.ph60, label %.loopexit48

.lr.ph60:                                         ; preds = %.preheader47
  %81 = load i32, ptr @l, align 4, !tbaa !5
  br label %86

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %storemerge5556 = phi i32 [ %84, %scalar.ph ], [ %storemerge5556.ph, %scalar.ph.preheader ]
  %82 = and i64 %indvars.iv, 1
  %83 = icmp eq i64 %82, 0
  %. = select i1 %83, i32 %29, i32 -1
  %.126 = select i1 %83, i32 %29, i32 1
  %84 = add nsw i32 %storemerge5556, %.
  %85 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %indvars.iv
  store i32 %.126, ptr %85, align 4
  %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 %.loopexit162, label %scalar.ph, !llvm.loop !18

86:                                               ; preds = %.lr.ph60, %89
  %indvars.iv87 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next88, %89 ]
  %87 = phi i32 [ %.lcssa137, %.lr.ph60 ], [ %91, %89 ]
  %88 = sub nsw i32 %87, %81
  %.not = icmp slt i32 %88, %2
  br i1 %.not, label %.sink.split, label %89

89:                                               ; preds = %86
  %90 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %indvars.iv87
  store i32 1, ptr %90, align 8, !tbaa !5
  %91 = add nsw i32 %88, 1
  store i32 %91, ptr @s, align 4, !tbaa !5
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 2
  %92 = trunc nuw i64 %indvars.iv.next88 to i32
  %93 = icmp sgt i32 %27, %92
  br i1 %93, label %86, label %.loopexit48, !llvm.loop !19

.loopexit48:                                      ; preds = %89, %.thread107, %.preheader47
  %94 = phi i32 [ %.lcssa137, %.preheader47 ], [ %s.promoted61, %.thread107 ], [ %91, %89 ]
  %.not37 = icmp eq i32 %94, %2
  br i1 %.not37, label %99, label %.loopexit.sink.split

.sink.split:                                      ; preds = %86, %70
  %.lcssa116.sink = phi i32 [ %71, %70 ], [ %87, %86 ]
  %indvars.iv87.lcssa.sink = phi i64 [ %indvars.iv95, %70 ], [ %indvars.iv87, %86 ]
  %.neg = sub i32 %2, %.lcssa116.sink
  %95 = and i64 %indvars.iv87.lcssa.sink, 4294967294
  %96 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %95
  %97 = load i32, ptr %96, align 8, !tbaa !5
  %98 = add i32 %.neg, %97
  store i32 %98, ptr %96, align 8, !tbaa !5
  store i32 %2, ptr @s, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %.sink.split, %.loopexit48, %.loopexit45
  %100 = icmp sgt i32 %27, 0
  br i1 %100, label %.lr.ph73, label %.loopexit

.lr.ph73:                                         ; preds = %99, %.lr.ph73
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %.lr.ph73 ], [ 0, %99 ]
  %101 = getelementptr inbounds [100 x i32], ptr @cards, i64 0, i64 %indvars.iv98
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %102)
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef nonnull @.str.1)
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next99, %106
  br i1 %107, label %.lr.ph73, label %.loopexit, !llvm.loop !20

.loopexit.sink.split:                             ; preds = %.loopexit48, %.loopexit162, %.thread107, %.loopexit45, %.loopexit161, %.thread, %4
  %108 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph73, %.lr.ph77, %.lr.ph79, %.loopexit.sink.split, %99, %.preheader, %16
  %_ZSt4cout.sink = phi ptr [ @_ZSt4cout, %16 ], [ @_ZSt4cout, %.preheader ], [ @_ZSt4cout, %99 ], [ %108, %.loopexit.sink.split ], [ @_ZSt4cout, %.lr.ph79 ], [ @_ZSt4cout, %.lr.ph77 ], [ @_ZSt4cout, %.lr.ph73 ]
  %109 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %_ZSt4cout.sink, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) 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 #3 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)) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #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 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 nosync nounwind speculatable willreturn memory(none) }

!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}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10, !13, !14}
!16 = distinct !{!16, !10, !14, !13}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !14, !13}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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