; LLVM IR from kazunetakahashi/atcoder :: 2018/0210_minpro-2018-qual (C)

; 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.5", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.6" = type { i64 }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }

@N = external dso_local global i32, align 4
@x = external dso_local global [20 x i64], align 16
@c = external dso_local global [20 x i64], align 16
@v = external dso_local global [20 x i64], align 16
@V = external dso_local global [20 x %"class.std::vector.0"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::tuple", align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %23 = alloca %"class.std::tuple", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %28 = 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)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %39, %0
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = load i32, ptr @N, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %42

34:                                               ; preds = %29
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %36
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %37)
  br label %39

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

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

43:                                               ; preds = %60, %42
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr @N, align 4, !tbaa !5
  %46 = sub nsw i32 %45, 1
  %47 = icmp slt i32 %44, %46
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %43
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !11
  %59 = add nsw i64 %58, %53
  store i64 %59, ptr %57, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %49
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  br label %43, !llvm.loop !13

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

64:                                               ; preds = %74, %63
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = load i32, ptr @N, align 4, !tbaa !5
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %64
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %71
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %72)
  br label %74

74:                                               ; preds = %69
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %4, align 4, !tbaa !5
  br label %64, !llvm.loop !14

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

78:                                               ; preds = %88, %77
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = load i32, ptr @N, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %91

83:                                               ; preds = %78
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %85
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %86)
  br label %88

88:                                               ; preds = %83
  %89 = load i32, ptr %5, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %5, align 4, !tbaa !5
  br label %78, !llvm.loop !15

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

92:                                               ; preds = %150, %91
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = load i32, ptr @N, align 4, !tbaa !5
  %95 = shl i32 1, %94
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %153

98:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %124, %98
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = load i32, ptr @N, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %127

104:                                              ; preds = %99
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = ashr i32 %105, %106
  %108 = and i32 %107, 1
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %123

110:                                              ; preds = %104
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %112
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = load i64, ptr %8, align 8, !tbaa !11
  %116 = add nsw i64 %115, %114
  store i64 %116, ptr %8, align 8, !tbaa !11
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !11
  %121 = load i64, ptr %9, align 8, !tbaa !11
  %122 = add nsw i64 %121, %120
  store i64 %122, ptr %9, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %110, %104
  br label %124

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

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

128:                                              ; preds = %145, %127
  %129 = load i32, ptr %11, align 4, !tbaa !5
  %130 = load i32, ptr @N, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 20, ptr %7, align 4
  br label %148

133:                                              ; preds = %128
  %134 = load i64, ptr %8, align 8, !tbaa !11
  %135 = load i32, ptr %11, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %136
  %138 = load i64, ptr %137, align 8, !tbaa !11
  %139 = icmp sle i64 %134, %138
  br i1 %139, label %140, label %144

140:                                              ; preds = %133
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %142
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @_ZSt10make_tupleIJRxRiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS5_(ptr dead_on_unwind writable sret(%"class.std::tuple") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  store i32 20, ptr %7, align 4
  br label %148

144:                                              ; preds = %133
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %11, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %11, align 4, !tbaa !5
  br label %128, !llvm.loop !17

148:                                              ; preds = %140, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %149

149:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %6, align 4, !tbaa !5
  br label %92, !llvm.loop !18

153:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %270, %153
  %155 = load i32, ptr %14, align 4, !tbaa !5
  %156 = load i32, ptr @N, align 4, !tbaa !5
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %273

159:                                              ; preds = %154
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %161
  %163 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #8
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  %165 = load i32, ptr %14, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %166
  %168 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #8
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %16, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %15, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %16, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %171, ptr %173)
  %174 = load i32, ptr %14, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %175
  %177 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #8
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %17, i32 0, i32 0
  store ptr %177, ptr %178, align 8
  %179 = load i32, ptr %14, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %180
  %182 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #8
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %18, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %17, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %18, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %185, ptr %187)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %188 = load i32, ptr %14, align 4, !tbaa !5
  %189 = add nsw i32 %188, 1
  %190 = shl i32 1, %189
  %191 = sub nsw i32 %190, 1
  store i32 %191, ptr %19, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %251, %159
  %193 = load i32, ptr %19, align 4, !tbaa !5
  %194 = load i32, ptr @N, align 4, !tbaa !5
  %195 = shl i32 1, %194
  %196 = icmp slt i32 %193, %195
  br i1 %196, label %197, label %269

