; LLVM IR from kazunetakahashi/atcoder :: 2018/1124_dowcon5th-prelims (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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_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.base", [4 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.4" }>
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.4" = type { i32 }

@N = external dso_local global i32, align 4
@_Z1SB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@Q = external dso_local global i32, align 4
@k = external dso_local global [100 x i32], align 16
@D = external dso_local global %"class.std::vector", align 8
@C = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::tuple", align 8
  %6 = alloca %"class.std::tuple", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %16 = 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)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %29, %0
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = load i32, ptr @Q, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %32

24:                                               ; preds = %19
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [100 x i32], ptr @k, i64 0, i64 %26
  %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) %27)
  br label %29

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

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

33:                                               ; preds = %67, %32
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = load i32, ptr @N, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %70

38:                                               ; preds = %33
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %40)
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %43, 68
  br i1 %44, label %45, label %46

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3) #6
  call void @_ZNSt6vectorISt5tupleIJixEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %66

46:                                               ; preds = %38
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %48)
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 77
  br i1 %52, label %53, label %56

53:                                               ; preds = %46
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %3, align 4, !tbaa !5
  br label %65

56:                                               ; preds = %46
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %58)
  %60 = load i8, ptr %59, align 1, !tbaa !11
  %61 = sext i8 %60 to i32
  %62 = icmp eq i32 %61, 67
  br i1 %62, label %63, label %64

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %3) #6
  call void @_ZNSt6vectorISt5tupleIJixEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(12) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %64

64:                                               ; preds = %63, %56
  br label %65

65:                                               ; preds = %64, %53
  br label %66

66:                                               ; preds = %65, %45
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %4, align 4, !tbaa !5
  br label %33, !llvm.loop !12

70:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %71 = call noundef i64 @_ZNKSt6vectorISt5tupleIJixEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #6
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %73 = call noundef i64 @_ZNKSt6vectorISt5tupleIJixEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @C) #6
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %165, %70
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = load i32, ptr @Q, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %168

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %81 = load i32, ptr %9, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100 x i32], ptr @k, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  store i32 %84, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 0, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !13
  br label %85

85:                                               ; preds = %146, %80
  %86 = load i64, ptr %12, align 8, !tbaa !13
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %86, %88
  br i1 %89, label %90, label %161

90:                                               ; preds = %85
  br label %91

91:                                               ; preds = %108, %90
  %92 = load i64, ptr %13, align 8, !tbaa !13
  %93 = load i32, ptr %8, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %92, %94
  br i1 %95, label %96, label %106

96:                                               ; preds = %91
  %97 = load i64, ptr %13, align 8, !tbaa !13
  %98 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %97) #6
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %98) #6
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i64, ptr %12, align 8, !tbaa !13
  %102 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %101) #6
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %102) #6
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = icmp slt i32 %100, %104
  br label %106

106:                                              ; preds = %96, %91
  %107 = phi i1 [ false, %91 ], [ %105, %96 ]
  br i1 %107, label %108, label %117

108:                                              ; preds = %106
  %109 = load i64, ptr %13, align 8, !tbaa !13
  %110 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %109) #6
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %110) #6
  %112 = load i64, ptr %111, align 8, !tbaa !13
  %113 = load i64, ptr %15, align 8, !tbaa !13
  %114 = sub nsw i64 %113, %112
  store i64 %114, ptr %15, align 8, !tbaa !13
  %115 = load i64, ptr %13, align 8, !tbaa !13
  %116 = add nsw i64 %115, 1
  store i64 %116, ptr %13, align 8, !tbaa !13
  br label %91, !llvm.loop !15

117:                                              ; preds = %106
  br label %118

118:                                              ; preds = %137, %117
  %119 = load i64, ptr %14, align 8, !tbaa !13
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = icmp slt i64 %119, %121
  br i1 %122, label %123, label %135

123:                                              ; preds = %118
  %124 = load i64, ptr %14, align 8, !tbaa !13
  %125 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %124) #6
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %125) #6
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load i64, ptr %12, align 8, !tbaa !13
  %129 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %128) #6
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %129) #6
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = sub nsw i32 %127, %131
  %133 = load i32, ptr %10, align 4, !tbaa !5
  %134 = icmp slt i32 %132, %133
  br label %135

135:                                              ; preds = %123, %118
  %136 = phi i1 [ false, %118 ], [ %134, %123 ]
  br i1 %136, label %137, label %146

137:                                              ; preds = %135
  %138 = load i64, ptr %14, align 8, !tbaa !13
  %139 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %138) #6
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %139) #6
  %141 = load i64, ptr %140, align 8, !tbaa !13
  %142 = load i64, ptr %15, align 8, !tbaa !13
  %143 = add nsw i64 %142, %141
  store i64 %143, ptr %15, align 8, !tbaa !13
  %144 = load i64, ptr %14, align 8, !tbaa !13
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %14, align 8, !tbaa !13
  br label %118, !llvm.loop !16

