; LLVM IR from themisvaltinos/Partitioned-Hash-Join :: programs/sigmod (harness)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::chrono::duration" = type { i64 }
%struct.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::basic_ifstream", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::basic_ifstream", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca [2 x i32], align 4
  %17 = alloca [2 x i32], align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [4096 x i8], align 16
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %"class.std::chrono::duration", align 8
  %26 = alloca %struct.timeval, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %struct.fd_set, align 8
  %34 = alloca %struct.fd_set, align 8
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca [4096 x i8], align 16
  %41 = alloca i32, align 4
  %42 = alloca i64, align 8
  %43 = alloca i32, align 4
  %44 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %45 = alloca i32, align 4
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca i8, align 1
  %48 = alloca %struct.timeval, align 8
  %49 = alloca double, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp ne i32 %50, 5
  br i1 %51, label %52, label %53

52:                                               ; preds = %2
  call void @_ZL5usagev()
  call void @exit(i32 noundef 1) #10
  unreachable

53:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #11
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.start.p0(i64 520, ptr %8) #11
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 2
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %8, ptr noundef %56, i32 noundef 8)
          to label %57 unwind label %69

57:                                               ; preds = %53
  %58 = load ptr, ptr %8, align 8, !tbaa !11
  %59 = getelementptr i8, ptr %58, i64 -24
  %60 = load i64, ptr %59, align 8
  %61 = getelementptr inbounds i8, ptr %8, i64 %60
  %62 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %61)
          to label %63 unwind label %73

63:                                               ; preds = %57
  br i1 %62, label %64, label %77

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %66 unwind label %73

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %68 unwind label %73

68:                                               ; preds = %66
  call void @exit(i32 noundef 1) #10
  unreachable

69:                                               ; preds = %53
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %702

73:                                               ; preds = %66, %64, %57
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %701

77:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 520, ptr %11) #11
  %78 = load ptr, ptr %5, align 8, !tbaa !9
  %79 = getelementptr inbounds ptr, ptr %78, i64 3
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %11, ptr noundef %80, i32 noundef 8)
          to label %81 unwind label %93

81:                                               ; preds = %77
  %82 = load ptr, ptr %11, align 8, !tbaa !11
  %83 = getelementptr i8, ptr %82, i64 -24
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds i8, ptr %11, i64 %84
  %86 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %85)
          to label %87 unwind label %97

87:                                               ; preds = %81
  br i1 %86, label %88, label %101

88:                                               ; preds = %87
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.1)
          to label %90 unwind label %97

90:                                               ; preds = %88
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %92 unwind label %97

92:                                               ; preds = %90
  call void @exit(i32 noundef 1) #10
  unreachable

93:                                               ; preds = %77
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %9, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %10, align 4
  br label %700

97:                                               ; preds = %90, %88, %81
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  br label %699

101:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef 100000)
          to label %102 unwind label %131

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 150)
          to label %103 unwind label %135

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  br label %104

104:                                              ; preds = %152, %103
  %105 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %106 unwind label %139

106:                                              ; preds = %104
  %107 = load ptr, ptr %105, align 8, !tbaa !11
  %108 = getelementptr i8, ptr %107, i64 -24
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds i8, ptr %105, i64 %109
  %111 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %110)
          to label %112 unwind label %139

112:                                              ; preds = %106
  br i1 %111, label %113, label %153

113:                                              ; preds = %112
  %114 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %115 unwind label %139

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %12, i8 noundef signext 10)
          to label %117 unwind label %139

117:                                              ; preds = %115
  %118 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  %119 = icmp ugt i64 %118, 0
  br i1 %119, label %120, label %147

120:                                              ; preds = %117
  %121 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef 0)
          to label %122 unwind label %139

122:                                              ; preds = %120
  %123 = load i8, ptr %121, align 1, !tbaa !13
  %124 = sext i8 %123 to i32
  %125 = icmp ne i32 %124, 70
  br i1 %125, label %126, label %147

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  %127 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %128 unwind label %143

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %130 unwind label %143

130:                                              ; preds = %128
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #11
  br label %152

131:                                              ; preds = %101
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %698

135:                                              ; preds = %102
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  br label %697

139:                                              ; preds = %149, %148, %147, %120, %115, %113, %106, %104
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  br label %696

143:                                              ; preds = %128, %126
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #11
  br label %696

147:                                              ; preds = %122, %117
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %148 unwind label %139

148:                                              ; preds = %147
  invoke void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EE9push_backERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %149 unwind label %139

149:                                              ; preds = %148
  %150 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.2)
          to label %151 unwind label %139

151:                                              ; preds = %149
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  br label %152

152:                                              ; preds = %151, %130
  br label %104, !llvm.loop !14

153:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  %154 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %155 = call i32 @pipe(ptr noundef %154) #11
  %156 = icmp eq i32 %155, -1
  br i1 %156, label %161, label %157

157:                                              ; preds = %153
  %158 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %159 = call i32 @pipe(ptr noundef %158) #11
  %160 = icmp eq i32 %159, -1
  br i1 %160, label %161, label %167

161:                                              ; preds = %157, %153
  invoke void @perror(ptr noundef @.str.3)
          to label %162 unwind label %163

162:                                              ; preds = %161
  call void @exit(i32 noundef 1) #10
  unreachable

163:                                              ; preds = %161
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %9, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %10, align 4
  br label %695

167:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  %168 = call i32 @fork() #11
  store i32 %168, ptr %18, align 4, !tbaa !5
  %169 = load i32, ptr %18, align 4, !tbaa !5
  %170 = icmp eq i32 %169, -1
  br i1 %170, label %171, label %177

171:                                              ; preds = %167
  invoke void @perror(ptr noundef @.str.4)
          to label %172 unwind label %173

172:                                              ; preds = %171
  call void @exit(i32 noundef 1) #10
  unreachable

173:                                              ; preds = %216, %212, %202, %198, %191, %187, %180, %171
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  br label %694

177:                                              ; preds = %167
  %178 = load i32, ptr %18, align 4, !tbaa !5
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %211

180:                                              ; preds = %177
  %181 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = call i32 @dup2(i32 noundef %182, i32 noundef 0) #11
  %184 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = invoke i32 @close(i32 noundef %185)
          to label %187 unwind label %173

187:                                              ; preds = %180
  %188 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = invoke i32 @close(i32 noundef %189)
          to label %191 unwind label %173

191:                                              ; preds = %187
  %192 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = call i32 @dup2(i32 noundef %193, i32 noundef 1) #11
  %195 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = invoke i32 @close(i32 noundef %196)
          to label %198 unwind label %173

198:                                              ; preds = %191
  %199 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = invoke i32 @close(i32 noundef %200)
          to label %202 unwind label %173

202:                                              ; preds = %198
  %203 = load ptr, ptr %5, align 8, !tbaa !9
  %204 = getelementptr inbounds ptr, ptr %203, i64 4
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = load ptr, ptr %5, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %206, i64 4
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @execlp(ptr noundef %205, ptr noundef %208, ptr noundef null) #11
  invoke void @perror(ptr noundef @.str.5)
          to label %210 unwind label %173

210:                                              ; preds = %202
  call void @exit(i32 noundef 1) #10
  unreachable

211:                                              ; preds = %177
  br label %212

212:                                              ; preds = %211
  %213 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %214 = load i32, ptr %213, align 4, !tbaa !5
  %215 = invoke i32 @close(i32 noundef %214)
          to label %216 unwind label %173

216:                                              ; preds = %212
  %217 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = invoke i32 @close(i32 noundef %218)
          to label %220 unwind label %173

220:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  %221 = load ptr, ptr %5, align 8, !tbaa !9
  %222 = getelementptr inbounds ptr, ptr %221, i64 1
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = invoke i32 (ptr, i32, ...) @open(ptr noundef %223, i32 noundef 0)
          to label %225 unwind label %233

225:                                              ; preds = %220
  store i32 %224, ptr %19, align 4, !tbaa !5
  %226 = load i32, ptr %19, align 4, !tbaa !5
  %227 = icmp eq i32 %226, -1
  br i1 %227, label %228, label %237

228:                                              ; preds = %225
  %229 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.6)
          to label %230 unwind label %233

230:                                              ; preds = %228
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %232 unwind label %233

232:                                              ; preds = %230
  call void @exit(i32 noundef 1) #10
  unreachable

233:                                              ; preds = %281, %230, %228, %220
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %9, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %10, align 4
  br label %693

237:                                              ; preds = %225
  br label %238

238:                                              ; preds = %279, %277, %237
  br label %239

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4096, ptr %20) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %240 = load i32, ptr %19, align 4, !tbaa !5
  %241 = getelementptr inbounds [4096 x i8], ptr %20, i64 0, i64 0
  %242 = invoke i64 @read(i32 noundef %240, ptr noundef %241, i64 noundef 4096)
          to label %243 unwind label %251

