; LLVM IR from kazunetakahashi/atcoder :: 2018/0121_ARC089 (E)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.2" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }

@A = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@d = external dso_local global [100 x [100 x i32]], align 16
@ok = external dso_local global [100 x [100 x i8]], align 16
@V = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6answerv() #0

; 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) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 %"class.std::tuple", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::tuple", 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
  store i32 0, ptr %1, align 4
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @A)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(4) @B)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %54, %0
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr @A, align 4, !tbaa !5
  %28 = icmp sle i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %57

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

31:                                               ; preds = %50, %30
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = load i32, ptr @B, align 4, !tbaa !5
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %38
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100 x i32], ptr %39, i64 0, i64 %41
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %45
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100 x i8], ptr %46, i64 0, i64 %48
  store i8 0, ptr %49, align 1, !tbaa !9
  br label %50

50:                                               ; preds = %36
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !5
  br label %31, !llvm.loop !11

53:                                               ; preds = %35
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %2, align 4, !tbaa !5
  br label %25, !llvm.loop !13

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

58:                                               ; preds = %65, %57
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = icmp sle i32 %59, 101
  br i1 %60, label %62, label %61

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

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 -1, ptr %8, align 4, !tbaa !5
  call void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %6, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @V, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #7
  br label %65

65:                                               ; preds = %62
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !5
  br label %58, !llvm.loop !14

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 103, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %76, %68
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = icmp sle i32 %70, 203
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %79

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -2, ptr %12, align 4, !tbaa !5
  call void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 4 %10, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @V, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  br label %76

76:                                               ; preds = %73
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !5
  br label %69, !llvm.loop !15

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

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

83:                                               ; preds = %80
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %182

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

85:                                               ; preds = %175, %84
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = icmp sle i32 %86, 101
  br i1 %87, label %89, label %88

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

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

90:                                               ; preds = %123, %89
  %91 = load i32, ptr %16, align 4, !tbaa !5
  %92 = load i32, ptr @A, align 4, !tbaa !5
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %126

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

96:                                               ; preds = %119, %95
  %97 = load i32, ptr %17, align 4, !tbaa !5
  %98 = load i32, ptr @B, align 4, !tbaa !5
  %99 = icmp sle i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %122

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %103
  %105 = load i32, ptr %17, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100 x i32], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = load i32, ptr %16, align 4, !tbaa !5
  %111 = mul nsw i32 %109, %110
  %112 = sub nsw i32 %108, %111
  %113 = load i32, ptr %14, align 4, !tbaa !5
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  %116 = sub nsw i32 %112, %115
  store i32 %116, ptr %18, align 4, !tbaa !5
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %118 = load i32, ptr %117, align 4, !tbaa !5
  store i32 %118, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %119

119:                                              ; preds = %101
  %120 = load i32, ptr %17, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !5
  br label %96, !llvm.loop !16

122:                                              ; preds = %100
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %16, align 4, !tbaa !5
  br label %90, !llvm.loop !17

126:                                              ; preds = %94
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3addiii(i32 noundef %127, i32 noundef %128, i32 noundef %129)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %171, %126
  %131 = load i32, ptr %19, align 4, !tbaa !5
  %132 = load i32, ptr @A, align 4, !tbaa !5
  %133 = icmp sle i32 %131, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %130
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %174

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

136:                                              ; preds = %167, %135
  %137 = load i32, ptr %20, align 4, !tbaa !5
  %138 = load i32, ptr @B, align 4, !tbaa !5
  %139 = icmp sle i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %170

141:                                              ; preds = %136
  %142 = load i32, ptr %19, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %143
  %145 = load i32, ptr %20, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100 x i32], ptr %144, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = load i32, ptr %15, align 4, !tbaa !5
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !5
  %152 = mul nsw i32 %150, %151
  %153 = add nsw i32 %149, %152
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = mul nsw i32 %154, %155
  %157 = add nsw i32 %153, %156
  %158 = icmp eq i32 %148, %157
  br i1 %158, label %159, label %166

159:                                              ; preds = %141
  %160 = load i32, ptr %19, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %161
  %163 = load i32, ptr %20, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100 x i8], ptr %162, i64 0, i64 %164
  store i8 1, ptr %165, align 1, !tbaa !9
  br label %166

166:                                              ; preds = %159, %141
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %20, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %20, align 4, !tbaa !5
  br label %136, !llvm.loop !18

170:                                              ; preds = %140
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %19, align 4, !tbaa !5
  br label %130, !llvm.loop !19

174:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %14, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %14, align 4, !tbaa !5
  br label %85, !llvm.loop !20