197:                                              ; preds = %192
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
  %199 = load i32, ptr %19, align 4, !tbaa !5
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %198, i32 noundef %199)
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %202 = load i32, ptr %14, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %203
  store ptr %204, ptr %20, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %205 = load ptr, ptr %20, align 8, !tbaa !19
  %206 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #8
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %21, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %208 = load ptr, ptr %20, align 8, !tbaa !19
  %209 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #8
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %22, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  br label %211

211:                                              ; preds = %248, %197
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #8
  br i1 %212, label %214, label %213

213:                                              ; preds = %211
  store i32 28, ptr %7, align 4
  br label %250

214:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %215 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %215, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  %217 = load i32, ptr %216, align 4, !tbaa !5
  store i32 %217, ptr %24, align 4, !tbaa !5
  %218 = load i32, ptr %19, align 4, !tbaa !5
  %219 = load i32, ptr %24, align 4, !tbaa !5
  %220 = and i32 %218, %219
  %221 = icmp sgt i32 %220, 0
  br i1 %221, label %222, label %228

222:                                              ; preds = %214
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
  %224 = load i32, ptr %24, align 4, !tbaa !5
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %223, i32 noundef %224)
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %225, ptr noundef @.str.5)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %241

228:                                              ; preds = %214
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
  %230 = load i32, ptr %24, align 4, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %229, i32 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.6)
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  %234 = load i64, ptr %233, align 8, !tbaa !11
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %232, i64 noundef %234)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @.str.7)
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %23) #8
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %238)
  %240 = load i64, ptr %239, align 8, !tbaa !11
  store i64 %240, ptr %13, align 8, !tbaa !11
  store i32 28, ptr %7, align 4
  br label %242

241:                                              ; preds = %222
  store i32 0, ptr %7, align 4
  br label %242

242:                                              ; preds = %241, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %243 = load i32, ptr %7, align 4
  switch i32 %243, label %245 [
    i32 0, label %244
  ]

244:                                              ; preds = %242
  store i32 0, ptr %7, align 4
  br label %245

245:                                              ; preds = %244, %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  %246 = load i32, ptr %7, align 4
  switch i32 %246, label %250 [
    i32 0, label %247
  ]

247:                                              ; preds = %245
  br label %248

248:                                              ; preds = %247
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br label %211

250:                                              ; preds = %245, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %251

251:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %252 = load i32, ptr %19, align 4, !tbaa !5
  %253 = load i32, ptr %19, align 4, !tbaa !5
  %254 = sub nsw i32 0, %253
  %255 = and i32 %252, %254
  store i32 %255, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %256 = load i32, ptr %19, align 4, !tbaa !5
  %257 = load i32, ptr %25, align 4, !tbaa !5
  %258 = add nsw i32 %256, %257
  store i32 %258, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %259 = load i32, ptr %19, align 4, !tbaa !5
  %260 = load i32, ptr %26, align 4, !tbaa !5
  %261 = xor i32 %260, -1
  %262 = and i32 %259, %261
  store i32 %262, ptr %27, align 4, !tbaa !5
  %263 = load i32, ptr %27, align 4, !tbaa !5
  %264 = load i32, ptr %25, align 4, !tbaa !5
  %265 = sdiv i32 %263, %264
  %266 = ashr i32 %265, 1
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = or i32 %266, %267
  store i32 %268, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %192, !llvm.loop !21

269:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %14, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %14, align 4, !tbaa !5
  br label %154, !llvm.loop !22

273:                                              ; preds = %158
  %274 = load i64, ptr %13, align 8, !tbaa !11
  %275 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %274)
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %277 = load i32, ptr %1, align 4
  ret i32 %277
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<long long, int>, std::allocator<std::tuple<long long, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Tuple_impl.5", %"struct.std::_Head_base.6" }
%"struct.std::_Tuple_impl.5" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i32 }
%"struct.std::_Head_base.6" = type { i64 }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }

