; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/140 Division 1/Problem D (D)

; 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
@m = external dso_local global i32, align 4
@r = external dso_local global [110 x i32], align 16
@c = external dso_local global [110 x i32], align 16
@g = external dso_local global [110 x [110 x i32]], align 16
@rf = external dso_local global [110 x i32], align 16
@cf = 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 nounwind uwtable
declare dso_local void @_Z7fliprowi(i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7flipcoli(i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %13 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %16
  %18 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %17, ptr noundef null)
  %19 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %26

26:                                               ; preds = %73, %0
  %27 = load i32, ptr %2, align 4, !tbaa !8
  %28 = load i32, ptr @n, align 4, !tbaa !8
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %76

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %32

32:                                               ; preds = %69, %31
  %33 = load i32, ptr %4, align 4, !tbaa !8
  %34 = load i32, ptr @m, align 4, !tbaa !8
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %37, label %36

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

37:                                               ; preds = %32
  %38 = load i32, ptr %2, align 4, !tbaa !8
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %39
  %41 = load i32, ptr %4, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [110 x i32], ptr %40, i64 0, i64 %42
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %45 = load i32, ptr %2, align 4, !tbaa !8
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %46
  %48 = load i32, ptr %4, align 4, !tbaa !8
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [110 x i32], ptr %47, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !8
  %52 = load i32, ptr %2, align 4, !tbaa !8
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [110 x i32], ptr @r, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !8
  %56 = add nsw i32 %55, %51
  store i32 %56, ptr %54, align 4, !tbaa !8
  %57 = load i32, ptr %2, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %58
  %60 = load i32, ptr %4, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [110 x i32], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = load i32, ptr %4, align 4, !tbaa !8
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !8
  %68 = add nsw i32 %67, %63
  store i32 %68, ptr %66, align 4, !tbaa !8
  br label %69

69:                                               ; preds = %37
  %70 = load i32, ptr %4, align 4, !tbaa !8
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %4, align 4, !tbaa !8
  br label %32, !llvm.loop !11

72:                                               ; preds = %36
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %2, align 4, !tbaa !8
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %2, align 4, !tbaa !8
  br label %26, !llvm.loop !13

76:                                               ; preds = %30
  br label %77

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

78:                                               ; preds = %92, %77
  %79 = load i32, ptr %6, align 4, !tbaa !8
  %80 = load i32, ptr @n, align 4, !tbaa !8
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 10, ptr %3, align 4
  br label %95

83:                                               ; preds = %78
  %84 = load i32, ptr %6, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [110 x i32], ptr @r, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = icmp slt i32 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %83
  %90 = load i32, ptr %6, align 4, !tbaa !8
  store i32 %90, ptr %5, align 4, !tbaa !8
  store i32 10, ptr %3, align 4
  br label %95

91:                                               ; preds = %83
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %6, align 4, !tbaa !8
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !8
  br label %78, !llvm.loop !14

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

96:                                               ; preds = %95
  %97 = load i32, ptr %5, align 4, !tbaa !8
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = load i32, ptr %5, align 4, !tbaa !8
  call void @_Z7fliprowi(i32 noundef %100)
  store i32 8, ptr %3, align 4
  br label %126, !llvm.loop !15

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !8
  br label %102

102:                                              ; preds = %116, %101
  %103 = load i32, ptr %7, align 4, !tbaa !8
  %104 = load i32, ptr @m, align 4, !tbaa !8
  %105 = icmp sle i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 13, ptr %3, align 4
  br label %119

107:                                              ; preds = %102
  %108 = load i32, ptr %7, align 4, !tbaa !8
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !8
  %112 = icmp slt i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %107
  %114 = load i32, ptr %7, align 4, !tbaa !8
  store i32 %114, ptr %5, align 4, !tbaa !8
  store i32 13, ptr %3, align 4
  br label %119

115:                                              ; preds = %107
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %7, align 4, !tbaa !8
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !8
  br label %102, !llvm.loop !16

119:                                              ; preds = %113, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %5, align 4, !tbaa !8
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %120
  %124 = load i32, ptr %5, align 4, !tbaa !8
  call void @_Z7flipcoli(i32 noundef %124)
  store i32 8, ptr %3, align 4
  br label %126, !llvm.loop !15

125:                                              ; preds = %120
  store i32 9, ptr %3, align 4
  br label %126

126:                                              ; preds = %125, %123, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %127 = load i32, ptr %3, align 4
  switch i32 %127, label %210 [
    i32 8, label %77
    i32 9, label %128
  ]

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %129

129:                                              ; preds = %141, %128
  %130 = load i32, ptr %9, align 4, !tbaa !8
  %131 = load i32, ptr @n, align 4, !tbaa !8
  %132 = icmp sle i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %144

134:                                              ; preds = %129
  %135 = load i32, ptr %9, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [110 x i32], ptr @rf, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !8
  %139 = load i32, ptr %8, align 4, !tbaa !8
  %140 = add nsw i32 %139, %138
  store i32 %140, ptr %8, align 4, !tbaa !8
  br label %141

141:                                              ; preds = %134
  %142 = load i32, ptr %9, align 4, !tbaa !8
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %9, align 4, !tbaa !8
  br label %129, !llvm.loop !17

144:                                              ; preds = %133
  %145 = load i32, ptr %8, align 4, !tbaa !8
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %145)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %146, i8 noundef signext 32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %164, %144
  %149 = load i32, ptr %10, align 4, !tbaa !8
  %150 = load i32, ptr @n, align 4, !tbaa !8
  %151 = icmp sle i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  store i32 19, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %167