243:                                              ; preds = %239
  store i64 %242, ptr %21, align 8, !tbaa !16
  %244 = load i64, ptr %21, align 8, !tbaa !16
  %245 = icmp slt i64 %244, 0
  br i1 %245, label %246, label %257

246:                                              ; preds = %243
  %247 = call ptr @__errno_location() #12
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = icmp eq i32 %248, 4
  br i1 %249, label %250, label %255

250:                                              ; preds = %246
  store i32 4, ptr %22, align 4
  br label %277, !llvm.loop !18

251:                                              ; preds = %255, %239
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %280

255:                                              ; preds = %246
  invoke void @perror(ptr noundef @.str.7)
          to label %256 unwind label %251

256:                                              ; preds = %255
  call void @exit(i32 noundef 1) #10
  unreachable

257:                                              ; preds = %243
  %258 = load i64, ptr %21, align 8, !tbaa !16
  %259 = icmp eq i64 %258, 0
  br i1 %259, label %260, label %261

260:                                              ; preds = %257
  store i32 5, ptr %22, align 4
  br label %277

261:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #11
  %262 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %263 = load i32, ptr %262, align 4, !tbaa !5
  %264 = getelementptr inbounds [4096 x i8], ptr %20, i64 0, i64 0
  %265 = load i64, ptr %21, align 8, !tbaa !16
  %266 = invoke noundef i64 @_ZL11write_bytesiPKvm(i32 noundef %263, ptr noundef %264, i64 noundef %265)
          to label %267 unwind label %272

267:                                              ; preds = %261
  store i64 %266, ptr %23, align 8, !tbaa !16
  %268 = load i64, ptr %23, align 8, !tbaa !16
  %269 = icmp slt i64 %268, 0
  br i1 %269, label %270, label %276

270:                                              ; preds = %267
  invoke void @perror(ptr noundef @.str.8)
          to label %271 unwind label %272

271:                                              ; preds = %270
  call void @exit(i32 noundef 1) #10
  unreachable

272:                                              ; preds = %270, %261
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %9, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  br label %280

276:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  store i32 0, ptr %22, align 4
  br label %277

277:                                              ; preds = %276, %260, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4096, ptr %20) #11
  %278 = load i32, ptr %22, align 4
  switch i32 %278, label %708 [
    i32 0, label %279
    i32 4, label %238
    i32 5, label %281
  ]

279:                                              ; preds = %277
  br label %238, !llvm.loop !18

280:                                              ; preds = %272, %251
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4096, ptr %20) #11
  br label %693

281:                                              ; preds = %277
  %282 = load i32, ptr %19, align 4, !tbaa !5
  %283 = invoke i32 @close(i32 noundef %282)
          to label %284 unwind label %233

284:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  %285 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %286 = load i32, ptr %285, align 4, !tbaa !5
  %287 = invoke noundef i64 @_ZL11write_bytesiPKvm(i32 noundef %286, ptr noundef @.str.9, i64 noundef 5)
          to label %288 unwind label %293

288:                                              ; preds = %284
  store i64 %287, ptr %24, align 8, !tbaa !16
  %289 = load i64, ptr %24, align 8, !tbaa !16
  %290 = icmp slt i64 %289, 0
  br i1 %290, label %291, label %297

291:                                              ; preds = %288
  invoke void @perror(ptr noundef @.str.8)
          to label %292 unwind label %293

292:                                              ; preds = %291
  call void @exit(i32 noundef 1) #10
  unreachable

293:                                              ; preds = %319, %313, %307, %301, %291, %284
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %9, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %10, align 4
  br label %692

297:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %298 = invoke i64 @_ZNSt8literals15chrono_literalsli1sIJLc49EEEENSt6chrono8durationIlSt5ratioILl1ELl1EEEEv()
          to label %299 unwind label %309

299:                                              ; preds = %297
  %300 = getelementptr inbounds %"class.std::chrono::duration", ptr %25, i32 0, i32 0
  store i64 %298, ptr %300, align 8
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %301 unwind label %309

301:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  %302 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = invoke noundef i32 @_ZL15set_nonblockingi(i32 noundef %303)
          to label %305 unwind label %293

305:                                              ; preds = %301
  %306 = icmp eq i32 %304, -1
  br i1 %306, label %307, label %313

307:                                              ; preds = %305
  invoke void @perror(ptr noundef @.str.10)
          to label %308 unwind label %293

308:                                              ; preds = %307
  call void @exit(i32 noundef 1) #10
  unreachable

309:                                              ; preds = %299, %297
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %9, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %692

313:                                              ; preds = %305
  %314 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = invoke noundef i32 @_ZL15set_nonblockingi(i32 noundef %315)
          to label %317 unwind label %293

317:                                              ; preds = %313
  %318 = icmp eq i32 %316, -1
  br i1 %318, label %319, label %321

319:                                              ; preds = %317
  invoke void @perror(ptr noundef @.str.10)
          to label %320 unwind label %293

320:                                              ; preds = %319
  call void @exit(i32 noundef 1) #10
  unreachable

321:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #11
  %322 = call i32 @gettimeofday(ptr noundef %26, ptr noundef null) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  store i64 0, ptr %27, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  store i64 0, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  store i64 0, ptr %29, align 8, !tbaa !16
  br label %323

323:                                              ; preds = %652, %321
  %324 = load i64, ptr %29, align 8, !tbaa !16
  %325 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  %326 = icmp ne i64 %324, %325
  br i1 %326, label %327, label %330

327:                                              ; preds = %323
  %328 = load i64, ptr %28, align 8, !tbaa !16
  %329 = icmp ult i64 %328, 100
  br label %330

330:                                              ; preds = %327, %323
  %331 = phi i1 [ false, %323 ], [ %329, %327 ]
  br i1 %331, label %333, label %332

332:                                              ; preds = %330
  store i32 6, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %658

333:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32) %30, i64 noundef 1000000)
          to label %334 unwind label %364

334:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #11
  store i64 0, ptr %31, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #11
  store i64 0, ptr %32, align 8, !tbaa !16
  br label %335

335:                                              ; preds = %563, %561, %334
  %336 = load i64, ptr %31, align 8, !tbaa !16
  %337 = load i64, ptr %29, align 8, !tbaa !16
  %338 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %337) #11
  %339 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %338) #11
  %340 = icmp ne i64 %336, %339
  br i1 %340, label %347, label %341

341:                                              ; preds = %335
  %342 = load i64, ptr %32, align 8, !tbaa !16
  %343 = load i64, ptr %29, align 8, !tbaa !16
  %344 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %343) #11
  %345 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %344) #11
  %346 = icmp ult i64 %342, %345
  br label %347

347:                                              ; preds = %341, %335
  %348 = phi i1 [ true, %335 ], [ %346, %341 ]
  br i1 %348, label %349, label %565

349:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 128, ptr %33) #11
  call void @llvm.lifetime.start.p0(i64 128, ptr %34) #11
  br label %350

350:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #11
  store ptr %33, ptr %36, align 8, !tbaa !9
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %351

351:                                              ; preds = %361, %350
  %352 = load i32, ptr %35, align 4, !tbaa !5
  %353 = zext i32 %352 to i64
  %354 = icmp ult i64 %353, 16
  br i1 %354, label %355, label %368

355:                                              ; preds = %351
  %356 = load ptr, ptr %36, align 8, !tbaa !9
  %357 = getelementptr inbounds %struct.fd_set, ptr %356, i32 0, i32 0
  %358 = load i32, ptr %35, align 4, !tbaa !5
  %359 = zext i32 %358 to i64
  %360 = getelementptr inbounds [16 x i64], ptr %357, i64 0, i64 %359
  store i64 0, ptr %360, align 8, !tbaa !16
  br label %361

361:                                              ; preds = %355
  %362 = load i32, ptr %35, align 4, !tbaa !5
  %363 = add i32 %362, 1
  store i32 %363, ptr %35, align 4, !tbaa !5
  br label %351, !llvm.loop !19

364:                                              ; preds = %333
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %9, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %10, align 4
  br label %657

368:                                              ; preds = %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #11
  br label %369

369:                                              ; preds = %368
  br label %370

370:                                              ; preds = %369
  br label %371

371:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #11
  store ptr %34, ptr %38, align 8, !tbaa !9
  store i32 0, ptr %37, align 4, !tbaa !5
  br label %372

372:                                              ; preds = %382, %371
  %373 = load i32, ptr %37, align 4, !tbaa !5
  %374 = zext i32 %373 to i64
  %375 = icmp ult i64 %374, 16
  br i1 %375, label %376, label %385

376:                                              ; preds = %372
  %377 = load ptr, ptr %38, align 8, !tbaa !9
  %378 = getelementptr inbounds %struct.fd_set, ptr %377, i32 0, i32 0
  %379 = load i32, ptr %37, align 4, !tbaa !5
  %380 = zext i32 %379 to i64
  %381 = getelementptr inbounds [16 x i64], ptr %378, i64 0, i64 %380
  store i64 0, ptr %381, align 8, !tbaa !16
  br label %382