@N = external dso_local global i32, align 4
@x = external dso_local global [20 x i64], align 16
@c = external dso_local global [20 x i64], align 16
@v = external dso_local global [20 x i64], align 16
@V = external dso_local global [20 x %"class.std::vector.0"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::tuple", align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %7 = alloca %"class.std::tuple", align 8
  %8 = 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)
  %9 = load i32, ptr @N, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge.thread

.preheader69:                                     ; preds = %.lr.ph
  %11 = icmp sgt i32 %17, 1
  br i1 %11, label %.lr.ph74.preheader, label %.preheader68

.lr.ph74.preheader:                               ; preds = %.preheader69
  %12 = add nsw i32 %17, -1
  %wide.trip.count = zext nneg i32 %12 to i64
  %.pre = load i64, ptr @x, align 16, !tbaa !9
  %13 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %14 = icmp ult i64 %13, 3
  br i1 %14, label %.preheader68.loopexit.unr-lcssa, label %.lr.ph74.preheader.new

.lr.ph74.preheader.new:                           ; preds = %.lr.ph74.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph74

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %15 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %17 = load i32, ptr @N, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv.next, %18
  br i1 %19, label %.lr.ph, label %.preheader69, !llvm.loop !11

.preheader68.loopexit.unr-lcssa:                  ; preds = %.lr.ph74, %.lr.ph74.preheader
  %.unr = phi i64 [ %.pre, %.lr.ph74.preheader ], [ %37, %.lr.ph74 ]
  %indvars.iv107.unr = phi i64 [ 0, %.lr.ph74.preheader ], [ %indvars.iv.next108.3, %.lr.ph74 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader68, label %.lr.ph74.epil

.lr.ph74.epil:                                    ; preds = %.preheader68.loopexit.unr-lcssa, %.lr.ph74.epil
  %20 = phi i64 [ %23, %.lr.ph74.epil ], [ %.unr, %.preheader68.loopexit.unr-lcssa ]
  %indvars.iv107.epil = phi i64 [ %indvars.iv.next108.epil, %.lr.ph74.epil ], [ %indvars.iv107.unr, %.preheader68.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph74.epil ], [ 0, %.preheader68.loopexit.unr-lcssa ]
  %indvars.iv.next108.epil = add nuw nsw i64 %indvars.iv107.epil, 1
  %21 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv.next108.epil
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = add nsw i64 %22, %20
  store i64 %23, ptr %21, align 8, !tbaa !9
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader68, label %.lr.ph74.epil, !llvm.loop !13

.preheader68:                                     ; preds = %.preheader68.loopexit.unr-lcssa, %.lr.ph74.epil, %.preheader69
  %24 = icmp sgt i32 %17, 0
  br i1 %24, label %.lr.ph76, label %._crit_edge.thread

.lr.ph74:                                         ; preds = %.lr.ph74, %.lr.ph74.preheader.new
  %25 = phi i64 [ %.pre, %.lr.ph74.preheader.new ], [ %37, %.lr.ph74 ]
  %indvars.iv107 = phi i64 [ 0, %.lr.ph74.preheader.new ], [ %indvars.iv.next108.3, %.lr.ph74 ]
  %niter = phi i64 [ 0, %.lr.ph74.preheader.new ], [ %niter.next.3, %.lr.ph74 ]
  %indvars.iv.next108 = or disjoint i64 %indvars.iv107, 1
  %26 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv.next108
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = add nsw i64 %27, %25
  store i64 %28, ptr %26, align 8, !tbaa !9
  %indvars.iv.next108.1 = or disjoint i64 %indvars.iv107, 2
  %29 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv.next108.1
  %30 = load i64, ptr %29, align 16, !tbaa !9
  %31 = add nsw i64 %30, %28
  store i64 %31, ptr %29, align 16, !tbaa !9
  %indvars.iv.next108.2 = or disjoint i64 %indvars.iv107, 3
  %32 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv.next108.2
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = add nsw i64 %33, %31
  store i64 %34, ptr %32, align 8, !tbaa !9
  %indvars.iv.next108.3 = add nuw nsw i64 %indvars.iv107, 4
  %35 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv.next108.3
  %36 = load i64, ptr %35, align 16, !tbaa !9
  %37 = add nsw i64 %36, %34
  store i64 %37, ptr %35, align 16, !tbaa !9
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader68.loopexit.unr-lcssa, label %.lr.ph74, !llvm.loop !15

.preheader67:                                     ; preds = %.lr.ph76
  %38 = icmp sgt i32 %41, 0
  br i1 %38, label %.lr.ph78, label %._crit_edge.thread

.lr.ph76:                                         ; preds = %.preheader68, %.lr.ph76
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.lr.ph76 ], [ 0, %.preheader68 ]
  %39 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %indvars.iv110
  %40 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %39)
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %41 = load i32, ptr @N, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next111, %42
  br i1 %43, label %.lr.ph76, label %.preheader67, !llvm.loop !16