153:                                              ; preds = %148
  %154 = load i32, ptr %10, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [110 x i32], ptr @rf, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !8
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %163

159:                                              ; preds = %153
  %160 = load i32, ptr %10, align 4, !tbaa !8
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %160)
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %161, i8 noundef signext 32)
  br label %163

163:                                              ; preds = %159, %153
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %10, align 4, !tbaa !8
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %10, align 4, !tbaa !8
  br label %148, !llvm.loop !18

167:                                              ; preds = %152
  %168 = 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 %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !8
  br label %169

169:                                              ; preds = %181, %167
  %170 = load i32, ptr %11, align 4, !tbaa !8
  %171 = load i32, ptr @m, align 4, !tbaa !8
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %184

174:                                              ; preds = %169
  %175 = load i32, ptr %11, align 4, !tbaa !8
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [110 x i32], ptr @cf, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !8
  %179 = load i32, ptr %8, align 4, !tbaa !8
  %180 = add nsw i32 %179, %178
  store i32 %180, ptr %8, align 4, !tbaa !8
  br label %181

181:                                              ; preds = %174
  %182 = load i32, ptr %11, align 4, !tbaa !8
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %11, align 4, !tbaa !8
  br label %169, !llvm.loop !19

184:                                              ; preds = %173
  %185 = load i32, ptr %8, align 4, !tbaa !8
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %185)
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %186, i8 noundef signext 32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %188

188:                                              ; preds = %204, %184
  %189 = load i32, ptr %12, align 4, !tbaa !8
  %190 = load i32, ptr @m, align 4, !tbaa !8
  %191 = icmp sle i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %207

193:                                              ; preds = %188
  %194 = load i32, ptr %12, align 4, !tbaa !8
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [110 x i32], ptr @cf, i64 0, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !8
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %203

199:                                              ; preds = %193
  %200 = load i32, ptr %12, align 4, !tbaa !8
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %200)
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %201, i8 noundef signext 32)
  br label %203

203:                                              ; preds = %199, %193
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %12, align 4, !tbaa !8
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %12, align 4, !tbaa !8
  br label %188, !llvm.loop !20

207:                                              ; preds = %192
  %208 = 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
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %209 = load i32, ptr %1, align 4
  ret i32 %209

210:                                              ; preds = %126
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #0 align 2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; 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 global i32, align 4
@m = external dso_local global i32, align 4
@r = external dso_local local_unnamed_addr global [110 x i32], align 16
@c = external dso_local local_unnamed_addr global [110 x i32], align 16
@g = external dso_local global [110 x [110 x i32]], align 16
@rf = external dso_local local_unnamed_addr global [110 x i32], align 16
@cf = 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 nounwind uwtable
declare dso_local void @_Z7fliprowi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7flipcoli(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %2 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %3 = getelementptr i8, ptr %2, i64 -24
  %4 = load i64, ptr %3, align 8
  %5 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %4
  %6 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef null)
  %7 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = 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) @n)
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %14 = load i32, ptr @n, align 4, !tbaa !8
  %.not78 = icmp slt i32 %14, 1
  %15 = load i32, ptr @m, align 4
  %16 = icmp slt i32 %15, 1
  %or.cond = select i1 %.not78, i1 true, i1 %16
  br i1 %or.cond, label %.preheader72.preheader, label %.preheader73

