; LLVM IR from CWI-EvolutionaryIntelligence/GOMEA :: gomea/src/common (linkage_model)

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

%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.gomea::linkage_model_t" = type { ptr, %"class.std::vector", i64, %"class.std::vector", %"class.std::vector.4", %"class.std::vector.4", %"class.std::vector.4", i32, i8, i32, %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.14", i8, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::set<int>, std::allocator<std::set<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@_ZTVN5gomea15linkage_model_tE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5gomea15linkage_model_tC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca [1000 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.4", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector.4", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN5gomea15linkage_model_tE, i32 0, i32 0, i32 2), ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 1
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  %21 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 3
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %22 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  %23 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %24 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %25 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 7
  store i32 6, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 8
  store i8 1, ptr %26, align 4, !tbaa !33
  %27 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 10
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %28 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 11
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %29 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 12
  call void @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 1000, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %30 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %31 = invoke noalias ptr @fopen(ptr noundef %30, ptr noundef @.str.16)
          to label %32 unwind label %61

32:                                               ; preds = %2
  store ptr %31, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 2
  store i64 0, ptr %33, align 8, !tbaa !34
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %216

36:                                               ; preds = %32
  store i32 0, ptr %9, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !35
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = invoke i32 @fgetc(ptr noundef %37)
          to label %39 unwind label %65

39:                                               ; preds = %36
  %40 = trunc i32 %38 to i8
  store i8 %40, ptr %5, align 1, !tbaa !36
  br label %41

41:                                               ; preds = %74, %39
  %42 = load i8, ptr %5, align 1, !tbaa !36
  %43 = sext i8 %42 to i32
  %44 = icmp ne i32 %43, -1
  br i1 %44, label %45, label %76

45:                                               ; preds = %41
  br label %46

46:                                               ; preds = %59, %45
  %47 = load i8, ptr %5, align 1, !tbaa !36
  %48 = sext i8 %47 to i32
  %49 = icmp ne i32 %48, 10
  br i1 %49, label %50, label %54

50:                                               ; preds = %46
  %51 = load i8, ptr %5, align 1, !tbaa !36
  %52 = sext i8 %51 to i32
  %53 = icmp ne i32 %52, -1
  br label %54

54:                                               ; preds = %50, %46
  %55 = phi i1 [ false, %46 ], [ %53, %50 ]
  br i1 %55, label %56, label %69

56:                                               ; preds = %54
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = invoke i32 @fgetc(ptr noundef %57)
          to label %59 unwind label %65

59:                                               ; preds = %56
  %60 = trunc i32 %58 to i8
  store i8 %60, ptr %5, align 1, !tbaa !36
  br label %46, !llvm.loop !37

61:                                               ; preds = %222, %2
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  br label %229

65:                                               ; preds = %212, %209, %82, %79, %76, %69, %56, %36
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %11, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %12, align 4
  br label %215

69:                                               ; preds = %54
  %70 = load i32, ptr %13, align 4, !tbaa !35
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %13, align 4, !tbaa !35
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = invoke i32 @fgetc(ptr noundef %72)
          to label %74 unwind label %65

74:                                               ; preds = %69
  %75 = trunc i32 %73 to i8
  store i8 %75, ptr %5, align 1, !tbaa !36
  br label %41, !llvm.loop !39

76:                                               ; preds = %41
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = invoke i32 @fclose(ptr noundef %77)
          to label %79 unwind label %65

79:                                               ; preds = %76
  %80 = load ptr, ptr @stdout, align 8, !tbaa !5
  %81 = invoke i32 @fflush(ptr noundef %80)
          to label %82 unwind label %65

82:                                               ; preds = %79
  %83 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %84 = invoke noalias ptr @fopen(ptr noundef %83, ptr noundef @.str.16)
          to label %85 unwind label %65

85:                                               ; preds = %82
  store ptr %84, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !35
  br label %86

86:                                               ; preds = %201, %85
  %87 = load i32, ptr %7, align 4, !tbaa !35
  %88 = load i32, ptr %13, align 4, !tbaa !35
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %209

90:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = invoke i32 @fgetc(ptr noundef %91)
          to label %93 unwind label %129

93:                                               ; preds = %90
  %94 = trunc i32 %92 to i8
  store i8 %94, ptr %5, align 1, !tbaa !36
  store i32 0, ptr %8, align 4, !tbaa !35
  br label %95