146:                                              ; preds = %135
  %147 = load i64, ptr %15, align 8, !tbaa !13
  %148 = load i64, ptr %14, align 8, !tbaa !13
  %149 = load i64, ptr %13, align 8, !tbaa !13
  %150 = sub nsw i64 %148, %149
  %151 = load i64, ptr %12, align 8, !tbaa !13
  %152 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %151) #6
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %152) #6
  %154 = load i64, ptr %153, align 8, !tbaa !13
  %155 = mul nsw i64 %150, %154
  %156 = sub nsw i64 %147, %155
  %157 = load i64, ptr %11, align 8, !tbaa !13
  %158 = add nsw i64 %157, %156
  store i64 %158, ptr %11, align 8, !tbaa !13
  %159 = load i64, ptr %12, align 8, !tbaa !13
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %12, align 8, !tbaa !13
  br label %85, !llvm.loop !17

161:                                              ; preds = %85
  %162 = load i64, ptr %11, align 8, !tbaa !13
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %162)
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %165

165:                                              ; preds = %161
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %9, align 4, !tbaa !5
  br label %75, !llvm.loop !18

168:                                              ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %169 = load i32, ptr %1, align 4
  ret i32 %169
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #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 nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12)) #3

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<int, long long>, std::allocator<std::tuple<int, long long>>>::_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.base", [4 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.3", %"struct.std::_Head_base.4" }>
%"struct.std::_Tuple_impl.3" = type { %"struct.std::_Head_base" }
%"struct.std::_Head_base" = type { i64 }
%"struct.std::_Head_base.4" = type { i32 }

@N = external dso_local global i32, align 4
@_Z1SB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@Q = external dso_local global i32, align 4
@k = external dso_local global [100 x i32], align 16
@D = external dso_local global %"class.std::vector", align 8
@C = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::tuple", align 8
  %4 = alloca %"class.std::tuple", align 8
  %5 = 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)
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) @Q)
  %8 = load i32, ptr @Q, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  %10 = load i32, ptr @N, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph47, label %._crit_edge48

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds [100 x i32], ptr @k, i64 0, i64 %indvars.iv
  %13 = 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) %12)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %14 = load i32, ptr @Q, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = icmp slt i64 %indvars.iv.next, %15
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge48:                                    ; preds = %87, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %17 = call noundef i64 @_ZNKSt6vectorISt5tupleIJixEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @D) #6
  %18 = call noundef i64 @_ZNKSt6vectorISt5tupleIJixEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @C) #6
  %19 = load i32, ptr @Q, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %._crit_edge48
  %sext = shl i64 %17, 32
  %21 = ashr exact i64 %sext, 32
  %22 = icmp sgt i64 %21, 0
  %sext42 = shl i64 %18, 32
  %23 = ashr exact i64 %sext42, 32
  br i1 %22, label %.preheader.lr.ph.us, label %.lr.ph75.split

.preheader.lr.ph.us:                              ; preds = %.lr.ph75, %._crit_edge71.us
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %._crit_edge71.us ], [ 0, %.lr.ph75 ]
  %24 = getelementptr inbounds [100 x i32], ptr @k, i64 0, i64 %indvars.iv81
  %25 = load i32, ptr %24, align 4, !tbaa !5
  br label %.preheader.us

.lr.ph51.us:                                      ; preds = %.preheader.us, %54
  %.150.us = phi i64 [ %58, %54 ], [ %.070.us, %.preheader.us ]
  %.13649.us = phi i64 [ %59, %54 ], [ %.03568.us, %.preheader.us ]
  %26 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %.13649.us) #6
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %26) #6
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %.03767.us) #6
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %29) #6
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = icmp slt i32 %28, %31
  br i1 %32, label %54, label %.critedge.us

.critedge.us:                                     ; preds = %.lr.ph51.us, %54, %.preheader.us
  %.136.lcssa.us = phi i64 [ %.03568.us, %.preheader.us ], [ %23, %54 ], [ %.13649.us, %.lr.ph51.us ]
  %.1.lcssa.us = phi i64 [ %.070.us, %.preheader.us ], [ %58, %54 ], [ %.150.us, %.lr.ph51.us ]
  %33 = icmp slt i64 %.03369.us, %23
  br i1 %33, label %.lr.ph60.us, label %.critedge2.us

.lr.ph60.us:                                      ; preds = %.critedge.us, %48
  %.259.us = phi i64 [ %52, %48 ], [ %.1.lcssa.us, %.critedge.us ]
  %.13458.us = phi i64 [ %53, %48 ], [ %.03369.us, %.critedge.us ]
  %34 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %.13458.us) #6
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %34) #6
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %.03767.us) #6
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3getILm0EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %37) #6
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sub nsw i32 %36, %39
  %41 = icmp slt i32 %40, %25
  br i1 %41, label %48, label %.critedge2.us