._crit_edge.thread:                               ; preds = %.preheader67, %.preheader68, %0
  %.ph132 = phi i32 [ %41, %.preheader67 ], [ %17, %.preheader68 ], [ %9, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %.lr.ph88.preheader

._crit_edge:                                      ; preds = %.lr.ph78
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !5
  %.not100 = icmp eq i32 %46, 31
  br i1 %.not100, label %._crit_edge89.thread, label %.lr.ph88.preheader

.lr.ph88.preheader:                               ; preds = %._crit_edge.thread, %._crit_edge
  %.ph = phi i32 [ %46, %._crit_edge ], [ %.ph132, %._crit_edge.thread ]
  br label %.lr.ph88

._crit_edge89.thread:                             ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %.lr.ph98.preheader

.lr.ph78:                                         ; preds = %.preheader67, %.lr.ph78
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.lr.ph78 ], [ 0, %.preheader67 ]
  %44 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %indvars.iv113
  %45 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %44)
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %46 = load i32, ptr @N, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next114, %47
  br i1 %48, label %.lr.ph78, label %._crit_edge, !llvm.loop !17

._crit_edge89:                                    ; preds = %.loopexit66
  %49 = icmp sgt i32 %92, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  br i1 %49, label %.lr.ph98.preheader, label %._crit_edge99

.lr.ph98.preheader:                               ; preds = %._crit_edge89.thread, %._crit_edge89
  br label %.lr.ph98