95:                                               ; preds = %183, %93
  %96 = load i8, ptr %5, align 1, !tbaa !36
  %97 = sext i8 %96 to i32
  %98 = icmp ne i32 %97, 10
  br i1 %98, label %99, label %103

99:                                               ; preds = %95
  %100 = load i8, ptr %5, align 1, !tbaa !36
  %101 = sext i8 %100 to i32
  %102 = icmp ne i32 %101, -1
  br label %103

103:                                              ; preds = %99, %95
  %104 = phi i1 [ false, %95 ], [ %102, %99 ]
  br i1 %104, label %105, label %195

105:                                              ; preds = %103
  store i32 0, ptr %9, align 4, !tbaa !35
  br label %106

106:                                              ; preds = %127, %105
  %107 = load i8, ptr %5, align 1, !tbaa !36
  %108 = sext i8 %107 to i32
  %109 = icmp eq i32 %108, 32
  br i1 %109, label %122, label %110

110:                                              ; preds = %106
  %111 = load i8, ptr %5, align 1, !tbaa !36
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 10
  br i1 %113, label %122, label %114

114:                                              ; preds = %110
  %115 = load i8, ptr %5, align 1, !tbaa !36
  %116 = sext i8 %115 to i32
  %117 = icmp eq i32 %116, 9
  br i1 %117, label %122, label %118

118:                                              ; preds = %114
  %119 = load i8, ptr %5, align 1, !tbaa !36
  %120 = sext i8 %119 to i32
  %121 = icmp eq i32 %120, 44
  br label %122

122:                                              ; preds = %118, %114, %110, %106
  %123 = phi i1 [ true, %114 ], [ true, %110 ], [ true, %106 ], [ %121, %118 ]
  br i1 %123, label %124, label %133

124:                                              ; preds = %122
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = invoke i32 @fgetc(ptr noundef %125)
          to label %127 unwind label %129

127:                                              ; preds = %124
  %128 = trunc i32 %126 to i8
  store i8 %128, ptr %5, align 1, !tbaa !36
  br label %106, !llvm.loop !40

129:                                              ; preds = %195, %156, %124, %90
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %11, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %12, align 4
  br label %208

133:                                              ; preds = %122
  br label %134

134:                                              ; preds = %163, %133
  %135 = load i8, ptr %5, align 1, !tbaa !36
  %136 = sext i8 %135 to i32
  %137 = icmp ne i32 %136, 32
  br i1 %137, label %138, label %154

138:                                              ; preds = %134
  %139 = load i8, ptr %5, align 1, !tbaa !36
  %140 = sext i8 %139 to i32
  %141 = icmp ne i32 %140, 10
  br i1 %141, label %142, label %154

142:                                              ; preds = %138
  %143 = load i8, ptr %5, align 1, !tbaa !36
  %144 = sext i8 %143 to i32
  %145 = icmp ne i32 %144, 9
  br i1 %145, label %146, label %154

146:                                              ; preds = %142
  %147 = load i8, ptr %5, align 1, !tbaa !36
  %148 = sext i8 %147 to i32
  %149 = icmp ne i32 %148, 44
  br i1 %149, label %150, label %154

150:                                              ; preds = %146
  %151 = load i8, ptr %5, align 1, !tbaa !36
  %152 = sext i8 %151 to i32
  %153 = icmp ne i32 %152, -1
  br label %154

154:                                              ; preds = %150, %146, %142, %138, %134
  %155 = phi i1 [ false, %146 ], [ false, %142 ], [ false, %138 ], [ false, %134 ], [ %153, %150 ]
  br i1 %155, label %156, label %167

156:                                              ; preds = %154
  %157 = load i8, ptr %5, align 1, !tbaa !36
  %158 = load i32, ptr %9, align 4, !tbaa !35
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %159
  store i8 %157, ptr %160, align 1, !tbaa !36
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = invoke i32 @fgetc(ptr noundef %161)
          to label %163 unwind label %129

163:                                              ; preds = %156
  %164 = trunc i32 %162 to i8
  store i8 %164, ptr %5, align 1, !tbaa !36
  %165 = load i32, ptr %9, align 4, !tbaa !35
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %9, align 4, !tbaa !35
  br label %134, !llvm.loop !41