.preheader72.preheader:                           ; preds = %._crit_edge, %0
  %.ph = phi i32 [ %14, %0 ], [ %20, %._crit_edge ]
  br label %.preheader72

.preheader73:                                     ; preds = %0, %._crit_edge
  %17 = phi i32 [ %20, %._crit_edge ], [ %14, %0 ]
  %18 = phi i32 [ %21, %._crit_edge ], [ %15, %0 ]
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %._crit_edge ], [ 1, %0 ]
  %.not6576 = icmp slt i32 %18, 1
  br i1 %.not6576, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader73
  %19 = getelementptr inbounds [110 x i32], ptr @r, i64 0, i64 %indvars.iv115
  br label %23

._crit_edge.loopexit:                             ; preds = %23
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader73
  %20 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %17, %.preheader73 ]
  %21 = phi i32 [ %32, %._crit_edge.loopexit ], [ %18, %.preheader73 ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %22 = sext i32 %20 to i64
  %.not.not = icmp slt i64 %indvars.iv115, %22
  br i1 %.not.not, label %.preheader73, label %.preheader72.preheader, !llvm.loop !11

23:                                               ; preds = %.lr.ph, %23
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %23 ]
  %24 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv115, i64 %indvars.iv
  %25 = 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) %24)
  %26 = load i32, ptr %24, align 4, !tbaa !8
  %27 = load i32, ptr %19, align 4, !tbaa !8
  %28 = add nsw i32 %27, %26
  store i32 %28, ptr %19, align 4, !tbaa !8
  %29 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %indvars.iv
  %30 = load i32, ptr %29, align 4, !tbaa !8
  %31 = add nsw i32 %30, %26
  store i32 %31, ptr %29, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @m, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %.not65.not = icmp slt i64 %indvars.iv, %33
  br i1 %.not65.not, label %23, label %._crit_edge.loopexit, !llvm.loop !14

.critedge:                                        ; preds = %56, %42
  %.pre142 = load i32, ptr @n, align 4, !tbaa !8
  br label %.preheader72

.preheader72:                                     ; preds = %.preheader72.preheader, %.critedge
  %34 = phi i32 [ %.pre142, %.critedge ], [ %.ph, %.preheader72.preheader ]
  %.not5580 = icmp slt i32 %34, 1
  br i1 %.not5580, label %.preheader, label %.lr.ph83.preheader

.lr.ph83.preheader:                               ; preds = %.preheader72
  %35 = add nuw i32 %34, 1
  %wide.trip.count = zext i32 %35 to i64
  br label %.lr.ph83

.preheader:                                       ; preds = %41, %.preheader72
  %36 = load i32, ptr @m, align 4, !tbaa !8
  %.not5784 = icmp slt i32 %36, 1
  br i1 %.not5784, label %.thread69.preheader, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %.preheader
  %37 = add nuw i32 %36, 1
  %wide.trip.count124 = zext i32 %37 to i64
  br label %.lr.ph86

.lr.ph83:                                         ; preds = %.lr.ph83.preheader, %41
  %indvars.iv118 = phi i64 [ 1, %.lr.ph83.preheader ], [ %indvars.iv.next119, %41 ]
  %38 = getelementptr inbounds [110 x i32], ptr @r, i64 0, i64 %indvars.iv118
  %39 = load i32, ptr %38, align 4, !tbaa !8
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %42, label %41

41:                                               ; preds = %.lr.ph83
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next119, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph83, !llvm.loop !15

42:                                               ; preds = %.lr.ph83
  %43 = trunc nuw nsw i64 %indvars.iv118 to i32
  tail call void @_Z7fliprowi(i32 noundef %43)
  br label %.critedge, !llvm.loop !16

.thread69.preheader:                              ; preds = %.preheader, %55
  br i1 %.not5580, label %.thread69._crit_edge, label %.thread69.preheader108

.thread69.preheader108:                           ; preds = %.thread69.preheader
  %44 = add nuw i32 %34, 1
  %wide.trip.count129 = zext i32 %44 to i64
  %45 = zext nneg i32 %34 to i64
  %min.iters.check = icmp ult i32 %34, 8
  br i1 %min.iters.check, label %.thread69.preheader190, label %vector.ph

.thread69.preheader190:                           ; preds = %middle.block, %.thread69.preheader108
  %indvars.iv126.ph = phi i64 [ 1, %.thread69.preheader108 ], [ %ind.end, %middle.block ]
  %.04788.ph = phi i32 [ 0, %.thread69.preheader108 ], [ %51, %middle.block ]
  br label %.thread69