382:                                              ; preds = %376
  %383 = load i32, ptr %37, align 4, !tbaa !5
  %384 = add i32 %383, 1
  store i32 %384, ptr %37, align 4, !tbaa !5
  br label %372, !llvm.loop !20

385:                                              ; preds = %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %386

386:                                              ; preds = %385
  br label %387

387:                                              ; preds = %386
  %388 = load i64, ptr %31, align 8, !tbaa !16
  %389 = load i64, ptr %29, align 8, !tbaa !16
  %390 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %389) #11
  %391 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %390) #11
  %392 = icmp ne i64 %388, %391
  br i1 %392, label %393, label %407

393:                                              ; preds = %387
  %394 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = srem i32 %395, 64
  %397 = zext i32 %396 to i64
  %398 = shl i64 1, %397
  %399 = getelementptr inbounds %struct.fd_set, ptr %34, i32 0, i32 0
  %400 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %401 = load i32, ptr %400, align 4, !tbaa !5
  %402 = sdiv i32 %401, 64
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds [16 x i64], ptr %399, i64 0, i64 %403
  %405 = load i64, ptr %404, align 8, !tbaa !16
  %406 = or i64 %405, %398
  store i64 %406, ptr %404, align 8, !tbaa !16
  br label %407

407:                                              ; preds = %393, %387
  %408 = load i64, ptr %32, align 8, !tbaa !16
  %409 = load i64, ptr %29, align 8, !tbaa !16
  %410 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %409) #11
  %411 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %410) #11
  %412 = icmp ne i64 %408, %411
  br i1 %412, label %413, label %427

413:                                              ; preds = %407
  %414 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %415 = load i32, ptr %414, align 4, !tbaa !5
  %416 = srem i32 %415, 64
  %417 = zext i32 %416 to i64
  %418 = shl i64 1, %417
  %419 = getelementptr inbounds %struct.fd_set, ptr %33, i32 0, i32 0
  %420 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = sdiv i32 %421, 64
  %423 = sext i32 %422 to i64
  %424 = getelementptr inbounds [16 x i64], ptr %419, i64 0, i64 %423
  %425 = load i64, ptr %424, align 8, !tbaa !16
  %426 = or i64 %425, %418
  store i64 %426, ptr %424, align 8, !tbaa !16
  br label %427

427:                                              ; preds = %413, %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  %428 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %429 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %430 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %428, ptr noundef nonnull align 4 dereferenceable(4) %429)
          to label %431 unwind label %440

431:                                              ; preds = %427
  %432 = load i32, ptr %430, align 4, !tbaa !5
  %433 = add nsw i32 %432, 1
  %434 = invoke i32 @select(i32 noundef %433, ptr noundef %33, ptr noundef %34, ptr noundef null, ptr noundef null)
          to label %435 unwind label %440

435:                                              ; preds = %431
  store i32 %434, ptr %39, align 4, !tbaa !5
  %436 = load i32, ptr %39, align 4, !tbaa !5
  %437 = icmp eq i32 %436, -1
  br i1 %437, label %438, label %444

438:                                              ; preds = %435
  invoke void @perror(ptr noundef @.str.11)
          to label %439 unwind label %440

439:                                              ; preds = %438
  call void @exit(i32 noundef 1) #10
  unreachable

440:                                              ; preds = %438, %431, %427
  %441 = landingpad { ptr, i32 }
          cleanup
  %442 = extractvalue { ptr, i32 } %441, 0
  store ptr %442, ptr %9, align 8
  %443 = extractvalue { ptr, i32 } %441, 1
  store i32 %443, ptr %10, align 4
  br label %564

444:                                              ; preds = %435
  %445 = getelementptr inbounds %struct.fd_set, ptr %33, i32 0, i32 0
  %446 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = sdiv i32 %447, 64
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [16 x i64], ptr %445, i64 0, i64 %449
  %451 = load i64, ptr %450, align 8, !tbaa !16
  %452 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %453 = load i32, ptr %452, align 4, !tbaa !5
  %454 = srem i32 %453, 64
  %455 = zext i32 %454 to i64
  %456 = shl i64 1, %455
  %457 = and i64 %451, %456
  %458 = icmp ne i64 %457, 0
  br i1 %458, label %459, label %508

459:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 4096, ptr %40) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #11
  %460 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %461 = load i32, ptr %460, align 4, !tbaa !5
  %462 = getelementptr inbounds [4096 x i8], ptr %40, i64 0, i64 0
  %463 = invoke i64 @read(i32 noundef %461, ptr noundef %462, i64 noundef 4096)
          to label %464 unwind label %473

464:                                              ; preds = %459
  %465 = trunc i64 %463 to i32
  store i32 %465, ptr %41, align 4, !tbaa !5
  %466 = load i32, ptr %41, align 4, !tbaa !5
  %467 = icmp slt i32 %466, 0
  br i1 %467, label %468, label %479

468:                                              ; preds = %464
  %469 = call ptr @__errno_location() #12
  %470 = load i32, ptr %469, align 4, !tbaa !5
  %471 = icmp eq i32 %470, 4
  br i1 %471, label %472, label %477

472:                                              ; preds = %468
  store i32 9, ptr %22, align 4
  br label %505, !llvm.loop !21

473:                                              ; preds = %499, %477, %459
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %9, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 4096, ptr %40) #11
  br label %564

477:                                              ; preds = %468
  invoke void @perror(ptr noundef @.str.7)
          to label %478 unwind label %473

478:                                              ; preds = %477
  call void @exit(i32 noundef 1) #10
  unreachable

479:                                              ; preds = %464
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  store i64 0, ptr %42, align 8, !tbaa !16
  br label %480

480:                                              ; preds = %496, %479
  %481 = load i64, ptr %42, align 8, !tbaa !16
  %482 = load i32, ptr %41, align 4, !tbaa !5
  %483 = sext i32 %482 to i64
  %484 = icmp ne i64 %481, %483
  br i1 %484, label %486, label %485

485:                                              ; preds = %480
  store i32 21, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %499

486:                                              ; preds = %480
  %487 = load i64, ptr %42, align 8, !tbaa !16
  %488 = getelementptr inbounds [4096 x i8], ptr %40, i64 0, i64 %487
  %489 = load i8, ptr %488, align 1, !tbaa !13
  %490 = sext i8 %489 to i32
  %491 = icmp eq i32 %490, 10
  br i1 %491, label %492, label %495

492:                                              ; preds = %486
  %493 = load i64, ptr %32, align 8, !tbaa !16
  %494 = add i64 %493, 1
  store i64 %494, ptr %32, align 8, !tbaa !16
  br label %495

495:                                              ; preds = %492, %486
  br label %496

496:                                              ; preds = %495
  %497 = load i64, ptr %42, align 8, !tbaa !16
  %498 = add i64 %497, 1
  store i64 %498, ptr %42, align 8, !tbaa !16
  br label %480, !llvm.loop !22

499:                                              ; preds = %485
  %500 = getelementptr inbounds [4096 x i8], ptr %40, i64 0, i64 0
  %501 = load i32, ptr %41, align 4, !tbaa !5
  %502 = sext i32 %501 to i64
  %503 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef %500, i64 noundef %502)
          to label %504 unwind label %473

504:                                              ; preds = %499
  store i32 0, ptr %22, align 4
  br label %505

505:                                              ; preds = %504, %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 4096, ptr %40) #11
  %506 = load i32, ptr %22, align 4
  switch i32 %506, label %561 [
    i32 0, label %507
  ]

507:                                              ; preds = %505
  br label %508

508:                                              ; preds = %507, %444
  %509 = getelementptr inbounds %struct.fd_set, ptr %34, i32 0, i32 0
  %510 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %511 = load i32, ptr %510, align 4, !tbaa !5
  %512 = sdiv i32 %511, 64
  %513 = sext i32 %512 to i64
  %514 = getelementptr inbounds [16 x i64], ptr %509, i64 0, i64 %513
  %515 = load i64, ptr %514, align 8, !tbaa !16
  %516 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %517 = load i32, ptr %516, align 4, !tbaa !5
  %518 = srem i32 %517, 64
  %519 = zext i32 %518 to i64
  %520 = shl i64 1, %519
  %521 = and i64 %515, %520
  %522 = icmp ne i64 %521, 0
  br i1 %522, label %523, label %560

523:                                              ; preds = %508
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  %524 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %525 = load i32, ptr %524, align 4, !tbaa !5
  %526 = load i64, ptr %29, align 8, !tbaa !16
  %527 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %526) #11
  %528 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %527) #11
  %529 = load i64, ptr %31, align 8, !tbaa !16
  %530 = getelementptr inbounds i8, ptr %528, i64 %529
  %531 = load i64, ptr %29, align 8, !tbaa !16
  %532 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %531) #11
  %533 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %532) #11
  %534 = load i64, ptr %31, align 8, !tbaa !16
  %535 = sub i64 %533, %534
  %536 = invoke i64 @write(i32 noundef %525, ptr noundef %530, i64 noundef %535)
          to label %537 unwind label %546