178:                                              ; preds = %88
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %13, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %13, align 4, !tbaa !5
  br label %80, !llvm.loop !21

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

183:                                              ; preds = %213, %182
  %184 = load i32, ptr %21, align 4, !tbaa !5
  %185 = load i32, ptr @A, align 4, !tbaa !5
  %186 = icmp sle i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 32, ptr %3, align 4
  br label %216

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

189:                                              ; preds = %207, %188
  %190 = load i32, ptr %22, align 4, !tbaa !5
  %191 = load i32, ptr @B, align 4, !tbaa !5
  %192 = icmp sle i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 35, ptr %3, align 4
  br label %210

194:                                              ; preds = %189
  %195 = load i32, ptr %21, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %196
  %198 = load i32, ptr %22, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [100 x i8], ptr %197, i64 0, i64 %199
  %201 = load i8, ptr %200, align 1, !tbaa !9, !range !22, !noundef !23
  %202 = trunc i8 %201 to i1
  br i1 %202, label %206, label %203

203:                                              ; preds = %194
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %204, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %210

206:                                              ; preds = %194
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %22, align 4, !tbaa !5
  br label %189, !llvm.loop !24

210:                                              ; preds = %203, %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %211 = load i32, ptr %3, align 4
  switch i32 %211, label %216 [
    i32 35, label %212
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %21, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %21, align 4, !tbaa !5
  br label %183, !llvm.loop !25

216:                                              ; preds = %210, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  %217 = load i32, ptr %3, align 4
  switch i32 %217, label %223 [
    i32 32, label %218
    i32 1, label %221
  ]

218:                                              ; preds = %216
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_Z6answerv()
  br label %221

221:                                              ; preds = %218, %216
  %222 = load i32, ptr %1, align 4
  ret i32 %222

223:                                              ; preds = %216
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!10, !10, i64 0}
!10 = !{!"bool", !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}
!21 = distinct !{!21, !12}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.0", %"struct.std::_Head_base.3" }
%"struct.std::_Tuple_impl.0" = type { %"struct.std::_Tuple_impl.1", %"struct.std::_Head_base.2" }
%"struct.std::_Tuple_impl.1" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.2" = type { i32 }
%"struct.std::_Head_base.3" = type { i32 }

@A = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@d = external dso_local global [100 x [100 x i32]], align 16
@ok = external dso_local local_unnamed_addr global [100 x [100 x i8]], align 16
@V = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6answerv() local_unnamed_addr #0

; 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 #1

; 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 #0 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)) #1

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::tuple", align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::tuple", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = 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) @A)
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) @B)
  %13 = load i32, ptr @A, align 4, !tbaa !5
  %.not79 = icmp slt i32 %13, 1
  %14 = load i32, ptr @B, align 4
  %15 = icmp slt i32 %14, 1
  %or.cond = select i1 %.not79, i1 true, i1 %15
  br i1 %or.cond, label %._crit_edge81, label %.preheader76

.preheader76:                                     ; preds = %0, %._crit_edge
  %16 = phi i32 [ %18, %._crit_edge ], [ %13, %0 ]
  %17 = phi i32 [ %19, %._crit_edge ], [ %14, %0 ]
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %._crit_edge ], [ 1, %0 ]
  %.not6477 = icmp slt i32 %17, 1
  br i1 %.not6477, label %._crit_edge, label %.lr.ph

._crit_edge81:                                    ; preds = %._crit_edge, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %27

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader76
  %18 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %16, %.preheader76 ]
  %19 = phi i32 [ %24, %._crit_edge.loopexit ], [ %17, %.preheader76 ]
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %20 = sext i32 %18 to i64
  %.not.not = icmp slt i64 %indvars.iv115, %20
  br i1 %.not.not, label %.preheader76, label %._crit_edge81, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader76, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader76 ]
  %21 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %indvars.iv115, i64 %indvars.iv
  %22 = 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) %21)
  %23 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv115, i64 %indvars.iv
  store i8 0, ptr %23, align 1, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr @B, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %.not64.not = icmp slt i64 %indvars.iv, %25
  br i1 %.not64.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

26:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 103, ptr %5, align 4, !tbaa !5
  br label %33