vector.ph:                                        ; preds = %.thread69.preheader108
  %n.vec = and i64 %45, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  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> [ zeroinitializer, %vector.ph ], [ %48, %vector.body ]
  %vec.phi166 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %49, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %46 = getelementptr inbounds [110 x i32], ptr @rf, i64 0, i64 %offset.idx
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load = load <4 x i32>, ptr %46, align 4, !tbaa !8
  %wide.load167 = load <4 x i32>, ptr %47, align 4, !tbaa !8
  %48 = add <4 x i32> %wide.load, %vec.phi
  %49 = add <4 x i32> %wide.load167, %vec.phi166
  %index.next = add nuw i64 %index, 8
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %49, %48
  %51 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %45
  br i1 %cmp.n, label %.thread69._crit_edge, label %.thread69.preheader190

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %55
  %indvars.iv121 = phi i64 [ 1, %.lr.ph86.preheader ], [ %indvars.iv.next122, %55 ]
  %52 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %indvars.iv121
  %53 = load i32, ptr %52, align 4, !tbaa !8
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %.lr.ph86
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %.thread69.preheader, label %.lr.ph86, !llvm.loop !20

56:                                               ; preds = %.lr.ph86
  %57 = trunc nuw nsw i64 %indvars.iv121 to i32
  tail call void @_Z7flipcoli(i32 noundef %57)
  br label %.critedge, !llvm.loop !16

.thread69._crit_edge:                             ; preds = %.thread69, %middle.block, %.thread69.preheader
  %.047.lcssa = phi i32 [ 0, %.thread69.preheader ], [ %51, %middle.block ], [ %63, %.thread69 ]
  %58 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.047.lcssa)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %58, i8 noundef signext 32)
  %60 = load i32, ptr @n, align 4, !tbaa !8
  %.not6091 = icmp slt i32 %60, 1
  br i1 %.not6091, label %._crit_edge95, label %.lr.ph94

.thread69:                                        ; preds = %.thread69.preheader190, %.thread69
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.thread69 ], [ %indvars.iv126.ph, %.thread69.preheader190 ]
  %.04788 = phi i32 [ %63, %.thread69 ], [ %.04788.ph, %.thread69.preheader190 ]
  %61 = getelementptr inbounds [110 x i32], ptr @rf, i64 0, i64 %indvars.iv126
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = add nsw i32 %62, %.04788
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %.thread69._crit_edge, label %.thread69, !llvm.loop !21

._crit_edge95:                                    ; preds = %81, %.thread69._crit_edge
  %64 = tail 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_)
  %65 = load i32, ptr @m, align 4, !tbaa !8
  %.not6196 = icmp slt i32 %65, 1
  br i1 %.not6196, label %._crit_edge101, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %._crit_edge95
  %66 = add nuw i32 %65, 1
  %wide.trip.count137 = zext i32 %66 to i64
  %67 = zext nneg i32 %65 to i64
  %min.iters.check170 = icmp ult i32 %65, 8
  br i1 %min.iters.check170, label %.lr.ph100.preheader187, label %vector.ph171

.lr.ph100.preheader187:                           ; preds = %middle.block168, %.lr.ph100.preheader
  %indvars.iv134.ph = phi i64 [ 1, %.lr.ph100.preheader ], [ %ind.end174, %middle.block168 ]
  %.197.ph = phi i32 [ 0, %.lr.ph100.preheader ], [ %73, %middle.block168 ]
  br label %.lr.ph100

vector.ph171:                                     ; preds = %.lr.ph100.preheader
  %n.vec173 = and i64 %67, 2147483640
  %ind.end174 = or disjoint i64 %n.vec173, 1
  br label %vector.body176

vector.body176:                                   ; preds = %vector.body176, %vector.ph171
  %index177 = phi i64 [ 0, %vector.ph171 ], [ %index.next183, %vector.body176 ]
  %vec.phi178 = phi <4 x i32> [ zeroinitializer, %vector.ph171 ], [ %70, %vector.body176 ]
  %vec.phi179 = phi <4 x i32> [ zeroinitializer, %vector.ph171 ], [ %71, %vector.body176 ]
  %offset.idx180 = or disjoint i64 %index177, 1
  %68 = getelementptr inbounds [110 x i32], ptr @cf, i64 0, i64 %offset.idx180
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %wide.load181 = load <4 x i32>, ptr %68, align 4, !tbaa !8
  %wide.load182 = load <4 x i32>, ptr %69, align 4, !tbaa !8
  %70 = add <4 x i32> %wide.load181, %vec.phi178
  %71 = add <4 x i32> %wide.load182, %vec.phi179
  %index.next183 = add nuw i64 %index177, 8
  %72 = icmp eq i64 %index.next183, %n.vec173
  br i1 %72, label %middle.block168, label %vector.body176, !llvm.loop !22