537:                                              ; preds = %523
  %538 = trunc i64 %536 to i32
  store i32 %538, ptr %43, align 4, !tbaa !5
  %539 = load i32, ptr %43, align 4, !tbaa !5
  %540 = icmp slt i32 %539, 0
  br i1 %540, label %541, label %552

541:                                              ; preds = %537
  %542 = call ptr @__errno_location() #12
  %543 = load i32, ptr %542, align 4, !tbaa !5
  %544 = icmp eq i32 %543, 4
  br i1 %544, label %545, label %550

545:                                              ; preds = %541
  store i32 9, ptr %22, align 4
  br label %557, !llvm.loop !21

546:                                              ; preds = %550, %523
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %9, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %564

550:                                              ; preds = %541
  invoke void @perror(ptr noundef @.str.8)
          to label %551 unwind label %546

551:                                              ; preds = %550
  call void @exit(i32 noundef 1) #10
  unreachable

552:                                              ; preds = %537
  %553 = load i32, ptr %43, align 4, !tbaa !5
  %554 = sext i32 %553 to i64
  %555 = load i64, ptr %31, align 8, !tbaa !16
  %556 = add i64 %555, %554
  store i64 %556, ptr %31, align 8, !tbaa !16
  store i32 0, ptr %22, align 4
  br label %557

557:                                              ; preds = %552, %545
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  %558 = load i32, ptr %22, align 4
  switch i32 %558, label %561 [
    i32 0, label %559
  ]

559:                                              ; preds = %557
  br label %560

560:                                              ; preds = %559, %508
  store i32 0, ptr %22, align 4
  br label %561

561:                                              ; preds = %560, %557, %505
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %33) #11
  %562 = load i32, ptr %22, align 4
  switch i32 %562, label %708 [
    i32 0, label %563
    i32 9, label %335
  ]

563:                                              ; preds = %561
  br label %335, !llvm.loop !21

564:                                              ; preds = %546, %473, %440
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %34) #11
  call void @llvm.lifetime.end.p0(i64 128, ptr %33) #11
  br label %656

565:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 392, ptr %44) #11
  %566 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 8)
          to label %567 unwind label %582

567:                                              ; preds = %565
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(128) %44, ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef %566)
          to label %568 unwind label %582

568:                                              ; preds = %567
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #11
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %569

569:                                              ; preds = %647, %568
  %570 = load i32, ptr %45, align 4, !tbaa !5
  %571 = zext i32 %570 to i64
  %572 = load i64, ptr %29, align 8, !tbaa !16
  %573 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %572) #11
  %574 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %573) #11
  %575 = icmp ne i64 %571, %574
  br i1 %575, label %576, label %579

576:                                              ; preds = %569
  %577 = load i64, ptr %28, align 8, !tbaa !16
  %578 = icmp ult i64 %577, 100
  br label %579

579:                                              ; preds = %576, %569
  %580 = phi i1 [ false, %569 ], [ %578, %576 ]
  br i1 %580, label %586, label %581

581:                                              ; preds = %579
  store i32 24, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  br label %651

582:                                              ; preds = %567, %565
  %583 = landingpad { ptr, i32 }
          cleanup
  %584 = extractvalue { ptr, i32 } %583, 0
  store ptr %584, ptr %9, align 8
  %585 = extractvalue { ptr, i32 } %583, 1
  store i32 %585, ptr %10, align 4
  br label %655

586:                                              ; preds = %579
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #11
  %587 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %588 unwind label %603

588:                                              ; preds = %586
  %589 = load ptr, ptr %44, align 8, !tbaa !11
  %590 = getelementptr i8, ptr %589, i64 -24
  %591 = load i64, ptr %590, align 8
  %592 = getelementptr inbounds i8, ptr %44, i64 %591
  %593 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %592)
          to label %594 unwind label %603

594:                                              ; preds = %588
  br i1 %593, label %595, label %607

595:                                              ; preds = %594
  %596 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.12)
          to label %597 unwind label %603

597:                                              ; preds = %595
  %598 = load i64, ptr %29, align 8, !tbaa !16
  %599 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %596, i64 noundef %598)
          to label %600 unwind label %603

600:                                              ; preds = %597
  %601 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %599, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %602 unwind label %603

602:                                              ; preds = %600
  call void @exit(i32 noundef 1) #10
  unreachable

603:                                              ; preds = %600, %597, %595, %588, %586
  %604 = landingpad { ptr, i32 }
          cleanup
  %605 = extractvalue { ptr, i32 } %604, 0
  store ptr %605, ptr %9, align 8
  %606 = extractvalue { ptr, i32 } %604, 1
  store i32 %606, ptr %10, align 4
  br label %650

607:                                              ; preds = %594
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #11
  %608 = load i64, ptr %29, align 8, !tbaa !16
  %609 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %608) #11
  %610 = load i32, ptr %45, align 4, !tbaa !5
  %611 = zext i32 %610 to i64
  %612 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %609, i64 noundef %611) #11
  %613 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %612) #11
  %614 = zext i1 %613 to i8
  store i8 %614, ptr %47, align 1, !tbaa !23
  %615 = load i8, ptr %47, align 1, !tbaa !23, !range !25, !noundef !26
  %616 = trunc i8 %615 to i1
  br i1 %616, label %644, label %617

617:                                              ; preds = %607
  %618 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.13)
          to label %619 unwind label %640

619:                                              ; preds = %617
  %620 = load i64, ptr %27, align 8, !tbaa !16
  %621 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %618, i64 noundef %620)
          to label %622 unwind label %640

622:                                              ; preds = %619
  %623 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %621, ptr noundef @.str.14)
          to label %624 unwind label %640

624:                                              ; preds = %622
  %625 = load i64, ptr %29, align 8, !tbaa !16
  %626 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %625) #11
  %627 = load i32, ptr %45, align 4, !tbaa !5
  %628 = zext i32 %627 to i64
  %629 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %626, i64 noundef %628) #11
  %630 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %623, ptr noundef nonnull align 8 dereferenceable(32) %629)
          to label %631 unwind label %640

631:                                              ; preds = %624
  %632 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %630, ptr noundef @.str.15)
          to label %633 unwind label %640

633:                                              ; preds = %631
  %634 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %632, ptr noundef nonnull align 8 dereferenceable(32) %46)
          to label %635 unwind label %640

635:                                              ; preds = %633
  %636 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %634, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %637 unwind label %640

637:                                              ; preds = %635
  %638 = load i64, ptr %28, align 8, !tbaa !16
  %639 = add i64 %638, 1
  store i64 %639, ptr %28, align 8, !tbaa !16
  br label %644

640:                                              ; preds = %635, %633, %631, %624, %622, %619, %617
  %641 = landingpad { ptr, i32 }
          cleanup
  %642 = extractvalue { ptr, i32 } %641, 0
  store ptr %642, ptr %9, align 8
  %643 = extractvalue { ptr, i32 } %641, 1
  store i32 %643, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #11
  br label %650

644:                                              ; preds = %637, %607
  %645 = load i64, ptr %27, align 8, !tbaa !16
  %646 = add i64 %645, 1
  store i64 %646, ptr %27, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #11
  br label %647

647:                                              ; preds = %644
  %648 = load i32, ptr %45, align 4, !tbaa !5
  %649 = add i32 %648, 1
  store i32 %649, ptr %45, align 4, !tbaa !5
  br label %569, !llvm.loop !27

650:                                              ; preds = %640, %603
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %44) #11
  br label %655

651:                                              ; preds = %581
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %44) #11
  call void @llvm.lifetime.end.p0(i64 392, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #11
  br label %652

652:                                              ; preds = %651
  %653 = load i64, ptr %29, align 8, !tbaa !16
  %654 = add i64 %653, 1
  store i64 %654, ptr %29, align 8, !tbaa !16
  br label %323, !llvm.loop !28

655:                                              ; preds = %650, %582
  call void @llvm.lifetime.end.p0(i64 392, ptr %44) #11
  br label %656

656:                                              ; preds = %655, %564
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  br label %657

657:                                              ; preds = %656, %364
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  br label %691

658:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #11
  %659 = call i32 @gettimeofday(ptr noundef %48, ptr noundef null) #11
  %660 = load i64, ptr %28, align 8, !tbaa !16
  %661 = icmp eq i64 %660, 0
  br i1 %661, label %662, label %688

662:                                              ; preds = %658
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #11
  %663 = getelementptr inbounds %struct.timeval, ptr %48, i32 0, i32 0
  %664 = load i64, ptr %663, align 8, !tbaa !29
  %665 = getelementptr inbounds %struct.timeval, ptr %26, i32 0, i32 0
  %666 = load i64, ptr %665, align 8, !tbaa !29
  %667 = sub nsw i64 %664, %666
  %668 = sitofp i64 %667 to double
  %669 = getelementptr inbounds %struct.timeval, ptr %48, i32 0, i32 1
  %670 = load i64, ptr %669, align 8, !tbaa !31
  %671 = getelementptr inbounds %struct.timeval, ptr %26, i32 0, i32 1
  %672 = load i64, ptr %671, align 8, !tbaa !31
  %673 = sub nsw i64 %670, %672
  %674 = sitofp i64 %673 to double
  %675 = fdiv double %674, 1.000000e+06
  %676 = fadd double %668, %675
  store double %676, ptr %49, align 8, !tbaa !32
  %677 = load double, ptr %49, align 8, !tbaa !32
  %678 = fmul double %677, 1.000000e+03
  %679 = fptosi double %678 to i64
  %680 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %679)
          to label %681 unwind label %684