.critedge2.us:                                    ; preds = %.lr.ph60.us, %48, %.critedge.us
  %.134.lcssa.us = phi i64 [ %.03369.us, %.critedge.us ], [ %23, %48 ], [ %.13458.us, %.lr.ph60.us ]
  %.2.lcssa.us = phi i64 [ %.1.lcssa.us, %.critedge.us ], [ %52, %48 ], [ %.259.us, %.lr.ph60.us ]
  %.neg.us = sub i64 %.136.lcssa.us, %.134.lcssa.us
  %42 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @D, i64 noundef %.03767.us) #6
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %42) #6
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %.neg43.us = mul i64 %44, %.neg.us
  %45 = add i64 %.2.lcssa.us, %.03866.us
  %46 = add i64 %45, %.neg43.us
  %47 = add nuw nsw i64 %.03767.us, 1
  %exitcond80.not = icmp eq i64 %47, %21
  br i1 %exitcond80.not, label %._crit_edge71.us, label %.preheader.us, !llvm.loop !13

48:                                               ; preds = %.lr.ph60.us
  %49 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %.13458.us) #6
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %49) #6
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = add nsw i64 %51, %.259.us
  %53 = add i64 %.13458.us, 1
  %exitcond79.not = icmp eq i64 %53, %23
  br i1 %exitcond79.not, label %.critedge2.us, label %.lr.ph60.us, !llvm.loop !14

54:                                               ; preds = %.lr.ph51.us
  %55 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @C, i64 noundef %.13649.us) #6
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12) %55) #6
  %57 = load i64, ptr %56, align 8, !tbaa !11
  %58 = sub nsw i64 %.150.us, %57
  %59 = add i64 %.13649.us, 1
  %exitcond.not = icmp eq i64 %59, %23
  br i1 %exitcond.not, label %.critedge.us, label %.lr.ph51.us, !llvm.loop !15

.preheader.us:                                    ; preds = %.preheader.lr.ph.us, %.critedge2.us
  %.070.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %.2.lcssa.us, %.critedge2.us ]
  %.03369.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %.134.lcssa.us, %.critedge2.us ]
  %.03568.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %.136.lcssa.us, %.critedge2.us ]
  %.03767.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %47, %.critedge2.us ]
  %.03866.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %46, %.critedge2.us ]
  %60 = icmp slt i64 %.03568.us, %23
  br i1 %60, label %.lr.ph51.us, label %.critedge.us

._crit_edge71.us:                                 ; preds = %.critedge2.us
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %46)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %63 = load i32, ptr @Q, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next82, %64
  br i1 %65, label %.preheader.lr.ph.us, label %._crit_edge76, !llvm.loop !16

.lr.ph47:                                         ; preds = %._crit_edge, %87
  %storemerge45 = phi i32 [ %89, %87 ], [ 0, %._crit_edge ]
  %66 = sext i32 %storemerge45 to i64
  %67 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %66)
  %68 = load i8, ptr %67, align 1, !tbaa !17
  %69 = icmp eq i8 %68, 68
  br i1 %69, label %70, label %71

70:                                               ; preds = %.lr.ph47
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1) #6
  call void @_ZNSt6vectorISt5tupleIJixEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  br label %87

71:                                               ; preds = %.lr.ph47
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %73)
  %75 = load i8, ptr %74, align 1, !tbaa !17
  %76 = icmp eq i8 %75, 77
  br i1 %76, label %77, label %80

77:                                               ; preds = %71
  %78 = load i32, ptr %1, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %1, align 4, !tbaa !5
  br label %87

80:                                               ; preds = %71
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1SB5cxx11, i64 noundef %82)
  %84 = load i8, ptr %83, align 1, !tbaa !17
  %85 = icmp eq i8 %84, 67
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %1) #6
  call void @_ZNSt6vectorISt5tupleIJixEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %87

87:                                               ; preds = %70, %80, %86, %77
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %2, align 4, !tbaa !5
  %90 = load i32, ptr @N, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %.lr.ph47, label %._crit_edge48, !llvm.loop !18

._crit_edge76:                                    ; preds = %.lr.ph75.split, %._crit_edge71.us, %._crit_edge48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.lr.ph75.split:                                   ; preds = %.lr.ph75, %.lr.ph75.split
  %.04073 = phi i32 [ %94, %.lr.ph75.split ], [ 0, %.lr.ph75 ]
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef 0)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %94 = add nuw nsw i32 %.04073, 1
  %95 = load i32, ptr @Q, align 4, !tbaa !5
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %.lr.ph75.split, label %._crit_edge76, !llvm.loop !16
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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 #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 nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5tupleIJixEEC2IRiS2_TnNSt9enable_ifIXclsr4_TCCIXntcl14__is_alloc_argIT_EEEEE29__is_implicitly_constructibleIS4_T0_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt5tupleIJixEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EJixEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS4_(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3

; 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 #4 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!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 = !{!7, !7, i64 0}
!18 = distinct !{!18, !10}


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