167:                                              ; preds = %154
  %168 = load i32, ptr %9, align 4, !tbaa !35
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 %169
  store i8 0, ptr %170, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %171 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
  %172 = call i32 @atoi(ptr noundef %171) #8
  store i32 %172, ptr %15, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %173 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 2
  %174 = load i64, ptr %173, align 8, !tbaa !34
  %175 = trunc i64 %174 to i32
  store i32 %175, ptr %16, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %176 = load i32, ptr %15, align 4, !tbaa !35
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %17, align 4, !tbaa !35
  %178 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %179 unwind label %186

179:                                              ; preds = %167
  %180 = load i32, ptr %178, align 4, !tbaa !35
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 2
  store i64 %181, ptr %182, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %183 unwind label %190

183:                                              ; preds = %179
  %184 = load i32, ptr %8, align 4, !tbaa !35
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %8, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %95, !llvm.loop !42

186:                                              ; preds = %167
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %11, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %194

190:                                              ; preds = %179
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %11, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %12, align 4
  br label %194

194:                                              ; preds = %190, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %208

195:                                              ; preds = %103
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %196 unwind label %129

196:                                              ; preds = %195
  %197 = load ptr, ptr %19, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %197, i64 2
  %199 = load ptr, ptr %198, align 8
  invoke void %199(ptr noundef nonnull align 8 dereferenceable(232) %19, ptr noundef %18)
          to label %200 unwind label %204

200:                                              ; preds = %196
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %7, align 4, !tbaa !35
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %7, align 4, !tbaa !35
  br label %86, !llvm.loop !43

204:                                              ; preds = %196
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %11, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %12, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %208

208:                                              ; preds = %204, %194, %129
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %215

209:                                              ; preds = %86
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = invoke i32 @fclose(ptr noundef %210)
          to label %212 unwind label %65

212:                                              ; preds = %209
  invoke void @_ZN5gomea15linkage_model_t10shuffleFOSEv(ptr noundef nonnull align 8 dereferenceable(232) %19)
          to label %213 unwind label %65

213:                                              ; preds = %212
  %214 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 7
  store i32 6, ptr %214, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %227

215:                                              ; preds = %208, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %229

216:                                              ; preds = %32
  %217 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
  %218 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %219 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %217, ptr noundef @.str.17, ptr noundef %218) #7
  %220 = call ptr @__cxa_allocate_exception(i64 16) #7
  %221 = getelementptr inbounds [1000 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %220, ptr noundef %221)
          to label %222 unwind label %223