681:                                              ; preds = %662
  %682 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %680, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %683 unwind label %684

683:                                              ; preds = %681
  store i32 0, ptr %3, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  br label %689

684:                                              ; preds = %681, %662
  %685 = landingpad { ptr, i32 }
          cleanup
  %686 = extractvalue { ptr, i32 } %685, 0
  store ptr %686, ptr %9, align 8
  %687 = extractvalue { ptr, i32 } %685, 1
  store i32 %687, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #11
  br label %691

688:                                              ; preds = %658
  store i32 1, ptr %3, align 4
  store i32 1, ptr %22, align 4
  br label %689

689:                                              ; preds = %688, %683
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #11
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #11
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #11
  call void @llvm.lifetime.end.p0(i64 520, ptr %8) #11
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #11
  %690 = load i32, ptr %3, align 4
  ret i32 %690

691:                                              ; preds = %684, %657
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #11
  br label %692

692:                                              ; preds = %691, %309, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  br label %693

693:                                              ; preds = %692, %280, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  br label %694

694:                                              ; preds = %693, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  br label %695

695:                                              ; preds = %694, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %696

696:                                              ; preds = %695, %143, %139
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #11
  br label %697

697:                                              ; preds = %696, %135
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #11
  br label %698

698:                                              ; preds = %697, %131
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #11
  br label %699

699:                                              ; preds = %698, %97
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #11
  br label %700

700:                                              ; preds = %699, %93
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #11
  br label %701

701:                                              ; preds = %700, %73
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %8) #11
  br label %702

702:                                              ; preds = %701, %69
  call void @llvm.lifetime.end.p0(i64 520, ptr %8) #11
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #11
  br label %703

703:                                              ; preds = %702
  %704 = load ptr, ptr %9, align 8
  %705 = load i32, ptr %10, align 4
  %706 = insertvalue { ptr, i32 } poison, ptr %704, 0
  %707 = insertvalue { ptr, i32 } %706, i32 %705, 1
  resume { ptr, i32 } %707

708:                                              ; preds = %561, %277
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL5usagev() #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

; 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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 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) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) #7

declare void @perror(ptr noundef) #6

; Function Attrs: nounwind
declare i32 @fork() #7

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) #7

declare i32 @close(i32 noundef) #6

; Function Attrs: nounwind
declare i32 @execlp(ptr noundef, ptr noundef, ...) #7

declare i32 @open(ptr noundef, i32 noundef, ...) #6

declare i64 @read(i32 noundef, ptr noundef, i64 noundef) #6

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #8

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZL11write_bytesiPKvm(i32 noundef, ptr noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli1sIJLc49EEEENSt6chrono8durationIlSt5ratioILl1ELl1EEEEv() #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15set_nonblockingi(i32 noundef) #1

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #7

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

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

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

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

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

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

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #9

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

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

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

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


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::__cxx11::basic_string<char>>, std::allocator<std::vector<std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::chrono::duration" = type { i64 }
%struct.timeval = type { i64, i64 }
%struct.fd_set = type { [16 x i64] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::basic_ifstream", align 8
  %6 = alloca %"class.std::basic_ifstream", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca [2 x i32], align 4
  %12 = alloca [2 x i32], align 4
  %13 = alloca [4096 x i8], align 16
  %14 = alloca %"class.std::chrono::duration", align 8
  %15 = alloca %struct.timeval, align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %struct.fd_set, align 8
  %18 = alloca %struct.fd_set, align 8
  %19 = alloca [4096 x i8], align 16
  %20 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %struct.timeval, align 8
  %.not = icmp eq i32 %0, 5
  br i1 %.not, label %24, label %23

23:                                               ; preds = %2
  tail call void @_ZL5usagev()
  tail call void @exit(i32 noundef 1) #14
  unreachable

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #15
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #15
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #15
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %5) #15
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef %26, i32 noundef 8)
          to label %27 unwind label %39

27:                                               ; preds = %24
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %5, i64 %30
  %32 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %31)
          to label %33 unwind label %41

33:                                               ; preds = %27
  br i1 %32, label %34, label %43

34:                                               ; preds = %33
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %36 unwind label %41

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %38 unwind label %41

38:                                               ; preds = %36
  call void @exit(i32 noundef 1) #14
  unreachable

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %422

41:                                               ; preds = %36, %34, %27
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %421

43:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %6) #15
  %44 = getelementptr inbounds i8, ptr %1, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %45, i32 noundef 8)
          to label %46 unwind label %58

46:                                               ; preds = %43
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = getelementptr i8, ptr %47, i64 -24
  %49 = load i64, ptr %48, align 8
  %50 = getelementptr inbounds i8, ptr %6, i64 %49
  %51 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %50)
          to label %52 unwind label %60

52:                                               ; preds = %46
  br i1 %51, label %53, label %62

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.1)
          to label %55 unwind label %60

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %57 unwind label %60

57:                                               ; preds = %55
  call void @exit(i32 noundef 1) #14
  unreachable

58:                                               ; preds = %43
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %420

60:                                               ; preds = %55, %53, %46
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %419

62:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #15
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef 100000)
          to label %63 unwind label %88

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #15
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #15
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 150)
          to label %64 unwind label %90

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #15
  br label %65

65:                                               ; preds = %.backedge, %64
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %9)
          to label %67 unwind label %92

67:                                               ; preds = %65
  %68 = load ptr, ptr %66, align 8, !tbaa !9
  %69 = getelementptr i8, ptr %68, i64 -24
  %70 = load i64, ptr %69, align 8
  %71 = getelementptr inbounds i8, ptr %66, i64 %70
  %72 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %71)
          to label %73 unwind label %92

73:                                               ; preds = %67
  br i1 %72, label %74, label %101

74:                                               ; preds = %73
  %75 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %76 unwind label %92

76:                                               ; preds = %74
  %77 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %7, i8 noundef signext 10)
          to label %78 unwind label %92

78:                                               ; preds = %76
  %79 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #15
  %.not142 = icmp eq i64 %79, 0
  br i1 %.not142, label %96, label %80

80:                                               ; preds = %78
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef 0)
  %82 = load i8, ptr %81, align 1, !tbaa !11
  %.not143 = icmp eq i8 %82, 70
  br i1 %.not143, label %96, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #15
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %85 unwind label %94

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %87 unwind label %94

87:                                               ; preds = %85
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #15
  br label %.backedge

88:                                               ; preds = %62
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %418

90:                                               ; preds = %63
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %417

92:                                               ; preds = %98, %97, %96, %76, %74, %67, %65
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %416

94:                                               ; preds = %85, %83
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #15
  br label %416

96:                                               ; preds = %80, %78
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %97 unwind label %92

97:                                               ; preds = %96
  invoke void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EE9push_backERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %98 unwind label %92

98:                                               ; preds = %97
  %99 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.2)
          to label %100 unwind label %92

100:                                              ; preds = %98
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #15
  br label %.backedge

.backedge:                                        ; preds = %100, %87
  br label %65, !llvm.loop !12

101:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #15
  %102 = call i32 @pipe(ptr noundef nonnull %11) #15
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %107, label %104

104:                                              ; preds = %101
  %105 = call i32 @pipe(ptr noundef nonnull %12) #15
  %106 = icmp eq i32 %105, -1
  br i1 %106, label %107, label %108

107:                                              ; preds = %104, %101
  call void @perror(ptr noundef nonnull @.str.3) #16
  call void @exit(i32 noundef 1) #14
  unreachable

108:                                              ; preds = %104
  %109 = call i32 @fork() #15
  switch i32 %109, label %135 [
    i32 -1, label %110
    i32 0, label %113
  ]

110:                                              ; preds = %108
  call void @perror(ptr noundef nonnull @.str.4) #16
  call void @exit(i32 noundef 1) #14
  unreachable

111:                                              ; preds = %138, %135, %128, %122, %118, %113
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %415