.lr.ph88:                                         ; preds = %.lr.ph88.preheader, %.loopexit66
  %50 = phi i32 [ %92, %.loopexit66 ], [ %.ph, %.lr.ph88.preheader ]
  %storemerge86 = phi i32 [ %94, %.loopexit66 ], [ 0, %.lr.ph88.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  store i64 0, ptr %2, align 8, !tbaa !9
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph82.preheader, label %.loopexit66

.lr.ph82.preheader:                               ; preds = %.lr.ph88
  %wide.trip.count119 = zext nneg i32 %50 to i64
  %xtraiter156 = and i64 %wide.trip.count119, 1
  %52 = icmp eq i32 %50, 1
  br i1 %52, label %.preheader.unr-lcssa, label %.lr.ph82.preheader.new

.lr.ph82.preheader.new:                           ; preds = %.lr.ph82.preheader
  %unroll_iter161 = and i64 %wide.trip.count119, 2147483646
  br label %.lr.ph82

.preheader.unr-lcssa:                             ; preds = %85, %.lr.ph82.preheader
  %.1.lcssa.ph = phi i64 [ poison, %.lr.ph82.preheader ], [ %.1.1, %85 ]
  %indvars.iv116.unr = phi i64 [ 0, %.lr.ph82.preheader ], [ %indvars.iv.next117.1, %85 ]
  %.06080.unr = phi i64 [ 0, %.lr.ph82.preheader ], [ %.1.1, %85 ]
  %.unr158 = phi i64 [ 0, %.lr.ph82.preheader ], [ %86, %85 ]
  %lcmp.mod159.not = icmp eq i64 %xtraiter156, 0
  br i1 %lcmp.mod159.not, label %.preheader, label %.lr.ph82.epil

.lr.ph82.epil:                                    ; preds = %.preheader.unr-lcssa
  %53 = trunc nuw nsw i64 %indvars.iv116.unr to i32
  %54 = shl nuw i32 1, %53
  %55 = and i32 %54, %storemerge86
  %.not64.epil = icmp eq i32 %55, 0
  br i1 %.not64.epil, label %.preheader, label %56

56:                                               ; preds = %.lr.ph82.epil
  %57 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %indvars.iv116.unr
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = add nsw i64 %58, %.06080.unr
  %60 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %indvars.iv116.unr
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = add nsw i64 %.unr158, %61
  store i64 %62, ptr %2, align 8, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph82.epil, %56, %.preheader.unr-lcssa
  %.1.lcssa = phi i64 [ %.1.lcssa.ph, %.preheader.unr-lcssa ], [ %59, %56 ], [ %.06080.unr, %.lr.ph82.epil ]
  br i1 %51, label %.lr.ph85.preheader, label %.loopexit66

.lr.ph85.preheader:                               ; preds = %.preheader
  %wide.trip.count124 = zext nneg i32 %50 to i64
  br label %.lr.ph85

.lr.ph82:                                         ; preds = %85, %.lr.ph82.preheader.new
  %indvars.iv116 = phi i64 [ 0, %.lr.ph82.preheader.new ], [ %indvars.iv.next117.1, %85 ]
  %.06080 = phi i64 [ 0, %.lr.ph82.preheader.new ], [ %.1.1, %85 ]
  %63 = phi i64 [ 0, %.lr.ph82.preheader.new ], [ %86, %85 ]
  %niter162 = phi i64 [ 0, %.lr.ph82.preheader.new ], [ %niter162.next.1, %85 ]
  %64 = trunc nuw nsw i64 %indvars.iv116 to i32
  %65 = shl nuw i32 1, %64
  %66 = and i32 %65, %storemerge86
  %.not64 = icmp eq i32 %66, 0
  br i1 %.not64, label %.lr.ph82.1, label %67

67:                                               ; preds = %.lr.ph82
  %68 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %indvars.iv116
  %69 = load i64, ptr %68, align 16, !tbaa !9
  %70 = add nsw i64 %69, %.06080
  %71 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %indvars.iv116
  %72 = load i64, ptr %71, align 16, !tbaa !9
  %73 = add nsw i64 %63, %72
  store i64 %73, ptr %2, align 8, !tbaa !9
  br label %.lr.ph82.1

.lr.ph82.1:                                       ; preds = %.lr.ph82, %67
  %74 = phi i64 [ %73, %67 ], [ %63, %.lr.ph82 ]
  %.1 = phi i64 [ %70, %67 ], [ %.06080, %.lr.ph82 ]
  %indvars.iv.next117 = or disjoint i64 %indvars.iv116, 1
  %75 = trunc nuw nsw i64 %indvars.iv.next117 to i32
  %76 = shl nuw i32 1, %75
  %77 = and i32 %76, %storemerge86
  %.not64.1 = icmp eq i32 %77, 0
  br i1 %.not64.1, label %85, label %78

78:                                               ; preds = %.lr.ph82.1
  %79 = getelementptr inbounds [20 x i64], ptr @c, i64 0, i64 %indvars.iv.next117
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = add nsw i64 %80, %.1
  %82 = getelementptr inbounds [20 x i64], ptr @v, i64 0, i64 %indvars.iv.next117
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = add nsw i64 %74, %83
  store i64 %84, ptr %2, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %78, %.lr.ph82.1
  %86 = phi i64 [ %84, %78 ], [ %74, %.lr.ph82.1 ]
  %.1.1 = phi i64 [ %81, %78 ], [ %.1, %.lr.ph82.1 ]
  %indvars.iv.next117.1 = add nuw nsw i64 %indvars.iv116, 2
  %niter162.next.1 = add i64 %niter162, 2
  %niter162.ncmp.1 = icmp eq i64 %niter162.next.1, %unroll_iter161
  br i1 %niter162.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph82, !llvm.loop !18

87:                                               ; preds = %.lr.ph85
  %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 %.loopexit66, label %.lr.ph85, !llvm.loop !19

.lr.ph85:                                         ; preds = %.lr.ph85.preheader, %87
  %indvars.iv121 = phi i64 [ 0, %.lr.ph85.preheader ], [ %indvars.iv.next122, %87 ]
  %88 = getelementptr inbounds [20 x i64], ptr @x, i64 0, i64 %indvars.iv121
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %.not = icmp sgt i64 %.1.lcssa, %89
  br i1 %.not, label %87, label %90

90:                                               ; preds = %.lr.ph85
  %91 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %indvars.iv121
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @_ZSt10make_tupleIJRxRiEESt5tupleIJDpNSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeEEEDpOS5_(ptr dead_on_unwind nonnull writable sret(%"class.std::tuple") align 8 %3, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  %.pre129 = load i32, ptr %1, align 4, !tbaa !5
  %.pre130 = load i32, ptr @N, align 4, !tbaa !5
  br label %.loopexit66

.loopexit66:                                      ; preds = %87, %.lr.ph88, %.preheader, %90
  %92 = phi i32 [ %50, %.preheader ], [ %.pre130, %90 ], [ %50, %.lr.ph88 ], [ %50, %87 ]
  %93 = phi i32 [ %storemerge86, %.preheader ], [ %.pre129, %90 ], [ %storemerge86, %.lr.ph88 ], [ %storemerge86, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %1, align 4, !tbaa !5
  %95 = shl nuw i32 1, %92
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %.lr.ph88, label %._crit_edge89, !llvm.loop !20

.loopexit65:                                      ; preds = %.loopexit, %.lr.ph98
  %97 = phi i32 [ %110, %.lr.ph98 ], [ %149, %.loopexit ]
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv.next127, %98
  br i1 %99, label %.lr.ph98, label %._crit_edge99.loopexit, !llvm.loop !21

._crit_edge99.loopexit:                           ; preds = %.loopexit65
  %.pre131 = load i64, ptr %4, align 8, !tbaa !9
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %._crit_edge99.loopexit, %._crit_edge89
  %100 = phi i64 [ %.pre131, %._crit_edge99.loopexit ], [ 0, %._crit_edge89 ]
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %100)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  ret i32 0

.lr.ph98:                                         ; preds = %.lr.ph98.preheader, %.loopexit65
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.loopexit65 ], [ 0, %.lr.ph98.preheader ]
  %103 = getelementptr inbounds [20 x %"class.std::vector.0"], ptr @V, i64 0, i64 %indvars.iv126
  %104 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  %105 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %104, ptr %105)
  %106 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  %107 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  call void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %106, ptr %107)
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %108 = trunc nuw nsw i64 %indvars.iv126 to i32
  %109 = shl nuw i32 2, %108
  %110 = load i32, ptr @N, align 4, !tbaa !5
  %111 = shl nuw i32 1, %110
  %.not101 = icmp sgt i32 %109, %111
  br i1 %.not101, label %.loopexit65, label %.lr.ph95.preheader