222:                                              ; preds = %216
  invoke void @__cxa_throw(ptr %220, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %235 unwind label %61

223:                                              ; preds = %216
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %11, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %12, align 4
  call void @__cxa_free_exception(ptr %220) #7
  br label %229

227:                                              ; preds = %213
  %228 = getelementptr inbounds %"class.gomea::linkage_model_t", ptr %19, i32 0, i32 8
  store i8 1, ptr %228, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1000, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  ret void

229:                                              ; preds = %223, %215, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 1000, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #7
  call void @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %11, align 8
  %232 = load i32, ptr %12, align 4
  %233 = insertvalue { ptr, i32 } poison, ptr %231, 0
  %234 = insertvalue { ptr, i32 } %233, i32 %232, 1
  resume { ptr, i32 } %234

235:                                              ; preds = %222
  unreachable
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

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

declare i32 @fgetc(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

declare i32 @fflush(ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #5

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #2

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

!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 = !{!12, !22, i64 136}
!12 = !{!"_ZTSN5gomea15linkage_model_tE", !13, i64 8, !17, i64 32, !13, i64 40, !18, i64 64, !18, i64 88, !18, i64 112, !22, i64 136, !23, i64 140, !24, i64 144, !18, i64 152, !25, i64 176, !29, i64 200, !23, i64 224, !24, i64 228}
!13 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN5gomea7linkage18linkage_model_typeE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!12, !23, i64 140}
!34 = !{!12, !17, i64 32}
!35 = !{!24, !24, i64 0}
!36 = !{!7, !7, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}
!40 = distinct !{!40, !38}
!41 = distinct !{!41, !38}
!42 = distinct !{!42, !38}
!43 = distinct !{!43, !38}


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

%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTISt13runtime_error = external constant ptr
@_ZTVN5gomea15linkage_model_tE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5gomea15linkage_model_tC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [1000 x i8], align 16
  %4 = alloca %"class.std::vector.4", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.4", align 8
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN5gomea15linkage_model_tE, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %14 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 6, ptr %14, align 8, !tbaa !8
  %15 = getelementptr inbounds i8, ptr %0, i64 140
  store i8 1, ptr %15, align 4, !tbaa !32
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  %17 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %18 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %3) #8
  %19 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %20 = tail call noalias ptr @fopen(ptr noundef %19, ptr noundef nonnull @.str.16)
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 0, ptr %21, align 8, !tbaa !33
  %.not = icmp eq ptr %20, null
  br i1 %.not, label %74, label %22

22:                                               ; preds = %2
  %23 = tail call i32 @fgetc(ptr noundef nonnull %20)
  %sext.mask73 = and i32 %23, 255
  %.not6774 = icmp eq i32 %sext.mask73, 255
  br i1 %.not6774, label %._crit_edge, label %.preheader72

.preheader72:                                     ; preds = %22, %31
  %.076 = phi i32 [ %32, %31 ], [ 0, %22 ]
  %.063.in75 = phi i32 [ %33, %31 ], [ %23, %22 ]
  br label %24

24:                                               ; preds = %.preheader72, %25
  %.164.in = phi i32 [ %26, %25 ], [ %.063.in75, %.preheader72 ]
  %trunc = trunc i32 %.164.in to i8
  switch i8 %trunc, label %25 [
    i8 -1, label %31
    i8 10, label %31
  ]

25:                                               ; preds = %24
  %26 = tail call i32 @fgetc(ptr noundef nonnull %20)
  br label %24, !llvm.loop !34

27:                                               ; preds = %78
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %81

29:                                               ; preds = %._crit_edge79
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %81

31:                                               ; preds = %24, %24
  %32 = add nuw nsw i32 %.076, 1
  %33 = tail call i32 @fgetc(ptr noundef nonnull %20)
  %sext.mask = and i32 %33, 255
  %.not67 = icmp eq i32 %sext.mask, 255
  br i1 %.not67, label %._crit_edge, label %.preheader72, !llvm.loop !36

._crit_edge:                                      ; preds = %31, %22
  %.0.lcssa = phi i32 [ 0, %22 ], [ %32, %31 ]
  %34 = tail call i32 @fclose(ptr noundef nonnull %20)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !37
  %36 = tail call i32 @fflush(ptr noundef %35)
  %37 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %38 = tail call noalias ptr @fopen(ptr noundef %37, ptr noundef nonnull @.str.16)
  %.not80 = icmp eq i32 %.0.lcssa, 0
  br i1 %.not80, label %._crit_edge79, label %.lr.ph

.lr.ph:                                           ; preds = %._crit_edge, %67
  %.06277 = phi i32 [ %68, %67 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %39 = call i32 @fgetc(ptr noundef %38)
  %40 = trunc i32 %39 to i8
  br label %41

41:                                               ; preds = %59, %.lr.ph
  %.265 = phi i8 [ %40, %.lr.ph ], [ %.4, %59 ]
  switch i8 %.265, label %.preheader71 [
    i8 -1, label %62
    i8 10, label %62
  ]

.preheader71:                                     ; preds = %41, %.critedge
  %.3 = phi i8 [ %43, %.critedge ], [ %.265, %41 ]
  switch i8 %.3, label %.preheader [
    i8 44, label %.critedge
    i8 32, label %.critedge
    i8 10, label %.critedge
    i8 9, label %.critedge
  ]

.critedge:                                        ; preds = %.preheader71, %.preheader71, %.preheader71, %.preheader71
  %42 = call i32 @fgetc(ptr noundef %38)
  %43 = trunc i32 %42 to i8
  br label %.preheader71, !llvm.loop !38

44:                                               ; preds = %62
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %71

.preheader:                                       ; preds = %.preheader71, %46
  %indvars.iv = phi i64 [ %indvars.iv.next, %46 ], [ 0, %.preheader71 ]
  %.4 = phi i8 [ %49, %46 ], [ %.3, %.preheader71 ]
  switch i8 %.4, label %46 [
    i8 -1, label %.critedge16
    i8 44, label %.critedge16
    i8 32, label %.critedge16
    i8 10, label %.critedge16
    i8 9, label %.critedge16
  ]

46:                                               ; preds = %.preheader
  %47 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %indvars.iv
  store i8 %.4, ptr %47, align 1, !tbaa !39
  %48 = call i32 @fgetc(ptr noundef %38)
  %49 = trunc i32 %48 to i8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %.preheader, !llvm.loop !40

.critedge16:                                      ; preds = %.preheader, %.preheader, %.preheader, %.preheader, %.preheader
  %50 = and i64 %indvars.iv, 4294967295
  %51 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %50
  store i8 0, ptr %51, align 1, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %52 = call i32 @atoi(ptr nocapture noundef %3) #9
  store i32 %52, ptr %5, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %53 = load i64, ptr %21, align 8, !tbaa !33
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %6, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %55 = add nsw i32 %52, 1
  store i32 %55, ptr %7, align 4, !tbaa !41
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %57 = load i32, ptr %56, align 4, !tbaa !41
  %58 = sext i32 %57 to i64
  store i64 %58, ptr %21, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %59 unwind label %60

59:                                               ; preds = %.critedge16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %41, !llvm.loop !42

60:                                               ; preds = %.critedge16
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %71

62:                                               ; preds = %41, %41
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %63 unwind label %44

63:                                               ; preds = %62
  %64 = load ptr, ptr %0, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = load ptr, ptr %65, align 8
  invoke void %66(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull %8)
          to label %67 unwind label %69

67:                                               ; preds = %63
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  %68 = add nuw i32 %.06277, 1
  %exitcond.not = icmp eq i32 %68, %.0.lcssa
  br i1 %exitcond.not, label %._crit_edge79, label %.lr.ph, !llvm.loop !43

69:                                               ; preds = %63
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %71

71:                                               ; preds = %69, %60, %44
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %70, %69 ], [ %45, %44 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %81

._crit_edge79:                                    ; preds = %67, %._crit_edge
  %72 = call i32 @fclose(ptr noundef %38)
  invoke void @_ZN5gomea15linkage_model_t10shuffleFOSEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %73 unwind label %29

73:                                               ; preds = %._crit_edge79
  store i32 6, ptr %14, align 8, !tbaa !8
  store i8 1, ptr %15, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %3) #8
  ret void

74:                                               ; preds = %2
  %75 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %76 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef %75) #8
  %77 = tail call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef nonnull %3)
          to label %78 unwind label %79