113:                                              ; preds = %108
  %114 = load i32, ptr %11, align 4, !tbaa !14
  %115 = call i32 @dup2(i32 noundef %114, i32 noundef 0) #15
  %116 = load i32, ptr %11, align 4, !tbaa !14
  %117 = invoke i32 @close(i32 noundef %116)
          to label %118 unwind label %111

118:                                              ; preds = %113
  %119 = getelementptr inbounds i8, ptr %11, i64 4
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = invoke i32 @close(i32 noundef %120)
          to label %122 unwind label %111

122:                                              ; preds = %118
  %123 = getelementptr inbounds i8, ptr %12, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !14
  %125 = call i32 @dup2(i32 noundef %124, i32 noundef 1) #15
  %126 = load i32, ptr %12, align 4, !tbaa !14
  %127 = invoke i32 @close(i32 noundef %126)
          to label %128 unwind label %111

128:                                              ; preds = %122
  %129 = load i32, ptr %123, align 4, !tbaa !14
  %130 = invoke i32 @close(i32 noundef %129)
          to label %131 unwind label %111

131:                                              ; preds = %128
  %132 = getelementptr inbounds i8, ptr %1, i64 32
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @execlp(ptr noundef %133, ptr noundef %133, ptr noundef null) #15
  call void @perror(ptr noundef nonnull @.str.5) #16
  call void @exit(i32 noundef 1) #14
  unreachable

135:                                              ; preds = %108
  %136 = load i32, ptr %11, align 4, !tbaa !14
  %137 = invoke i32 @close(i32 noundef %136)
          to label %138 unwind label %111

138:                                              ; preds = %135
  %139 = getelementptr inbounds i8, ptr %12, i64 4
  %140 = load i32, ptr %139, align 4, !tbaa !14
  %141 = invoke i32 @close(i32 noundef %140)
          to label %142 unwind label %111

142:                                              ; preds = %138
  %143 = getelementptr inbounds i8, ptr %1, i64 8
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = invoke i32 (ptr, i32, ...) @open(ptr noundef %144, i32 noundef 0)
          to label %146 unwind label %154

146:                                              ; preds = %142
  %147 = icmp eq i32 %145, -1
  br i1 %147, label %149, label %.preheader162

.preheader162:                                    ; preds = %146
  %148 = getelementptr inbounds i8, ptr %11, i64 4
  br label %156

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.6)
          to label %151 unwind label %154

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %153 unwind label %154

153:                                              ; preds = %151
  call void @exit(i32 noundef 1) #14
  unreachable

154:                                              ; preds = %179, %151, %149, %142
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %415

156:                                              ; preds = %.preheader162, %177
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %13) #15
  %157 = invoke i64 @read(i32 noundef %145, ptr noundef nonnull %13, i64 noundef 4096)
          to label %158 unwind label %164

158:                                              ; preds = %156
  %159 = icmp slt i64 %157, 0
  br i1 %159, label %160, label %167

160:                                              ; preds = %158
  %161 = tail call ptr @__errno_location() #17
  %162 = load i32, ptr %161, align 4, !tbaa !14
  %163 = icmp eq i32 %162, 4
  br i1 %163, label %177, label %166, !llvm.loop !16

164:                                              ; preds = %156
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %178

166:                                              ; preds = %160
  call void @perror(ptr noundef nonnull @.str.7) #16
  call void @exit(i32 noundef 1) #14
  unreachable

167:                                              ; preds = %158
  %168 = icmp eq i64 %157, 0
  br i1 %168, label %179, label %169

169:                                              ; preds = %167
  %170 = load i32, ptr %148, align 4, !tbaa !14
  %171 = invoke noundef i64 @_ZL11write_bytesiPKvm(i32 noundef %170, ptr noundef nonnull %13, i64 noundef %157)
          to label %172 unwind label %175

172:                                              ; preds = %169
  %173 = icmp slt i64 %171, 0
  br i1 %173, label %174, label %177

174:                                              ; preds = %172
  call void @perror(ptr noundef nonnull @.str.8) #16
  call void @exit(i32 noundef 1) #14
  unreachable

175:                                              ; preds = %169
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %178

177:                                              ; preds = %172, %160
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %13) #15
  br label %156

178:                                              ; preds = %175, %164
  %.pn = phi { ptr, i32 } [ %176, %175 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %13) #15
  br label %415

179:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %13) #15
  %180 = invoke i32 @close(i32 noundef %145)
          to label %181 unwind label %154

181:                                              ; preds = %179
  %182 = load i32, ptr %148, align 4, !tbaa !14
  %183 = invoke noundef i64 @_ZL11write_bytesiPKvm(i32 noundef %182, ptr noundef nonnull @.str.9, i64 noundef 5)
          to label %184 unwind label %187

184:                                              ; preds = %181
  %185 = icmp slt i64 %183, 0
  br i1 %185, label %186, label %189

186:                                              ; preds = %184
  call void @perror(ptr noundef nonnull @.str.8) #16
  call void @exit(i32 noundef 1) #14
  unreachable

187:                                              ; preds = %200, %192, %181
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %415

189:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #15
  %190 = invoke i64 @_ZNSt8literals15chrono_literalsli1sIJLc49EEEENSt6chrono8durationIlSt5ratioILl1ELl1EEEEv()
          to label %191 unwind label %198

191:                                              ; preds = %189
  store i64 %190, ptr %14, align 8
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %192 unwind label %198

192:                                              ; preds = %191
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #15
  %193 = load i32, ptr %12, align 4, !tbaa !14
  %194 = invoke noundef i32 @_ZL15set_nonblockingi(i32 noundef %193)
          to label %195 unwind label %187

195:                                              ; preds = %192
  %196 = icmp eq i32 %194, -1
  br i1 %196, label %197, label %200

197:                                              ; preds = %195
  call void @perror(ptr noundef nonnull @.str.10) #16
  call void @exit(i32 noundef 1) #14
  unreachable

198:                                              ; preds = %191, %189
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #15
  br label %415

200:                                              ; preds = %195
  %201 = load i32, ptr %148, align 4, !tbaa !14
  %202 = invoke noundef i32 @_ZL15set_nonblockingi(i32 noundef %201)
          to label %203 unwind label %187

203:                                              ; preds = %200
  %204 = icmp eq i32 %202, -1
  br i1 %204, label %205, label %206

205:                                              ; preds = %203
  call void @perror(ptr noundef nonnull @.str.10) #16
  call void @exit(i32 noundef 1) #14
  unreachable

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #15
  %207 = call i32 @gettimeofday(ptr noundef nonnull %15, ptr noundef null) #15
  %208 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #15
  %.not211 = icmp eq i64 %208, 0
  br i1 %.not211, label %._crit_edge209.thread, label %.lr.ph208

._crit_edge209.thread:                            ; preds = %206
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #15
  %209 = call i32 @gettimeofday(ptr noundef nonnull %22, ptr noundef null) #15
  br label %393

._crit_edge209:                                   ; preds = %._crit_edge201
  %210 = icmp eq i64 %.197.lcssa, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #15
  %211 = call i32 @gettimeofday(ptr noundef nonnull %22, ptr noundef null) #15
  br i1 %210, label %393, label %413

.lr.ph208:                                        ; preds = %206, %._crit_edge201
  %.094206 = phi i64 [ %.195.lcssa, %._crit_edge201 ], [ 0, %206 ]
  %.096205 = phi i64 [ %.197.lcssa, %._crit_edge201 ], [ 0, %206 ]
  %.0100204 = phi i64 [ %334, %._crit_edge201 ], [ 0, %206 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #15
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32) %16, i64 noundef 1000000)
          to label %.preheader161 unwind label %220

.preheader161:                                    ; preds = %.lr.ph208, %325
  %.0108 = phi i64 [ %.3111, %325 ], [ 0, %.lr.ph208 ]
  %.0102 = phi i64 [ %.5107, %325 ], [ 0, %.lr.ph208 ]
  %212 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0100204) #15
  %213 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %212) #15
  %.not121 = icmp eq i64 %.0108, %213
  br i1 %.not121, label %214, label %.critedge

214:                                              ; preds = %.preheader161
  %215 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %216 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #15
  %217 = icmp ult i64 %.0102, %216
  br i1 %217, label %.critedge, label %327

.critedge:                                        ; preds = %.preheader161, %214
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %17) #15
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %18) #15
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %17, i8 0, i64 128, i1 false), !tbaa !17
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %18, i8 0, i64 128, i1 false), !tbaa !17
  %218 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0100204) #15
  %219 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %218) #15
  %.not125 = icmp eq i64 %.0108, %219
  br i1 %.not125, label %232, label %222

220:                                              ; preds = %.lr.ph208
  %221 = landingpad { ptr, i32 }
          cleanup
  br label %392