middle.block168:                                  ; preds = %vector.body176
  %bin.rdx184 = add <4 x i32> %71, %70
  %73 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx184)
  %cmp.n185 = icmp eq i64 %n.vec173, %67
  br i1 %cmp.n185, label %._crit_edge101, label %.lr.ph100.preheader187

.lr.ph94:                                         ; preds = %.thread69._crit_edge, %81
  %74 = phi i32 [ %82, %81 ], [ %60, %.thread69._crit_edge ]
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %81 ], [ 1, %.thread69._crit_edge ]
  %75 = getelementptr inbounds [110 x i32], ptr @rf, i64 0, i64 %indvars.iv131
  %76 = load i32, ptr %75, align 4, !tbaa !8
  %.not64 = icmp eq i32 %76, 0
  br i1 %.not64, label %81, label %77

77:                                               ; preds = %.lr.ph94
  %78 = trunc nuw nsw i64 %indvars.iv131 to i32
  %79 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %78)
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %79, i8 noundef signext 32)
  %.pre143 = load i32, ptr @n, align 4, !tbaa !8
  br label %81

81:                                               ; preds = %.lr.ph94, %77
  %82 = phi i32 [ %74, %.lr.ph94 ], [ %.pre143, %77 ]
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %83 = sext i32 %82 to i64
  %.not60.not = icmp slt i64 %indvars.iv131, %83
  br i1 %.not60.not, label %.lr.ph94, label %._crit_edge95, !llvm.loop !23

._crit_edge101:                                   ; preds = %.lr.ph100, %middle.block168, %._crit_edge95
  %.1.lcssa = phi i32 [ 0, %._crit_edge95 ], [ %73, %middle.block168 ], [ %89, %.lr.ph100 ]
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.1.lcssa)
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %84, i8 noundef signext 32)
  %86 = load i32, ptr @m, align 4, !tbaa !8
  %.not62103 = icmp slt i32 %86, 1
  br i1 %.not62103, label %._crit_edge107, label %.lr.ph106

.lr.ph100:                                        ; preds = %.lr.ph100.preheader187, %.lr.ph100
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %.lr.ph100 ], [ %indvars.iv134.ph, %.lr.ph100.preheader187 ]
  %.197 = phi i32 [ %89, %.lr.ph100 ], [ %.197.ph, %.lr.ph100.preheader187 ]
  %87 = getelementptr inbounds [110 x i32], ptr @cf, i64 0, i64 %indvars.iv134
  %88 = load i32, ptr %87, align 4, !tbaa !8
  %89 = add nsw i32 %88, %.197
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count137
  br i1 %exitcond138.not, label %._crit_edge101, label %.lr.ph100, !llvm.loop !24

._crit_edge107:                                   ; preds = %98, %._crit_edge101
  %90 = tail 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_)
  ret i32 0

.lr.ph106:                                        ; preds = %._crit_edge101, %98
  %91 = phi i32 [ %99, %98 ], [ %86, %._crit_edge101 ]
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %98 ], [ 1, %._crit_edge101 ]
  %92 = getelementptr inbounds [110 x i32], ptr @cf, i64 0, i64 %indvars.iv139
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %.not63 = icmp eq i32 %93, 0
  br i1 %.not63, label %98, label %94

94:                                               ; preds = %.lr.ph106
  %95 = trunc nuw nsw i64 %indvars.iv139 to i32
  %96 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %95)
  %97 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %96, i8 noundef signext 32)
  %.pre144 = load i32, ptr @m, align 4, !tbaa !8
  br label %98

98:                                               ; preds = %.lr.ph106, %94
  %99 = phi i32 [ %91, %.lr.ph106 ], [ %.pre144, %94 ]
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %100 = sext i32 %99 to i64
  %.not62.not = icmp slt i64 %indvars.iv139, %100
  br i1 %.not62.not, label %.lr.ph106, label %._crit_edge107, !llvm.loop !25
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 align 2

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: 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 #3

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 #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)) #3

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

attributes #0 = { 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 #1 = { 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 #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 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !19, !18}
!22 = distinct !{!22, !12, !18, !19}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12, !19, !18}
!25 = distinct !{!25, !12}


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