.lr.ph95.preheader:                               ; preds = %.lr.ph98
  %112 = add nsw i32 %109, -1
  br label %.lr.ph95

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %.loopexit
  %.05992 = phi i32 [ %148, %.loopexit ], [ %112, %.lr.ph95.preheader ]
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %113, i32 noundef %.05992)
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %116 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  store ptr %116, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %117 = call ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  store ptr %117, ptr %6, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %118, label %.lr.ph91, label %.loopexit

.lr.ph91:                                         ; preds = %.lr.ph95, %136
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %119, i64 16, i1 false)
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = and i32 %121, %.05992
  %123 = icmp sgt i32 %122, 0
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %124, i32 noundef %121)
  br i1 %123, label %136, label %126

126:                                              ; preds = %.lr.ph91
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.6)
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %127, i64 noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.7)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %133)
  %135 = load i64, ptr %134, align 8, !tbaa !9
  store i64 %135, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %.loopexit

136:                                              ; preds = %.lr.ph91
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.5)
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br i1 %140, label %.lr.ph91, label %.loopexit

.loopexit:                                        ; preds = %136, %.lr.ph95, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %141 = sub nsw i32 0, %.05992
  %142 = and i32 %.05992, %141
  %143 = add nsw i32 %142, %.05992
  %144 = xor i32 %143, -1
  %145 = and i32 %.05992, %144
  %146 = sdiv i32 %145, %142
  %147 = ashr i32 %146, 1
  %148 = or i32 %147, %143
  %149 = load i32, ptr @N, align 4, !tbaa !5
  %150 = shl nuw i32 1, %149
  %151 = icmp slt i32 %148, %150
  br i1 %151, label %.lr.ph95, label %.loopexit65, !llvm.loop !22
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt5tupleIJxiEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm1EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EJxiEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt5tupleIJxiEESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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


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