222:                                              ; preds = %.critedge
  %223 = load i32, ptr %148, align 4, !tbaa !14
  %224 = srem i32 %223, 64
  %225 = zext nneg i32 %224 to i64
  %226 = shl nuw i64 1, %225
  %227 = sdiv i32 %223, 64
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [16 x i64], ptr %18, i64 0, i64 %228
  %230 = load i64, ptr %229, align 8, !tbaa !17
  %231 = or i64 %226, %230
  store i64 %231, ptr %229, align 8, !tbaa !17
  br label %232

232:                                              ; preds = %222, %.critedge
  %233 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %234 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %233) #15
  %.not126 = icmp eq i64 %.0102, %234
  br i1 %.not126, label %245, label %235

235:                                              ; preds = %232
  %236 = load i32, ptr %12, align 4, !tbaa !14
  %237 = srem i32 %236, 64
  %238 = zext nneg i32 %237 to i64
  %239 = shl nuw i64 1, %238
  %240 = sdiv i32 %236, 64
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [16 x i64], ptr %17, i64 0, i64 %241
  %243 = load i64, ptr %242, align 8, !tbaa !17
  %244 = or i64 %239, %243
  store i64 %244, ptr %242, align 8, !tbaa !17
  br label %245

245:                                              ; preds = %235, %232
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %148, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %247 = load i32, ptr %246, align 4, !tbaa !14
  %248 = add nsw i32 %247, 1
  %249 = invoke i32 @select(i32 noundef %248, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef null, ptr noundef null)
          to label %250 unwind label %253

250:                                              ; preds = %245
  %251 = icmp eq i32 %249, -1
  br i1 %251, label %252, label %255

252:                                              ; preds = %250
  call void @perror(ptr noundef nonnull @.str.11) #16
  call void @exit(i32 noundef 1) #14
  unreachable

253:                                              ; preds = %245
  %254 = landingpad { ptr, i32 }
          cleanup
  br label %326

255:                                              ; preds = %250
  %256 = load i32, ptr %12, align 4, !tbaa !14
  %257 = sdiv i32 %256, 64
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [16 x i64], ptr %17, i64 0, i64 %258
  %260 = load i64, ptr %259, align 8, !tbaa !17
  %261 = srem i32 %256, 64
  %262 = zext nneg i32 %261 to i64
  %263 = shl nuw i64 1, %262
  %264 = and i64 %263, %260
  %.not127 = icmp eq i64 %264, 0
  br i1 %.not127, label %295, label %265

265:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %19) #15
  %266 = invoke i64 @read(i32 noundef %256, ptr noundef nonnull %19, i64 noundef 4096)
          to label %267 unwind label %285

267:                                              ; preds = %265
  %268 = and i64 %266, 2147483648
  %.not128 = icmp eq i64 %268, 0
  br i1 %.not128, label %.preheader, label %281

.preheader:                                       ; preds = %267
  %269 = and i64 %266, 2147483647
  %.not129193 = icmp eq i64 %269, 0
  br i1 %.not129193, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %min.iters.check = icmp ult i64 %269, 4
  br i1 %min.iters.check, label %.lr.ph.preheader250, label %vector.ph

.lr.ph.preheader250:                              ; preds = %middle.block, %.lr.ph.preheader
  %.090195.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.1103194.ph = phi i64 [ %.0102, %.lr.ph.preheader ], [ %280, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.mod.vf = and i64 %266, 3
  %n.vec = sub nsw i64 %269, %n.mod.vf
  %270 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.0102, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %270, %vector.ph ], [ %277, %vector.body ]
  %vec.phi248 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %278, %vector.body ]
  %271 = getelementptr inbounds [4096 x i8], ptr %19, i64 0, i64 %index
  %272 = getelementptr inbounds i8, ptr %271, i64 2
  %wide.load = load <2 x i8>, ptr %271, align 4, !tbaa !11
  %wide.load249 = load <2 x i8>, ptr %272, align 2, !tbaa !11
  %273 = icmp eq <2 x i8> %wide.load, <i8 10, i8 10>
  %274 = icmp eq <2 x i8> %wide.load249, <i8 10, i8 10>
  %275 = zext <2 x i1> %273 to <2 x i64>
  %276 = zext <2 x i1> %274 to <2 x i64>
  %277 = add <2 x i64> %vec.phi, %275
  %278 = add <2 x i64> %vec.phi248, %276
  %index.next = add nuw i64 %index, 4
  %279 = icmp eq i64 %index.next, %n.vec
  br i1 %279, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %278, %277
  %280 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader250

281:                                              ; preds = %267
  %282 = tail call ptr @__errno_location() #17
  %283 = load i32, ptr %282, align 4, !tbaa !14
  %284 = icmp eq i32 %283, 4
  br i1 %284, label %.thread157, label %287, !llvm.loop !22

.thread157:                                       ; preds = %281
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %19) #15
  br label %325

285:                                              ; preds = %._crit_edge, %265
  %286 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %19) #15
  br label %326

287:                                              ; preds = %281
  call void @perror(ptr noundef nonnull @.str.7) #16
  call void @exit(i32 noundef 1) #14
  unreachable

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.preheader
  %.1103.lcssa = phi i64 [ %.0102, %.preheader ], [ %280, %middle.block ], [ %spec.select, %.lr.ph ]
  %288 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull %19, i64 noundef %269)
          to label %294 unwind label %285

.lr.ph:                                           ; preds = %.lr.ph.preheader250, %.lr.ph
  %.090195 = phi i64 [ %293, %.lr.ph ], [ %.090195.ph, %.lr.ph.preheader250 ]
  %.1103194 = phi i64 [ %spec.select, %.lr.ph ], [ %.1103194.ph, %.lr.ph.preheader250 ]
  %289 = getelementptr inbounds [4096 x i8], ptr %19, i64 0, i64 %.090195
  %290 = load i8, ptr %289, align 1, !tbaa !11
  %291 = icmp eq i8 %290, 10
  %292 = zext i1 %291 to i64
  %spec.select = add i64 %.1103194, %292
  %293 = add nuw nsw i64 %.090195, 1
  %.not129 = icmp eq i64 %293, %269
  br i1 %.not129, label %._crit_edge, label %.lr.ph, !llvm.loop !23

294:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %19) #15
  br label %295

295:                                              ; preds = %294, %255
  %.4106 = phi i64 [ %.1103.lcssa, %294 ], [ %.0102, %255 ]
  %296 = load i32, ptr %148, align 4, !tbaa !14
  %297 = sdiv i32 %296, 64
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [16 x i64], ptr %18, i64 0, i64 %298
  %300 = load i64, ptr %299, align 8, !tbaa !17
  %301 = srem i32 %296, 64
  %302 = zext nneg i32 %301 to i64
  %303 = shl nuw i64 1, %302
  %304 = and i64 %303, %300
  %.not130 = icmp eq i64 %304, 0
  br i1 %.not130, label %325, label %305

305:                                              ; preds = %295
  %306 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0100204) #15
  %307 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %306) #15
  %308 = getelementptr inbounds i8, ptr %307, i64 %.0108
  %309 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0100204) #15
  %310 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %309) #15
  %311 = sub i64 %310, %.0108
  %312 = invoke i64 @write(i32 noundef %296, ptr noundef %308, i64 noundef %311)
          to label %313 unwind label %319

313:                                              ; preds = %305
  %314 = and i64 %312, 2147483648
  %.not137 = icmp eq i64 %314, 0
  br i1 %.not137, label %322, label %315

315:                                              ; preds = %313
  %316 = tail call ptr @__errno_location() #17
  %317 = load i32, ptr %316, align 4, !tbaa !14
  %318 = icmp eq i32 %317, 4
  br i1 %318, label %325, label %321, !llvm.loop !22

319:                                              ; preds = %305
  %320 = landingpad { ptr, i32 }
          cleanup
  br label %326

321:                                              ; preds = %315
  call void @perror(ptr noundef nonnull @.str.8) #16
  call void @exit(i32 noundef 1) #14
  unreachable

322:                                              ; preds = %313
  %323 = and i64 %312, 2147483647
  %324 = add i64 %323, %.0108
  br label %325

325:                                              ; preds = %.thread157, %322, %315, %295
  %.3111 = phi i64 [ %.0108, %295 ], [ %324, %322 ], [ %.0108, %315 ], [ %.0108, %.thread157 ]
  %.5107 = phi i64 [ %.4106, %295 ], [ %.4106, %322 ], [ %.4106, %315 ], [ %.0102, %.thread157 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %18) #15
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #15
  br label %.preheader161

326:                                              ; preds = %319, %285, %253
  %.pn131 = phi { ptr, i32 } [ %320, %319 ], [ %286, %285 ], [ %254, %253 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %18) #15
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %17) #15
  br label %392

327:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %20) #15
  %328 = call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 8)
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(128) %20, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef %328)
          to label %.preheader160 unwind label %339