78:                                               ; preds = %74
  invoke void @__cxa_throw(ptr nonnull %77, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %82 unwind label %27

79:                                               ; preds = %74
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %77) #8
  br label %81

81:                                               ; preds = %29, %71, %79, %27
  %.pn.pn.pn = phi { ptr, i32 } [ %28, %27 ], [ %80, %79 ], [ %.pn, %71 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %3) #8
  call void @_ZNSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @_ZNSt6vectorIS_IiSaIiEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  resume { ptr, i32 } %.pn.pn.pn

82:                                               ; preds = %78
  unreachable
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @fgetc(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) 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 #7

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !21, i64 136}
!9 = !{!"_ZTSN5gomea15linkage_model_tE", !10, i64 8, !16, i64 32, !10, i64 40, !17, i64 64, !17, i64 88, !17, i64 112, !21, i64 136, !22, i64 140, !23, i64 144, !17, i64 152, !24, i64 176, !28, i64 200, !22, i64 224, !23, i64 228}
!10 = !{!"_ZTSSt6vectorIS_IiSaIiEESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt6vectorIiSaIiEESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !15, i64 0}
!15 = !{!"omnipotent char", !7, i64 0}
!16 = !{!"long", !15, i64 0}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"_ZTSN5gomea7linkage18linkage_model_typeE", !15, i64 0}
!22 = !{!"bool", !15, i64 0}
!23 = !{!"int", !15, i64 0}
!24 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!28 = !{!"_ZTSSt6vectorISt3setIiSt4lessIiESaIiEESaIS4_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt3setIiSt4lessIiESaIiEESaIS4_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!32 = !{!9, !22, i64 140}
!33 = !{!9, !16, i64 32}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = !{!14, !14, i64 0}
!38 = distinct !{!38, !35}
!39 = !{!15, !15, i64 0}
!40 = distinct !{!40, !35}
!41 = !{!23, !23, i64 0}
!42 = distinct !{!42, !35}
!43 = distinct !{!43, !35}


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