27:                                               ; preds = %._crit_edge81, %27
  %storemerge82 = phi i32 [ 1, %._crit_edge81 ], [ %30, %27 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %28 = add nsw i32 %storemerge82, 1
  store i32 %28, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 -1, ptr %4, align 4, !tbaa !5
  call void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %2, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @V, ptr noundef nonnull align 4 dereferenceable(12) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %1, align 4, !tbaa !5
  %31 = icmp slt i32 %29, 101
  br i1 %31, label %27, label %26, !llvm.loop !15

32:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %.pre147.pre = load i32, ptr @A, align 4, !tbaa !5
  br label %.preheader75

33:                                               ; preds = %26, %33
  %storemerge5783 = phi i32 [ 103, %26 ], [ %36, %33 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %34 = add nsw i32 %storemerge5783, 1
  store i32 %34, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 -2, ptr %8, align 4, !tbaa !5
  call void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 4 %6, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZNSt6vectorISt5tupleIJiiiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @V, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %5, align 4, !tbaa !5
  %37 = icmp slt i32 %35, 203
  br i1 %37, label %33, label %32, !llvm.loop !16

.preheader75:                                     ; preds = %32, %43
  %.pre147 = phi i32 [ %.pre147.pre, %32 ], [ %54, %43 ]
  %indvars.iv133 = phi i64 [ 0, %32 ], [ %indvars.iv.next134, %43 ]
  %38 = trunc nuw nsw i64 %indvars.iv133 to i32
  %39 = trunc nuw nsw i64 %indvars.iv133 to i32
  br label %44

.preheader72:                                     ; preds = %43
  br i1 %.not6197, label %._crit_edge109, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader72
  %40 = load i32, ptr @B, align 4, !tbaa !5
  %.not59103 = icmp slt i32 %40, 1
  br i1 %.not59103, label %._crit_edge109, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %41 = add nuw i32 %40, 1
  %42 = add nuw i32 %54, 1
  %wide.trip.count145 = zext i32 %42 to i64
  %wide.trip.count140 = zext i32 %41 to i64
  br label %.preheader

43:                                               ; preds = %._crit_edge99
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next134, 102
  br i1 %exitcond136.not, label %.preheader72, label %.preheader75, !llvm.loop !17

44:                                               ; preds = %.preheader75, %._crit_edge99
  %45 = phi i32 [ %.pre147, %.preheader75 ], [ %54, %._crit_edge99 ]
  %.050100 = phi i32 [ 0, %.preheader75 ], [ %110, %._crit_edge99 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  %.not6090 = icmp slt i32 %45, 1
  %46 = load i32, ptr @B, align 4
  %47 = icmp slt i32 %46, 1
  %or.cond156 = select i1 %.not6090, i1 true, i1 %47
  br i1 %or.cond156, label %._crit_edge92, label %.preheader74

.preheader74:                                     ; preds = %44, %._crit_edge88
  %48 = phi i32 [ %60, %._crit_edge88 ], [ 0, %44 ]
  %49 = phi i32 [ %61, %._crit_edge88 ], [ %45, %44 ]
  %50 = phi i32 [ %62, %._crit_edge88 ], [ %46, %44 ]
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %._crit_edge88 ], [ 1, %44 ]
  %51 = trunc nuw nsw i64 %indvars.iv121 to i32
  %52 = mul i32 %38, %51
  %.not6385 = icmp slt i32 %50, 1
  br i1 %.not6385, label %._crit_edge88, label %.lr.ph87

._crit_edge92:                                    ; preds = %._crit_edge88, %44
  %53 = phi i32 [ 0, %44 ], [ %60, %._crit_edge88 ]
  call void @_Z3addiii(i32 noundef %39, i32 noundef %.050100, i32 noundef %53)
  %54 = load i32, ptr @A, align 4, !tbaa !5
  %.not6197 = icmp slt i32 %54, 1
  br i1 %.not6197, label %._crit_edge99, label %.preheader73.lr.ph

.preheader73.lr.ph:                               ; preds = %._crit_edge92
  %55 = load i32, ptr @B, align 4, !tbaa !5
  %.not6293 = icmp slt i32 %55, 1
  %56 = load i32, ptr %9, align 4
  br i1 %.not6293, label %._crit_edge99, label %.preheader73.preheader

.preheader73.preheader:                           ; preds = %.preheader73.lr.ph
  %57 = add nuw i32 %55, 1
  %58 = add nuw i32 %54, 1
  %wide.trip.count130 = zext i32 %58 to i64
  %wide.trip.count = zext i32 %57 to i64
  %59 = zext nneg i32 %55 to i64
  %min.iters.check = icmp ult i32 %55, 8
  %n.vec = and i64 %59, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.050100, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert165 = insertelement <4 x i32> poison, i32 %56, i64 0
  %broadcast.splat166 = shufflevector <4 x i32> %broadcast.splatinsert165, <4 x i32> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %59
  br label %.preheader73

._crit_edge88.loopexit:                           ; preds = %.lr.ph87
  %.pre148 = load i32, ptr @A, align 4, !tbaa !5
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit, %.preheader74
  %60 = phi i32 [ %71, %._crit_edge88.loopexit ], [ %48, %.preheader74 ]
  %61 = phi i32 [ %.pre148, %._crit_edge88.loopexit ], [ %49, %.preheader74 ]
  %62 = phi i32 [ %72, %._crit_edge88.loopexit ], [ %50, %.preheader74 ]
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %63 = sext i32 %61 to i64
  %.not60.not = icmp slt i64 %indvars.iv121, %63
  br i1 %.not60.not, label %.preheader74, label %._crit_edge92, !llvm.loop !18

.lr.ph87:                                         ; preds = %.preheader74, %.lr.ph87
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph87 ], [ 1, %.preheader74 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %64 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %indvars.iv121, i64 %indvars.iv118
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = trunc nuw nsw i64 %indvars.iv118 to i32
  %67 = mul i32 %.050100, %66
  %68 = add i32 %67, %52
  %69 = sub i32 %65, %68
  store i32 %69, ptr %10, align 4, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %71 = load i32, ptr %70, align 4, !tbaa !5
  store i32 %71, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %72 = load i32, ptr @B, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %.not63.not = icmp slt i64 %indvars.iv118, %73
  br i1 %.not63.not, label %.lr.ph87, label %._crit_edge88.loopexit, !llvm.loop !19

.preheader73:                                     ; preds = %.preheader73.preheader, %._crit_edge96
  %indvars.iv127 = phi i64 [ 1, %.preheader73.preheader ], [ %indvars.iv.next128, %._crit_edge96 ]
  %74 = mul nuw nsw i64 %indvars.iv127, %indvars.iv133
  %75 = trunc nuw nsw i64 %74 to i32
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader73
  %indvars.iv124.ph = phi i64 [ 1, %.preheader73 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader73
  %broadcast.splatinsert163 = insertelement <4 x i32> poison, i32 %75, i64 0
  %broadcast.splat164 = shufflevector <4 x i32> %broadcast.splatinsert163, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %pred.store.continue180, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %pred.store.continue180 ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %pred.store.continue180 ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx = or disjoint i64 %index, 1
  %76 = or disjoint i64 %index, 5
  %77 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %indvars.iv127, i64 %offset.idx
  %78 = getelementptr inbounds i8, ptr %77, i64 16
  %wide.load = load <4 x i32>, ptr %77, align 4, !tbaa !5
  %wide.load162 = load <4 x i32>, ptr %78, align 4, !tbaa !5
  %79 = mul nuw nsw <4 x i32> %broadcast.splat, %vec.ind
  %80 = mul nuw nsw <4 x i32> %broadcast.splat, %step.add
  %81 = add nuw <4 x i32> %79, %broadcast.splat164
  %82 = add nuw <4 x i32> %80, %broadcast.splat164
  %83 = add <4 x i32> %81, %broadcast.splat166
  %84 = add <4 x i32> %82, %broadcast.splat166
  %85 = icmp eq <4 x i32> %wide.load, %83
  %86 = icmp eq <4 x i32> %wide.load162, %84
  %87 = extractelement <4 x i1> %85, i64 0
  br i1 %87, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %88 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %offset.idx
  store i8 1, ptr %88, align 1, !tbaa !12
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %89 = extractelement <4 x i1> %85, i64 1
  br i1 %89, label %pred.store.if167, label %pred.store.continue168

pred.store.if167:                                 ; preds = %pred.store.continue
  %90 = or disjoint i64 %index, 2
  %91 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %90
  store i8 1, ptr %91, align 2, !tbaa !12
  br label %pred.store.continue168

pred.store.continue168:                           ; preds = %pred.store.if167, %pred.store.continue
  %92 = extractelement <4 x i1> %85, i64 2
  br i1 %92, label %pred.store.if169, label %pred.store.continue170

pred.store.if169:                                 ; preds = %pred.store.continue168
  %93 = or disjoint i64 %index, 3
  %94 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %93
  store i8 1, ptr %94, align 1, !tbaa !12
  br label %pred.store.continue170

pred.store.continue170:                           ; preds = %pred.store.if169, %pred.store.continue168
  %95 = extractelement <4 x i1> %85, i64 3
  br i1 %95, label %pred.store.if171, label %pred.store.continue172

pred.store.if171:                                 ; preds = %pred.store.continue170
  %96 = or disjoint i64 %index, 4
  %97 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %96
  store i8 1, ptr %97, align 4, !tbaa !12
  br label %pred.store.continue172

pred.store.continue172:                           ; preds = %pred.store.if171, %pred.store.continue170
  %98 = extractelement <4 x i1> %86, i64 0
  br i1 %98, label %pred.store.if173, label %pred.store.continue174

pred.store.if173:                                 ; preds = %pred.store.continue172
  %99 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %76
  store i8 1, ptr %99, align 1, !tbaa !12
  br label %pred.store.continue174

pred.store.continue174:                           ; preds = %pred.store.if173, %pred.store.continue172
  %100 = extractelement <4 x i1> %86, i64 1
  br i1 %100, label %pred.store.if175, label %pred.store.continue176

pred.store.if175:                                 ; preds = %pred.store.continue174
  %101 = or disjoint i64 %index, 6
  %102 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %101
  store i8 1, ptr %102, align 2, !tbaa !12
  br label %pred.store.continue176

pred.store.continue176:                           ; preds = %pred.store.if175, %pred.store.continue174
  %103 = extractelement <4 x i1> %86, i64 2
  br i1 %103, label %pred.store.if177, label %pred.store.continue178

pred.store.if177:                                 ; preds = %pred.store.continue176
  %104 = or disjoint i64 %index, 7
  %105 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %104
  store i8 1, ptr %105, align 1, !tbaa !12
  br label %pred.store.continue178

pred.store.continue178:                           ; preds = %pred.store.if177, %pred.store.continue176
  %106 = extractelement <4 x i1> %86, i64 3
  br i1 %106, label %pred.store.if179, label %pred.store.continue180

pred.store.if179:                                 ; preds = %pred.store.continue178
  %107 = add i64 %index, 8
  %108 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %107
  store i8 1, ptr %108, align 4, !tbaa !12
  br label %pred.store.continue180

pred.store.continue180:                           ; preds = %pred.store.if179, %pred.store.continue178
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %109 = icmp eq i64 %index.next, %n.vec
  br i1 %109, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %pred.store.continue180
  br i1 %cmp.n, label %._crit_edge96, label %scalar.ph.preheader

._crit_edge99:                                    ; preds = %._crit_edge96, %.preheader73.lr.ph, %._crit_edge92
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %110 = add nuw nsw i32 %.050100, 1
  %exitcond132.not = icmp eq i32 %110, 102
  br i1 %exitcond132.not, label %43, label %44, !llvm.loop !23

._crit_edge96:                                    ; preds = %119, %middle.block
  %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 %._crit_edge99, label %.preheader73, !llvm.loop !24

scalar.ph:                                        ; preds = %scalar.ph.preheader, %119
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %119 ], [ %indvars.iv124.ph, %scalar.ph.preheader ]
  %indvars126 = trunc i64 %indvars.iv124 to i32
  %111 = getelementptr inbounds [100 x [100 x i32]], ptr @d, i64 0, i64 %indvars.iv127, i64 %indvars.iv124
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = mul nuw nsw i32 %.050100, %indvars126
  %114 = add nuw i32 %113, %75
  %115 = add i32 %114, %56
  %116 = icmp eq i32 %112, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %scalar.ph
  %118 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv127, i64 %indvars.iv124
  store i8 1, ptr %118, align 1, !tbaa !12
  br label %119

119:                                              ; preds = %scalar.ph, %117
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge96, label %scalar.ph, !llvm.loop !25

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge106
  %indvars.iv142 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next143, %._crit_edge106 ]
  br label %121

120:                                              ; preds = %121
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count140
  br i1 %exitcond141.not, label %._crit_edge106, label %121, !llvm.loop !26

121:                                              ; preds = %.preheader, %120
  %indvars.iv137 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next138, %120 ]
  %122 = getelementptr inbounds [100 x [100 x i8]], ptr @ok, i64 0, i64 %indvars.iv142, i64 %indvars.iv137
  %123 = load i8, ptr %122, align 1, !tbaa !12, !range !27, !noundef !28
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %120, label %125

._crit_edge106:                                   ; preds = %120
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count145
  br i1 %exitcond146.not, label %._crit_edge109, label %.preheader, !llvm.loop !29

125:                                              ; preds = %121
  %126 = 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.4)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %130

._crit_edge109:                                   ; preds = %._crit_edge106, %.preheader.lr.ph, %.preheader72
  %128 = 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.5)
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @_Z6answerv()
  br label %130

130:                                              ; preds = %125, %._crit_edge109
  ret i32 0
}

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 #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZSt10make_tupleIJRiiiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS4_(ptr dead_on_unwind noalias writable sret(%"class.std::tuple") align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10, !11}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10, !22, !21}
!26 = distinct !{!26, !10}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !10}


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