.preheader160:                                    ; preds = %327
  %329 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %330 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %329) #15
  %331 = icmp ne i64 %330, 0
  %332 = icmp ult i64 %.096205, 100
  %333 = select i1 %331, i1 %332, i1 false
  br i1 %333, label %.lr.ph200, label %._crit_edge201

._crit_edge201:                                   ; preds = %381, %.preheader160
  %.197.lcssa = phi i64 [ %.096205, %.preheader160 ], [ %.298, %381 ]
  %.195.lcssa = phi i64 [ %.094206, %.preheader160 ], [ %382, %381 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #15
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %20) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #15
  %334 = add i64 %.0100204, 1
  %335 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #15
  %336 = icmp ne i64 %334, %335
  %337 = icmp ult i64 %.197.lcssa, 100
  %338 = select i1 %336, i1 %337, i1 false
  br i1 %338, label %.lr.ph208, label %._crit_edge209, !llvm.loop !24

339:                                              ; preds = %327
  %340 = landingpad { ptr, i32 }
          cleanup
  br label %391

.lr.ph200:                                        ; preds = %.preheader160, %381
  %341 = phi i64 [ %384, %381 ], [ 0, %.preheader160 ]
  %.072199 = phi i32 [ %383, %381 ], [ 0, %.preheader160 ]
  %.195198 = phi i64 [ %382, %381 ], [ %.094206, %.preheader160 ]
  %.197197 = phi i64 [ %.298, %381 ], [ %.096205, %.preheader160 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #15
  %342 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %343 unwind label %.loopexit

343:                                              ; preds = %.lr.ph200
  %344 = load ptr, ptr %20, align 8, !tbaa !9
  %345 = getelementptr i8, ptr %344, i64 -24
  %346 = load i64, ptr %345, align 8
  %347 = getelementptr inbounds i8, ptr %20, i64 %346
  %348 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %347)
          to label %349 unwind label %.loopexit

349:                                              ; preds = %343
  br i1 %348, label %350, label %357

350:                                              ; preds = %349
  %351 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.12)
          to label %352 unwind label %.loopexit.split-lp

352:                                              ; preds = %350
  %353 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %351, i64 noundef %.0100204)
          to label %354 unwind label %.loopexit.split-lp

354:                                              ; preds = %352
  %355 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %353, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %356 unwind label %.loopexit.split-lp

356:                                              ; preds = %354
  call void @exit(i32 noundef 1) #14
  unreachable

.loopexit:                                        ; preds = %.lr.ph200, %343
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %390

.loopexit.split-lp:                               ; preds = %350, %352, %354
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %390

357:                                              ; preds = %349
  %358 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %359 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %341) #15
  %360 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %359) #15
  br i1 %360, label %381, label %361

361:                                              ; preds = %357
  %362 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.13)
          to label %363 unwind label %379

363:                                              ; preds = %361
  %364 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %362, i64 noundef %.195198)
          to label %365 unwind label %379

365:                                              ; preds = %363
  %366 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %364, ptr noundef nonnull @.str.14)
          to label %367 unwind label %379

367:                                              ; preds = %365
  %368 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %369 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %368, i64 noundef %341) #15
  %370 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %366, ptr noundef nonnull align 8 dereferenceable(32) %369)
          to label %371 unwind label %379

371:                                              ; preds = %367
  %372 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef nonnull @.str.15)
          to label %373 unwind label %379

373:                                              ; preds = %371
  %374 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %372, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %375 unwind label %379

375:                                              ; preds = %373
  %376 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %374, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %377 unwind label %379

377:                                              ; preds = %375
  %378 = add nuw nsw i64 %.197197, 1
  br label %381

379:                                              ; preds = %375, %373, %371, %367, %365, %363, %361
  %380 = landingpad { ptr, i32 }
          cleanup
  br label %390

381:                                              ; preds = %377, %357
  %.298 = phi i64 [ %.197197, %357 ], [ %378, %377 ]
  %382 = add i64 %.195198, 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #15
  %383 = add i32 %.072199, 1
  %384 = zext i32 %383 to i64
  %385 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0100204) #15
  %386 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %385) #15
  %387 = icmp ne i64 %386, %384
  %388 = icmp ult i64 %.298, 100
  %389 = select i1 %387, i1 %388, i1 false
  br i1 %389, label %.lr.ph200, label %._crit_edge201, !llvm.loop !25

390:                                              ; preds = %.loopexit, %.loopexit.split-lp, %379
  %.pn122 = phi { ptr, i32 } [ %380, %379 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #15
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %20) #15
  br label %391

391:                                              ; preds = %390, %339
  %.pn122.pn = phi { ptr, i32 } [ %.pn122, %390 ], [ %340, %339 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %20) #15
  br label %392

392:                                              ; preds = %326, %391, %220
  %.pn131.pn.pn = phi { ptr, i32 } [ %221, %220 ], [ %.pn131, %326 ], [ %.pn122.pn, %391 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #15
  br label %414

393:                                              ; preds = %._crit_edge209.thread, %._crit_edge209
  %394 = load i64, ptr %22, align 8, !tbaa !26
  %395 = load i64, ptr %15, align 8, !tbaa !26
  %396 = sub nsw i64 %394, %395
  %397 = sitofp i64 %396 to double
  %398 = getelementptr inbounds i8, ptr %22, i64 8
  %399 = load i64, ptr %398, align 8, !tbaa !28
  %400 = getelementptr inbounds i8, ptr %15, i64 8
  %401 = load i64, ptr %400, align 8, !tbaa !28
  %402 = sub nsw i64 %399, %401
  %403 = sitofp i64 %402 to double
  %404 = fdiv double %403, 1.000000e+06
  %405 = fadd double %404, %397
  %406 = fmul double %405, 1.000000e+03
  %407 = fptosi double %406 to i64
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %407)
          to label %409 unwind label %411

409:                                              ; preds = %393
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %413 unwind label %411

411:                                              ; preds = %409, %393
  %412 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #15
  br label %414

413:                                              ; preds = %._crit_edge209, %409
  %.0 = phi i32 [ 0, %409 ], [ 1, %._crit_edge209 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #15
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #15
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #15
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #15
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #15
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #15
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #15
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #15
  ret i32 %.0

414:                                              ; preds = %411, %392
  %.pn131.pn.pn.pn = phi { ptr, i32 } [ %.pn131.pn.pn, %392 ], [ %412, %411 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #15
  br label %415

415:                                              ; preds = %154, %178, %414, %198, %187, %111
  %.pn140 = phi { ptr, i32 } [ %112, %111 ], [ %155, %154 ], [ %.pn, %178 ], [ %.pn131.pn.pn.pn, %414 ], [ %188, %187 ], [ %199, %198 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #15
  br label %416

416:                                              ; preds = %415, %94, %92
  %.pn144 = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ], [ %.pn140, %415 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #15
  br label %417

417:                                              ; preds = %416, %90
  %.pn144.pn = phi { ptr, i32 } [ %.pn144, %416 ], [ %91, %90 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #15
  br label %418

418:                                              ; preds = %417, %88
  %.pn144.pn.pn = phi { ptr, i32 } [ %.pn144.pn, %417 ], [ %89, %88 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #15
  br label %419

419:                                              ; preds = %418, %60
  %.pn148 = phi { ptr, i32 } [ %61, %60 ], [ %.pn144.pn.pn, %418 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #15
  br label %420

420:                                              ; preds = %419, %58
  %.pn148.pn = phi { ptr, i32 } [ %.pn148, %419 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #15
  br label %421

421:                                              ; preds = %420, %41
  %.pn151 = phi { ptr, i32 } [ %42, %41 ], [ %.pn148.pn, %420 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #15
  br label %422

422:                                              ; preds = %421, %39
  %.pn151.pn = phi { ptr, i32 } [ %.pn151, %421 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %5) #15
  call void @_ZNSt6vectorIS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EESaIS7_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #15
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #15
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #15
  resume { ptr, i32 } %.pn151.pn
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL5usagev() local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

; 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

; 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 #1 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: nounwind
declare i32 @pipe(ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #8

; Function Attrs: nounwind
declare i32 @dup2(i32 noundef, i32 noundef) local_unnamed_addr #7

declare i32 @close(i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare i32 @execlp(ptr noundef, ptr noundef, ...) local_unnamed_addr #8

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #9

; Function Attrs: nofree
declare noundef i64 @read(i32 noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #9

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #10

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @_ZL11write_bytesiPKvm(i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNSt8literals15chrono_literalsli1sIJLc49EEEENSt6chrono8durationIlSt5ratioILl1ELl1EEEEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15set_nonblockingi(i32 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #8

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

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

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

declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #9

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) local_unnamed_addr #11

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #12

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #13

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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 #8 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nofree "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 #10 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 #11 = { 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 #12 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #13 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #14 = { noreturn nounwind }
attributes #15 = { nounwind }
attributes #16 = { cold }
attributes #17 = { nounwind willreturn memory(none) }

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

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


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